ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Scumm::MacGuiImpl::MacSlider Class Reference
Inheritance diagram for Scumm::MacGuiImpl::MacSlider:
Scumm::MacGuiImpl::MacSliderBase Scumm::MacGuiImpl::MacWidget Scumm::MacGuiImpl::MacGuiObject

Public Member Functions

 MacSlider (MacGuiImpl::MacDialogWindow *window, Common::Rect bounds, int minValue, int maxValue, int pageSize, bool enabled)
 
bool isScrollable () const
 
int getPageSize () const
 
bool findWidget (int x, int y) const override
 
void draw (bool drawFocued=false) override
 
void redrawHandle (int oldValue, int newValue)
 
void handleMouseDown (Common::Event &event) override
 
bool handleMouseUp (Common::Event &event) override
 
void handleMouseMove (Common::Event &event) override
 
void handleMouseHeld () override
 
void handleWheelUp () override
 
void handleWheelDown () override
 
- Public Member Functions inherited from Scumm::MacGuiImpl::MacSliderBase
 MacSliderBase (MacGuiImpl::MacDialogWindow *window, Common::Rect bounds, int minValue, int maxValue, int minPos, int maxPos, bool enabled)
 
void getFocus () override
 
void loseFocus () override
 
int getMinValue () const
 
int getMaxValue () const
 
void setValue (int value) override
 
void addStop (int pos, int value)
 
- Public Member Functions inherited from Scumm::MacGuiImpl::MacWidget
 MacWidget (MacGuiImpl::MacDialogWindow *window, Common::Rect bounds, Common::String text, bool enabled)
 
void setId (int id)
 
int getId () const
 
void setType (MacWidgetType type)
 
MacWidgetType getType ()
 
void setVisible (bool visible)
 
virtual void setRedraw (bool fullRedraw=false)
 
void setEnabled (bool enabled)
 
int getValue () const
 
void rememberValue ()
 
bool valueHasChanged ()
 
Common::String getText () const
 
virtual bool useBeamCursor ()
 
virtual bool reactsToKeyDown ()
 
virtual bool handleDoubleClick (Common::Event &event)
 
virtual bool handleKeyDown (Common::Event &event)
 
- Public Member Functions inherited from Scumm::MacGuiImpl::MacGuiObject
 MacGuiObject (Common::Rect bounds, bool enabled)
 
Common::Rect getBounds () const
 
bool getRedraw () const
 
bool isEnabled () const
 
bool isVisible () const
 

Additional Inherited Members

- Protected Member Functions inherited from Scumm::MacGuiImpl::MacSliderBase
int calculateValueFromPos (int pos) const
 
int calculatePosFromValue (int value) const
 
int calculateValueFromPos () const
 
int calculatePosFromValue () const
 
- Protected Member Functions inherited from Scumm::MacGuiImpl::MacWidget
int drawText (Common::String text, int x, int y, int w, uint32 fg=0, uint32 bg=0, Graphics::TextAlign align=Graphics::kTextAlignLeft, bool wordWrap=false, int deltax=0) const
 
void drawBitmap (Common::Rect r, const uint16 *bitmap, uint32 color) const
 
- Protected Attributes inherited from Scumm::MacGuiImpl::MacSliderBase
int _minValue
 
int _maxValue
 
int _minPos
 
int _maxPos
 
int _handlePos = -1
 
int _grabOffset = -1
 
Common::HashMap< int, int > _posToValue
 
Common::HashMap< int, int > _valueToPos
 
- Protected Attributes inherited from Scumm::MacGuiImpl::MacWidget
MacGuiImpl::MacDialogWindow_window
 
uint32 _black
 
uint32 _white
 
int _id = -1
 
MacWidgetType _type = kWidgetUnknown
 
bool _fullRedraw = false
 
Common::String _text
 
int _oldValue = 0
 
int _value = 0
 
- Protected Attributes inherited from Scumm::MacGuiImpl::MacGuiObject
Common::Rect _bounds
 
bool _redraw = false
 
bool _enabled = false
 
bool _visible = true
 

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