ScummVM API documentation
Titanic::CPetSlider Class Reference
Inheritance diagram for Titanic::CPetSlider:
Titanic::CPetSoundSlider

Public Member Functions

virtual void setupBackground (const CString &name, CPetControl *petControl)
 
virtual void setupThumb (const CString &name, CPetControl *petControl)
 
virtual void setupBackground2 (const CString &name, CPetControl *petControl)
 
virtual void setupThumb2 (const CString &name, CPetControl *petControl)
 
virtual void reset (const CString &name)
 
virtual void draw (CScreenManager *screenManager)
 
virtual Rect clearDirtyArea ()
 
virtual bool checkThumb (const Point &pt)
 
virtual bool resetThumbFocus ()
 
virtual bool MouseDragMoveMsg (const Point &pt)
 
virtual bool MouseDragEndMsg (const Point &pt)
 
virtual bool MouseButtonUpMsg (const Point &pt)
 
virtual bool proc13 ()
 
virtual bool proc14 ()
 
virtual bool contains (const Point &pt) const
 
virtual double getOffsetPixels () const
 
virtual void setSliderOffset (double offset)
 
virtual void setOffsetPixels (int offset)
 
void setOrientation (SliderOrientation orientation)
 
void setBounds (const Rect &r)
 
void setSlidingBounds (const Rect &r)
 
void setThumbSize (const Point &pt)
 
void translate (const Point &pt)
 
void stepPosition (int direction)
 

Protected Member Functions

Point getBackgroundDrawPos ()
 
Point getThumbDrawPos ()
 
bool containsPt (const Point &pt) const
 

Member Function Documentation

◆ getBackgroundDrawPos()

Point Titanic::CPetSlider::getBackgroundDrawPos ( )
protected

Get the position to draw the background at

◆ getThumbDrawPos()

Point Titanic::CPetSlider::getThumbDrawPos ( )
protected

Get the position to draw the slider thumbnail at

◆ containsPt()

bool Titanic::CPetSlider::containsPt ( const Point pt) const
inlineprotected

Returns true if the passed point falls within the slider's bounds

◆ setupBackground()

virtual void Titanic::CPetSlider::setupBackground ( const CString name,
CPetControl petControl 
)
inlinevirtual

Setup the background

Reimplemented in Titanic::CPetSoundSlider.

◆ setupThumb()

virtual void Titanic::CPetSlider::setupThumb ( const CString name,
CPetControl petControl 
)
inlinevirtual

Setup the thumb

Reimplemented in Titanic::CPetSoundSlider.

◆ setupBackground2()

virtual void Titanic::CPetSlider::setupBackground2 ( const CString name,
CPetControl petControl 
)
inlinevirtual

Setup the background

Reimplemented in Titanic::CPetSoundSlider.

◆ setupThumb2()

virtual void Titanic::CPetSlider::setupThumb2 ( const CString name,
CPetControl petControl 
)
inlinevirtual

Setup the thumb

Reimplemented in Titanic::CPetSoundSlider.

◆ reset()

virtual void Titanic::CPetSlider::reset ( const CString name)
inlinevirtual

Reset the slider

◆ draw()

virtual void Titanic::CPetSlider::draw ( CScreenManager screenManager)
inlinevirtual

Draw the slider

Reimplemented in Titanic::CPetSoundSlider.

◆ clearDirtyArea()

virtual Rect Titanic::CPetSlider::clearDirtyArea ( )
virtual

Reset the dirty area

◆ checkThumb()

virtual bool Titanic::CPetSlider::checkThumb ( const Point pt)
virtual

Checks whether the slider is highlighted

◆ resetThumbFocus()

virtual bool Titanic::CPetSlider::resetThumbFocus ( )
virtual

Resets the thumb focused flag

◆ MouseDragMoveMsg()

virtual bool Titanic::CPetSlider::MouseDragMoveMsg ( const Point pt)
virtual

Handles dragging the slider

◆ MouseDragEndMsg()

virtual bool Titanic::CPetSlider::MouseDragEndMsg ( const Point pt)
inlinevirtual

Called when a slider drag ends

◆ MouseButtonUpMsg()

virtual bool Titanic::CPetSlider::MouseButtonUpMsg ( const Point pt)
virtual

Handles mouse button up messaes

◆ getOffsetPixels()

virtual double Titanic::CPetSlider::getOffsetPixels ( ) const
virtual

Returns the slider offset in pixels

◆ setSliderOffset()

virtual void Titanic::CPetSlider::setSliderOffset ( double  offset)
virtual

Sets the slider offset

◆ setOffsetPixels()

virtual void Titanic::CPetSlider::setOffsetPixels ( int  offset)
virtual

Set a new slider offset in pixels

◆ setOrientation()

void Titanic::CPetSlider::setOrientation ( SliderOrientation  orientation)

Enables a given orientation

◆ setBounds()

void Titanic::CPetSlider::setBounds ( const Rect r)
inline

Set the bounds for the slider

◆ setSlidingBounds()

void Titanic::CPetSlider::setSlidingBounds ( const Rect r)
inline

Set the sliding bounds for the slider

◆ setThumbSize()

void Titanic::CPetSlider::setThumbSize ( const Point pt)
inline

Set the size of the slider thumb

◆ translate()

void Titanic::CPetSlider::translate ( const Point pt)
inline

Move the slider

◆ stepPosition()

void Titanic::CPetSlider::stepPosition ( int  direction)

Change the current position of a slider by a step amount


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