ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

GUI::StaticTextWidget Class Reference

#include <widget.h>

Inheritance diagram for GUI::StaticTextWidget:
Collaboration diagram for GUI::StaticTextWidget:

List of all members.

Public Member Functions

 StaticTextWidget (GuiObject *boss, int x, int y, int w, int h, const Common::String &text, Graphics::TextAlign align, const char *tooltip=nullptr, ThemeEngine::FontStyle font=ThemeEngine::kFontStyleBold)
 StaticTextWidget (GuiObject *boss, const Common::String &name, const Common::String &text, const char *tooltip=nullptr, ThemeEngine::FontStyle font=ThemeEngine::kFontStyleBold)
void setValue (int value)
void setLabel (const Common::String &label)
void handleMouseEntered (int button) override
const Common::StringgetLabel () const
void setAlign (Graphics::TextAlign align)
Graphics::TextAlign getAlign () const
void readLabel ()

Protected Member Functions

void drawWidget () override

Protected Attributes

Common::String _label
Graphics::TextAlign _align
ThemeEngine::FontStyle _font

Detailed Description

Definition at line 197 of file widget.h.


Constructor & Destructor Documentation

GUI::StaticTextWidget::StaticTextWidget ( GuiObject boss,
int  x,
int  y,
int  w,
int  h,
const Common::String text,
Graphics::TextAlign  align,
const char *  tooltip = nullptr,
ThemeEngine::FontStyle  font = ThemeEngine::kFontStyleBold 
)

Definition at line 294 of file widget.cpp.

GUI::StaticTextWidget::StaticTextWidget ( GuiObject boss,
const Common::String name,
const Common::String text,
const char *  tooltip = nullptr,
ThemeEngine::FontStyle  font = ThemeEngine::kFontStyleBold 
)

Definition at line 303 of file widget.cpp.


Member Function Documentation

void GUI::StaticTextWidget::drawWidget (  )  [override, protected, virtual]

Implements GUI::Widget.

Definition at line 336 of file widget.cpp.

Graphics::TextAlign GUI::StaticTextWidget::getAlign (  )  const [inline]

Definition at line 210 of file widget.h.

const Common::String& GUI::StaticTextWidget::getLabel (  )  const [inline]

Definition at line 208 of file widget.h.

void GUI::StaticTextWidget::handleMouseEntered ( int  button  )  [inline, override, virtual]

Reimplemented from GUI::Widget.

Definition at line 207 of file widget.h.

void GUI::StaticTextWidget::readLabel (  )  [inline]

Definition at line 211 of file widget.h.

void GUI::StaticTextWidget::setAlign ( Graphics::TextAlign  align  ) 

Definition at line 326 of file widget.cpp.

void GUI::StaticTextWidget::setLabel ( const Common::String label  ) 

Definition at line 318 of file widget.cpp.

void GUI::StaticTextWidget::setValue ( int  value  ) 

Definition at line 314 of file widget.cpp.


Member Data Documentation

Definition at line 200 of file widget.h.

Definition at line 201 of file widget.h.

Definition at line 199 of file widget.h.


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


Generated on Sat Jun 27 2020 05:02:56 for ResidualVM by doxygen 1.7.1
curved edge   curved edge