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 uint32 _outlineColor = 0xFF961E1E
static const uint32 _textColor = 0xFF3D485C

Detailed Description

The widget of save data.

Definition at line 128 of file saveloadmenu.h.


Constructor & Destructor Documentation

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

Definition at line 190 of file saveloadmenu.cpp.

Stark::SaveDataWidget::~SaveDataWidget (  ) 

Definition at line 235 of file saveloadmenu.cpp.


Member Function Documentation

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

Definition at line 141 of file saveloadmenu.h.

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

Definition at line 140 of file saveloadmenu.h.

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

Check whether the save slot has data.

Definition at line 147 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 250 of file saveloadmenu.cpp.

void Stark::SaveDataWidget::loadSaveDataElements (  ) 

Load the thumbnail and info from the save data.

Definition at line 271 of file saveloadmenu.cpp.

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

Called when the widget is clicked.

Reimplemented from Stark::StaticLocationWidget.

Definition at line 255 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 260 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 265 of file saveloadmenu.cpp.

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

Draw the widget.

Reimplemented from Stark::StaticLocationWidget.

Definition at line 241 of file saveloadmenu.cpp.


Member Data Documentation

Definition at line 166 of file saveloadmenu.h.

Definition at line 165 of file saveloadmenu.h.

Definition at line 168 of file saveloadmenu.h.

Definition at line 160 of file saveloadmenu.h.

const uint32 Stark::SaveDataWidget::_outlineColor = 0xFF961E1E [static, private]

Definition at line 150 of file saveloadmenu.h.

Definition at line 154 of file saveloadmenu.h.

Definition at line 153 of file saveloadmenu.h.

const uint32 Stark::SaveDataWidget::_textColor = 0xFF3D485C [static, private]

Definition at line 151 of file saveloadmenu.h.

Definition at line 163 of file saveloadmenu.h.

Definition at line 163 of file saveloadmenu.h.

Definition at line 159 of file saveloadmenu.h.

Definition at line 157 of file saveloadmenu.h.

Definition at line 156 of file saveloadmenu.h.

Definition at line 157 of file saveloadmenu.h.


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


Generated on Sat Jan 19 2019 05:07:32 for ResidualVM by doxygen 1.7.1
curved edge   curved edge