src/window.cpp
changeset 8529 e2db3ea2bf74
parent 8528 04b4ef9abd9b
child 8531 e87a51f162e2
equal deleted inserted replaced
8528:04b4ef9abd9b 8529:e2db3ea2bf74
    23 static Point _drag_delta;
    23 static Point _drag_delta;
    24 
    24 
    25 static Window _windows[25];
    25 static Window _windows[25];
    26 Window *_z_windows[lengthof(_windows)];
    26 Window *_z_windows[lengthof(_windows)];
    27 Window **_last_z_window; ///< always points to the next free space in the z-array
    27 Window **_last_z_window; ///< always points to the next free space in the z-array
    28 
       
    29 void RaiseWindowButtons(Window *w)
       
    30 {
       
    31 	uint i;
       
    32 
       
    33 	for (i = 0; i < w->widget_count; i++) {
       
    34 		if (w->IsWidgetLowered(i)) {
       
    35 			w->RaiseWidget(i);
       
    36 			w->InvalidateWidget(i);
       
    37 		}
       
    38 	}
       
    39 }
       
    40 
    28 
    41 void CDECL Window::SetWidgetsDisabledState(bool disab_stat, int widgets, ...)
    29 void CDECL Window::SetWidgetsDisabledState(bool disab_stat, int widgets, ...)
    42 {
    30 {
    43 	va_list wdg_list;
    31 	va_list wdg_list;
    44 
    32