$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

StatBoxWidget Class Reference

#include <widgets.h>

Inheritance diagram for StatBoxWidget:

gcn::Widget

List of all members.


Public Member Functions

widgets.cpp - The stratagus ui widgets.
 StatBoxWidget (int width, int height)
virtual void draw (gcn::Graphics *graphics)
void setCaption (const std::string &s)
const std::string & getCaption () const
void setPercent (const int percent)
int getPercent () const

Constructor & Destructor Documentation

StatBoxWidget::StatBoxWidget ( int  width,
int  height 
)

StatBoxWidget constructor

Parameters:
width Width of the StatBoxWidget.
height Height of the StatBoxWidget.


Member Function Documentation

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

Draw StatBoxWidget.

Parameters:
graphics Graphic driver used to draw.
Todo:
caption seem to be placed upper than the middle.
Todo:
set direction (hor./vert.) and growing direction(up/down, left/rigth).

Implements gcn::Widget.

void StatBoxWidget::setCaption ( const std::string &  caption  ) 

Set caption of StatBoxWidget.

Parameters:
caption New value.

const std::string & StatBoxWidget::getCaption (  )  const

Get caption of StatBoxWidget.

void StatBoxWidget::setPercent ( const int  percent  ) 

Set percent of StatBoxWidget.

Parameters:
percent New value.

int StatBoxWidget::getPercent (  )  const

Get percent of StatBoxWidget.


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.