internally divided widgets into behavior and drawing part

This commit is contained in:
vurtun 2015-12-01 20:13:41 +01:00
parent 570bea3877
commit 68f03fcffe
2 changed files with 519 additions and 324 deletions

815
zahnrad.c

File diff suppressed because it is too large Load Diff

View File

@ -2218,9 +2218,15 @@ int zr_window_is_minimized(struct zr_window*);
zr_queue -- returns the queue of the window zr_queue -- returns the queue of the window
zr_space -- returns the drawable space inside the window zr_space -- returns the drawable space inside the window
*/ */
enum zr_orientation {
ZR_VERTICAL,
ZR_HORIZONTAL
};
enum zr_widget_states { enum zr_widget_states {
ZR_INACTIVE = zr_false, ZR_INACTIVE,
ZR_ACTIVE = zr_true ZR_HOVERED,
ZR_ACTIVE
}; };
enum zr_collapse_states { enum zr_collapse_states {
@ -2933,7 +2939,7 @@ void zr_spinner_float(struct zr_context*, float min, float *value, float max,
COMBO BOX COMBO BOX
The combo box is a minimizable popup window and extends the old school The combo box is a minimizable popup window and extends the old school
text combo box with the possibility to fill combo boxes with any kind of widgets. text combo box with the possibility to fill combo boxes with any kind of widgets.
The combo box is internall implemented with a dynamic popup window The combo box is internaly implemented with a dynamic popup window
and can only be as height as the window allows. and can only be as height as the window allows.
There are two different ways to create a combo box. The first one is a There are two different ways to create a combo box. The first one is a
standart text combo box which has it own function `zr_combo`. The second standart text combo box which has it own function `zr_combo`. The second