#include <locationscreen.h>
Public Member Functions | |
StaticLocationWidget (const char *renderEntryName, WidgetOnClickCallback *onClickCallback, WidgetOnMouseMoveCallback *onMouseMoveCallback) | |
virtual void | render () |
virtual bool | isMouseInside (const Common::Point &mousePos) const |
virtual void | onClick () |
virtual void | onMouseMove (const Common::Point &mousePos) |
virtual void | onMouseUp () |
virtual void | onScreenChanged () |
void | setupSounds (int16 enterSound, int16 clickSound) |
void | setTextColor (const Gfx::Color &textColor) |
bool | isVisible () const |
void | setVisible (bool visible) |
void | onGameLoop () |
void | onMouseEnter () |
void | onMouseLeave () |
Protected Member Functions | |
Common::Point | getPosition () const |
Protected Attributes | |
Gfx::RenderEntry * | _renderEntry |
User interface widget bound to a Location RenderEntry
Also used without bounding the RenderEntry, as a base class
|
virtual |
Draw the widget
Reimplemented in Stark::DialogTitleWidget, Stark::VolumeWidget, Stark::SaveDataWidget, and Stark::CheckboxWidget.
|
virtual |
Is the specified point inside the widget?
Reimplemented in Stark::DialogTitleWidget, Stark::VolumeWidget, Stark::SaveDataWidget, and Stark::CheckboxWidget.
|
virtual |
Called when the widget is clicked
Reimplemented in Stark::DialogTitleWidget, Stark::VolumeWidget, Stark::SaveDataWidget, and Stark::CheckboxWidget.
|
virtual |
Called when the mouse hovers the widget
Reimplemented in Stark::DialogTitleWidget, Stark::VolumeWidget, and Stark::SaveDataWidget.
|
inlinevirtual |
Called when the mouse's left button just gets up
Reimplemented in Stark::VolumeWidget.
|
virtual |
Called when the screen's resolution is changed
Reimplemented in Stark::DialogTitleWidget, and Stark::SaveDataWidget.
void Stark::StaticLocationWidget::setupSounds | ( | int16 | enterSound, |
int16 | clickSound | ||
) |
Lookup sounds in the static location for use when hovering / clicking the widget
void Stark::StaticLocationWidget::setTextColor | ( | const Gfx::Color & | textColor | ) |
Override the text color
Only applies for widget referring to a RenderEntry for a text visual
bool Stark::StaticLocationWidget::isVisible | ( | ) | const |
Widgets must be visible to be rendered and interactive
void Stark::StaticLocationWidget::onGameLoop | ( | ) |
Per frame widget state update callback
void Stark::StaticLocationWidget::onMouseEnter | ( | ) |
Called when the mouse enters the widget
void Stark::StaticLocationWidget::onMouseLeave | ( | ) |
Called when the mouse leaves the widget