531 WF_SCROLL2 = 1 << 13, |
531 WF_SCROLL2 = 1 << 13, |
532 }; |
532 }; |
533 |
533 |
534 /* window.cpp */ |
534 /* window.cpp */ |
535 void CallWindowEventNP(Window *w, int event); |
535 void CallWindowEventNP(Window *w, int event); |
536 void CallWindowTickEvent(void); |
536 void CallWindowTickEvent(); |
537 void SetWindowDirty(const Window *w); |
537 void SetWindowDirty(const Window *w); |
538 void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam); |
538 void SendWindowMessage(WindowClass wnd_class, WindowNumber wnd_num, int msg, int wparam, int lparam); |
539 void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam); |
539 void SendWindowMessageClass(WindowClass wnd_class, int msg, int wparam, int lparam); |
540 |
540 |
541 Window *FindWindowById(WindowClass cls, WindowNumber number); |
541 Window *FindWindowById(WindowClass cls, WindowNumber number); |
707 { |
707 { |
708 assert(widget_index < w->widget_count); |
708 assert(widget_index < w->widget_count); |
709 return HASBIT(w->widget[widget_index].display_flags, WIDG_LOWERED); |
709 return HASBIT(w->widget[widget_index].display_flags, WIDG_LOWERED); |
710 } |
710 } |
711 |
711 |
712 void InitWindowSystem(void); |
712 void InitWindowSystem(); |
713 void UnInitWindowSystem(void); |
713 void UnInitWindowSystem(); |
714 void ResetWindowSystem(void); |
714 void ResetWindowSystem(); |
715 int GetMenuItemIndex(const Window *w, int x, int y); |
715 int GetMenuItemIndex(const Window *w, int x, int y); |
716 void InputLoop(void); |
716 void InputLoop(); |
717 void InvalidateWidget(const Window *w, byte widget_index); |
717 void InvalidateWidget(const Window *w, byte widget_index); |
718 void InvalidateThisWindowData(Window *w); |
718 void InvalidateThisWindowData(Window *w); |
719 void InvalidateWindowData(WindowClass cls, WindowNumber number); |
719 void InvalidateWindowData(WindowClass cls, WindowNumber number); |
720 void RaiseWindowButtons(Window *w); |
720 void RaiseWindowButtons(Window *w); |
721 void RelocateAllWindows(int neww, int newh); |
721 void RelocateAllWindows(int neww, int newh); |
736 void DrawWindowWidgets(const Window *w); |
736 void DrawWindowWidgets(const Window *w); |
737 void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask); |
737 void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask); |
738 |
738 |
739 void HandleButtonClick(Window *w, byte widget); |
739 void HandleButtonClick(Window *w, byte widget); |
740 |
740 |
741 Window *GetCallbackWnd(void); |
741 Window *GetCallbackWnd(); |
742 void DeleteNonVitalWindows(void); |
742 void DeleteNonVitalWindows(); |
743 void DeleteAllNonVitalWindows(void); |
743 void DeleteAllNonVitalWindows(); |
744 void HideVitalWindows(void); |
744 void HideVitalWindows(); |
745 void ShowVitalWindows(void); |
745 void ShowVitalWindows(); |
746 Window **FindWindowZPosition(const Window *w); |
746 Window **FindWindowZPosition(const Window *w); |
747 |
747 |
748 /* window.cpp */ |
748 /* window.cpp */ |
749 extern Window *_z_windows[]; |
749 extern Window *_z_windows[]; |
750 extern Window **_last_z_window; |
750 extern Window **_last_z_window; |