src/window.cpp
branchcpp_gui
changeset 6239 925a1bba771f
parent 6238 1ff56ccccbb5
child 6240 8d4ea2d6befc
equal deleted inserted replaced
6238:1ff56ccccbb5 6239:925a1bba771f
   920 //		assert(wz < _last_z_window);
   920 //		assert(wz < _last_z_window);
   921 //		if (w->window_class != WC_MAIN_WINDOW && !IsVitalWindow(w)) return w;
   921 //		if (w->window_class != WC_MAIN_WINDOW && !IsVitalWindow(w)) return w;
   922 //	}
   922 //	}
   923 //}
   923 //}
   924 
   924 
   925 bool IsWindowOfPrototype(const Window *w, const Widget *widget)
   925 bool Window::IsWindowOfPrototype(const Widget *widgets) const
   926 {
   926 {
   927 	return (w->original_widget == widget);
   927 	return (original_widget == widgets);
   928 }
   928 }
   929 
   929 
   930 /* Copies 'widget' to 'w->widget' to allow for resizable windows */
   930 /* Copies 'widget' to 'w->widget' to allow for resizable windows */
   931 void Window::AssignWidgetToWindow(const Widget *widget_array)
   931 void Window::AssignWidgetToWindow(const Widget *widget_array)
   932 {
   932 {