ScummVM API documentation
Stark::SaveDataWidget Class Reference

#include <saveloadmenu.h>

Inheritance diagram for Stark::SaveDataWidget:
Stark::StaticLocationWidget

Public Member Functions

 SaveDataWidget (int slot, Gfx::Driver *gfx, SaveLoadMenuScreen *screen)
 
void render () override
 
bool isMouseInside (const Common::Point &mousePos) const override
 
void onClick () override
 
void onMouseMove (const Common::Point &mousePos) override
 
void onScreenChanged () override
 
int getSlot ()
 
Common::String getName ()
 
void loadSaveDataElements ()
 
bool hasSave ()
 
- Public Member Functions inherited from Stark::StaticLocationWidget
 StaticLocationWidget (const char *renderEntryName, WidgetOnClickCallback *onClickCallback, WidgetOnMouseMoveCallback *onMouseMoveCallback)
 
virtual void onMouseUp ()
 
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from Stark::StaticLocationWidget
Common::Point getPosition () const
 
- Protected Attributes inherited from Stark::StaticLocationWidget
Gfx::RenderEntry_renderEntry
 

Detailed Description

The widget of save data

Member Function Documentation

◆ render()

void Stark::SaveDataWidget::render ( )
overridevirtual

Draw the widget

Reimplemented from Stark::StaticLocationWidget.

◆ isMouseInside()

bool Stark::SaveDataWidget::isMouseInside ( const Common::Point mousePos) const
overridevirtual

Is the specified point inside the widget?

Reimplemented from Stark::StaticLocationWidget.

◆ onClick()

void Stark::SaveDataWidget::onClick ( )
overridevirtual

Called when the widget is clicked

Reimplemented from Stark::StaticLocationWidget.

◆ onMouseMove()

void Stark::SaveDataWidget::onMouseMove ( const Common::Point mousePos)
overridevirtual

Called when the mouse hovers the widget

Reimplemented from Stark::StaticLocationWidget.

◆ onScreenChanged()

void Stark::SaveDataWidget::onScreenChanged ( )
overridevirtual

Called when the screen's resolution is changed

Reimplemented from Stark::StaticLocationWidget.

◆ loadSaveDataElements()

void Stark::SaveDataWidget::loadSaveDataElements ( )

Load the thumbnail and info from the save data

◆ hasSave()

bool Stark::SaveDataWidget::hasSave ( )
inline

Check whether the save slot has data


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