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

       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"

MultiLineLabel Class Reference

#include <widgets.h>

Inheritance diagram for MultiLineLabel:

gcn::Widget

List of all members.

Public Types

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

Public Member Functions

 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)


Detailed Description

Definition at line 175 of file widgets.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
LEFT 
CENTER 
RIGHT 
TOP 
BOTTOM 

Definition at line 193 of file widgets.h.


Constructor & Destructor Documentation

MultiLineLabel::MultiLineLabel (  ) 

MultiLineLabel constructor

Definition at line 752 of file widgets.cpp.

References LEFT, and TOP.

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

MultiLineLabel constructor

Definition at line 762 of file widgets.cpp.

References adjustSize(), LEFT, and TOP.


Member Function Documentation

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

Set the caption

Definition at line 776 of file widgets.cpp.

References gcn::Widget::setDirty().

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

Get the caption

Definition at line 786 of file widgets.cpp.

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

Set the horizontal alignment

Definition at line 794 of file widgets.cpp.

unsigned int MultiLineLabel::getAlignment (  )  [virtual]

Get the horizontal alignment

Definition at line 802 of file widgets.cpp.

Referenced by draw().

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

Set the vertical alignment

Definition at line 810 of file widgets.cpp.

unsigned int MultiLineLabel::getVerticalAlignment (  )  [virtual]

Get the vertical alignment

Definition at line 818 of file widgets.cpp.

Referenced by draw().

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

Set the line width

Definition at line 826 of file widgets.cpp.

int MultiLineLabel::getLineWidth (  )  [virtual]

Get the line width

Definition at line 835 of file widgets.cpp.

void MultiLineLabel::adjustSize (  )  [virtual]

Adjust the size

Definition at line 843 of file widgets.cpp.

References gcn::Widget::getFont(), gcn::Widget::getHeight(), int(), gcn::Widget::setHeight(), and gcn::Widget::setWidth().

Referenced by MultiLineLabel().

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

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


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