-
Notifications
You must be signed in to change notification settings - Fork 17
/
button.h
26 lines (20 loc) · 987 Bytes
/
button.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#import <Cocoa/Cocoa.h>
// typedef void (*callback)(void);
@interface ButtonHandler : NSObject
@property (assign) int goButtonID;
-(void) buttonClicked:(id) sender;
@end
typedef void* ButtonPtr;
ButtonPtr Button_New(int goButtonID, int x, int y, int w, int h);
void Button_SetTitle(ButtonPtr btnPtr, const char* title);
const char* Button_Title(ButtonPtr btnPtr);
void Button_SetButtonType(ButtonPtr btnPtr, int buttonType);
void Button_SetBezelStyle(ButtonPtr btnPtr, int bezelStyle);
void Button_SetFontFamily(ButtonPtr btnPtr, const char* fontFamily);
void Button_SetFontSize(ButtonPtr btnPtr, int fontSize);
void Button_SetColor(ButtonPtr btnPtr, int r, int g, int b, int a);
void Button_SetBackgroundColor(ButtonPtr btnPtr, int r, int g, int b, int a);
void Button_SetBorderColor(ButtonPtr btnPtr, int r, int g, int b, int a);
void Button_SetBorderWidth(ButtonPtr btnPtr, int borderWidth);
void Button_SetState(ButtonPtr btnPtr, int state);
int Button_State(ButtonPtr btnPtr);