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

#include <Controls.h>

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

Public Member Functions

 RiseEditBox (RiseDialog *pDialog=NULL)
virtual ~RiseEditBox ()
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 UpdateRects ()
virtual bool CanHaveFocus ()
virtual void Render (float fElapsedTime)
virtual void OnFocusIn ()
void SetText (LPCWSTR wszText, bool bSelected=false)
LPCWSTR GetText ()
int GetTextLength ()
HRESULT GetTextCopy (__out_ecount(bufferCount) LPWSTR strDest, UINT bufferCount)
void ClearText ()
virtual void SetTextColor (Rendering::PackedColor Color)
void SetSelectedTextColor (Rendering::PackedColor Color)
void SetSelectedBackColor (Rendering::PackedColor Color)
void SetCaretColor (Rendering::PackedColor Color)
void SetBorderWidth (int nBorder)
void SetSpacing (int nSpacing)
void ParseFloatArray (float *pNumbers, int nCount)
void SetTextFloatArray (const float *pNumbers, int nCount)
Public Member Functions inherited from RiseControl
 RiseControl (RiseDialog *pDialog=NULL)
virtual ~RiseControl ()
virtual HRESULT OnInit ()
virtual void Refresh ()
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
RiseElement * GetElement (UINT iElement)
HRESULT SetElement (UINT iElement, RiseElement *pElement)

Protected Member Functions

void PlaceCaret (int nCP)
void DeleteSelectionText ()
void ResetCaretBlink ()
void CopyToClipboard ()
void PasteFromClipboard ()

Protected Attributes

CUniBuffer m_Buffer
int m_nBorder
int m_nSpacing
RECT m_rcText
RECT m_rcRender [9]
double m_dfBlink
double m_dfLastBlink
bool m_bCaretOn
int m_nCaret
bool m_bInsertMode
int m_nSelStart
int m_nFirstVisible
Rendering::PackedColor m_TextColor
Rendering::PackedColor m_SelTextColor
Rendering::PackedColor m_SelBkColor
Rendering::PackedColor m_CaretColor
bool m_bMouseDrag
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

Static Protected Attributes

static bool s_bHideCaret

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 1251 of file Controls.h.

Constructor & Destructor Documentation

◆ RiseEditBox()

RiseEditBox::RiseEditBox ( RiseDialog * pDialog = NULL)

Definition at line 5055 of file Controls.cpp.

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

◆ ~RiseEditBox()

RiseEditBox::~RiseEditBox ( )
virtual

Definition at line 5080 of file Controls.cpp.

Member Function Documentation

◆ CanHaveFocus()

virtual bool RiseEditBox::CanHaveFocus ( )
inlinevirtual

Reimplemented from RiseControl.

Definition at line 1261 of file Controls.h.

◆ ClearText()

void RiseEditBox::ClearText ( )

Definition at line 5136 of file Controls.cpp.

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

◆ CopyToClipboard()

void RiseEditBox::CopyToClipboard ( )
protected

Definition at line 5210 of file Controls.cpp.

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

◆ DeleteSelectionText()

void RiseEditBox::DeleteSelectionText ( )
protected

Definition at line 5171 of file Controls.cpp.

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

◆ GetText()

LPCWSTR RiseEditBox::GetText ( )
inline

Definition at line 1269 of file Controls.h.

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

◆ GetTextCopy()

HRESULT RiseEditBox::GetTextCopy ( __out_ecount(bufferCount) LPWSTR strDest,
UINT bufferCount )

Definition at line 5159 of file Controls.cpp.

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

◆ GetTextLength()

int RiseEditBox::GetTextLength ( )
inline

Definition at line 1273 of file Controls.h.

Here is the call graph for this function:

◆ HandleKeyboard()

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

Reimplemented from RiseControl.

Definition at line 5269 of file Controls.cpp.

Here is the call graph for this function:

◆ HandleMouse()

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

Reimplemented from RiseControl.

Definition at line 5402 of file Controls.cpp.

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

◆ MsgProc()

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

Reimplemented from RiseControl.

Definition at line 5479 of file Controls.cpp.

Here is the call graph for this function:

◆ OnFocusIn()

void RiseEditBox::OnFocusIn ( )
virtual

Reimplemented from RiseControl.

Definition at line 5470 of file Controls.cpp.

Here is the call graph for this function:

◆ ParseFloatArray()

void RiseEditBox::ParseFloatArray ( float * pNumbers,
int nCount )

Definition at line 5766 of file Controls.cpp.

Here is the call graph for this function:

◆ PasteFromClipboard()

void RiseEditBox::PasteFromClipboard ( )
protected

Definition at line 5242 of file Controls.cpp.

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

◆ PlaceCaret()

void RiseEditBox::PlaceCaret ( int nCP)
protected

Definition at line 5089 of file Controls.cpp.

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

◆ Render()

void RiseEditBox::Render ( float fElapsedTime)
virtual

Reimplemented from RiseControl.

Definition at line 5634 of file Controls.cpp.

Here is the call graph for this function:

◆ ResetCaretBlink()

void RiseEditBox::ResetCaretBlink ( )
protected

Definition at line 6218 of file Controls.cpp.

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

◆ SetBorderWidth()

void RiseEditBox::SetBorderWidth ( int nBorder)
inline

Definition at line 1296 of file Controls.h.

Here is the call graph for this function:

◆ SetCaretColor()

void RiseEditBox::SetCaretColor ( Rendering::PackedColor Color)
inline

Definition at line 1292 of file Controls.h.

◆ SetSelectedBackColor()

void RiseEditBox::SetSelectedBackColor ( Rendering::PackedColor Color)
inline

Definition at line 1288 of file Controls.h.

◆ SetSelectedTextColor()

void RiseEditBox::SetSelectedTextColor ( Rendering::PackedColor Color)
inline

Definition at line 1284 of file Controls.h.

◆ SetSpacing()

void RiseEditBox::SetSpacing ( int nSpacing)
inline

Definition at line 1300 of file Controls.h.

Here is the call graph for this function:

◆ SetText()

void RiseEditBox::SetText ( LPCWSTR wszText,
bool bSelected = false )

Definition at line 5146 of file Controls.cpp.

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

◆ SetTextColor()

virtual void RiseEditBox::SetTextColor ( Rendering::PackedColor Color)
inlinevirtual

Reimplemented from RiseControl.

Definition at line 1280 of file Controls.h.

Here is the caller graph for this function:

◆ SetTextFloatArray()

void RiseEditBox::SetTextFloatArray ( const float * pNumbers,
int nCount )

Definition at line 5798 of file Controls.cpp.

Here is the call graph for this function:

◆ UpdateRects()

void RiseEditBox::UpdateRects ( )
virtual

Reimplemented from RiseControl.

Definition at line 5185 of file Controls.cpp.

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

Member Data Documentation

◆ m_bCaretOn

bool RiseEditBox::m_bCaretOn
protected

Definition at line 1321 of file Controls.h.

◆ m_bInsertMode

bool RiseEditBox::m_bInsertMode
protected

Definition at line 1323 of file Controls.h.

◆ m_bMouseDrag

bool RiseEditBox::m_bMouseDrag
protected

Definition at line 1332 of file Controls.h.

◆ m_Buffer

CUniBuffer RiseEditBox::m_Buffer
protected

Definition at line 1314 of file Controls.h.

◆ m_CaretColor

Rendering::PackedColor RiseEditBox::m_CaretColor
protected

Definition at line 1329 of file Controls.h.

◆ m_dfBlink

double RiseEditBox::m_dfBlink
protected

Definition at line 1319 of file Controls.h.

◆ m_dfLastBlink

double RiseEditBox::m_dfLastBlink
protected

Definition at line 1320 of file Controls.h.

◆ m_nBorder

int RiseEditBox::m_nBorder
protected

Definition at line 1315 of file Controls.h.

◆ m_nCaret

int RiseEditBox::m_nCaret
protected

Definition at line 1322 of file Controls.h.

◆ m_nFirstVisible

int RiseEditBox::m_nFirstVisible
protected

Definition at line 1325 of file Controls.h.

◆ m_nSelStart

int RiseEditBox::m_nSelStart
protected

Definition at line 1324 of file Controls.h.

◆ m_nSpacing

int RiseEditBox::m_nSpacing
protected

Definition at line 1316 of file Controls.h.

◆ m_rcRender

RECT RiseEditBox::m_rcRender[9]
protected

Definition at line 1318 of file Controls.h.

◆ m_rcText

RECT RiseEditBox::m_rcText
protected

Definition at line 1317 of file Controls.h.

◆ m_SelBkColor

Rendering::PackedColor RiseEditBox::m_SelBkColor
protected

Definition at line 1328 of file Controls.h.

◆ m_SelTextColor

Rendering::PackedColor RiseEditBox::m_SelTextColor
protected

Definition at line 1327 of file Controls.h.

◆ m_TextColor

Rendering::PackedColor RiseEditBox::m_TextColor
protected

Definition at line 1326 of file Controls.h.

◆ s_bHideCaret

bool RiseEditBox::s_bHideCaret
staticprotected

Definition at line 1335 of file Controls.h.


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