![]() |
Rise
The Vieneo Province
|
#include <Controls.h>
Public Member Functions | |
| RiseDialog () | |
| ~RiseDialog () | |
| void | Init (RiseDialogResourceManager *pManager, bool bRegisterDialog=true) |
| void | Init (RiseDialogResourceManager *pManager, bool bRegisterDialog, LPCWSTR pszControlTextureFilename) |
| void | Init (RiseDialogResourceManager *pManager, bool bRegisterDialog, LPCWSTR szControlTextureResourceName, HMODULE hControlTextureResourceModule) |
| bool | MsgProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| HRESULT | AddStatic (int ID, LPCWSTR strText, int x, int y, int width, int height, bool bIsDefault=false, RiseStatic **ppCreated=NULL, bool bShadow=true) |
| HRESULT | AddButton (int ID, LPCWSTR strText, int x, int y, int width, int height, UINT nHotkey=0, bool bIsDefault=false, RiseButton **ppCreated=NULL) |
| HRESULT | AddCheckBox (int ID, LPCWSTR strText, int x, int y, int width, int height, bool bChecked=false, UINT nHotkey=0, bool bIsDefault=false, RiseCheckBox **ppCreated=NULL) |
| HRESULT | AddRadioButton (int ID, UINT nButtonGroup, LPCWSTR strText, int x, int y, int width, int height, bool bChecked=false, UINT nHotkey=0, bool bIsDefault=false, RiseRadioButton **ppCreated=NULL) |
| HRESULT | AddComboBox (int ID, int x, int y, int width, int height, UINT nHotKey=0, bool bIsDefault=false, RiseComboBox **ppCreated=NULL) |
| HRESULT | AddSlider (int ID, int x, int y, int width, int height, int min=0, int max=100, int value=50, bool bIsDefault=false, RiseSlider **ppCreated=NULL) |
| HRESULT | AddEditBox (int ID, LPCWSTR strText, int x, int y, int width, int height, bool bIsDefault=false, bool bIsPassword=false, RiseEditBox **ppCreated=NULL) |
| HRESULT | AddListBox (int ID, int x, int y, int width, int height, DWORD dwStyle=0, RiseListBox **ppCreated=NULL) |
| HRESULT | AddControl (RiseControl *pControl) |
| HRESULT | InitControl (RiseControl *pControl) |
| RiseStatic * | GetStatic (int ID) |
| RiseButton * | GetButton (int ID) |
| RiseCheckBox * | GetCheckBox (int ID) |
| RiseRadioButton * | GetRadioButton (int ID) |
| RiseComboBox * | GetComboBox (int ID) |
| RiseSlider * | GetSlider (int ID) |
| RiseEditBox * | GetEditBox (int ID) |
| RiseListBox * | GetListBox (int ID) |
| RiseControl * | GetControl (int ID) |
| RiseControl * | GetControl (int ID, UINT nControlType) |
| RiseControl * | GetControlAtPoint (POINT pt) |
| void | AppendVisibleBounds (std::vector< RECT > &rectangles) const |
| bool | GetControlEnabled (int ID) |
| void | SetControlEnabled (int ID, bool bEnabled) |
| void | ClearRadioButtonGroup (UINT nGroup) |
| void | ClearComboBox (int ID) |
| HRESULT | SetDefaultElement (UINT nControlType, UINT iElement, RiseElement *pElement) |
| RiseElement * | GetDefaultElement (UINT nControlType, UINT iElement) |
| void | SendEvent (UINT nEvent, bool bTriggeredByUser, RiseControl *pControl) |
| void | RequestFocus (RiseControl *pControl) |
| HRESULT | DrawRect (RECT *pRect, Rendering::PackedColor color) |
| HRESULT | DrawPolyLine (POINT *apPoints, UINT nNumPoints, Rendering::PackedColor color) |
| HRESULT | DrawSprite (RiseElement *pElement, RECT *prcDest, float fDepth=0) |
| HRESULT | CalcTextRect (LPCWSTR strText, RiseElement *pElement, RECT *prcDest, int nCount=-1) |
| HRESULT | DrawText (LPCWSTR strText, RiseElement *pElement, RECT *prcDest, bool bShadow=false, int nCount=-1) |
| bool | GetVisible () |
| void | SetVisible (bool bVisible) |
| bool | GetMinimized () |
| void | SetMinimized (bool bMinimized) |
| void | SetBackgroundColors (Rendering::PackedColor colorAllCorners) |
| void | SetBackgroundColors (Rendering::PackedColor colorTopLeft, Rendering::PackedColor colorTopRight, Rendering::PackedColor colorBottomLeft, Rendering::PackedColor colorBottomRight) |
| void | EnableCaption (bool bEnable) |
| int | GetCaptionHeight () const |
| void | SetCaptionHeight (int nHeight) |
| void | SetCaptionText (const WCHAR *pwszText) |
| void | GetLocation (POINT &Pt) const |
| void | SetLocation (int x, int y) |
| void | SetSize (int width, int height) |
| int | GetWidth () |
| int | GetHeight () |
| void | SetScale (float scale) |
| void | RemoveControl (int ID) |
| void | RemoveAllControls () |
| void | SetCallback (UICallback pCallback, void *pUserContext=NULL) |
| void | EnableNonUserEvents (bool bEnable) |
| void | EnableKeyboardInput (bool bEnable) |
| void | EnableMouseInput (bool bEnable) |
| bool | IsKeyboardInputEnabled () const |
| void | Refresh () |
| HRESULT | OnRender (float fElapsedTime) |
| HRESULT | SetFont (UINT index, LPCWSTR strFaceName, LONG height, LONG weight) |
| UIFontNode * | GetFont (UINT index) |
| HRESULT | SetTexture (UINT index, LPCWSTR strFilename) |
| HRESULT | SetTexture (UINT index, LPCWSTR strResourceName, HMODULE hResourceModule) |
| UITextureNode * | GetTexture (UINT index) |
| RiseDialogResourceManager * | GetManager () |
| void | FocusDefaultControl () |
Static Public Member Functions | |
| static void WINAPI | SetRefreshTime (float fTime) |
| static RiseControl *WINAPI | GetNextControl (RiseControl *pControl) |
| static RiseControl *WINAPI | GetPrevControl (RiseControl *pControl) |
| static void WINAPI | ClearFocus () |
Public Attributes | |
| bool | m_bNonUserEvents |
| bool | m_bKeyboardInput |
| bool | m_bMouseInput |
| float | m_fScale = 1.0f |
Private Member Functions | |
| void | InitDefaultElements () |
| void | OnMouseMove (POINT pt) |
| void | OnMouseUp (POINT pt) |
| void | SetNextDialog (RiseDialog *pNextDialog) |
| bool | OnCycleFocus (bool bForward) |
Static Private Attributes | |
| static double | s_fTimeRefresh = 0.0f |
| static RiseControl * | s_pControlFocus = NULL |
| static RiseControl * | s_pControlPressed = NULL |
Friends | |
| class | RiseDialogResourceManager |
Definition at line 131 of file Controls.h.
| RiseDialog::RiseDialog | ( | ) |
| RiseDialog::~RiseDialog | ( | ) |
| HRESULT RiseDialog::AddButton | ( | int | ID, |
| LPCWSTR | strText, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| UINT | nHotkey = 0, | ||
| bool | bIsDefault = false, | ||
| RiseButton ** | ppCreated = NULL ) |
Definition at line 1299 of file Controls.cpp.
| HRESULT RiseDialog::AddCheckBox | ( | int | ID, |
| LPCWSTR | strText, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| bool | bChecked = false, | ||
| UINT | nHotkey = 0, | ||
| bool | bIsDefault = false, | ||
| RiseCheckBox ** | ppCreated = NULL ) |
Definition at line 1329 of file Controls.cpp.
| HRESULT RiseDialog::AddComboBox | ( | int | ID, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| UINT | nHotKey = 0, | ||
| bool | bIsDefault = false, | ||
| RiseComboBox ** | ppCreated = NULL ) |
Definition at line 1396 of file Controls.cpp.
| HRESULT RiseDialog::AddControl | ( | RiseControl * | pControl | ) |
Definition at line 1542 of file Controls.cpp.
| HRESULT RiseDialog::AddEditBox | ( | int | ID, |
| LPCWSTR | strText, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| bool | bIsDefault = false, | ||
| bool | bIsPassword = false, | ||
| RiseEditBox ** | ppCreated = NULL ) |
Definition at line 1458 of file Controls.cpp.
| HRESULT RiseDialog::AddListBox | ( | int | ID, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| DWORD | dwStyle = 0, | ||
| RiseListBox ** | ppCreated = NULL ) |
Definition at line 1490 of file Controls.cpp.
| HRESULT RiseDialog::AddRadioButton | ( | int | ID, |
| UINT | nButtonGroup, | ||
| LPCWSTR | strText, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| bool | bChecked = false, | ||
| UINT | nHotkey = 0, | ||
| bool | bIsDefault = false, | ||
| RiseRadioButton ** | ppCreated = NULL ) |
Definition at line 1361 of file Controls.cpp.
| HRESULT RiseDialog::AddSlider | ( | int | ID, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| int | min = 0, | ||
| int | max = 100, | ||
| int | value = 50, | ||
| bool | bIsDefault = false, | ||
| RiseSlider ** | ppCreated = NULL ) |
Definition at line 1426 of file Controls.cpp.
| HRESULT RiseDialog::AddStatic | ( | int | ID, |
| LPCWSTR | strText, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| bool | bIsDefault = false, | ||
| RiseStatic ** | ppCreated = NULL, | ||
| bool | bShadow = true ) |
Definition at line 1269 of file Controls.cpp.
| void RiseDialog::AppendVisibleBounds | ( | std::vector< RECT > & | rectangles | ) | const |
Definition at line 510 of file Controls.cpp.
| HRESULT RiseDialog::CalcTextRect | ( | LPCWSTR | strText, |
| RiseElement * | pElement, | ||
| RECT * | prcDest, | ||
| int | nCount = -1 ) |
|
static |
Definition at line 1930 of file Controls.cpp.
| void RiseDialog::ClearRadioButtonGroup | ( | UINT | nGroup | ) |
Definition at line 1644 of file Controls.cpp.
| HRESULT RiseDialog::DrawPolyLine | ( | POINT * | apPoints, |
| UINT | nNumPoints, | ||
| Rendering::PackedColor | color ) |
| HRESULT RiseDialog::DrawRect | ( | RECT * | pRect, |
| Rendering::PackedColor | color ) |
Definition at line 1698 of file Controls.cpp.
| HRESULT RiseDialog::DrawSprite | ( | RiseElement * | pElement, |
| RECT * | prcDest, | ||
| float | fDepth = 0 ) |
Definition at line 1794 of file Controls.cpp.
| HRESULT RiseDialog::DrawText | ( | LPCWSTR | strText, |
| RiseElement * | pElement, | ||
| RECT * | prcDest, | ||
| bool | bShadow = false, | ||
| int | nCount = -1 ) |
Definition at line 1862 of file Controls.cpp.
|
inline |
Definition at line 261 of file Controls.h.
|
inline |
|
inline |
Definition at line 324 of file Controls.h.
|
inline |
Definition at line 316 of file Controls.h.
| void RiseDialog::FocusDefaultControl | ( | ) |
Definition at line 1943 of file Controls.cpp.
|
inline |
Definition at line 176 of file Controls.h.
|
inline |
Definition at line 265 of file Controls.h.
|
inline |
Definition at line 180 of file Controls.h.
|
inline |
Definition at line 188 of file Controls.h.
| RiseControl * RiseDialog::GetControl | ( | int | ID | ) |
Definition at line 1562 of file Controls.cpp.
| RiseControl * RiseDialog::GetControl | ( | int | ID, |
| UINT | nControlType ) |
| RiseControl * RiseDialog::GetControlAtPoint | ( | POINT | pt | ) |
Definition at line 1136 of file Controls.cpp.
| bool RiseDialog::GetControlEnabled | ( | int | ID | ) |
| RiseElement * RiseDialog::GetDefaultElement | ( | UINT | nControlType, |
| UINT | iElement ) |
|
inline |
| UIFontNode * RiseDialog::GetFont | ( | UINT | index | ) |
Definition at line 732 of file Controls.cpp.
|
inline |
Definition at line 293 of file Controls.h.
|
inline |
|
inline |
Definition at line 277 of file Controls.h.
|
inline |
Definition at line 346 of file Controls.h.
|
inline |
Definition at line 247 of file Controls.h.
|
static |
Definition at line 1602 of file Controls.cpp.
|
static |
Definition at line 1621 of file Controls.cpp.
|
inline |
Definition at line 184 of file Controls.h.
|
inline |
Definition at line 192 of file Controls.h.
|
inline |
Definition at line 172 of file Controls.h.
| UITextureNode * RiseDialog::GetTexture | ( | UINT | index | ) |
Definition at line 878 of file Controls.cpp.
|
inline |
Definition at line 239 of file Controls.h.
|
inline |
Definition at line 289 of file Controls.h.
| void RiseDialog::Init | ( | RiseDialogResourceManager * | pManager, |
| bool | bRegisterDialog, | ||
| LPCWSTR | pszControlTextureFilename ) |
| void RiseDialog::Init | ( | RiseDialogResourceManager * | pManager, |
| bool | bRegisterDialog, | ||
| LPCWSTR | szControlTextureResourceName, | ||
| HMODULE | hControlTextureResourceModule ) |
| void RiseDialog::Init | ( | RiseDialogResourceManager * | pManager, |
| bool | bRegisterDialog = true ) |
Definition at line 176 of file Controls.cpp.
| HRESULT RiseDialog::InitControl | ( | RiseControl * | pControl | ) |
Definition at line 1517 of file Controls.cpp.
|
private |
Definition at line 2125 of file Controls.cpp.
|
inline |
| bool RiseDialog::MsgProc | ( | HWND | hWnd, |
| UINT | uMsg, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam ) |
|
private |
Definition at line 1964 of file Controls.cpp.
|
private |
Definition at line 1194 of file Controls.cpp.
|
private |
Definition at line 1186 of file Controls.cpp.
| HRESULT RiseDialog::OnRender | ( | float | fElapsedTime | ) |
| void RiseDialog::Refresh | ( | ) |
Definition at line 482 of file Controls.cpp.
| void RiseDialog::RemoveAllControls | ( | ) |
Definition at line 254 of file Controls.cpp.
Definition at line 226 of file Controls.cpp.
| void RiseDialog::RequestFocus | ( | RiseControl * | pControl | ) |
Definition at line 1677 of file Controls.cpp.
| VOID RiseDialog::SendEvent | ( | UINT | nEvent, |
| bool | bTriggeredByUser, | ||
| RiseControl * | pControl ) |
|
inline |
Definition at line 255 of file Controls.h.
| void RiseDialog::SetBackgroundColors | ( | Rendering::PackedColor | colorTopLeft, |
| Rendering::PackedColor | colorTopRight, | ||
| Rendering::PackedColor | colorBottomLeft, | ||
| Rendering::PackedColor | colorBottomRight ) |
Definition at line 1907 of file Controls.cpp.
| void RiseDialog::SetCallback | ( | UICallback | pCallback, |
| void * | pUserContext = NULL ) |
Definition at line 269 of file Controls.h.
|
inline |
Definition at line 273 of file Controls.h.
| HRESULT RiseDialog::SetDefaultElement | ( | UINT | nControlType, |
| UINT | iElement, | ||
| RiseElement * | pElement ) |
Definition at line 1215 of file Controls.cpp.
| HRESULT RiseDialog::SetFont | ( | UINT | index, |
| LPCWSTR | strFaceName, | ||
| LONG | height, | ||
| LONG | weight ) |
Definition at line 709 of file Controls.cpp.
|
inline |
Definition at line 251 of file Controls.h.
|
private |
|
inlinestatic |
Definition at line 303 of file Controls.h.
|
inline |
Definition at line 285 of file Controls.h.
| HRESULT RiseDialog::SetTexture | ( | UINT | index, |
| LPCWSTR | strFilename ) |
Definition at line 834 of file Controls.cpp.
| HRESULT RiseDialog::SetTexture | ( | UINT | index, |
| LPCWSTR | strResourceName, | ||
| HMODULE | hResourceModule ) |
|
inline |
Definition at line 243 of file Controls.h.
|
friend |
Definition at line 133 of file Controls.h.
|
private |
Definition at line 385 of file Controls.h.
|
private |
Definition at line 387 of file Controls.h.
| bool RiseDialog::m_bKeyboardInput |
Definition at line 355 of file Controls.h.
|
private |
Definition at line 386 of file Controls.h.
| bool RiseDialog::m_bMouseInput |
Definition at line 356 of file Controls.h.
| bool RiseDialog::m_bNonUserEvents |
Definition at line 354 of file Controls.h.
|
private |
Definition at line 384 of file Controls.h.
|
private |
Definition at line 411 of file Controls.h.
|
private |
Definition at line 398 of file Controls.h.
|
private |
Definition at line 399 of file Controls.h.
|
private |
Definition at line 396 of file Controls.h.
|
private |
Definition at line 397 of file Controls.h.
|
private |
Definition at line 408 of file Controls.h.
|
private |
Definition at line 409 of file Controls.h.
|
private |
Definition at line 406 of file Controls.h.
| float RiseDialog::m_fScale = 1.0f |
Definition at line 357 of file Controls.h.
|
private |
Definition at line 365 of file Controls.h.
|
private |
Definition at line 393 of file Controls.h.
|
private |
Definition at line 394 of file Controls.h.
|
private |
Definition at line 360 of file Controls.h.
|
private |
Definition at line 402 of file Controls.h.
|
private |
Definition at line 403 of file Controls.h.
|
private |
Definition at line 382 of file Controls.h.
|
private |
Definition at line 401 of file Controls.h.
|
private |
Definition at line 413 of file Controls.h.
|
private |
Definition at line 414 of file Controls.h.
|
private |
Definition at line 405 of file Controls.h.
|
private |
Definition at line 392 of file Controls.h.
|
private |
Definition at line 388 of file Controls.h.
|
private |
Definition at line 390 of file Controls.h.
|
private |
Definition at line 391 of file Controls.h.
|
staticprivate |
Definition at line 364 of file Controls.h.
|
staticprivate |
Definition at line 379 of file Controls.h.
|
staticprivate |
Definition at line 380 of file Controls.h.