8#pragma warning(disable:4100)
22#define EVENT_BUTTON_CLICKED 0x0101
23#define EVENT_COMBOBOX_SELECTION_CHANGED 0x0201
24#define EVENT_RADIOBUTTON_CHANGED 0x0301
25#define EVENT_CHECKBOX_CHANGED 0x0401
26#define EVENT_SLIDER_VALUE_CHANGED 0x0501
27#define EVENT_EDITBOX_STRING 0x0601
30#define EVENT_EDITBOX_CHANGE 0x0602
31#define EVENT_EDITBOX_CANCEL 0x0603
32#define EVENT_LISTBOX_ITEM_DBLCLK 0x0701
35#define EVENT_LISTBOX_SELECTION 0x0702
36#define EVENT_LISTBOX_SELECTION_END 0x0703
38#define passwordcharC L'·'
89#define MAX_CONTROL_STATES 6
95 void Blend(UINT iState,
float fElapsedTime,
float fRate = 0.7f);
111 255),
DWORD prmTextFormat = DT_CENTER |
142 LPCWSTR pszControlTextureFilename);
144 LPCWSTR szControlTextureResourceName, HMODULE hControlTextureResourceModule);
147 bool MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
150 HRESULT AddStatic(
int ID, LPCWSTR strText,
int x,
int y,
int width,
int height,
bool bIsDefault =
false,
151 RiseStatic** ppCreated = NULL,
bool bShadow =
true);
152 HRESULT AddButton(
int ID, LPCWSTR strText,
int x,
int y,
int width,
int height, UINT nHotkey = 0,
153 bool bIsDefault =
false,
RiseButton** ppCreated = NULL);
154 HRESULT AddCheckBox(
int ID, LPCWSTR strText,
int x,
int y,
int width,
int height,
bool bChecked =
false,
155 UINT nHotkey = 0,
bool bIsDefault =
false,
RiseCheckBox** ppCreated = NULL);
157 int height,
bool bChecked =
false, UINT nHotkey = 0,
bool bIsDefault =
false,
159 HRESULT AddComboBox(
int ID,
int x,
int y,
int width,
int height, UINT nHotKey = 0,
bool bIsDefault =
161 HRESULT AddSlider(
int ID,
int x,
int y,
int width,
int height,
int min = 0,
int max = 100,
int value = 50,
162 bool bIsDefault =
false,
RiseSlider** ppCreated = NULL);
164 HRESULT AddEditBox(
int ID, LPCWSTR strText,
int x,
int y,
int width,
int height,
bool bIsDefault =
165 false,
bool bIsPassword =
false,
RiseEditBox** ppCreated = NULL);
339 HRESULT SetFont(UINT index, LPCWSTR strFaceName, LONG height, LONG weight);
343 HRESULT SetTexture(UINT index, LPCWSTR strResourceName, HMODULE hResourceModule);
450 bool MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
478 int AddFont(LPCWSTR strFaceName, LONG height, LONG weight);
480 int AddTexture(LPCWSTR strResourceName, HMODULE hResourceModule);
532 virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
541 virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
693 virtual void Render(
float fElapsedTime);
721 virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
722 virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
738 virtual void Render(
float fElapsedTime);
753 virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
754 virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
764 virtual void Render(
float fElapsedTime);
792 virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
793 virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
828 virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
829 virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
830 virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
832 virtual void Render(
float fElapsedTime);
917 virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
918 virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
919 virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
921 virtual void Render(
float fElapsedTime);
1009 virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
1010 virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
1018 virtual void Render(
float fElapsedTime);
1025 bool ContainsItem(
const WCHAR* strText, UINT iStart = 0);
1026 int FindItem(
const WCHAR* strText, UINT iStart = 0);
1095 virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
1096 virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
1100 virtual void Render(
float fElapsedTime);
1177 bool InsertString(
int nIndex,
const WCHAR* pStr,
int nCount = -1);
1178 bool SetText(LPCWSTR wszText);
1205 SCRIPT_STATE*,
const int*, SCRIPT_TABDEF*,
const BYTE*,
1206 SCRIPT_STRING_ANALYSIS*)
1232 static HRESULT(WINAPI* _ScriptApplyDigitSubstitution)(
const SCRIPT_DIGITSUBSTITUTE*,
1233 SCRIPT_CONTROL*, SCRIPT_STATE*);
1235 SCRIPT_CONTROL*, SCRIPT_STATE*,
const int*,
1236 SCRIPT_TABDEF*,
const BYTE*,
1237 SCRIPT_STRING_ANALYSIS*);
1239 static HRESULT(WINAPI* _ScriptStringXtoCP)(SCRIPT_STRING_ANALYSIS,
int,
int*,
int*);
1240 static HRESULT(WINAPI* _ScriptStringFree)(SCRIPT_STRING_ANALYSIS*);
1257 virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
1258 virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
1259 virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
1265 virtual void Render(
float fElapsedTime);
1268 void SetText(LPCWSTR wszText,
bool bSelected =
false);
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
SCRIPT_CONTROL SCRIPT_STATE const void SCRIPT_CONTROL SCRIPT_STATE const int SCRIPT_TABDEF const BYTE SCRIPT_STRING_ANALYSIS BOOL
SCRIPT_CONTROL SCRIPT_STATE const void DWORD
#define EVENT_BUTTON_CLICKED
VOID(CALLBACK *) UICallback(UINT nEvent, int nControlID, RiseControl *pControl, void *pUserContext)
#define MAX_CONTROL_STATES
static void WINAPI Initialize()
static SCRIPT_CONTROL SCRIPT_STATE *static const void SCRIPT_CONTROL SCRIPT_STATE const int SCRIPT_TABDEF const BYTE SCRIPT_STRING_ANALYSIS *static int *static int int *static HRESULT(WINAPI *_ScriptStringFree)(SCRIPT_STRING_ANALYSIS *)
static const SCRIPT_LOGATTR *WINAPI Dummy_ScriptString_pLogAttr(SCRIPT_STRING_ANALYSIS)
bool SetText(LPCWSTR wszText)
bool InsertChar(int nIndex, WCHAR wChar)
static HRESULT(WINAPI *_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
bool RemoveChar(int nIndex)
SCRIPT_STRING_ANALYSIS m_Analysis
const WCHAR * GetBuffer()
static SCRIPT_CONTROL SCRIPT_STATE *static const void int
static const int *WINAPI Dummy_ScriptString_pcOutChars(SCRIPT_STRING_ANALYSIS)
static HRESULT WINAPI Dummy_ScriptStringCPtoX(SCRIPT_STRING_ANALYSIS, int, BOOL, int *)
static SCRIPT_CONTROL SCRIPT_STATE *static const void SCRIPT_CONTROL SCRIPT_STATE const int SCRIPT_TABDEF const BYTE SCRIPT_STRING_ANALYSIS *static BOOL
const WCHAR & operator[](int n) const
void SetFontNode(UIFontNode *pFontNode)
static void WINAPI Uninitialize()
bool InsertString(int nIndex, const WCHAR *pStr, int nCount=-1)
void GetNextItemPos(int nCP, int *pPrior)
UIFontNode * GetFontNode()
static SCRIPT_CONTROL SCRIPT_STATE *static const void DWORD
HRESULT CPtoX(int nCP, BOOL bTrail, int *pX)
static HRESULT WINAPI Dummy_ScriptStringFree(SCRIPT_STRING_ANALYSIS *)
static HRESULT WINAPI Dummy_ScriptStringAnalyse(HDC, const void *, int, int, int, DWORD, int, SCRIPT_CONTROL *, SCRIPT_STATE *, const int *, SCRIPT_TABDEF *, const BYTE *, SCRIPT_STRING_ANALYSIS *)
static HRESULT WINAPI Dummy_ScriptStringXtoCP(SCRIPT_STRING_ANALYSIS, int, int *, int *)
bool SetBufferSize(int nSize)
static HRESULT WINAPI Dummy_ScriptApplyDigitSubstitution(const SCRIPT_DIGITSUBSTITUTE *, SCRIPT_CONTROL *, SCRIPT_STATE *)
HRESULT XtoCP(int nX, int *pCP, int *pnTrail)
static const int *WINAPI * _ScriptString_pcOutChars(SCRIPT_STRING_ANALYSIS)
static SCRIPT_CONTROL SCRIPT_STATE *static const void SCRIPT_CONTROL SCRIPT_STATE const int SCRIPT_TABDEF const BYTE SCRIPT_STRING_ANALYSIS *static int *static HRESULT(WINAPI *_ScriptStringXtoCP)(SCRIPT_STRING_ANALYSIS
static const SCRIPT_LOGATTR *WINAPI * _ScriptString_pLogAttr(SCRIPT_STRING_ANALYSIS)
void GetPriorItemPos(int nCP, int *pPrior)
CUniBuffer(int nInitialSize=1)
virtual void SetCheckedInternal(bool bChecked, bool bFromInput)
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual void Render(float fElapsedTime)
virtual void UpdateRects()
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
virtual BOOL ContainsPoint(POINT pt)
RiseCheckBox(RiseDialog *pDialog=NULL)
void SetChecked(bool bChecked)
ControlArray< UIComboBoxItem * > m_Items
virtual void SetTextColor(Rendering::PackedColor Color, Rendering::PackedColor DisabledColor=Rendering::ColorARGB(200, 128, 128, 128))
void * GetItemData(const WCHAR *strText)
int FindItem(const WCHAR *strText, UINT iStart=0)
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
HRESULT SetSelectedByIndex(UINT index)
int GetScrollBarWidth() const
virtual void UpdateRects()
UIComboBoxItem * GetItem(UINT index)
virtual void Render(float fElapsedTime)
void SetScrollBarWidth(int nWidth)
bool ContainsItem(const WCHAR *strText, UINT iStart=0)
UIComboBoxItem * GetSelectedItem()
void RemoveItem(UINT index)
RiseScrollBar m_ScrollBar
virtual void OnFocusOut()
HRESULT AddItem(const WCHAR *strText, void *pData)
HRESULT SetSelectedByData(void *pData)
virtual bool CanHaveFocus()
HRESULT SetSelectedByText(const WCHAR *strText)
RiseComboBox(RiseDialog *pDialog=NULL)
void SetDropHeight(UINT nHeight, UINT fHeight)
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam)
int GetSelectedIndex() const
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam)
RiseElement * GetElement(UINT iElement)
virtual void OnFocusOut()
virtual void OnMouseLeave()
void SetLocation(int x, int y)
virtual bool GetEnabled()
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
void SetHotkey(UINT nHotkey)
virtual void OnMouseEnter()
void SetUserData(void *pUserData)
virtual void Render(float fElapsedTime)
virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual bool GetVisible()
virtual bool CanHaveFocus()
HRESULT SetElement(UINT iElement, RiseElement *pElement)
virtual void UpdateRects()
void SetSize(int width, int height)
void * GetUserData() const
virtual void SetVisible(bool bVisible)
RiseControl(RiseDialog *pDialog=NULL)
virtual BOOL ContainsPoint(POINT pt)
virtual void SetEnabled(bool bEnabled)
ControlArray< RiseElement * > m_Elements
virtual void SetTextColor(Rendering::PackedColor Color)
RiseElement * GetDefaultElement(UINT nControlType, UINT iElement)
static RiseControl * s_pControlFocus
void RemoveControl(int ID)
double m_fTimeLastRefresh
void SetNextDialog(RiseDialog *pNextDialog)
HRESULT DrawPolyLine(POINT *apPoints, UINT nNumPoints, Rendering::PackedColor color)
void SendEvent(UINT nEvent, bool bTriggeredByUser, RiseControl *pControl)
RiseEditBox * GetEditBox(int ID)
Rendering::PackedColor m_colorTopLeft
void Init(RiseDialogResourceManager *pManager, bool bRegisterDialog=true)
RiseControl * GetControlAtPoint(POINT pt)
static void WINAPI SetRefreshTime(float fTime)
HRESULT InitControl(RiseControl *pControl)
RiseDialog * m_pNextDialog
HRESULT SetTexture(UINT index, LPCWSTR strFilename)
Rendering::PackedColor m_colorBottomRight
HRESULT SetDefaultElement(UINT nControlType, UINT iElement, RiseElement *pElement)
HRESULT CalcTextRect(LPCWSTR strText, RiseElement *pElement, RECT *prcDest, int nCount=-1)
Rendering::PackedColor m_colorTopRight
HRESULT AddComboBox(int ID, int x, int y, int width, int height, UINT nHotKey=0, bool bIsDefault=false, RiseComboBox **ppCreated=NULL)
UICallback m_pCallbackEvent
friend class RiseDialogResourceManager
RiseControl * m_pControlMouseOver
static double s_fTimeRefresh
void SetCaptionText(const WCHAR *pwszText)
RiseComboBox * GetComboBox(int ID)
void ClearComboBox(int ID)
HRESULT AddListBox(int ID, int x, int y, int width, int height, DWORD dwStyle=0, RiseListBox **ppCreated=NULL)
void EnableKeyboardInput(bool bEnable)
UITextureNode * GetTexture(UINT index)
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)
void EnableNonUserEvents(bool bEnable)
static RiseControl *WINAPI GetPrevControl(RiseControl *pControl)
ControlArray< RiseControl * > m_Controls
void SetSize(int width, int height)
void SetMinimized(bool bMinimized)
void ClearRadioButtonGroup(UINT nGroup)
bool MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
void OnMouseMove(POINT pt)
RiseRadioButton * GetRadioButton(int ID)
void AppendVisibleBounds(std::vector< RECT > &rectangles) const
void FocusDefaultControl()
UIFontNode * GetFont(UINT index)
RiseDialogResourceManager * m_pManager
void EnableCaption(bool bEnable)
RiseControl * GetControl(int ID)
static RiseControl *WINAPI GetNextControl(RiseControl *pControl)
HRESULT DrawText(LPCWSTR strText, RiseElement *pElement, RECT *prcDest, bool bShadow=false, int nCount=-1)
void GetLocation(POINT &Pt) const
void SetVisible(bool bVisible)
Rendering::PackedColor m_colorBottomLeft
HRESULT AddStatic(int ID, LPCWSTR strText, int x, int y, int width, int height, bool bIsDefault=false, RiseStatic **ppCreated=NULL, bool bShadow=true)
void SetCaptionHeight(int nHeight)
RiseDialog * m_pPrevDialog
static void WINAPI ClearFocus()
void SetLocation(int x, int y)
ControlArray< UIElementHolder * > m_DefaultElements
void SetBackgroundColors(Rendering::PackedColor colorAllCorners)
ControlArray< int > m_Fonts
RiseStatic * GetStatic(int ID)
int GetCaptionHeight() const
bool OnCycleFocus(bool bForward)
RiseListBox * GetListBox(int ID)
bool GetControlEnabled(int ID)
HRESULT OnRender(float fElapsedTime)
HRESULT AddEditBox(int ID, LPCWSTR strText, int x, int y, int width, int height, bool bIsDefault=false, bool bIsPassword=false, RiseEditBox **ppCreated=NULL)
ControlArray< int > m_Textures
void RequestFocus(RiseControl *pControl)
static RiseControl * s_pControlPressed
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)
void EnableMouseInput(bool bEnable)
void SetScale(float scale)
RiseCheckBox * GetCheckBox(int ID)
void InitDefaultElements()
RiseButton * GetButton(int ID)
void * m_pCallbackEventUserContext
HRESULT DrawRect(RECT *pRect, Rendering::PackedColor color)
RiseSlider * GetSlider(int ID)
HRESULT AddControl(RiseControl *pControl)
HRESULT SetFont(UINT index, LPCWSTR strFaceName, LONG height, LONG weight)
void SetCallback(UICallback pCallback, void *pUserContext=NULL)
HRESULT AddButton(int ID, LPCWSTR strText, int x, int y, int width, int height, UINT nHotkey=0, bool bIsDefault=false, RiseButton **ppCreated=NULL)
RiseDialogResourceManager * GetManager()
bool IsKeyboardInputEnabled() const
HRESULT DrawSprite(RiseElement *pElement, RECT *prcDest, float fDepth=0)
void SetControlEnabled(int ID, bool bEnabled)
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 CreateTexture(UINT index)
Rendering::RenderDevice * GetRenderer()
RiseDialogResourceManager()
void EnableKeyboardInputForAllDialogs()
Rendering::RenderSprite * m_pSprite
UITextureNode * GetTextureNode(int iIndex)
void UnregisterDialog(RiseDialog *pDialog)
UIFontNode * GetFontNode(int iIndex)
HRESULT OnCreateDevice(Rendering::RenderDevice *pd3dDevice)
bool RegisterDialog(RiseDialog *pDialog)
ControlArray< UIFontNode * > m_FontCache
int AddTexture(LPCWSTR strFilename)
Rendering::RenderStateSnapshot * m_pStateBlock
int AddFont(LPCWSTR strFaceName, LONG height, LONG weight)
ControlArray< UITextureNode * > m_TextureCache
HRESULT CreateFont(UINT index)
Rendering::RenderDevice * m_renderer
bool MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
ControlArray< RiseDialog * > m_Dialogs
Rendering::PackedColor m_SelBkColor
void DeleteSelectionText()
void SetSpacing(int nSpacing)
void SetBorderWidth(int nBorder)
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
void PasteFromClipboard()
virtual void Render(float fElapsedTime)
virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
void SetCaretColor(Rendering::PackedColor Color)
Rendering::PackedColor m_CaretColor
void SetText(LPCWSTR wszText, bool bSelected=false)
void SetSelectedBackColor(Rendering::PackedColor Color)
RiseEditBox(RiseDialog *pDialog=NULL)
void SetSelectedTextColor(Rendering::PackedColor Color)
virtual void SetTextColor(Rendering::PackedColor Color)
Rendering::PackedColor m_TextColor
virtual bool CanHaveFocus()
void SetTextFloatArray(const float *pNumbers, int nCount)
HRESULT GetTextCopy(__out_ecount(bufferCount) LPWSTR strDest, UINT bufferCount)
virtual void UpdateRects()
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam)
Rendering::PackedColor m_SelTextColor
void ParseFloatArray(float *pNumbers, int nCount)
void SetFont(UINT prmFont, Rendering::PackedColor defaultFontColor=Rendering::ColorARGB(255, 255, 255, 255), DWORD prmTextFormat=DT_CENTER|DT_VCENTER)
UIBlendColor TextureColor
void SetTexture(UINT prmTexture, RECT *prcTexture, Rendering::PackedColor defaultTextureColor=Rendering::ColorARGB(255, 255, 255, 255))
UIListBoxItem * GetItem(int nIndex)
RiseListBox(RiseDialog *pDialog=NULL)
void SetScrollBarWidth(int nWidth)
int GetScrollBarWidth() const
virtual bool CanHaveFocus()
virtual void Render(float fElapsedTime)
void SetBorder(int nBorder, int nMargin)
virtual void UpdateRects()
void RemoveItem(int nIndex)
UIListBoxItem * GetSelectedItem(int nPreviousSelected=-1)
HRESULT AddItem(const WCHAR *wszText, void *pData)
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
void SetStyle(DWORD dwStyle)
void SelectItem(int nNewIndex)
ControlArray< UIListBoxItem * > m_Items
void RemoveItemByData(void *pData)
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam)
RiseScrollBar m_ScrollBar
int GetSelectedIndex(int nPreviousSelected=-1)
HRESULT InsertItem(int nIndex, const WCHAR *wszText, void *pData)
void GetRange(int &nMin, int &nMax) const
virtual bool CanHaveFocus()
virtual void Render(float fElapsedTime)
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
void SetValue(int nValue)
virtual void UpdateRects()
virtual BOOL ContainsPoint(POINT pt)
RiseSlider(RiseDialog *pDialog=NULL)
void SetValueInternal(int nValue, bool bFromInput)
void SetRange(int nMin, int nMax)
RiseStatic(RiseDialog *pDialog=NULL)
WCHAR m_strText[MAX_TEXT]
virtual BOOL ContainsPoint(POINT pt)
HRESULT SetText(LPCWSTR strText)
virtual void Render(float fElapsedTime)
HRESULT GetTextCopy(__out_ecount(bufferCount) LPWSTR strDest, UINT bufferCount)
constexpr PackedColor ColorARGB(unsigned a, unsigned r, unsigned g, unsigned b)
void Blend(UINT iState, float fElapsedTime, float fRate=0.7f)
void Init(Rendering::PackedColor defaultColor, Rendering::PackedColor disabledColor=Rendering::ColorARGB(200, 128, 128, 128), Rendering::PackedColor hiddenColor=0)
Rendering::PackedColor States[MAX_CONTROL_STATES]
Rendering::RenderFont * font
WCHAR strFilename[MAX_PATH]
Rendering::RenderTexture * texture