CocoaSpinbox.h
Go to the documentation of this file.
//
// CocoaSpinbox.h
//
//
// Created by Samuel Strupp on 19.08.10.
//
#ifndef COCOA_SPINBOX_H
#define COCOA_SPINBOX_H
#import <Cocoa/Cocoa.h>
#import "CocoaGwenGUIProtocol.h"
typedef void (*gwenSpinBoxActionPtr)(NSView *spinbox, void *data);
@interface CocoaSpinbox : NSView <CocoaGwenGUIProtocol>
{
NSStepper *stepper;
NSTextField *textfield;
CGFloat minWidth;
BOOL fillX;
BOOL fillY;
NSInteger minValue;
NSInteger maxValue;
gwenSpinBoxActionPtr c_actionPtr;
void *c_actionData;
}
@property BOOL fillX;
@property BOOL fillY;
-(void) setC_ActionPtr:(gwenSpinBoxActionPtr)ptr Data:(void *)data;
-(void) makeFirstResponder;
-(BOOL) isFirstResponder;
-(void) setEnabled:(BOOL)value;
-(BOOL) isEnabled;
-(void) setIntegerValue:(NSInteger)new_value;
-(NSInteger) integerValue;
-(void) setMinValue:(NSInteger)new_min_value;
-(NSInteger) minValue;
-(void) setMaxValue:(NSInteger)new_max_value;
-(NSInteger) maxValue;
-(void)setStringValue:(NSString *)aString;
-(NSString *) stringValue;
@end
#endif
CocoaGwenGUIProtocol.h
gwenSpinBoxActionPtr
void(* gwenSpinBoxActionPtr)(NSView *spinbox, void *data)
Definition CocoaSpinbox.h:16
CocoaSpinbox
Definition CocoaSpinbox.h:21
CocoaSpinbox::minValue
NSInteger minValue
Definition CocoaSpinbox.h:30
-[CocoaSpinbox stringValue]
NSString * stringValue()
CocoaSpinbox::stepper
NSStepper * stepper
Definition CocoaSpinbox.h:22
CocoaSpinbox::minWidth
CGFloat minWidth
Definition CocoaSpinbox.h:25
-[CocoaSpinbox isFirstResponder]
BOOL isFirstResponder()
CocoaSpinbox::fillX
BOOL fillX
Definition CocoaSpinbox.h:27
CocoaSpinbox::c_actionData
void * c_actionData
Definition CocoaSpinbox.h:34
CocoaSpinbox::fillY
BOOL fillY
Definition CocoaSpinbox.h:28
CocoaSpinbox::maxValue
NSInteger maxValue
Definition CocoaSpinbox.h:31
-[CocoaSpinbox isEnabled]
BOOL isEnabled()
-[CocoaSpinbox makeFirstResponder]
void makeFirstResponder()
CocoaSpinbox::textfield
NSTextField * textfield
Definition CocoaSpinbox.h:23
CocoaSpinbox::c_actionPtr
gwenSpinBoxActionPtr c_actionPtr
Definition CocoaSpinbox.h:33
-[CocoaSpinbox integerValue]
NSInteger integerValue()
CocoaGwenGUIProtocol-p
Definition CocoaGwenGUIProtocol.h:12