-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWLEffectView.h
75 lines (60 loc) · 1.58 KB
/
WLEffectView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//
// WLEffectView.h
// Welly
//
// Created by K.O.ed on 08-8-15.
// Copyright 2008 Welly Group. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <QuartzCore/CoreAnimation.h>
#define DEFAULT_POPUP_BOX_FONT @"Helvetica"
#define DEFAULT_POPUP_MENU_FONT @"Lucida Grande"
@class WLTerminalView;
@interface WLEffectView : NSView {
CALayer *_mainLayer;
IBOutlet WLTerminalView *_mainView;
CALayer *_ipAddrLayer;
CALayer *_clickEntryLayer;
CALayer *_popUpLayer;
CALayer *_buttonLayer;
CALayer *_menuLayer;
CALayer *_selectionLayer;
CALayer *_urlLineLayer;
CGImageRef _urlIndicatorImage;
CALayer *_urlIndicatorLayer;
int selectedItemIndex;
CGColorRef _popUpLayerTextColor;
CGFontRef _popUpLayerTextFont;
}
// for ip seeker
- (void)drawIPAddrBox:(NSRect)rect;
- (void)clearIPAddrBox;
// for post view
- (void)drawClickEntry:(NSRect)rect;
- (void)clearClickEntry;
// for button
- (void)drawButton:(NSRect)rect
withMessage:(NSString *)message;
- (void)clearButton;
// for menu
- (void)showMenuAtPoint:(NSPoint)pt
withItems:(NSArray *)items;
- (void)hideMenu;
- (void)selectMenuItemAtIndex:(int)index;
- (void)selectPreviousMenuItem;
- (void)selectNextMenuItem;
// for URL
- (void)drawURLUnderlineAtRow:(int)r
fromColumn:(int)start
toColumn:(int)end;
- (void)showIndicatorAtPoint:(NSPoint)point;
- (void)removeIndicator;
// To show pop up message by core animation
// This method might be changed in future
// by gtCarrera @ 9#
- (void)drawPopUpMessage:(NSString*)message;
- (void)removePopUpMessage;
- (void)resize;
- (void)clear;
- (void)setupLayer;
@end