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

ImageCheckBox Class Reference

#include <widgets.h>

Inheritance diagram for ImageCheckBox:

gcn::CheckBox 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.
 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::ImageuncheckedNormalImage
gcn::ImageuncheckedPressedImage
gcn::ImagecheckedNormalImage
gcn::ImagecheckedPressedImage
bool mMouseDown

Constructor & Destructor Documentation

ImageCheckBox::ImageCheckBox (  ) 

Image checkbox constructor

ImageCheckBox::ImageCheckBox ( const std::string &  caption,
bool  marked = false 
)

Image checkbox constructor


Member Function Documentation

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]


Member Data Documentation


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