ScummVM API documentation
Stark::VolumeWidget Class Reference

#include <settingsmenu.h>

Inheritance diagram for Stark::VolumeWidget:
Stark::StaticLocationWidget

Public Member Functions

 VolumeWidget (const char *renderEntryName, Cursor *cursor, TestSoundManager &soundManager, int soundIndex, Settings::IntSettingIndex settingIndex, WidgetOnMouseMoveCallback *onMouseMoveCallback)
 
void render () override
 
bool isMouseInside (const Common::Point &mousePos) const override
 
void onClick () override
 
void onMouseMove (const Common::Point &mousePos) override
 
void onMouseUp () override
 
- Public Member Functions inherited from Stark::StaticLocationWidget
 StaticLocationWidget (const char *renderEntryName, WidgetOnClickCallback *onClickCallback, WidgetOnMouseMoveCallback *onMouseMoveCallback)
 
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 ()
 

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

Widget with a dragged slider for twisting the volume

Member Function Documentation

◆ render()

void Stark::VolumeWidget::render ( )
overridevirtual

Draw the widget

Reimplemented from Stark::StaticLocationWidget.

◆ isMouseInside()

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

Is the specified point inside the widget?

Reimplemented from Stark::StaticLocationWidget.

◆ onClick()

void Stark::VolumeWidget::onClick ( )
overridevirtual

Called when the widget is clicked

Reimplemented from Stark::StaticLocationWidget.

◆ onMouseMove()

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

Called when the mouse hovers the widget

Reimplemented from Stark::StaticLocationWidget.

◆ onMouseUp()

void Stark::VolumeWidget::onMouseUp ( )
overridevirtual

Called when the mouse's left button just gets up

Reimplemented from Stark::StaticLocationWidget.


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