Classes | Public Member Functions

glv::Label Class Reference

Basic label widget. More...

#include <glv_textview.h>

Inheritance diagram for glv::Label:
glv::Widget glv::View glv::DataModel glv::Notifier glv::SmartObject< View >

List of all members.

Classes

struct  Spec
 Prototype for constructor. More...

Public Member Functions

 Label (const std::string &str, const Spec &spec)
 Create label using a prototype.
 Label (const std::string &text, bool vert)
 Label (const std::string &text="", space_t l=0, space_t t=0, bool vert=false)
 Label (const std::string &text, 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.
Labelvertical (bool v)
 Set whether label is displayed vertically.
const std::string & getValue () const
 Get value.
virtual const char * className () const
 Get class name.
virtual void onDraw (GLV &g)
 Drawing callback.

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] text Label text
[in] spec Label spec prototype
glv::Label::Label ( const std::string &  text,
bool  vert 
)
Parameters:
[in] str Label text
[in] vert Whether to draw label vertically
glv::Label::Label ( const std::string &  text = "",
space_t  l = 0,
space_t  t = 0,
bool  vert = false 
)
Parameters:
[in] text Label text
[in] l Left position
[in] t Top position
[in] vert Whether to draw label vertically
glv::Label::Label ( const std::string &  text,
Place::t  posAnch,
space_t  px,
space_t  py,
bool  vert = false 
)

Ctor for adding label to inside of another View.

Parameters:
[in] text Label text
[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: