$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

ImageButton Class Reference

#include <widgets.h>

Inheritance diagram for ImageButton:

gcn::Button gcn::Widget gcn::MouseListener gcn::KeyListener

List of all members.


Public Member Functions

void setNormalImage (gcn::Image *image)
void setPressedImage (gcn::Image *image)
void setDisabledImage (gcn::Image *image)
widgets.cpp - The stratagus ui widgets.
 ImageButton ()
 ImageButton (const std::string &caption)
virtual void draw (gcn::Graphics *graphics)
virtual void adjustSize ()

Public Attributes

gcn::ImagenormalImage
gcn::ImagepressedImage
gcn::ImagedisabledImage

Constructor & Destructor Documentation

ImageButton::ImageButton (  ) 

ImageButton constructor

ImageButton::ImageButton ( const std::string &  caption  ) 

ImageButton constructor

Parameters:
caption Caption text


Member Function Documentation

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

Draw the image button

Parameters:
graphics Graphics object to draw with

Reimplemented from gcn::Button.

void ImageButton::adjustSize (  )  [virtual]

Automatically adjust the size of an image button

Reimplemented from gcn::Button.

void ImageButton::setNormalImage ( gcn::Image image  )  [inline]

void ImageButton::setPressedImage ( gcn::Image image  )  [inline]

void ImageButton::setDisabledImage ( 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.