src/window.h
branchcpp_gui
changeset 6239 925a1bba771f
parent 6238 1ff56ccccbb5
child 6240 8d4ea2d6befc
equal deleted inserted replaced
6238:1ff56ccccbb5 6239:925a1bba771f
   385 	static Window* Allocate(int x, int y, int width, int height, WindowProc *proc, WindowClass cls, const Widget *widget);
   385 	static Window* Allocate(int x, int y, int width, int height, WindowProc *proc, WindowClass cls, const Widget *widget);
   386 	static Window* Get(WindowList::Iterator it);
   386 	static Window* Get(WindowList::Iterator it);
   387 	static Window* FindById(WindowClass cls, WindowNumber num);
   387 	static Window* FindById(WindowClass cls, WindowNumber num);
   388 	static void SetDirtyById(WindowClass cls, WindowNumber num);
   388 	static void SetDirtyById(WindowClass cls, WindowNumber num);
   389 
   389 
       
   390 	bool IsWindowOfPrototype(const Widget *widgets) const;
   390 	int GetMenuItemIndex(int x, int y) const;
   391 	int GetMenuItemIndex(int x, int y) const;
   391 	void ResizeWindow(int x, int y);
   392 	void ResizeWindow(int x, int y);
   392 
   393 
   393 	void AssignWidgetToWindow(const Widget *widget);
   394 	void AssignWidgetToWindow(const Widget *widget);
   394 
   395 
   728 void DeletePlayerWindows(PlayerID pi);
   729 void DeletePlayerWindows(PlayerID pi);
   729 void ChangeWindowOwner(PlayerID old_player, PlayerID new_player);
   730 void ChangeWindowOwner(PlayerID old_player, PlayerID new_player);
   730 //Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);
   731 //Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);
   731 Window *FindWindowFromPt(int x, int y);
   732 Window *FindWindowFromPt(int x, int y);
   732 
   733 
   733 bool IsWindowOfPrototype(const Window *w, const Widget *widget);
       
   734 //Window *AllocateWindow(
   734 //Window *AllocateWindow(
   735 //							int x,
   735 //							int x,
   736 //							int y,
   736 //							int y,
   737 //							int width,
   737 //							int width,
   738 //							int height,
   738 //							int height,