Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBWidgetString Class Reference

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
 

Detailed Description

TBWidgetString holds a string that can be painted as one line with the set alignment.

Member Function Documentation

void tb::TBWidgetString::SetTextAlign ( TB_TEXT_ALIGN  align)
inline

Set which alignment the text should have if the space given when painting is larger than the text.


The documentation for this class was generated from the following files: