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

#include <Controls.h>

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

Public Member Functions

 RiseScrollBar (RiseDialog *pDialog=NULL)
virtual ~RiseScrollBar ()
virtual bool HandleKeyboard (UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual bool HandleMouse (UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
virtual bool MsgProc (UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual void Render (float fElapsedTime)
virtual void UpdateRects ()
void SetTrackRange (int nStart, int nEnd)
int GetTrackPos ()
void SetTrackPos (int nPosition)
int GetPageSize ()
void SetPageSize (int nPageSize)
void Scroll (int nDelta)
void ShowItem (int nIndex)
Public Member Functions inherited from RiseControl
 RiseControl (RiseDialog *pDialog=NULL)
virtual ~RiseControl ()
virtual HRESULT OnInit ()
virtual void Refresh ()
virtual bool CanHaveFocus ()
virtual void OnFocusIn ()
virtual void OnFocusOut ()
virtual void OnMouseEnter ()
virtual void OnMouseLeave ()
virtual void OnHotkey ()
virtual BOOL ContainsPoint (POINT pt)
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 Types

enum  ARROWSTATE {
  CLEAR , CLICKED_UP , CLICKED_DOWN , HELD_UP ,
  HELD_DOWN
}

Protected Member Functions

void UpdateThumbRect ()
void Cap ()

Protected Attributes

bool m_bShowThumb
bool m_bDrag
RECT m_rcUpButton
RECT m_rcDownButton
RECT m_rcTrack
RECT m_rcThumb
int m_nPosition
int m_nPageSize
int m_nStart
int m_nEnd
POINT m_LastMouse
ARROWSTATE m_Arrow
double m_dArrowTS
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 822 of file Controls.h.

Member Enumeration Documentation

◆ ARROWSTATE

enum RiseScrollBar::ARROWSTATE
protected
Enumerator
CLEAR 
CLICKED_UP 
CLICKED_DOWN 
HELD_UP 
HELD_DOWN 

Definition at line 863 of file Controls.h.

Constructor & Destructor Documentation

◆ RiseScrollBar()

RiseScrollBar::RiseScrollBar ( RiseDialog * pDialog = NULL)

Definition at line 4018 of file Controls.cpp.

◆ ~RiseScrollBar()

RiseScrollBar::~RiseScrollBar ( )
virtual

Definition at line 4040 of file Controls.cpp.

Member Function Documentation

◆ Cap()

void RiseScrollBar::Cap ( )
protected

Definition at line 4368 of file Controls.cpp.

Here is the caller graph for this function:

◆ GetPageSize()

int RiseScrollBar::GetPageSize ( )
inline

Definition at line 844 of file Controls.h.

Here is the caller graph for this function:

◆ GetTrackPos()

int RiseScrollBar::GetTrackPos ( )
inline

Definition at line 836 of file Controls.h.

Here is the caller graph for this function:

◆ HandleKeyboard()

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

Reimplemented from RiseControl.

Definition at line 4128 of file Controls.cpp.

Here is the caller graph for this function:

◆ HandleMouse()

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

Reimplemented from RiseControl.

Definition at line 4135 of file Controls.cpp.

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

◆ MsgProc()

bool RiseScrollBar::MsgProc ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
virtual

Reimplemented from RiseControl.

Definition at line 4246 of file Controls.cpp.

Here is the call graph for this function:

◆ Render()

void RiseScrollBar::Render ( float fElapsedTime)
virtual

Reimplemented from RiseControl.

Definition at line 4261 of file Controls.cpp.

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

◆ Scroll()

void RiseScrollBar::Scroll ( int nDelta)

Definition at line 4092 of file Controls.cpp.

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

◆ SetPageSize()

void RiseScrollBar::SetPageSize ( int nPageSize)
inline

Definition at line 848 of file Controls.h.

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

◆ SetTrackPos()

void RiseScrollBar::SetTrackPos ( int nPosition)
inline

Definition at line 840 of file Controls.h.

Here is the call graph for this function:

◆ SetTrackRange()

void RiseScrollBar::SetTrackRange ( int nStart,
int nEnd )

Definition at line 4359 of file Controls.cpp.

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

◆ ShowItem()

void RiseScrollBar::ShowItem ( int nIndex)

Definition at line 4106 of file Controls.cpp.

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

◆ UpdateRects()

void RiseScrollBar::UpdateRects ( )
virtual

Reimplemented from RiseControl.

Definition at line 4046 of file Controls.cpp.

Here is the call graph for this function:

◆ UpdateThumbRect()

void RiseScrollBar::UpdateThumbRect ( )
protected

Definition at line 4067 of file Controls.cpp.

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

Member Data Documentation

◆ m_Arrow

ARROWSTATE RiseScrollBar::m_Arrow
protected

Definition at line 886 of file Controls.h.

◆ m_bDrag

bool RiseScrollBar::m_bDrag
protected

Definition at line 876 of file Controls.h.

◆ m_bShowThumb

bool RiseScrollBar::m_bShowThumb
protected

Definition at line 875 of file Controls.h.

◆ m_dArrowTS

double RiseScrollBar::m_dArrowTS
protected

Definition at line 887 of file Controls.h.

◆ m_LastMouse

POINT RiseScrollBar::m_LastMouse
protected

Definition at line 885 of file Controls.h.

◆ m_nEnd

int RiseScrollBar::m_nEnd
protected

Definition at line 884 of file Controls.h.

◆ m_nPageSize

int RiseScrollBar::m_nPageSize
protected

Definition at line 882 of file Controls.h.

◆ m_nPosition

int RiseScrollBar::m_nPosition
protected

Definition at line 881 of file Controls.h.

◆ m_nStart

int RiseScrollBar::m_nStart
protected

Definition at line 883 of file Controls.h.

◆ m_rcDownButton

RECT RiseScrollBar::m_rcDownButton
protected

Definition at line 878 of file Controls.h.

◆ m_rcThumb

RECT RiseScrollBar::m_rcThumb
protected

Definition at line 880 of file Controls.h.

◆ m_rcTrack

RECT RiseScrollBar::m_rcTrack
protected

Definition at line 879 of file Controls.h.

◆ m_rcUpButton

RECT RiseScrollBar::m_rcUpButton
protected

Definition at line 877 of file Controls.h.


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