My Project
SallyAPI::GUI::CSlider Class Reference

Slider. More...

#include <Slider.h>

Inheritance diagram for SallyAPI::GUI::CSlider:
SallyAPI::GUI::CControl SallyAPI::GUI::CGUIBaseObject SallyAPI::Core::CBaseObject

List of all members.

Public Member Functions

 CSlider (SallyAPI::GUI::CGUIBaseObject *parent, int x, int y, int width, int controlId=0)
 Constructor.
virtual ~CSlider ()
 Destructor.
int GetPosition ()
 Gets the position of the knob.
void SetPosition (int position)
 Sets a position.
void SetMaxPosition (int position)
 Sets a maximum position.
void SetDrawProgressbar (bool value)
 Sets if the progressbar should be drawn. If set to false, you will get only the background and the knob drawn.
virtual void SendMessageToChilds (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL)
 Send message to childs.
virtual bool CheckProcessMouseDown (int x, int y)
 Check process mouse down.

Protected Member Functions

virtual void RenderControl ()
 Renders a control.
virtual bool ProcessMouseUp (int x, int y)
 Process a mouse up.
virtual bool ProcessMouseMove (int x, int y)
 Process a mouse move.

Protected Attributes

int m_iPosition
int m_iPositionMax
bool m_bDrawPgrogressbar

Detailed Description

Slider.

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

CSlider::CSlider ( SallyAPI::GUI::CGUIBaseObject parent,
int  x,
int  y,
int  width,
int  controlId = 0 
)

Constructor.

m_iPosition(0), m_iPositionMax(0)

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]parentIf non-null, the parent.
xThe x coordinate.
yThe y coordinate.
widthThe width.
controlIdIdentifier for the control.
CSlider::~CSlider ( ) [virtual]

Destructor.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

bool CSlider::CheckProcessMouseDown ( int  x,
int  y 
) [virtual]

Check process mouse down.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
xThe x coordinate.
yThe y coordinate.
Returns:
true if it succeeds, false if it fails.

Reimplemented from SallyAPI::GUI::CControl.

Gets the position of the knob.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The position.
bool CSlider::ProcessMouseMove ( int  x,
int  y 
) [protected, virtual]

Process a mouse move.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
xThe x coordinate.
yThe y coordinate.
Returns:
true if it succeeds, false if it fails.

Reimplemented from SallyAPI::GUI::CControl.

bool CSlider::ProcessMouseUp ( int  x,
int  y 
) [protected, virtual]

Process a mouse up.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
xThe x coordinate.
yThe y coordinate.
Returns:
true if it succeeds, false if it fails.

Reimplemented from SallyAPI::GUI::CControl.

void CSlider::RenderControl ( ) [protected, virtual]

Renders a control.

Author:
Christian Knobloch
Date:
19.04.2010

Implements SallyAPI::GUI::CGUIBaseObject.

void CSlider::SendMessageToChilds ( SallyAPI::GUI::CGUIBaseObject reporter,
int  reporterId,
int  messageId,
SallyAPI::GUI::SendMessage::CParameterBase messageParameter = NULL 
) [virtual]

Send message to childs.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]reporterIf non-null, the reporter.
reporterIdIdentifier for the reporter.
messageIdIdentifier for the message.
[in,out]messageParameterIf non-null, the message parameter.

Reimplemented from SallyAPI::GUI::CControl.

void CSlider::SetDrawProgressbar ( bool  value)

Sets if the progressbar should be drawn. If set to false, you will get only the background and the knob drawn.

Author:
Christian Knobloch
Date:
26.12.2011
Parameters:
valuetrue to value.
void CSlider::SetMaxPosition ( int  position)

Sets a maximum position.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
positionThe position.
void CSlider::SetPosition ( int  position)

Sets a position.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
positionThe position.

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines