window.h
changeset 1093 4fdc46eaf423
parent 1009 75140dc68759
child 1178 7c39a741eafb
equal deleted inserted replaced
1092:e3b4a131db7c 1093:4fdc46eaf423
   508 void DispatchMouseWheelEvent(Window *w, uint widget, int wheel);
   508 void DispatchMouseWheelEvent(Window *w, uint widget, int wheel);
   509 
   509 
   510 /* window.c */
   510 /* window.c */
   511 void DrawOverlappedWindow(Window *w, int left, int top, int right, int bottom);
   511 void DrawOverlappedWindow(Window *w, int left, int top, int right, int bottom);
   512 void CallWindowEventNP(Window *w, int event);
   512 void CallWindowEventNP(Window *w, int event);
   513 void CallWindowTickEvent();
   513 void CallWindowTickEvent(void);
   514 void SetWindowDirty(Window *w);
   514 void SetWindowDirty(Window *w);
   515 
   515 
   516 Window *FindWindowById(WindowClass cls, WindowNumber number);
   516 Window *FindWindowById(WindowClass cls, WindowNumber number);
   517 void DeleteWindow(Window *w);
   517 void DeleteWindow(Window *w);
   518 Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);
   518 Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);
   553 	WindowClass cls,
   553 	WindowClass cls,
   554 	const Widget *widget);
   554 	const Widget *widget);
   555 
   555 
   556 void DrawWindowViewport(Window *w);
   556 void DrawWindowViewport(Window *w);
   557 
   557 
   558 void InitWindowSystem();
   558 void InitWindowSystem(void);
   559 int GetMenuItemIndex(Window *w, int x, int y);
   559 int GetMenuItemIndex(Window *w, int x, int y);
   560 void MouseLoop();
   560 void MouseLoop(void);
   561 void UpdateWindows();
   561 void UpdateWindows(void);
   562 void InvalidateWidget(Window *w, byte widget_index);
   562 void InvalidateWidget(Window *w, byte widget_index);
   563 
   563 
   564 void GuiShowTooltips(uint16 string_id);
   564 void GuiShowTooltips(uint16 string_id);
   565 
   565 
   566 void UnclickWindowButtons(Window *w);
   566 void UnclickWindowButtons(Window *w);
   573 void DrawWindowWidgets(Window *w);
   573 void DrawWindowWidgets(Window *w);
   574 void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, bool remove_filtered_strings);
   574 void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, bool remove_filtered_strings);
   575 
   575 
   576 void HandleButtonClick(Window *w, byte widget);
   576 void HandleButtonClick(Window *w, byte widget);
   577 
   577 
   578 Window *GetCallbackWnd();
   578 Window *GetCallbackWnd(void);
   579 void DeleteNonVitalWindows();
   579 void DeleteNonVitalWindows(void);
   580 void DeleteAllNonVitalWindows(void);
   580 void DeleteAllNonVitalWindows(void);
   581 void HideVitalWindows(void);
   581 void HideVitalWindows(void);
   582 void ShowVitalWindows(void);
   582 void ShowVitalWindows(void);
   583 
   583 
   584 /* window.c */
   584 /* window.c */