gwenhywfar 4.0.3

CocoaButton.h

Go to the documentation of this file.
00001 //
00002 //  CocoaButton.h
00003 //  
00004 //
00005 //  Created by Samuel Strupp on 10.08.10.
00006 //
00007 
00008 
00009 
00010 
00011 #import <Cocoa/Cocoa.h>
00012 #import "CocoaGwenGUIProtocol.h"
00013 
00014 typedef void (*gwenActionPtr)(NSButton *button, void* data);
00015 
00016 
00017 @interface CocoaButton : NSButton <CocoaGwenGUIProtocol> {
00018         gwenActionPtr c_actionPtr;
00019         void* c_actionData;
00020         BOOL fillX;
00021         BOOL fillY;
00022         
00023         CGFloat minWidth;
00024 }
00025 
00026 @property BOOL fillX;
00027 @property BOOL fillY;
00028 
00029 -(void) setC_ActionPtr:(gwenActionPtr)ptr Data:(void*)data;
00030 -(NSSize) neededTextSize;
00031 
00032 -(void) clicked:(id) sender;
00033 
00034 @end
00035