AaronCameron.net
Because you all make me very, very tired.
Not a Member? - Login or Create an Account
Sunday the 5th of February 2012 @ 04:51pm
Front Page Journal Projects Your Profile About
[]

LibN2L-4 Library Code Reference

Classes
Compounds
Files
Members
Method Index
Full Reference

n2l::cGuiLabel Class Reference

A gui element which will draw at the current mouse location to act as a mouse point`er. More...

#include <cGuiLabel.h>

Inheritance diagram for n2l::cGuiLabel:

Inheritance graph
[legend]
Collaboration diagram for n2l::cGuiLabel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

A gui element which will draw at the current mouse location to act as a mouse point`er.

Definition at line 42 of file cGuiLabel.h.


Constructor & Destructor Documentation

n2l::cGuiLabel::cGuiLabel  ) 
 

Definition at line 40 of file cGuiLabel.cpp.

n2l::cGuiLabel::cGuiLabel const cVfsNodeInterface iNode  ) 
 

Definition at line 53 of file cGuiLabel.cpp.

References load().

n2l::cGuiLabel::cGuiLabel const cDynVar iDefinition  ) 
 

Definition at line 61 of file cGuiLabel.cpp.

References load().

n2l::cGuiLabel::~cGuiLabel  )  [virtual]
 

Definition at line 47 of file cGuiLabel.cpp.


Member Function Documentation

const cAutoPtr< cGuiElement > n2l::cGuiLabel::clone  )  const [virtual]
 

Method to return a copy of this element.

Useful as a way to get a non-const, bindable and canvas-able instance of an element from the resource loader.

Note:
Bindings, name and canvas parent information are not cloned.

Implements n2l::cGuiElement.

Definition at line 125 of file cGuiLabel.cpp.

References cloneInto().

void n2l::cGuiLabel::cloneInto const cAutoPtr< cGuiLabel > &  i_ioElement  )  const [protected, virtual]
 

Definition at line 160 of file cGuiLabel.cpp.

References n2l::cGuiElement::cloneInto().

Referenced by clone().

void n2l::cGuiLabel::draw  )  const [virtual]
 

Draw ourselves on the screen.

Note:
This method does not set the projection matrix.

Reimplemented from n2l::cGuiElement.

Definition at line 97 of file cGuiLabel.cpp.

References n2l::cGuiTextStyle::draw(), n2l::cGuiElement::innerPos(), and n2l::cGuiElement::innerSize().

const tString & n2l::cGuiLabel::label  )  const [virtual]
 

Definition at line 118 of file cGuiLabel.cpp.

Referenced by load().

void n2l::cGuiLabel::label const tString iLabel  )  [virtual]
 

Definition at line 111 of file cGuiLabel.cpp.

void n2l::cGuiLabel::load const cDynVar iDefinition  )  [virtual]
 

Load this elements properties from the provided definition.

Reimplemented from n2l::cGuiElement.

Definition at line 78 of file cGuiLabel.cpp.

References n2l::cGuiElement::cGuiTextStyle, n2l::cDynVar::keyExists(), label(), n2l::cGuiElement::load(), and textStyle().

void n2l::cGuiLabel::load const cVfsNodeInterface iNode  )  [virtual]
 

Load this elements properties from the provided VFS Node.

Reimplemented from n2l::cGuiElement.

Definition at line 69 of file cGuiLabel.cpp.

References n2l::cGuiElement::validateAndDecode().

Referenced by cGuiLabel().

const cDynVar n2l::cGuiLabel::prop const tString iName,
const tString iInnerKey = ""
const [virtual]
 

Reimplemented from n2l::cGuiElement.

Definition at line 150 of file cGuiLabel.cpp.

References n2l::cGuiElement::prop(), and n2l::cGuiTextStyle::prop().

void n2l::cGuiLabel::prop const tString iName,
const cDynVar iVal,
const tString iInnerKey = ""
[virtual]
 

Set a property by name.

Which properites are supported and the format for each set is renegotiated as required.

Note:
Each derived class needs to reimplement this method to support its own properties. Parent classes should be called AFTER the derived class checks, not before which is opposite to most similar classes.

Reimplemented from n2l::cGuiElement.

Definition at line 133 of file cGuiLabel.cpp.

References n2l::cString::empty(), n2l::cDynVar::isArray(), n2l::cGuiElement::prop(), n2l::cGuiTextStyle::prop(), and textStyle().

virtual const cGuiTextStyle& n2l::cGuiLabel::textStyle  )  const [inline, virtual]
 

Definition at line 61 of file cGuiLabel.h.

virtual cGuiTextStyle& n2l::cGuiLabel::textStyle  )  [inline, virtual]
 

Definition at line 59 of file cGuiLabel.h.

Referenced by load(), and prop().

void n2l::cGuiLabel::textStyle const cGuiTextStyle iStyle  )  [virtual]
 

Definition at line 104 of file cGuiLabel.cpp.


The documentation for this class was generated from the following files:
©2012 Aaron Cameron