src/window.h
branchcpp_gui
changeset 6244 4b42fb40e6d2
parent 6243 8f231ee779cb
child 6245 6fa82c6ee8ca
equal deleted inserted replaced
6243:8f231ee779cb 6244:4b42fb40e6d2
   416 	int GetMenuItemIndex(int x, int y) const;
   416 	int GetMenuItemIndex(int x, int y) const;
   417 	void Resize(int x, int y);
   417 	void Resize(int x, int y);
   418 
   418 
   419 	void AssignWidget(const Widget *widget);
   419 	void AssignWidget(const Widget *widget);
   420 
   420 
       
   421 	void InvalidateData();
   421 	void InvalidateWidget(byte widget_index) const;
   422 	void InvalidateWidget(byte widget_index) const;
       
   423 
       
   424 	/* viewport.cpp */
       
   425 	void DrawViewport() const;
   422 
   426 
   423 	/* widget.cpp */
   427 	/* widget.cpp */
   424 	int GetWidgetFromPos(int x, int y) const;
   428 	int GetWidgetFromPos(int x, int y) const;
   425 	void DrawWidgets() const;
   429 	void DrawWidgets() const;
   426 	void ShowDropDownMenu(const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask);
   430 	void ShowDropDownMenu(const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask);
   753 //							const Widget *widget);
   757 //							const Widget *widget);
   754 
   758 
   755 Window *AllocateWindowDesc(const WindowDesc *desc);
   759 Window *AllocateWindowDesc(const WindowDesc *desc);
   756 Window *AllocateWindowDescFront(const WindowDesc *desc, int window_number);
   760 Window *AllocateWindowDescFront(const WindowDesc *desc, int window_number);
   757 
   761 
   758 void DrawWindowViewport(const Window *w);
   762 //void DrawWindowViewport(const Window *w);
   759 
   763 
   760 /**
   764 /**
   761  * Sets the enabled/disabled status of a widget.
   765  * Sets the enabled/disabled status of a widget.
   762  * By default, widgets are enabled.
   766  * By default, widgets are enabled.
   763  * On certain conditions, they have to be disabled.
   767  * On certain conditions, they have to be disabled.
   906 
   910 
   907 void InitWindowSystem(void);
   911 void InitWindowSystem(void);
   908 void UnInitWindowSystem(void);
   912 void UnInitWindowSystem(void);
   909 void ResetWindowSystem(void);
   913 void ResetWindowSystem(void);
   910 void InputLoop(void);
   914 void InputLoop(void);
   911 void InvalidateThisWindowData(Window *w);
   915 //void InvalidateThisWindowData(Window *w);
   912 void InvalidateWindowData(WindowClass cls, WindowNumber number);
   916 void InvalidateWindowData(WindowClass cls, WindowNumber number);
   913 //void RaiseWindowButtons(Window *w);
   917 //void RaiseWindowButtons(Window *w);
   914 void RelocateAllWindows(int neww, int newh);
   918 void RelocateAllWindows(int neww, int newh);
   915 int PositionMainToolbar(Window *w);
   919 int PositionMainToolbar(Window *w);
   916 //void CDECL SetWindowWidgetsDisabledState(Window *w, bool disab_stat, int widgets, ...);
   920 //void CDECL SetWindowWidgetsDisabledState(Window *w, bool disab_stat, int widgets, ...);