____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

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

 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 ()
void setUncheckedNormalImage (gcn::Image *image)
void setUncheckedPressedImage (gcn::Image *image)
void setCheckedNormalImage (gcn::Image *image)
void setCheckedPressedImage (gcn::Image *image)

Public Attributes

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


Detailed Description

Definition at line 106 of file widgets.h.


Constructor & Destructor Documentation

ImageRadioButton::ImageRadioButton (  ) 

ImageRadioButton constructor

Definition at line 407 of file widgets.cpp.

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

ImageRadioButton constructor

Definition at line 417 of file widgets.cpp.


Member Function Documentation

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

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

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

Mouse button pressed callback

Reimplemented from gcn::MouseListener.

Definition at line 484 of file widgets.cpp.

References gcn::Widget::hasMouse(), gcn::MouseInput::LEFT, and mMouseDown.

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

Mouse button released callback

Reimplemented from gcn::MouseListener.

Definition at line 494 of file widgets.cpp.

References gcn::MouseInput::LEFT, and mMouseDown.

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

Mouse clicked callback

Reimplemented from gcn::RadioButton.

Definition at line 504 of file widgets.cpp.

References gcn::Widget::generateAction(), gcn::MouseInput::LEFT, and gcn::RadioButton::setMarked().

void ImageRadioButton::adjustSize (  )  [virtual]

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

Definition at line 121 of file widgets.h.

References uncheckedNormalImage.

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

Definition at line 122 of file widgets.h.

References uncheckedPressedImage.

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

Definition at line 123 of file widgets.h.

References checkedNormalImage.

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

Definition at line 124 of file widgets.h.

References checkedPressedImage.


Member Data Documentation

Definition at line 126 of file widgets.h.

Referenced by adjustSize(), draw(), drawBox(), and setUncheckedNormalImage().

Definition at line 127 of file widgets.h.

Referenced by drawBox(), and setUncheckedPressedImage().

Definition at line 128 of file widgets.h.

Referenced by drawBox(), and setCheckedNormalImage().

Definition at line 129 of file widgets.h.

Referenced by drawBox(), and setCheckedPressedImage().

Definition at line 130 of file widgets.h.

Referenced by drawBox(), mousePress(), and mouseRelease().


The documentation for this class was generated from the following files:

Generated on Sat Feb 21 00:28:25 2009 for Bos Wars by  doxygen 1.5.6