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