$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
#include <widgets.h>
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. | |
ImageCheckBox () | |
ImageCheckBox (const std::string &caption, bool marked=false) | |
virtual void | draw (gcn::Graphics *graphics) |
virtual void | drawBox (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::Image * | uncheckedNormalImage |
gcn::Image * | uncheckedPressedImage |
gcn::Image * | checkedNormalImage |
gcn::Image * | checkedPressedImage |
bool | mMouseDown |
ImageCheckBox::ImageCheckBox | ( | ) |
Image checkbox constructor
ImageCheckBox::ImageCheckBox | ( | const std::string & | caption, | |
bool | marked = false | |||
) |
Image checkbox constructor
void ImageCheckBox::draw | ( | gcn::Graphics * | graphics | ) | [virtual] |
Draw the image checkbox
Reimplemented from gcn::CheckBox.
void ImageCheckBox::drawBox | ( | gcn::Graphics * | graphics | ) | [virtual] |
Draw the checkbox (not the caption)
Reimplemented from gcn::CheckBox.
void ImageCheckBox::mousePress | ( | int | x, | |
int | y, | |||
int | button | |||
) | [virtual] |
Mouse button pressed callback
Reimplemented from gcn::MouseListener.
void ImageCheckBox::mouseRelease | ( | int | x, | |
int | y, | |||
int | button | |||
) | [virtual] |
Mouse button released callback
Reimplemented from gcn::MouseListener.
void ImageCheckBox::mouseClick | ( | int | x, | |
int | y, | |||
int | button, | |||
int | count | |||
) | [virtual] |
Mouse clicked callback
Reimplemented from gcn::CheckBox.
void ImageCheckBox::adjustSize | ( | ) | [virtual] |
Adjusts the size to fit the image and font size
Reimplemented from gcn::CheckBox.
void ImageCheckBox::setUncheckedNormalImage | ( | gcn::Image * | image | ) | [inline] |
void ImageCheckBox::setUncheckedPressedImage | ( | gcn::Image * | image | ) | [inline] |
void ImageCheckBox::setCheckedNormalImage | ( | gcn::Image * | image | ) | [inline] |
void ImageCheckBox::setCheckedPressedImage | ( | gcn::Image * | image | ) | [inline] |