libAlgAudio
v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
|
#include <UILabel.hpp>
Public Member Functions | |
virtual void | CustomDraw (DrawContext &c) override |
void | SetAlignment (HorizAlignment h, VertAlignment v=VertAlignment_CENTERED) |
void | SetBold (bool) |
void | SetText (std::string) |
void | SetTextColor (Color colorname) |
void | SetTextSize (int fontsize) |
Public Member Functions inherited from AlgAudio::UIWidget | |
virtual std::shared_ptr< UIWidget > | CustomFindChild (ID) const |
virtual void | CustomResize (Size2D) |
void | Draw (DrawContext &c) |
std::shared_ptr< UIWidget > | FindChild (ID search_id) |
Size2D | GetCurrentSize () const |
Point2D | GetPosInParent (std::shared_ptr< UIWidget > ancestor) |
Size2D | GetRequestedSize () const |
std::shared_ptr< Window > | GetWindow () |
bool | HasParent () |
bool | HasZeroArea () const |
virtual void | OnFocusChanged (bool) |
virtual void | OnKeyboard (KeyData) |
virtual void | RequestFocus () override |
void | Resize (Size2D s) |
void | SetBackColor (const Color &c) |
void | SetCustomSize (Size2D size) |
void | SetFrontColor (const Color &c) |
void | TriggerFakeResize () |
virtual | ~UIWidget () |
Public Member Functions inherited from AlgAudio::UIMouseEventsBase | |
virtual void | CustomMouseEnter (Point2D) |
virtual void | CustomMouseLeave (Point2D) |
virtual void | CustomMouseMotion (Point2D, Point2D) |
virtual bool | CustomMousePress (bool, MouseButton, Point2D) |
void | OnMouseEnter (Point2D) |
void | OnMouseLeave (Point2D) |
void | OnMouseMotion (Point2D, Point2D) |
bool | OnMousePress (bool, MouseButton, Point2D) |
void | SetFocusable (bool f) |
Public Member Functions inherited from AlgAudio::UIVisibilityBase | |
bool | IsDrawn () const |
bool | IsInvisible () const |
void | SetDisplayMode (DisplayMode m) |
Static Public Member Functions | |
static std::shared_ptr< UILabel > | Create (std::weak_ptr< Window > parent_window, std::string text, int size=16) |
|
static |
|
overridevirtual |
Implements AlgAudio::UIWidget.
void AlgAudio::UILabel::SetAlignment | ( | HorizAlignment | h, |
VertAlignment | v = VertAlignment_CENTERED |
||
) |
void AlgAudio::UILabel::SetBold | ( | bool | ) |
void AlgAudio::UILabel::SetText | ( | std::string | ) |
void AlgAudio::UILabel::SetTextColor | ( | Color | colorname | ) |
void AlgAudio::UILabel::SetTextSize | ( | int | fontsize | ) |