Clone of Akilla's ac2d @ https://github.com/deregtd/AC2D

CRootWindow.h 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef CROOTWINDOW_H
  2. #define CROOTWINDOW_H
  3. #include "CWindow.h"
  4. class CRootWindow : public CWindow
  5. {
  6. public:
  7. CRootWindow();
  8. ~CRootWindow();
  9. virtual bool SetWidth( float NewWidth );
  10. virtual bool SetHeight( float NewHeight );
  11. virtual bool SetSize( float NewWidth, float NewHeight );
  12. virtual bool SetTop( float NewTop );
  13. virtual bool SetLeft( float NewLeft );
  14. virtual bool SetPosition( float NewLeft, float NewTop );
  15. virtual float GetLeft() const;
  16. virtual float GetTop() const;
  17. virtual float GetWidth() const;
  18. virtual float GetHeight() const;
  19. virtual float GetAbsoluteLeft() const;
  20. virtual float GetAbsoluteTop() const;
  21. virtual bool SetAnchorTop( bool NewAnchorTop );
  22. virtual bool SetAnchorLeft( bool NewAnchorLeft );
  23. virtual bool SetAnchorBottom( bool NewAnchorBottom );
  24. virtual bool SetAnchorRight( bool NewAnchorRight );
  25. virtual bool GetAnchorTop() const;
  26. virtual bool GetAnchorLeft() const;
  27. virtual bool GetAnchorBottom() const;
  28. virtual bool GetAnchorRight() const;
  29. virtual bool SetVisible( bool NewVisible );
  30. virtual bool GetVisible() const;
  31. virtual bool JumpToFront();
  32. virtual bool JumpToBack();
  33. virtual bool AddChild( IWindow &Child, bool AddToBack = false );
  34. virtual bool RemoveChild( IWindow &Child );
  35. virtual bool SetParent( IWindow *NewParent );
  36. virtual IWindow *GetParent() const;
  37. virtual const std::list< IWindow * > &GetChildren() const;
  38. virtual bool PrivateSetWidth( float NewWidth );
  39. virtual bool PrivateSetHeight( float NewHeight );
  40. virtual bool PrivateSetSize( float NewWidth, float NewHeight );
  41. virtual bool PrivateSetTop( float NewTop );
  42. virtual bool PrivateSetLeft( float NewLeft );
  43. virtual bool PrivateSetPosition( float NewLeft, float NewTop );
  44. virtual bool PrivateAddChild( IWindow &Child );
  45. virtual bool PrivateRemoveChild( IWindow &Child );
  46. };
  47. #endif