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 char *tooltip=0, uint32 cmd=0)
 SliderWidget (GuiObject *boss, const Common::String &name, const char *tooltip=0, 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)
void handleMouseDown (int x, int y, int button, int clickCount)
void handleMouseUp (int x, int y, int button, int clickCount)
void handleMouseEntered (int button)
void handleMouseLeft (int button)
void handleMouseWheel (int x, int y, int direction)

Protected Member Functions

void drawWidget ()
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 327 of file widget.h.


Constructor & Destructor Documentation

GUI::SliderWidget::SliderWidget ( GuiObject boss,
int  x,
int  y,
int  w,
int  h,
const char *  tooltip = 0,
uint32  cmd = 0 
)

Definition at line 580 of file widget.cpp.

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

Definition at line 587 of file widget.cpp.


Member Function Documentation

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

Definition at line 642 of file widget.cpp.

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

Definition at line 339 of file widget.h.

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

Definition at line 347 of file widget.h.

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

Definition at line 345 of file widget.h.

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

Definition at line 342 of file widget.h.

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

Definition at line 610 of file widget.cpp.

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

Definition at line 352 of file widget.h.

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

Definition at line 353 of file widget.h.

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

Definition at line 594 of file widget.cpp.

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

Definition at line 617 of file widget.cpp.

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

Definition at line 624 of file widget.cpp.

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

Definition at line 656 of file widget.cpp.

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

Definition at line 338 of file widget.h.

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

Definition at line 346 of file widget.h.

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

Definition at line 344 of file widget.h.

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

Definition at line 341 of file widget.h.

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

Definition at line 646 of file widget.cpp.

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

Definition at line 651 of file widget.cpp.


Member Data Documentation

Definition at line 329 of file widget.h.

Definition at line 332 of file widget.h.

Definition at line 333 of file widget.h.

Definition at line 330 of file widget.h.

int GUI::SliderWidget::_value [protected]

Definition at line 330 of file widget.h.

Definition at line 331 of file widget.h.

Definition at line 331 of file widget.h.


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


Generated on Sat Jan 12 2019 05:04:46 for ResidualVM by doxygen 1.7.1
curved edge   curved edge