gwenhywfar  5.11.1beta
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>
18 {
20  void *c_actionData;
21  BOOL fillX;
22  BOOL fillY;
23 
24  CGFloat minWidth;
25 }
26 
27 @property BOOL fillX;
28 @property BOOL fillY;
29 
30 -(void) setC_ActionPtr:(gwenActionPtr)ptr Data:(void *)data;
31 -(NSSize) neededTextSize;
32 
33 -(void) clicked:(id) sender;
34 
35 @end
36 
void(* gwenActionPtr)(NSButton *button, void *data)
Definition: CocoaButton.h:14
CGFloat minWidth
Definition: CocoaButton.h:25
void * c_actionData
Definition: CocoaButton.h:21
gwenActionPtr c_actionPtr
Definition: CocoaButton.h:20