forked from fjolnir/afloat
-
Notifications
You must be signed in to change notification settings - Fork 23
/
AfloatPanelController.h
41 lines (31 loc) · 1.03 KB
/
AfloatPanelController.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
//
// AfloatPanelController.h
// AfloatHUD
//
// Created by ∞ on 04/03/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
typedef enum {
kAfloatWindowStateNormal = 0,
kAfloatWindowStateAfloat = 1,
kAfloatWindowStatePinnedToDesktop = 2,
} AfloatWindowState;
@interface AfloatPanelController : NSWindowController {
NSWindow* _parentWindow;
float lastAlpha;
}
- (id) initAttachedToWindow:(NSWindow*) window;
+ (id) panelControllerForWindow:(NSWindow*) w;
- (IBAction) hideWindow:(id) sender;
- (IBAction) toggleWindow:(id) sender;
- (IBAction) disableAllOverlays:(id) sender;
@property(strong, getter=getParentWindow, setter=setParentWindow:) NSWindow* parentWindow;
@property CGFloat alphaValue;
// @property(getter=isKeptAfloat) BOOL keptAfloat;
@property AfloatWindowState windowState;
@property(getter=isOnAllSpaces) BOOL onAllSpaces;
@property(getter=isOverlay) BOOL overlay;
@property BOOL alphaValueAnimatesOnMouseOver;
@property(readonly) BOOL canSetAlphaValueAnimatesOnMouseOver;
@end