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::U32String &text, Graphics::TextAlign align, const Common::U32String &tooltip=Common::U32String(""), ThemeEngine::FontStyle font=ThemeEngine::kFontStyleBold)
 StaticTextWidget (GuiObject *boss, const Common::String &name, const Common::U32String &text, const Common::U32String &tooltip=Common::U32String(""), ThemeEngine::FontStyle font=ThemeEngine::kFontStyleBold)
void setValue (int value)
void setLabel (const Common::U32String &label)
void handleMouseEntered (int button) override
const Common::U32StringgetLabel () const
void setAlign (Graphics::TextAlign align)
Graphics::TextAlign getAlign () const
void readLabel ()

Protected Member Functions

void drawWidget () override

Protected Attributes

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

Detailed Description

Definition at line 198 of file widget.h.

Constructor & Destructor Documentation

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

Definition at line 296 of file widget.cpp.

GUI::StaticTextWidget::StaticTextWidget ( GuiObject boss,
const Common::String name,
const Common::U32String text,
const Common::U32String tooltip = Common::U32String(""),
ThemeEngine::FontStyle  font = ThemeEngine::kFontStyleBold 

Definition at line 305 of file widget.cpp.

Member Function Documentation

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

Implements GUI::Widget.

Definition at line 338 of file widget.cpp.

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

Definition at line 211 of file widget.h.

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

Definition at line 209 of file widget.h.

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

Reimplemented from GUI::Widget.

Definition at line 208 of file widget.h.

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

Definition at line 212 of file widget.h.

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

Definition at line 328 of file widget.cpp.

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

Definition at line 320 of file widget.cpp.

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

Definition at line 316 of file widget.cpp.

Member Data Documentation

Definition at line 201 of file widget.h.

Definition at line 202 of file widget.h.

Definition at line 200 of file widget.h.

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

Generated on Sat Sep 19 2020 05:05:31 for ResidualVM by doxygen 1.7.1
curved edge   curved edge