glv::Label Class Reference
Basic label widget.
More...
#include <glv_textview.h>
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.
|
|
Label & | align (float vx, float vy) |
| | Set alignment factors for label area.
|
|
Label & | size (float pixels) |
| | Set label size.
|
|
Label & | value (const std::string &s) |
| | Set label string.
|
|
Label & | vertical (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:
- /Users/ljp/code/glv-svn/trunk/include/glv_textview.h
- /Users/ljp/code/glv-svn/trunk/src/glv_textview.cpp