$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

MultiLineLabel Class Reference

#include <widgets.h>

Inheritance diagram for MultiLineLabel:

gcn::Widget

List of all members.


widgets.cpp - The stratagus ui widgets.

 MultiLineLabel ()
 MultiLineLabel (const std::string &caption)
virtual void setCaption (const std::string &caption)
virtual const std::string & getCaption () const
virtual void setAlignment (unsigned int alignment)
virtual unsigned int getAlignment ()
virtual void setVerticalAlignment (unsigned int alignment)
virtual unsigned int getVerticalAlignment ()
virtual void setLineWidth (int width)
virtual int getLineWidth ()
virtual void adjustSize ()
virtual void draw (gcn::Graphics *graphics)
virtual void drawBorder (gcn::Graphics *graphics)

Public Types

enum  {
  LEFT = 0, CENTER, RIGHT, TOP,
  BOTTOM
}

Member Enumeration Documentation

anonymous enum

Enumerator:
LEFT 
CENTER 
RIGHT 
TOP 
BOTTOM 


Constructor & Destructor Documentation

MultiLineLabel::MultiLineLabel (  ) 

MultiLineLabel constructor

MultiLineLabel::MultiLineLabel ( const std::string &  caption  )  [explicit]

MultiLineLabel constructor


Member Function Documentation

void MultiLineLabel::setCaption ( const std::string &  caption  )  [virtual]

Set the caption

const std::string & MultiLineLabel::getCaption (  )  const [virtual]

Get the caption

void MultiLineLabel::setAlignment ( unsigned int  alignment  )  [virtual]

Set the horizontal alignment

unsigned int MultiLineLabel::getAlignment (  )  [virtual]

Get the horizontal alignment

void MultiLineLabel::setVerticalAlignment ( unsigned int  alignment  )  [virtual]

Set the vertical alignment

unsigned int MultiLineLabel::getVerticalAlignment (  )  [virtual]

Get the vertical alignment

void MultiLineLabel::setLineWidth ( int  width  )  [virtual]

Set the line width

int MultiLineLabel::getLineWidth (  )  [virtual]

Get the line width

void MultiLineLabel::adjustSize (  )  [virtual]

Adjust the size

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

Draw the label

Implements gcn::Widget.

void MultiLineLabel::drawBorder ( gcn::Graphics graphics  )  [virtual]

Draw the border

Reimplemented from gcn::Widget.


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.