Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CFuiLabel Class Reference

#include <Fui.h>

Inheritance diagram for CFuiLabel:

CFuiComponent CStreamObject CObject List of all members.

Public Member Functions

 CFuiLabel (int x=0, int y=0, int w=0, int h=0, Tag window=0)
virtual int Read (SStream *stream, Tag tag)
virtual void ReadFinished (void)
void Draw (void)
void SetColour (unsigned int colour)
 Set text colour.

Protected Attributes

int just
int wrap
unsigned int colText
unsigned int colShadow
bool useShadow

Detailed Description

Definition at line 653 of file Fui.h.


Constructor & Destructor Documentation

CFuiLabel::CFuiLabel int  x = 0,
int  y = 0,
int  w = 0,
int  h = 0,
Tag  window = 0
 

Definition at line 1798 of file Fui.cpp.

References COMPONENT_LABEL, and MakeRGB().


Member Function Documentation

void CFuiLabel::Draw void   )  [virtual]
 

Reimplemented from CFuiComponent.

Definition at line 1853 of file Fui.cpp.

References colText, CFuiComponent::Draw(), DrawText(), DrawTextC(), DrawTextR(), EraseSurface(), CFuiComponent::font, globals, just, JUSTIFY_H_CENTER, JUSTIFY_H_LEFT, JUSTIFY_H_RIGHT, JUSTIFY_V_BOTTOM, JUSTIFY_V_CENTER, JUSTIFY_V_TOP, SGlobals::logWarning, MaxCharHeight(), CFuiComponent::surface, CFuiComponent::text, TextWidth(), CFuiComponent::w, CLogFile::Write(), and CFuiComponent::y.

int CFuiLabel::Read SStream stream,
Tag  tag
[virtual]
 

Reimplemented from CFuiComponent.

Definition at line 1812 of file Fui.cpp.

References just, CFuiComponent::Read(), ReadInt(), TAG_IGNORED, TAG_READ, and wrap.

void CFuiLabel::ReadFinished void   )  [virtual]
 

Reimplemented from CFuiComponent.

Definition at line 1835 of file Fui.cpp.

References colShadow, colText, SGlobals::fuimgr, CFuiThemeWidget::GetColour(), CFuiThemeWidget::GetFlag(), CFuiManager::GetThemeWidget(), globals, SGlobals::logWarning, CFuiComponent::ReadFinished(), TagToString(), useShadow, CFuiComponent::widgetName, CFuiComponent::widgetTag, and CLogFile::Write().

void CFuiLabel::SetColour unsigned int  colour  ) 
 

Definition at line 1884 of file Fui.cpp.

References colText.

Referenced by CFuiManager::SetLabelColour().


Member Data Documentation

unsigned int CFuiLabel::colShadow [protected]
 

Definition at line 673 of file Fui.h.

Referenced by ReadFinished().

unsigned int CFuiLabel::colText [protected]
 

Definition at line 672 of file Fui.h.

Referenced by Draw(), ReadFinished(), and SetColour().

int CFuiLabel::just [protected]
 

Definition at line 670 of file Fui.h.

Referenced by Draw(), and Read().

bool CFuiLabel::useShadow [protected]
 

Definition at line 674 of file Fui.h.

Referenced by ReadFinished().

int CFuiLabel::wrap [protected]
 

Definition at line 671 of file Fui.h.

Referenced by Read().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen