StatusBar.h 673 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #ifndef GWEN_CONTROLS_STATUSBAR_H
  3. #define GWEN_CONTROLS_STATUSBAR_H
  4. #include "Gwen/Gwen.h"
  5. #include "Gwen/Controls/Base.h"
  6. namespace Gwen
  7. {
  8. namespace Controls
  9. {
  10. class StatusBar : public Controls::Base
  11. {
  12. public:
  13. GWEN_CONTROL_INLINE( StatusBar, Controls::Base )
  14. {
  15. SetBounds( 0, 0, 200, 22 );
  16. Dock( Pos::Bottom );
  17. SetPadding( Padding( 2, 2, 2, 2 ) );
  18. }
  19. virtual void AddControl( Controls::Base* pCtrl, bool bRight)
  20. {
  21. pCtrl->SetParent( this );
  22. pCtrl->Dock( bRight ? Pos::Right : Pos::Left );
  23. }
  24. virtual void Render( Skin::Base* skin )
  25. {
  26. skin->DrawStatusBar( this );
  27. }
  28. };
  29. }
  30. }
  31. #endif