gwenhywfar 4.0.3

CocoaSpinbox.h

Go to the documentation of this file.
00001 //
00002 //  CocoaSpinbox.h
00003 //  
00004 //
00005 //  Created by Samuel Strupp on 19.08.10.
00006 //
00007 
00008 
00009 
00010 #ifndef COCOA_SPINBOX_H
00011 #define COCOA_SPINBOX_H
00012 
00013 #import <Cocoa/Cocoa.h>
00014 #import "CocoaGwenGUIProtocol.h"
00015 
00016 typedef void (*gwenSpinBoxActionPtr)(NSView *spinbox, void* data);
00017 
00018 
00019 @interface CocoaSpinbox : NSView <CocoaGwenGUIProtocol> {
00020         NSStepper *stepper;
00021         NSTextField *textfield;
00022         
00023         CGFloat minWidth;
00024         
00025         BOOL fillX;
00026         BOOL fillY;
00027         
00028         NSInteger minValue;
00029         NSInteger maxValue;
00030         
00031         gwenSpinBoxActionPtr c_actionPtr;
00032         void* c_actionData;
00033 }
00034 
00035 @property BOOL fillX;
00036 @property BOOL fillY;
00037 
00038 -(void) setC_ActionPtr:(gwenSpinBoxActionPtr)ptr Data:(void*)data;
00039 
00040 -(void) makeFirstResponder;
00041 -(BOOL) isFirstResponder;
00042 
00043 -(void) setEnabled:(BOOL)value;
00044 -(BOOL) isEnabled;
00045 
00046 -(void) setIntegerValue:(NSInteger)new_value;
00047 -(NSInteger) integerValue;
00048 -(void) setMinValue:(NSInteger)new_min_value;
00049 -(NSInteger) minValue;
00050 -(void) setMaxValue:(NSInteger)new_max_value;
00051 -(NSInteger) maxValue;
00052 
00053 -(void)setStringValue:(NSString *)aString;
00054 -(NSString*) stringValue;
00055 
00056 @end
00057 
00058 #endif