ScummVM API documentation
Dgds::SliderGadget Class Reference
Inheritance diagram for Dgds::SliderGadget:
Dgds::Gadget

Public Member Functions

Common::String dump () const override
 
void draw (Graphics::ManagedSurface *dst) const override
 
void setSteps (int16 steps, bool lock)
 
void setValue (int16 val)
 
int16 getValue ()
 
int16 onClick (const Common::Point &mousePt)
 
bool onMouseDown (const Common::Point &mousePt)
 
void onDrag (const Common::Point &mousePt)
 
int16 onDragFinish (const Common::Point &mousePt)
 
- Public Member Functions inherited from Dgds::Gadget
virtual void toggle (bool enable)
 
bool containsPoint (const Common::Point &pt)
 
bool isVisible () const
 
void setVisible (bool visible)
 
Common::Point topLeft () const
 
Common::Point midPoint () const
 

Public Attributes

uint16 _gadget2_i1
 
uint16 _gadget2_i2
 
uint16 _gadget2_i3
 
uint16 _gadget2_i4
 
- Public Attributes inherited from Dgds::Gadget
uint16 _gadgetNo
 
uint16 _x
 
uint16 _y
 
uint16 _width
 
uint16 _height
 
GadgetType _gadgetType
 
uint16 _flags2
 
uint16 _flags3
 
uint16 _sval1Type
 
Common::String _sval1S
 
uint16 _sval1I
 
uint16 _sval2Type
 
Common::String _sval2S
 
uint16 _sval2I
 
Common::String _buttonName
 
uint16 _fontNo
 
uint16 _col1
 
uint16 _col2
 
uint16 _col3
 
uint16 _field20_0x28
 
uint16 _field21_0x2a
 
uint16 _parentX
 
uint16 _parentY
 

Member Function Documentation

◆ setSteps()

void Dgds::SliderGadget::setSteps ( int16  steps,
bool  lock 
)
inline

Set number of steps the slider has If lock is true, jumps the final position to match the step.

◆ onClick()

int16 Dgds::SliderGadget::onClick ( const Common::Point mousePt)

Work out where the mouse click was and what the new setting should be from 0 to steps-1.


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