src/GUIRadioButton.cpp

Go to the documentation of this file.
00001 #include "glwx.h"
00002 
00003 GUIRadioButton::GUIRadioButton(const std::string &callback) : GUICheckBox(callback)
00004 {
00005   secondaryTexDesc = WT_CHECK_RB_MARK;
00006   primaryTexDesc   = WT_RADIO_BUTTON;
00007   widgetType       = WT_RADIO_BUTTON;
00008   markRatio        = 0.75f;
00009 }
00010 
00011 void GUIRadioButton::checkMouseEvents(MouseEvent &newEvent, int extraInfo, bool bits)
00012 {
00013   GUIRectangle::checkMouseEvents(newEvent, extraInfo, true);
00014 
00015   if(clicked) 
00016   {
00017     if(!checked)
00018     {
00019       setChecked(true);
00020      ((GUIPanel*)parent)->notify(this);
00021     }
00022   }
00023   released = false;
00024   clicked  = false;
00025 }

Generated on Wed Dec 5 20:32:03 2007 for GLWX by  doxygen 1.5.3