Hasty Badger
Small UI library (a branch of Turbo Badger)
|
TBWidgetString holds a string that can be painted as one line with the set alignment. More...
#include <tb_widgets_common.h>
Public Member Functions | |
void | Paint (TBWidget *widget, const TBRect &rect, const TBColor &color) |
int | GetWidth (TBWidget *widget) |
int | GetHeight (TBWidget *widget) |
bool | SetText (const TBStr &text) |
bool | GetText (TBStr &text) const |
bool | IsEmpty () const |
void | SetTextAlign (TB_TEXT_ALIGN align) |
Set which alignment the text should have if the space given when painting is larger than the text. More... | |
TB_TEXT_ALIGN | GetTextAlign () const |
Public Attributes | |
TBStr | m_text |
TB_TEXT_ALIGN | m_text_align |
TBWidgetString holds a string that can be painted as one line with the set alignment.
|
inline |
Set which alignment the text should have if the space given when painting is larger than the text.