gwenhywfar  4.18.0
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  NSStepper *stepper;
21  NSTextField *textfield;
22 
23  CGFloat minWidth;
24 
25  BOOL fillX;
26  BOOL fillY;
27 
28  NSInteger minValue;
29  NSInteger maxValue;
30 
32  void* c_actionData;
33 }
34 
35 @property BOOL fillX;
36 @property BOOL fillY;
37 
38 -(void) setC_ActionPtr:(gwenSpinBoxActionPtr)ptr Data:(void*)data;
39 
40 -(void) makeFirstResponder;
41 -(BOOL) isFirstResponder;
42 
43 -(void) setEnabled:(BOOL)value;
44 -(BOOL) isEnabled;
45 
46 -(void) setIntegerValue:(NSInteger)new_value;
47 -(NSInteger) integerValue;
48 -(void) setMinValue:(NSInteger)new_min_value;
49 -(NSInteger) minValue;
50 -(void) setMaxValue:(NSInteger)new_max_value;
51 -(NSInteger) maxValue;
52 
53 -(void)setStringValue:(NSString *)aString;
54 -(NSString*) stringValue;
55 
56 @end
57 
58 #endif
NSTextField * textfield
Definition: CocoaSpinbox.h:21
void * c_actionData
Definition: CocoaSpinbox.h:32
NSStepper * stepper
Definition: CocoaSpinbox.h:20
void makeFirstResponder()
NSInteger maxValue()
NSInteger minValue()
NSInteger integerValue()
NSInteger minValue
Definition: CocoaSpinbox.h:28
NSInteger maxValue
Definition: CocoaSpinbox.h:29
NSString * stringValue()
CGFloat minWidth
Definition: CocoaSpinbox.h:23
void(* gwenSpinBoxActionPtr)(NSView *spinbox, void *data)
Definition: CocoaSpinbox.h:16
BOOL isFirstResponder()
gwenSpinBoxActionPtr c_actionPtr
Definition: CocoaSpinbox.h:31