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