(svn r7353) -Codechange: constify Window* in IsWindowWidget(Lowered|Hidden|Disabled)
authorrubidium
Mon, 04 Dec 2006 13:38:45 +0000
changeset 5233 b2d0c1be98ad
parent 5232 d099cc0d7961
child 5234 980aa61260aa
(svn r7353) -Codechange: constify Window* in IsWindowWidget(Lowered|Hidden|Disabled)
window.h
--- a/window.h	Mon Dec 04 13:36:27 2006 +0000
+++ b/window.h	Mon Dec 04 13:38:45 2006 +0000
@@ -682,7 +682,7 @@
  * @param widget_index : index of this widget in the window
  * @return status of the widget ie: disabled = true, enabled = false
  */
-static inline bool IsWindowWidgetDisabled(Window *w, byte widget_index)
+static inline bool IsWindowWidgetDisabled(const Window *w, byte widget_index)
 {
 	assert(widget_index < w->widget_count);
 	return IsWidgetDisabled(&w->widget[widget_index]);
@@ -739,7 +739,7 @@
  * @param widget_index : index of this widget in the window
  * @return status of the widget ie: hidden = true, visible = false
  */
-static inline bool IsWindowWidgetHidden(Window *w, byte widget_index)
+static inline bool IsWindowWidgetHidden(const Window *w, byte widget_index)
 {
 	assert(widget_index < w->widget_count);
 	return IsWidgetHidden(&w->widget[widget_index]);
@@ -794,7 +794,7 @@
  * @param widget_index : index of this widget in the window
  * @return status of the widget ie: lowered = true, raised= false
  */
-static inline bool IsWindowWidgetLowered(Window *w, byte widget_index)
+static inline bool IsWindowWidgetLowered(const Window *w, byte widget_index)
 {
 	assert(widget_index < w->widget_count);
 	return HASBIT(w->widget[widget_index].display_flags, WIDG_LOWERED);