Removed all the type function declarations from all the controls. More TODOs.
This commit is contained in:
parent
6f46bea054
commit
7b0f930185
|
@ -13,8 +13,7 @@ struct uiTable {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiTable, // type name
|
uiTable // type name
|
||||||
uiTableType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
void uiTableSetModel(uiTable *t, uiTableModel *m)
|
void uiTableSetModel(uiTable *t, uiTableModel *m)
|
||||||
|
|
|
@ -27,7 +27,6 @@ struct uiArea {
|
||||||
|
|
||||||
uiDarwinDefineControl(
|
uiDarwinDefineControl(
|
||||||
uiArea, // type name
|
uiArea, // type name
|
||||||
uiAreaType, // type function
|
|
||||||
view // handle
|
view // handle
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,6 @@ static void onDestroy(uiBox *);
|
||||||
|
|
||||||
uiDarwinDefineControlWithOnDestroy(
|
uiDarwinDefineControlWithOnDestroy(
|
||||||
uiBox, // type name
|
uiBox, // type name
|
||||||
uiBoxType, // type function
|
|
||||||
view, // handle
|
view, // handle
|
||||||
onDestroy(this); // on destroy
|
onDestroy(this); // on destroy
|
||||||
)
|
)
|
||||||
|
|
|
@ -59,7 +59,6 @@ static buttonDelegateClass *buttonDelegate = nil;
|
||||||
|
|
||||||
uiDarwinDefineControlWithOnDestroy(
|
uiDarwinDefineControlWithOnDestroy(
|
||||||
uiButton, // type name
|
uiButton, // type name
|
||||||
uiButtonType, // type function
|
|
||||||
button, // handle
|
button, // handle
|
||||||
[buttonDelegate unregisterButton:this]; // on destroy
|
[buttonDelegate unregisterButton:this]; // on destroy
|
||||||
)
|
)
|
||||||
|
|
|
@ -61,7 +61,6 @@ static checkboxDelegateClass *checkboxDelegate = nil;
|
||||||
|
|
||||||
uiDarwinDefineControlWithOnDestroy(
|
uiDarwinDefineControlWithOnDestroy(
|
||||||
uiCheckbox, // type name
|
uiCheckbox, // type name
|
||||||
uiCheckboxType, // type function
|
|
||||||
button, // handle
|
button, // handle
|
||||||
[checkboxDelegate unregisterCheckbox:this]; // on destroy
|
[checkboxDelegate unregisterCheckbox:this]; // on destroy
|
||||||
)
|
)
|
||||||
|
|
|
@ -102,7 +102,6 @@ static void onDestroy(uiCombobox *);
|
||||||
|
|
||||||
uiDarwinDefineControlWithOnDestroy(
|
uiDarwinDefineControlWithOnDestroy(
|
||||||
uiCombobox, // type name
|
uiCombobox, // type name
|
||||||
uiComboboxType, // type function
|
|
||||||
handle, // handle
|
handle, // handle
|
||||||
onDestroy(this); // on destroy
|
onDestroy(this); // on destroy
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,7 +8,6 @@ struct uiDateTimePicker {
|
||||||
|
|
||||||
uiDarwinDefineControl(
|
uiDarwinDefineControl(
|
||||||
uiDateTimePicker, // type name
|
uiDateTimePicker, // type name
|
||||||
uiDateTimePickerType, // type function
|
|
||||||
dp // handle
|
dp // handle
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,6 @@ static entryDelegateClass *entryDelegate = nil;
|
||||||
|
|
||||||
uiDarwinDefineControlWithOnDestroy(
|
uiDarwinDefineControlWithOnDestroy(
|
||||||
uiEntry, // type name
|
uiEntry, // type name
|
||||||
uiEntryType, // type function
|
|
||||||
textfield, // handle
|
textfield, // handle
|
||||||
[entryDelegate unregisterEntry:this]; // on destroy
|
[entryDelegate unregisterEntry:this]; // on destroy
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#import "uipriv_darwin.h"
|
#import "uipriv_darwin.h"
|
||||||
|
|
||||||
// TODO drag and drop fonts? what other interactions does NSColorWell allow that we can do for fonts?
|
// TODO drag and drop fonts? what other interactions does NSColorWell allow that we can do for fonts?
|
||||||
|
// TODO make position of templates consistent
|
||||||
|
|
||||||
@interface fontButton : NSButton {
|
@interface fontButton : NSButton {
|
||||||
uiFontButton *libui_b;
|
uiFontButton *libui_b;
|
||||||
|
@ -27,7 +28,6 @@ struct uiFontButton {
|
||||||
|
|
||||||
uiDarwinDefineControl(
|
uiDarwinDefineControl(
|
||||||
uiFontButton, // type name
|
uiFontButton, // type name
|
||||||
uiFontButtonType, // type function
|
|
||||||
button // handle
|
button // handle
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ static void onDestroy(uiGroup *);
|
||||||
|
|
||||||
uiDarwinDefineControlWithOnDestroy(
|
uiDarwinDefineControlWithOnDestroy(
|
||||||
uiGroup, // type name
|
uiGroup, // type name
|
||||||
uiGroupType, // type function
|
|
||||||
box, // handle
|
box, // handle
|
||||||
onDestroy(this); // on destroy
|
onDestroy(this); // on destroy
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,7 +8,6 @@ struct uiLabel {
|
||||||
|
|
||||||
uiDarwinDefineControl(
|
uiDarwinDefineControl(
|
||||||
uiLabel, // type name
|
uiLabel, // type name
|
||||||
uiLabelType, // type function
|
|
||||||
textfield // handle
|
textfield // handle
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@ struct uiMultilineEntry {
|
||||||
|
|
||||||
uiDarwinDefineControl(
|
uiDarwinDefineControl(
|
||||||
uiMultilineEntry, // type name
|
uiMultilineEntry, // type name
|
||||||
uiMultilineEntryType, // type function
|
|
||||||
sv // handle
|
sv // handle
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ struct uiProgressBar {
|
||||||
|
|
||||||
uiDarwinDefineControl(
|
uiDarwinDefineControl(
|
||||||
uiProgressBar, // type name
|
uiProgressBar, // type name
|
||||||
uiProgressBarType, // type function
|
|
||||||
pi // handle
|
pi // handle
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ struct uiRadioButtons {
|
||||||
|
|
||||||
uiDarwinDefineControl(
|
uiDarwinDefineControl(
|
||||||
uiRadioButtons, // type name
|
uiRadioButtons, // type name
|
||||||
uiRadioButtonsType, // type function
|
|
||||||
matrix // handle
|
matrix // handle
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@ struct uiSeparator {
|
||||||
|
|
||||||
uiDarwinDefineControl(
|
uiDarwinDefineControl(
|
||||||
uiSeparator, // type name
|
uiSeparator, // type name
|
||||||
uiSeparatorType, // type function
|
|
||||||
box // handle
|
box // handle
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,6 @@ static sliderDelegateClass *sliderDelegate = nil;
|
||||||
|
|
||||||
uiDarwinDefineControlWithOnDestroy(
|
uiDarwinDefineControlWithOnDestroy(
|
||||||
uiSlider, // type name
|
uiSlider, // type name
|
||||||
uiSliderType, // type function
|
|
||||||
slider, // handle
|
slider, // handle
|
||||||
[sliderDelegate unregisterSlider:this]; // on destroy
|
[sliderDelegate unregisterSlider:this]; // on destroy
|
||||||
)
|
)
|
||||||
|
|
|
@ -131,7 +131,6 @@ struct uiSpinbox {
|
||||||
|
|
||||||
uiDarwinDefineControl(
|
uiDarwinDefineControl(
|
||||||
uiSpinbox, // type name
|
uiSpinbox, // type name
|
||||||
uiSpinboxType, // type function
|
|
||||||
spinbox // handle
|
spinbox // handle
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ static void onDestroy(uiTab *);
|
||||||
|
|
||||||
uiDarwinDefineControlWithOnDestroy(
|
uiDarwinDefineControlWithOnDestroy(
|
||||||
uiTab, // type name
|
uiTab, // type name
|
||||||
uiTabType, // type function
|
|
||||||
tabview, // handle
|
tabview, // handle
|
||||||
onDestroy(this); // on destroy
|
onDestroy(this); // on destroy
|
||||||
)
|
)
|
||||||
|
|
|
@ -75,7 +75,6 @@ static void onDestroy(uiWindow *);
|
||||||
|
|
||||||
uiDarwinDefineControlWithOnDestroy(
|
uiDarwinDefineControlWithOnDestroy(
|
||||||
uiWindow, // type name
|
uiWindow, // type name
|
||||||
uiWindowType, // type function
|
|
||||||
window, // handle
|
window, // handle
|
||||||
onDestroy(this); // on destroy
|
onDestroy(this); // on destroy
|
||||||
)
|
)
|
||||||
|
|
|
@ -483,8 +483,7 @@ static void areaWidget_class_init(areaWidgetClass *class)
|
||||||
// control implementation
|
// control implementation
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiArea, // type name
|
uiArea // type name
|
||||||
uiAreaType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
void uiAreaSetSize(uiArea *a, intmax_t width, intmax_t height)
|
void uiAreaSetSize(uiArea *a, intmax_t width, intmax_t height)
|
||||||
|
|
|
@ -18,7 +18,6 @@ static void onDestroy(uiBox *b);
|
||||||
|
|
||||||
uiUnixDefineControlWithOnDestroy(
|
uiUnixDefineControlWithOnDestroy(
|
||||||
uiBox, // type name
|
uiBox, // type name
|
||||||
uiBoxType, // type function
|
|
||||||
onDestroy(this); // on destroy
|
onDestroy(this); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@ struct uiButton {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiButton, // type name
|
uiButton // type name
|
||||||
uiButtonType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
static void onClicked(GtkButton *button, gpointer data)
|
static void onClicked(GtkButton *button, gpointer data)
|
||||||
|
|
|
@ -13,8 +13,7 @@ struct uiCheckbox {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiCheckbox, // type name
|
uiCheckbox // type name
|
||||||
uiCheckboxType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
static void onToggled(GtkToggleButton *b, gpointer data)
|
static void onToggled(GtkToggleButton *b, gpointer data)
|
||||||
|
|
|
@ -12,8 +12,7 @@ struct uiCombobox {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiCombobox, // type name
|
uiCombobox // type name
|
||||||
uiComboboxType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO this is triggered when editing an editable combobox's text
|
// TODO this is triggered when editing an editable combobox's text
|
||||||
|
|
|
@ -7,8 +7,7 @@ struct uiDateTimePicker {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiDateTimePicker, // type name
|
uiDateTimePicker // type name
|
||||||
uiDateTimePickerType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
|
@ -12,8 +12,7 @@ struct uiEntry {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiEntry, // type name
|
uiEntry // type name
|
||||||
uiEntryType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
static void onChanged(GtkEditable *editable, gpointer data)
|
static void onChanged(GtkEditable *editable, gpointer data)
|
||||||
|
|
|
@ -12,8 +12,7 @@ struct uiFontButton {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiFontButton, // type name
|
uiFontButton // type name
|
||||||
uiFontButtonType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO NOTE no need to inhibit the signal; font-set is documented as only being sent when the user changes the font
|
// TODO NOTE no need to inhibit the signal; font-set is documented as only being sent when the user changes the font
|
||||||
|
|
|
@ -18,7 +18,6 @@ static void onDestroy(uiGroup *);
|
||||||
|
|
||||||
uiUnixDefineControlWithOnDestroy(
|
uiUnixDefineControlWithOnDestroy(
|
||||||
uiGroup, // type name
|
uiGroup, // type name
|
||||||
uiGroupType, // type function
|
|
||||||
onDestroy(this); // on destroy
|
onDestroy(this); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,7 @@ struct uiLabel {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiLabel, // type name
|
uiLabel // type name
|
||||||
uiLabelType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
char *uiLabelText(uiLabel *l)
|
char *uiLabelText(uiLabel *l)
|
||||||
|
|
|
@ -17,8 +17,7 @@ struct uiMultilineEntry {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiMultilineEntry, // type name
|
uiMultilineEntry // type name
|
||||||
uiMultilineEntryType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
static void onChanged(GtkTextBuffer *textbuf, gpointer data)
|
static void onChanged(GtkTextBuffer *textbuf, gpointer data)
|
||||||
|
|
|
@ -8,8 +8,7 @@ struct uiProgressBar {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiProgressBar, // type name
|
uiProgressBar // type name
|
||||||
uiProgressBarType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
void uiProgressBarSetValue(uiProgressBar *p, int value)
|
void uiProgressBarSetValue(uiProgressBar *p, int value)
|
||||||
|
|
|
@ -15,7 +15,6 @@ static void onDestroy(uiRadioButtons *);
|
||||||
|
|
||||||
uiUnixDefineControlWithOnDestroy(
|
uiUnixDefineControlWithOnDestroy(
|
||||||
uiRadioButtons, // type name
|
uiRadioButtons, // type name
|
||||||
uiRadioButtonsType, // type function
|
|
||||||
onDestroy(this); // on destroy
|
onDestroy(this); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,7 @@ struct uiSeparator {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiSeparator, // type name
|
uiSeparator // type name
|
||||||
uiSeparatorType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
uiSeparator *uiNewHorizontalSeparator(void)
|
uiSeparator *uiNewHorizontalSeparator(void)
|
||||||
|
|
|
@ -12,8 +12,7 @@ struct uiSlider {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiSlider, // type name
|
uiSlider // type name
|
||||||
uiSliderType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
static void onChanged(GtkRange *range, gpointer data)
|
static void onChanged(GtkRange *range, gpointer data)
|
||||||
|
|
|
@ -12,8 +12,7 @@ struct uiSpinbox {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiUnixDefineControl(
|
uiUnixDefineControl(
|
||||||
uiSpinbox, // type name
|
uiSpinbox // type name
|
||||||
uiSpinboxType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
static void onChanged(GtkSpinButton *sb, gpointer data)
|
static void onChanged(GtkSpinButton *sb, gpointer data)
|
||||||
|
|
|
@ -15,7 +15,6 @@ static void onDestroy(uiTab *);
|
||||||
|
|
||||||
uiUnixDefineControlWithOnDestroy(
|
uiUnixDefineControlWithOnDestroy(
|
||||||
uiTab, // type name
|
uiTab, // type name
|
||||||
uiTabType, // type function
|
|
||||||
onDestroy(this); // on destroy
|
onDestroy(this); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ static void onDestroy(uiWindow *);
|
||||||
|
|
||||||
uiUnixDefineControlWithOnDestroy(
|
uiUnixDefineControlWithOnDestroy(
|
||||||
uiWindow, // type name
|
uiWindow, // type name
|
||||||
uiWindowType, // type function
|
|
||||||
onDestroy(this); // on destroy
|
onDestroy(this); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
#include "area.hpp"
|
#include "area.hpp"
|
||||||
|
|
||||||
uiWindowsDefineControl(
|
uiWindowsDefineControl(
|
||||||
uiArea, // type name
|
uiArea // type name
|
||||||
uiAreaType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
static LRESULT CALLBACK areaWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
static LRESULT CALLBACK areaWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
|
@ -23,7 +23,6 @@ static void onDestroy(uiBox *);
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiBox, // type name
|
uiBox, // type name
|
||||||
uiBoxType, // type function
|
|
||||||
onDestroy(me); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ struct uiButton {
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiButton, // type name
|
uiButton, // type name
|
||||||
uiButtonType, // type function
|
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ struct uiCheckbox {
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiCheckbox, // type name
|
uiCheckbox, // type name
|
||||||
uiCheckboxType, // type function
|
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ struct uiCombobox {
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiCombobox, // type name
|
uiCombobox, // type name
|
||||||
uiComboboxType, // type function
|
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ struct uiDateTimePicker {
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiDateTimePicker, // type name
|
uiDateTimePicker, // type name
|
||||||
uiDateTimePickerType, // type function
|
|
||||||
uiWindowsUnregisterReceiveWM_WININICHANGE(me->hwnd); // on destroy
|
uiWindowsUnregisterReceiveWM_WININICHANGE(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ struct uiEntry {
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiEntry, // type name
|
uiEntry, // type name
|
||||||
uiEntryType, // type function
|
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ static void onDestroy(uiFontButton *);
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiFontButton, // type name
|
uiFontButton, // type name
|
||||||
uiFontButtonType, // type function
|
|
||||||
onDestroy(me); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ static void onDestroy(uiGroup *);
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiGroup, // type name
|
uiGroup, // type name
|
||||||
uiGroupType, // type function
|
|
||||||
onDestroy(me); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,7 @@ struct uiLabel {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiWindowsDefineControl(
|
uiWindowsDefineControl(
|
||||||
uiLabel, // type name
|
uiLabel // type name
|
||||||
uiLabelType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// via http://msdn.microsoft.com/en-us/library/windows/desktop/dn742486.aspx#sizingandspacing
|
// via http://msdn.microsoft.com/en-us/library/windows/desktop/dn742486.aspx#sizingandspacing
|
||||||
|
|
|
@ -14,7 +14,6 @@ struct uiMultilineEntry {
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiMultilineEntry, // type name
|
uiMultilineEntry, // type name
|
||||||
uiMultilineEntryType, // type function
|
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,7 @@ struct uiProgressBar {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiWindowsDefineControl(
|
uiWindowsDefineControl(
|
||||||
uiProgressBar, // type name
|
uiProgressBar // type name
|
||||||
uiProgressBarType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// via http://msdn.microsoft.com/en-us/library/windows/desktop/dn742486.aspx#sizingandspacing
|
// via http://msdn.microsoft.com/en-us/library/windows/desktop/dn742486.aspx#sizingandspacing
|
||||||
|
|
|
@ -18,7 +18,6 @@ static void onDestroy(uiRadioButtons *);
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiRadioButtons, // type name
|
uiRadioButtons, // type name
|
||||||
uiRadioButtonsType, // type function
|
|
||||||
onDestroy(me); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,7 @@ struct uiSeparator {
|
||||||
};
|
};
|
||||||
|
|
||||||
uiWindowsDefineControl(
|
uiWindowsDefineControl(
|
||||||
uiSeparator, // type name
|
uiSeparator // type name
|
||||||
uiSeparatorType // type function
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// via https://msdn.microsoft.com/en-us/library/windows/desktop/bb226818%28v=vs.85%29.aspx
|
// via https://msdn.microsoft.com/en-us/library/windows/desktop/bb226818%28v=vs.85%29.aspx
|
||||||
|
|
|
@ -10,7 +10,6 @@ struct uiSlider {
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiSlider, // type name
|
uiSlider, // type name
|
||||||
uiSliderType, // type function
|
|
||||||
uiWindowsUnregisterWM_HSCROLLHandler(me->hwnd); // on destroy
|
uiWindowsUnregisterWM_HSCROLLHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ static void onDestroy(uiSpinbox *);
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiSpinbox, // type name
|
uiSpinbox, // type name
|
||||||
uiSpinboxType, // type function
|
|
||||||
onDestroy(me); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ static void onDestroy(uiTab *);
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiTab, // type name
|
uiTab, // type name
|
||||||
uiTabType, // type function
|
|
||||||
onDestroy(me); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ static void onDestroy(uiWindow *);
|
||||||
|
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiWindow, // type name
|
uiWindow, // type name
|
||||||
uiWindowType, // type function
|
|
||||||
onDestroy(me); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue