SplitterBar.cpp 400 B

1234567891011121314151617181920212223
  1. #include "Gwen/Gwen.h"
  2. #include "Gwen/Controls/SplitterBar.h"
  3. using namespace Gwen;
  4. using namespace Controls;
  5. GWEN_CONTROL_CONSTRUCTOR( SplitterBar )
  6. {
  7. SetTarget( this );
  8. RestrictToParent( true );
  9. }
  10. void SplitterBar::Render( Skin::Base* skin )
  11. {
  12. if ( ShouldDrawBackground() )
  13. skin->DrawButton( this, true, false );
  14. }
  15. void SplitterBar::Layout( Skin::Base* /*skin*/ )
  16. {
  17. MoveTo( X(), Y() );
  18. }