Logo Search packages:      
Sourcecode: qonk version File versions  Download package

void gcn::RadioButton::adjustSize (  )  [virtual]

Adjusts the RadioButtons size to fit the font size.

Definition at line 306 of file radiobutton.cpp.

References getCaption(), gcn::Widget::getFont(), gcn::Font::getHeight(), gcn::Widget::getWidth(), gcn::Widget::setHeight(), and gcn::Widget::setWidth().

Referenced by RadioButton().

        int height = getFont()->getHeight();

        setWidth(getFont()->getWidth(getCaption()) + height + height/2);

Generated by  Doxygen 1.6.0   Back to index