Planeshift
|
This is a class that draws the border around a widget. More...
#include <pawsborder.h>
Public Member Functions | |
void | Draw () |
csRect | GetRect () |
const char * | GetTitle () |
iPawsImage * | GetTitleImage () |
void | Hide () |
void | JustTitle () |
Draws just the title bar. More... | |
pawsBorder (const char *styleName) | |
pawsBorder (const pawsBorder &origin) | |
void | SetParent (pawsWidget *parent) |
void | SetTitle (const char *t, bool shadow=true) |
void | SetTitleAlign (int al) |
void | SetTitleImage (iPawsImage *drawable) |
void | Show () |
void | UseBorder (const char *style) |
Use a particular style for this border. More... | |
~pawsBorder () | |
Protected Member Functions | |
void | DrawFrame (csRect frame) |
void | DrawTitle (csRect &frame) |
Protected Attributes | |
int | align |
Alignment of title text. More... | |
csRef< iPawsImage > | borderImages [PAWS_BORDER_MAX] |
bool | draw |
csRect | frame |
bool | justTitle |
pawsWidget * | parent |
bool | shadowFont |
int | style |
csString | title |
Title bar text. More... | |
csRef< iPawsImage > | titleImage |
Title bar image. More... | |
bool | usingGraphics |
This is a class that draws the border around a widget.
A grapical border consists of 8 images ( as seen in the enum ) that can create a border. The corner images are drawn easily and the images along the sides are tiled to fill in the space.
Definition at line 78 of file pawsborder.h.
pawsBorder::pawsBorder | ( | const char * | styleName | ) |
pawsBorder::pawsBorder | ( | const pawsBorder & | origin | ) |
pawsBorder::~pawsBorder | ( | ) |
void pawsBorder::Draw | ( | ) |
|
protected |
|
protected |
csRect pawsBorder::GetRect | ( | ) |
|
inline |
Definition at line 124 of file pawsborder.h.
|
inline |
Definition at line 120 of file pawsborder.h.
|
inline |
Definition at line 100 of file pawsborder.h.
|
inline |
Draws just the title bar.
Definition at line 95 of file pawsborder.h.
void pawsBorder::SetParent | ( | pawsWidget * | parent | ) |
void pawsBorder::SetTitle | ( | const char * | t, |
bool | shadow = true |
||
) |
|
inline |
Definition at line 115 of file pawsborder.h.
|
inline |
Definition at line 111 of file pawsborder.h.
|
inline |
Definition at line 104 of file pawsborder.h.
void pawsBorder::UseBorder | ( | const char * | style | ) |
Use a particular style for this border.
style | The style name to use for the border. lines is the default one that will draw basic lines around the widget. If style is NULL it will default to lines. |
|
protected |
Alignment of title text.
Definition at line 144 of file pawsborder.h.
|
protected |
Definition at line 137 of file pawsborder.h.
|
protected |
Definition at line 147 of file pawsborder.h.
|
protected |
Definition at line 134 of file pawsborder.h.
|
protected |
Definition at line 148 of file pawsborder.h.
|
protected |
Definition at line 135 of file pawsborder.h.
|
protected |
Definition at line 150 of file pawsborder.h.
|
protected |
Definition at line 149 of file pawsborder.h.
|
protected |
Title bar text.
Definition at line 140 of file pawsborder.h.
|
protected |
Title bar image.
Definition at line 142 of file pawsborder.h.
|
protected |
Definition at line 146 of file pawsborder.h.