RadioButton.cpp 398 B

123456789101112131415161718192021222324
  1. /*
  2. GWEN
  3. Copyright (c) 2010 Facepunch Studios
  4. See license in Gwen.h
  5. */
  6. #include "Gwen/Controls/RadioButton.h"
  7. using namespace Gwen;
  8. using namespace Gwen::Controls;
  9. GWEN_CONTROL_CONSTRUCTOR( RadioButton )
  10. {
  11. SetSize( 11, 11 );
  12. SetMouseInputEnabled( true );
  13. SetTabable( false );
  14. }
  15. void RadioButton::Render( Skin::Base* skin )
  16. {
  17. skin->DrawRadioButton( this, IsChecked(), IsDepressed() );
  18. }