More OS X control stuff.

This commit is contained in:
Pietro Gagliardi 2015-07-11 17:02:01 -04:00
parent dc9bf84256
commit 71c8bfc539
14 changed files with 28 additions and 25 deletions

View File

@ -1,9 +1,9 @@
// 10 june 2015 // 10 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct button { struct button {
uiButton b; uiButton b;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
void (*onClicked)(uiButton *, void *); void (*onClicked)(uiButton *, void *);
void *onClickedData; void *onClickedData;
}; };

View File

@ -1,9 +1,9 @@
// 10 june 2015 // 10 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct checkbox { struct checkbox {
uiCheckbox c; uiCheckbox c;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
void (*onToggled)(uiCheckbox *, void *); void (*onToggled)(uiCheckbox *, void *);
void *onToggledData; void *onToggledData;
}; };

View File

@ -1,9 +1,9 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct combobox { struct combobox {
uiCombobox c; uiCombobox c;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
}; };
uiDefineControlType(uiCombobox, uiTypeCombobox, struct combobox) uiDefineControlType(uiCombobox, uiTypeCombobox, struct combobox)

View File

@ -1,9 +1,9 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct datetimepicker { struct datetimepicker {
uiDateTimePicker d; uiDateTimePicker d;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
}; };
uiDefineControlType(uiDateTimePicker, uiTypeDateTimePicker, struct datetimepicker) uiDefineControlType(uiDateTimePicker, uiTypeDateTimePicker, struct datetimepicker)

View File

@ -1,9 +1,9 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct entry { struct entry {
uiEntry e; uiEntry e;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
void (*onChanged)(uiEntry *, void *); void (*onChanged)(uiEntry *, void *);
void *onChangedData; void *onChangedData;
}; };

View File

@ -1,9 +1,9 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct group { struct group {
uiGroup g; uiGroup g;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
uiControl *child; uiControl *child;
int margined; int margined;
}; };

View File

@ -1,9 +1,9 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct label { struct label {
uiLabel l; uiLabel l;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
}; };
uiDefineControlType(uiLabel, uiTypeLabel, struct label) uiDefineControlType(uiLabel, uiTypeLabel, struct label)

View File

@ -1,9 +1,9 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct progressbar { struct progressbar {
uiProgressBar p; uiProgressBar p;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
}; };
uiDefineControlType(uiProgressBar, uiTypeProgressBar, struct progressbar) uiDefineControlType(uiProgressBar, uiTypeProgressBar, struct progressbar)

View File

@ -1,5 +1,5 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct radiobuttons { struct radiobuttons {
uiRadioButtons r; uiRadioButtons r;

View File

@ -1,9 +1,9 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct separator { struct separator {
uiSeparator s; uiSeparator s;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
}; };
uiDefineControlType(uiSeparator, uiTypeSeparator, struct separator) uiDefineControlType(uiSeparator, uiTypeSeparator, struct separator)

View File

@ -1,9 +1,9 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct slider { struct slider {
uiSlider s; uiSlider s;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
void (*onChanged)(uiSlider *, void *); void (*onChanged)(uiSlider *, void *);
void *onChangedData; void *onChangedData;
}; };

View File

@ -1,9 +1,9 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct spinbox { struct spinbox {
uiSpinbox s; uiSpinbox s;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
void (*onChanged)(uiSpinbox *, void *); void (*onChanged)(uiSpinbox *, void *);
void *onChangedData; void *onChangedData;
}; };

View File

@ -1,9 +1,9 @@
// 11 june 2015 // 11 june 2015
#include "uipriv_OSHERE.h" #include "uipriv_darwin.h"
struct tab { struct tab {
uiTab t; uiTab t;
OSTYPE OSHANDLE; OSTYPE *OSHANDLE;
}; };
uiDefineControlType(uiTab, uiTypeTab, struct tab) uiDefineControlType(uiTab, uiTypeTab, struct tab)

View File

@ -55,3 +55,6 @@ extern uiWindow *windowFromNSWindow(NSWindow *);
// alloc.m // alloc.m
extern void initAlloc(void); extern void initAlloc(void);
extern void uninitAlloc(void); extern void uninitAlloc(void);
// TODO
#define PUT_CODE_HERE 0