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

#include <widget.h>

Inheritance diagram for GUI::SliderWidget:
Collaboration diagram for GUI::SliderWidget:

List of all members.

Public Member Functions

 SliderWidget (GuiObject *boss, int x, int y, int w, int h, const Common::U32String &tooltip=Common::U32String(""), uint32 cmd=0)
 SliderWidget (GuiObject *boss, const Common::String &name, const Common::U32String &tooltip=Common::U32String(""), uint32 cmd=0)
void setCmd (uint32 cmd)
uint32 getCmd () const
void setValue (int value)
int getValue () const
void setMinValue (int value)
int getMinValue () const
void setMaxValue (int value)
int getMaxValue () const
void handleMouseMoved (int x, int y, int button) override
void handleMouseDown (int x, int y, int button, int clickCount) override
void handleMouseUp (int x, int y, int button, int clickCount) override
void handleMouseEntered (int button) override
void handleMouseLeft (int button) override
void handleMouseWheel (int x, int y, int direction) override

Protected Member Functions

void drawWidget () override
int valueToPos (int value)
int posToValue (int pos)
int valueToBarWidth (int value)

Protected Attributes

uint32 _cmd
int _value
int _oldValue
int _valueMin
int _valueMax
bool _isDragging
uint _labelWidth

Detailed Description

Definition at line 377 of file widget.h.


Constructor & Destructor Documentation

GUI::SliderWidget::SliderWidget ( GuiObject boss,
int  x,
int  y,
int  w,
int  h,
const Common::U32String tooltip = Common::U32String(""),
uint32  cmd = 0 
)

Definition at line 729 of file widget.cpp.

GUI::SliderWidget::SliderWidget ( GuiObject boss,
const Common::String name,
const Common::U32String tooltip = Common::U32String(""),
uint32  cmd = 0 
)

Definition at line 736 of file widget.cpp.


Member Function Documentation

void GUI::SliderWidget::drawWidget (  )  [override, protected]

Definition at line 794 of file widget.cpp.

uint32 GUI::SliderWidget::getCmd (  )  const [inline]

Definition at line 389 of file widget.h.

int GUI::SliderWidget::getMaxValue (  )  const [inline]

Definition at line 397 of file widget.h.

int GUI::SliderWidget::getMinValue (  )  const [inline]

Definition at line 395 of file widget.h.

int GUI::SliderWidget::getValue (  )  const [inline]

Definition at line 392 of file widget.h.

void GUI::SliderWidget::handleMouseDown ( int  x,
int  y,
int  button,
int  clickCount 
) [override]

Definition at line 762 of file widget.cpp.

void GUI::SliderWidget::handleMouseEntered ( int  button  )  [inline, override]

Definition at line 402 of file widget.h.

void GUI::SliderWidget::handleMouseLeft ( int  button  )  [inline, override]

Definition at line 403 of file widget.h.

void GUI::SliderWidget::handleMouseMoved ( int  x,
int  y,
int  button 
) [override]

Definition at line 743 of file widget.cpp.

void GUI::SliderWidget::handleMouseUp ( int  x,
int  y,
int  button,
int  clickCount 
) [override]

Definition at line 769 of file widget.cpp.

void GUI::SliderWidget::handleMouseWheel ( int  x,
int  y,
int  direction 
) [override]

Definition at line 776 of file widget.cpp.

int GUI::SliderWidget::posToValue ( int  pos  )  [protected]

Definition at line 809 of file widget.cpp.

void GUI::SliderWidget::setCmd ( uint32  cmd  )  [inline]

Definition at line 388 of file widget.h.

void GUI::SliderWidget::setMaxValue ( int  value  )  [inline]

Definition at line 396 of file widget.h.

void GUI::SliderWidget::setMinValue ( int  value  )  [inline]

Definition at line 394 of file widget.h.

void GUI::SliderWidget::setValue ( int  value  )  [inline]

Definition at line 391 of file widget.h.

int GUI::SliderWidget::valueToBarWidth ( int  value  )  [protected]

Definition at line 799 of file widget.cpp.

int GUI::SliderWidget::valueToPos ( int  value  )  [protected]

Definition at line 804 of file widget.cpp.


Member Data Documentation

Definition at line 379 of file widget.h.

Definition at line 382 of file widget.h.

Definition at line 383 of file widget.h.

Definition at line 380 of file widget.h.

int GUI::SliderWidget::_value [protected]

Definition at line 380 of file widget.h.

Definition at line 381 of file widget.h.

Definition at line 381 of file widget.h.


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


Generated on Sat Sep 12 2020 05:04:50 for ResidualVM by doxygen 1.7.1
curved edge   curved edge