gwenhywfar  4.6.0beta
CocoaButton.h
Go to the documentation of this file.
1 //
2 // CocoaButton.h
3 //
4 //
5 // Created by Samuel Strupp on 10.08.10.
6 //
7 
8 
9 
10 
11 #import <Cocoa/Cocoa.h>
12 #import "CocoaGwenGUIProtocol.h"
13 
14 typedef void (*gwenActionPtr)(NSButton *button, void* data);
15 
16 
17 @interface CocoaButton : NSButton <CocoaGwenGUIProtocol> {
19  void* c_actionData;
20  BOOL fillX;
21  BOOL fillY;
22 
23  CGFloat minWidth;
24 }
25 
26 @property BOOL fillX;
27 @property BOOL fillY;
28 
29 -(void) setC_ActionPtr:(gwenActionPtr)ptr Data:(void*)data;
30 -(NSSize) neededTextSize;
31 
32 -(void) clicked:(id) sender;
33 
34 @end
35