$treeview $search $mathjax
Stratagus  2.2.6
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
           Stratagus - A free fantasy real time strategy game engine

ImageRadioButton Class Reference

#include <widgets.h>

Inheritance diagram for ImageRadioButton:

gcn::RadioButton gcn::Widget gcn::MouseListener gcn::KeyListener

List of all members.


Public Member Functions

void setUncheckedNormalImage (gcn::Image *image)
void setUncheckedPressedImage (gcn::Image *image)
void setCheckedNormalImage (gcn::Image *image)
void setCheckedPressedImage (gcn::Image *image)
widgets.cpp - The stratagus ui widgets.
 ImageRadioButton ()
 ImageRadioButton (const std::string &caption, const std::string &group, bool marked)
virtual void drawBox (gcn::Graphics *graphics)
virtual void draw (gcn::Graphics *graphics)
virtual void mousePress (int x, int y, int button)
virtual void mouseRelease (int x, int y, int button)
virtual void mouseClick (int x, int y, int button, int count)
virtual void adjustSize ()

Public Attributes

gcn::ImageuncheckedNormalImage
gcn::ImageuncheckedPressedImage
gcn::ImagecheckedNormalImage
gcn::ImagecheckedPressedImage
bool mMouseDown

Constructor & Destructor Documentation

ImageRadioButton::ImageRadioButton (  ) 

ImageRadioButton constructor

ImageRadioButton::ImageRadioButton ( const std::string &  caption,
const std::string &  group,
bool  marked 
)

ImageRadioButton constructor


Member Function Documentation

void ImageRadioButton::drawBox ( gcn::Graphics graphics  )  [virtual]

Draw the image radio button (not the caption)

Reimplemented from gcn::RadioButton.

void ImageRadioButton::draw ( gcn::Graphics graphics  )  [virtual]

Draw the image radio button

Reimplemented from gcn::RadioButton.

void ImageRadioButton::mousePress ( int  x,
int  y,
int  button 
) [virtual]

Mouse button pressed callback

Reimplemented from gcn::MouseListener.

void ImageRadioButton::mouseRelease ( int  x,
int  y,
int  button 
) [virtual]

Mouse button released callback

Reimplemented from gcn::MouseListener.

void ImageRadioButton::mouseClick ( int  x,
int  y,
int  button,
int  count 
) [virtual]

Mouse clicked callback

Reimplemented from gcn::RadioButton.

void ImageRadioButton::adjustSize (  )  [virtual]

Adjusts the size to fit the image and font size

Reimplemented from gcn::RadioButton.

void ImageRadioButton::setUncheckedNormalImage ( gcn::Image image  )  [inline]

void ImageRadioButton::setUncheckedPressedImage ( gcn::Image image  )  [inline]

void ImageRadioButton::setCheckedNormalImage ( gcn::Image image  )  [inline]

void ImageRadioButton::setCheckedPressedImage ( gcn::Image image  )  [inline]


Member Data Documentation


The documentation for this class was generated from the following files:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.