gwenhywfar  5.11.1beta
CocoaSpinbox.h
Go to the documentation of this file.
1 //
2 // CocoaSpinbox.h
3 //
4 //
5 // Created by Samuel Strupp on 19.08.10.
6 //
7 
8 
9 
10 #ifndef COCOA_SPINBOX_H
11 #define COCOA_SPINBOX_H
12 
13 #import <Cocoa/Cocoa.h>
14 #import "CocoaGwenGUIProtocol.h"
15 
16 typedef void (*gwenSpinBoxActionPtr)(NSView *spinbox, void *data);
17 
18 
19 @interface CocoaSpinbox : NSView <CocoaGwenGUIProtocol>
20 {
21  NSStepper *stepper;
22  NSTextField *textfield;
23 
24  CGFloat minWidth;
25 
26  BOOL fillX;
27  BOOL fillY;
28 
29  NSInteger minValue;
30  NSInteger maxValue;
31 
33  void *c_actionData;
34 }
35 
36 @property BOOL fillX;
37 @property BOOL fillY;
38 
39 -(void) setC_ActionPtr:(gwenSpinBoxActionPtr)ptr Data:(void *)data;
40 
41 -(void) makeFirstResponder;
42 -(BOOL) isFirstResponder;
43 
44 -(void) setEnabled:(BOOL)value;
45 -(BOOL) isEnabled;
46 
47 -(void) setIntegerValue:(NSInteger)new_value;
48 -(NSInteger) integerValue;
49 -(void) setMinValue:(NSInteger)new_min_value;
50 -(NSInteger) minValue;
51 -(void) setMaxValue:(NSInteger)new_max_value;
52 -(NSInteger) maxValue;
53 
54 -(void)setStringValue:(NSString *)aString;
55 -(NSString *) stringValue;
56 
57 @end
58 
59 #endif
void(* gwenSpinBoxActionPtr)(NSView *spinbox, void *data)
Definition: CocoaSpinbox.h:16
NSInteger minValue
Definition: CocoaSpinbox.h:30
NSStepper * stepper
Definition: CocoaSpinbox.h:22
CGFloat minWidth
Definition: CocoaSpinbox.h:25
void * c_actionData
Definition: CocoaSpinbox.h:34
NSInteger maxValue
Definition: CocoaSpinbox.h:31
NSTextField * textfield
Definition: CocoaSpinbox.h:23
gwenSpinBoxActionPtr c_actionPtr
Definition: CocoaSpinbox.h:33