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

#include <Controls.h>

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

Public Member Functions

 RiseButton (RiseDialog *pDialog=NULL)
virtual bool HandleKeyboard (UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual bool HandleMouse (UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
virtual void OnHotkey ()
virtual BOOL ContainsPoint (POINT pt)
virtual bool CanHaveFocus ()
virtual void Render (float fElapsedTime)
Public Member Functions inherited from RiseStatic
 RiseStatic (RiseDialog *pDialog=NULL)
HRESULT GetTextCopy (__out_ecount(bufferCount) LPWSTR strDest, UINT bufferCount)
LPCWSTR GetText ()
HRESULT SetText (LPCWSTR strText)
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 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 Attributes

bool m_bPressed
Protected Attributes inherited from RiseStatic
WCHAR m_strText [MAX_TEXT]
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
Protected Member Functions inherited from RiseControl
virtual void UpdateRects ()

Detailed Description

Definition at line 716 of file Controls.h.

Constructor & Destructor Documentation

◆ RiseButton()

RiseButton::RiseButton ( RiseDialog * pDialog = NULL)

Definition at line 2603 of file Controls.cpp.

Here is the caller graph for this function:

Member Function Documentation

◆ CanHaveFocus()

virtual bool RiseButton::CanHaveFocus ( )
inlinevirtual

Reimplemented from RiseControl.

Reimplemented in RiseComboBox.

Definition at line 733 of file Controls.h.

◆ ContainsPoint()

virtual BOOL RiseButton::ContainsPoint ( POINT pt)
inlinevirtual

Reimplemented from RiseStatic.

Reimplemented in RiseCheckBox.

Definition at line 729 of file Controls.h.

Here is the caller graph for this function:

◆ HandleKeyboard()

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

Reimplemented from RiseControl.

Reimplemented in RiseCheckBox, RiseComboBox, and RiseRadioButton.

Definition at line 2613 of file Controls.cpp.

Here is the call graph for this function:

◆ HandleMouse()

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

Reimplemented from RiseControl.

Reimplemented in RiseCheckBox, RiseComboBox, and RiseRadioButton.

Definition at line 2649 of file Controls.cpp.

Here is the call graph for this function:

◆ OnHotkey()

virtual void RiseButton::OnHotkey ( )
inlinevirtual

Reimplemented from RiseControl.

Reimplemented in RiseCheckBox, RiseComboBox, and RiseRadioButton.

Definition at line 723 of file Controls.h.

Here is the call graph for this function:

◆ Render()

void RiseButton::Render ( float fElapsedTime)
virtual

Reimplemented from RiseStatic.

Reimplemented in RiseCheckBox, and RiseComboBox.

Definition at line 2699 of file Controls.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_bPressed

bool RiseButton::m_bPressed
protected

Definition at line 741 of file Controls.h.


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