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 358 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 679 of file widget.cpp.

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

Definition at line 686 of file widget.cpp.


Member Function Documentation

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

Definition at line 741 of file widget.cpp.

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

Definition at line 370 of file widget.h.

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

Definition at line 378 of file widget.h.

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

Definition at line 376 of file widget.h.

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

Definition at line 373 of file widget.h.

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

Definition at line 709 of file widget.cpp.

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

Definition at line 383 of file widget.h.

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

Definition at line 384 of file widget.h.

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

Definition at line 693 of file widget.cpp.

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

Definition at line 716 of file widget.cpp.

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

Definition at line 723 of file widget.cpp.

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

Definition at line 755 of file widget.cpp.

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

Definition at line 369 of file widget.h.

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

Definition at line 377 of file widget.h.

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

Definition at line 375 of file widget.h.

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

Definition at line 372 of file widget.h.

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

Definition at line 745 of file widget.cpp.

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

Definition at line 750 of file widget.cpp.


Member Data Documentation

Definition at line 360 of file widget.h.

Definition at line 363 of file widget.h.

Definition at line 364 of file widget.h.

Definition at line 361 of file widget.h.

int GUI::SliderWidget::_value [protected]

Definition at line 361 of file widget.h.

Definition at line 362 of file widget.h.

Definition at line 362 of file widget.h.


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


Generated on Sat Apr 4 2020 05:02:16 for ResidualVM by doxygen 1.7.1
curved edge   curved edge