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

       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"

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

 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 ()
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 133 of file widgets.h.


Constructor & Destructor Documentation

ImageCheckBox::ImageCheckBox (  ) 

Image checkbox constructor

Definition at line 544 of file widgets.cpp.

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

Image checkbox constructor

Definition at line 554 of file widgets.cpp.


Member Function Documentation

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

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

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

Mouse button pressed callback

Reimplemented from gcn::MouseListener.

Definition at line 620 of file widgets.cpp.

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

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

Mouse button released callback

Reimplemented from gcn::MouseListener.

Definition at line 630 of file widgets.cpp.

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

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

Mouse clicked callback

Reimplemented from gcn::CheckBox.

Definition at line 640 of file widgets.cpp.

References gcn::MouseInput::LEFT, and gcn::CheckBox::toggle().

void ImageCheckBox::adjustSize (  )  [virtual]

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

Definition at line 147 of file widgets.h.

References uncheckedNormalImage.

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

Definition at line 148 of file widgets.h.

References uncheckedPressedImage.

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

Definition at line 149 of file widgets.h.

References checkedNormalImage.

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

Definition at line 150 of file widgets.h.

References checkedPressedImage.


Member Data Documentation

Definition at line 152 of file widgets.h.

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

Definition at line 153 of file widgets.h.

Referenced by drawBox(), and setUncheckedPressedImage().

Definition at line 154 of file widgets.h.

Referenced by drawBox(), and setCheckedNormalImage().

Definition at line 155 of file widgets.h.

Referenced by drawBox(), and setCheckedPressedImage().

Definition at line 156 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