src/window.h
changeset 8492 d61f7a733d19
parent 8491 804b3117cc36
child 8504 a258f7640c56
equal deleted inserted replaced
8491:804b3117cc36 8492:d61f7a733d19
   286 	void SetWidgetHiddenState(byte widget_index, bool hidden_stat);
   286 	void SetWidgetHiddenState(byte widget_index, bool hidden_stat);
   287 	void HideWidget(byte widget_index);
   287 	void HideWidget(byte widget_index);
   288 	void ShowWidget(byte widget_index);
   288 	void ShowWidget(byte widget_index);
   289 	bool IsWidgetHidden(byte widget_index) const;
   289 	bool IsWidgetHidden(byte widget_index) const;
   290 	void SetWidgetLoweredState(byte widget_index, bool lowered_stat);
   290 	void SetWidgetLoweredState(byte widget_index, bool lowered_stat);
   291 	void ToggleLoweredState(byte widget_index);
   291 	void ToggleWidgetLoweredState(byte widget_index);
   292 	void LowerWidget(byte widget_index);
   292 	void LowerWidget(byte widget_index);
   293 	void RaiseWidget(byte widget_index);
   293 	void RaiseWidget(byte widget_index);
   294 	bool IsWidgetLowered(byte widget_index) const;
   294 	bool IsWidgetLowered(byte widget_index) const;
   295 
   295 
   296 	void RaiseButtons();
   296 	void RaiseButtons();
   936 
   936 
   937 /**
   937 /**
   938  * Invert the lowered/raised  status of a widget.
   938  * Invert the lowered/raised  status of a widget.
   939  * @param widget_index : index of this widget in the window
   939  * @param widget_index : index of this widget in the window
   940  */
   940  */
   941 inline void Window::ToggleLoweredState(byte widget_index)
   941 inline void Window::ToggleWidgetLoweredState(byte widget_index)
   942 {
   942 {
   943 	assert(widget_index < this->widget_count);
   943 	assert(widget_index < this->widget_count);
   944 	ToggleBit(this->widget[widget_index].display_flags, WIDG_LOWERED);
   944 	ToggleBit(this->widget[widget_index].display_flags, WIDG_LOWERED);
   945 }
   945 }
   946 
   946