glv::Label Class Reference

Basic label widget. More...

#include <glv_textview.h>

Inheritance diagram for glv::Label:

glv::View glv::TRect< T > glv::Notifier glv::SmartObject< BaseClass >

List of all members.

Public Member Functions

 Label (const std::string &str, const Spec &spec)
 Create label using a prototype.
 Label (const std::string &str, bool vert)
 Label (const std::string &str="", space_t l=0, space_t t=0, bool vert=false)
 Label (const std::string &str, Place::t posAnch, space_t px, space_t py, bool vert=false)
 Ctor for adding label to inside of another View.
Labelalign (float vx, float vy)
 Set alignment factors for label area.
Labelsize (float pixels)
 Set label size.
Labelvalue (const std::string &s)
 Set label string.
Labelvertical (bool v)
 Set whether label is displayed vertically.
const std::string & value () const
 Get value.
virtual void onDraw ()
 Main drawing callback.

Classes

struct  Spec
 Prototype for constructor. More...


Detailed Description

Basic label widget.

Constructor & Destructor Documentation

glv::Label::Label ( const std::string &  str,
const Spec spec 
)

Create label using a prototype.

Parameters:
[in] str Label string
[in] spec Label spec prototype

glv::Label::Label ( const std::string &  str,
bool  vert 
)

Parameters:
[in] str Label string
[in] vert Whether to draw label vertically

glv::Label::Label ( const std::string &  str = "",
space_t  l = 0,
space_t  t = 0,
bool  vert = false 
)

Parameters:
[in] str Label string
[in] l Left position
[in] t Top position
[in] vert Whether to draw label vertically

glv::Label::Label ( const std::string &  str,
Place::t  posAnch,
space_t  px,
space_t  py,
bool  vert = false 
)

Ctor for adding label to inside of another View.

Parameters:
[in] str Label string
[in] posAnch Position/anchor place relative to parent
[in] px X position offset
[in] py Y position offset
[in] vert Whether to draw label vertically


The documentation for this class was generated from the following files:

Generated on Thu Aug 12 23:55:16 2010 for GLV by  doxygen 1.5.5