Rise
The Vieneo Province
Loading...
Searching...
No Matches
RiseSlider Class Reference

#include <Controls.h>

Inheritance diagram for RiseSlider:
[legend]
Collaboration diagram for RiseSlider:
[legend]

Public Member Functions

 RiseSlider (RiseDialog *pDialog=NULL)
virtual BOOL ContainsPoint (POINT pt)
virtual bool CanHaveFocus ()
virtual bool HandleKeyboard (UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual bool HandleMouse (UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
virtual void UpdateRects ()
virtual void Render (float fElapsedTime)
void SetValue (int nValue)
int GetValue () const
void GetRange (int &nMin, int &nMax) const
void SetRange (int nMin, int nMax)
Public Member Functions inherited from RiseControl
 RiseControl (RiseDialog *pDialog=NULL)
virtual ~RiseControl ()
virtual HRESULT OnInit ()
virtual void Refresh ()
virtual bool MsgProc (UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual void OnFocusIn ()
virtual void OnFocusOut ()
virtual void OnMouseEnter ()
virtual void OnMouseLeave ()
virtual void OnHotkey ()
virtual void SetEnabled (bool bEnabled)
virtual bool GetEnabled ()
virtual void SetVisible (bool bVisible)
virtual bool GetVisible ()
UINT GetType () const
int GetID () const
void SetID (int ID)
void SetLocation (int x, int y)
void SetSize (int width, int height)
void SetHotkey (UINT nHotkey)
UINT GetHotkey ()
void SetUserData (void *pUserData)
void * GetUserData () const
virtual void SetTextColor (Rendering::PackedColor Color)
RiseElement * GetElement (UINT iElement)
HRESULT SetElement (UINT iElement, RiseElement *pElement)

Protected Member Functions

void SetValueInternal (int nValue, bool bFromInput)
int ValueFromPos (int x)

Protected Attributes

int m_nValue
int m_nMin
int m_nMax
int m_nDragX
int m_nDragOffset
int m_nButtonX
bool m_bPressed
RECT m_rcButton
Protected Attributes inherited from RiseControl
int m_ID
UI_CONTROL_TYPE m_Type
UINT m_nHotkey
void * m_pUserData
bool m_bEnabled
RECT m_rcBoundingBox

Additional Inherited Members

Public Attributes inherited from RiseControl
bool m_bVisible
bool m_bShadow
bool m_bMouseOver
bool m_bHasFocus
bool m_bIsDefault
bool m_bIsPassword
int m_x
int m_y
int m_width
int m_height
RiseDialog * m_pDialog
UINT m_Index
ControlArray< RiseElement * > m_Elements

Detailed Description

Definition at line 1085 of file Controls.h.

Constructor & Destructor Documentation

◆ RiseSlider()

RiseSlider::RiseSlider ( RiseDialog * pDialog = NULL)

Definition at line 3755 of file Controls.cpp.

Here is the caller graph for this function:

Member Function Documentation

◆ CanHaveFocus()

virtual bool RiseSlider::CanHaveFocus ( )
inlinevirtual

Reimplemented from RiseControl.

Definition at line 1091 of file Controls.h.

◆ ContainsPoint()

BOOL RiseSlider::ContainsPoint ( POINT pt)
virtual

Reimplemented from RiseControl.

Definition at line 3769 of file Controls.cpp.

◆ GetRange()

void RiseSlider::GetRange ( int & nMin,
int & nMax ) const
inline

Definition at line 1111 of file Controls.h.

◆ GetValue()

int RiseSlider::GetValue ( ) const
inline

Definition at line 1106 of file Controls.h.

Here is the caller graph for this function:

◆ HandleKeyboard()

bool RiseSlider::HandleKeyboard ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
virtual

Reimplemented from RiseControl.

Definition at line 3796 of file Controls.cpp.

Here is the call graph for this function:

◆ HandleMouse()

bool RiseSlider::HandleMouse ( UINT uMsg,
POINT pt,
WPARAM wParam,
LPARAM lParam )
virtual

Reimplemented from RiseControl.

Definition at line 3845 of file Controls.cpp.

Here is the call graph for this function:

◆ Render()

void RiseSlider::Render ( float fElapsedTime)
virtual

Reimplemented from RiseControl.

Definition at line 3963 of file Controls.cpp.

Here is the call graph for this function:

◆ SetRange()

void RiseSlider::SetRange ( int nMin,
int nMax )

Definition at line 3936 of file Controls.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetValue()

void RiseSlider::SetValue ( int nValue)
inline

Definition at line 1102 of file Controls.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetValueInternal()

void RiseSlider::SetValueInternal ( int nValue,
bool bFromInput )
protected

Definition at line 3946 of file Controls.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateRects()

void RiseSlider::UpdateRects ( )
virtual

Reimplemented from RiseControl.

Definition at line 3777 of file Controls.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ValueFromPos()

int RiseSlider::ValueFromPos ( int x)
protected

Definition at line 3789 of file Controls.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_bPressed

bool RiseSlider::m_bPressed
protected

Definition at line 1130 of file Controls.h.

◆ m_nButtonX

int RiseSlider::m_nButtonX
protected

Definition at line 1128 of file Controls.h.

◆ m_nDragOffset

int RiseSlider::m_nDragOffset
protected

Definition at line 1127 of file Controls.h.

◆ m_nDragX

int RiseSlider::m_nDragX
protected

Definition at line 1126 of file Controls.h.

◆ m_nMax

int RiseSlider::m_nMax
protected

Definition at line 1124 of file Controls.h.

◆ m_nMin

int RiseSlider::m_nMin
protected

Definition at line 1123 of file Controls.h.

◆ m_nValue

int RiseSlider::m_nValue
protected

Definition at line 1121 of file Controls.h.

◆ m_rcButton

RECT RiseSlider::m_rcButton
protected

Definition at line 1131 of file Controls.h.


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