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

Stark::SaveDataWidget Class Reference

The widget of save data. More...

#include <saveloadmenu.h>

Inheritance diagram for Stark::SaveDataWidget:
Collaboration diagram for Stark::SaveDataWidget:

List of all members.

Public Member Functions

 SaveDataWidget (int slot, Gfx::Driver *gfx, SaveLoadMenuScreen *screen)
 ~SaveDataWidget ()
void render () override
 Draw the widget.
bool isMouseInside (const Common::Point &mousePos) const override
 Is the specified point inside the widget?
void onClick () override
 Called when the widget is clicked.
void onMouseMove (const Common::Point &mousePos) override
 Called when the mouse hovers the widget.
void onScreenChanged () override
 Called when the screen's resolution is changed.
int getSlot ()
Common::String getName ()
void loadSaveDataElements ()
 Load the thumbnail and info from the save data.
bool hasSave ()
 Check whether the save slot has data.

Private Attributes

int _slot
SaveLoadMenuScreen_screen
Common::Point _thumbPos
Common::Point _textDescPos
Common::Point _textTimePos
int _thumbWidth
int _thumbHeight
Gfx::Texture_texture
Gfx::Texture_outline
Gfx::SurfaceRenderer_surfaceRenderer
VisualText _textDesc
VisualText _textTime
bool _isMouseHovered
bool _hasSave
Common::String _name

Static Private Attributes

static const Color _outlineColor = Color(0x1E, 0x1E, 0x96)
static const Color _textColor = Color(0x5C, 0x48, 0x3D)

Detailed Description

The widget of save data.

Definition at line 139 of file saveloadmenu.h.


Constructor & Destructor Documentation

Stark::SaveDataWidget::SaveDataWidget ( int  slot,
Gfx::Driver gfx,
SaveLoadMenuScreen screen 
)

Definition at line 214 of file saveloadmenu.cpp.

Stark::SaveDataWidget::~SaveDataWidget (  ) 

Definition at line 264 of file saveloadmenu.cpp.


Member Function Documentation

Common::String Stark::SaveDataWidget::getName (  )  [inline]

Definition at line 152 of file saveloadmenu.h.

int Stark::SaveDataWidget::getSlot (  )  [inline]

Definition at line 151 of file saveloadmenu.h.

bool Stark::SaveDataWidget::hasSave (  )  [inline]

Check whether the save slot has data.

Definition at line 158 of file saveloadmenu.h.

bool Stark::SaveDataWidget::isMouseInside ( const Common::Point mousePos  )  const [override, virtual]

Is the specified point inside the widget?

Reimplemented from Stark::StaticLocationWidget.

Definition at line 279 of file saveloadmenu.cpp.

void Stark::SaveDataWidget::loadSaveDataElements (  ) 

Load the thumbnail and info from the save data.

Definition at line 300 of file saveloadmenu.cpp.

void Stark::SaveDataWidget::onClick (  )  [override, virtual]

Called when the widget is clicked.

Reimplemented from Stark::StaticLocationWidget.

Definition at line 284 of file saveloadmenu.cpp.

void Stark::SaveDataWidget::onMouseMove ( const Common::Point mousePos  )  [override, virtual]

Called when the mouse hovers the widget.

Reimplemented from Stark::StaticLocationWidget.

Definition at line 289 of file saveloadmenu.cpp.

void Stark::SaveDataWidget::onScreenChanged (  )  [override, virtual]

Called when the screen's resolution is changed.

Reimplemented from Stark::StaticLocationWidget.

Definition at line 294 of file saveloadmenu.cpp.

void Stark::SaveDataWidget::render (  )  [override, virtual]

Draw the widget.

Reimplemented from Stark::StaticLocationWidget.

Definition at line 270 of file saveloadmenu.cpp.


Member Data Documentation

Definition at line 177 of file saveloadmenu.h.

Definition at line 176 of file saveloadmenu.h.

Definition at line 179 of file saveloadmenu.h.

Definition at line 171 of file saveloadmenu.h.

const Color Stark::SaveDataWidget::_outlineColor = Color(0x1E, 0x1E, 0x96) [static, private]

Definition at line 161 of file saveloadmenu.h.

Definition at line 165 of file saveloadmenu.h.

Definition at line 164 of file saveloadmenu.h.

const Color Stark::SaveDataWidget::_textColor = Color(0x5C, 0x48, 0x3D) [static, private]

Definition at line 162 of file saveloadmenu.h.

Definition at line 174 of file saveloadmenu.h.

Definition at line 174 of file saveloadmenu.h.

Definition at line 170 of file saveloadmenu.h.

Definition at line 168 of file saveloadmenu.h.

Definition at line 167 of file saveloadmenu.h.

Definition at line 168 of file saveloadmenu.h.


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


Generated on Sat May 18 2019 05:07:20 for ResidualVM by doxygen 1.7.1
curved edge   curved edge