![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cXWindow.h>
Public Types | |
| enum | P_TYPE_ { P_QTY } |
| enum | M_TYPE_ { M_QTY } |
Public Types inherited from GrayLib::cXObject | |
| enum | P_TYPE_ { P_QTY } |
| enum | M_TYPE_ { M_QTY } |
| base methods that all objects have. More... | |
Public Member Functions | |
| cXWindow (X_WNDCLASS_TYPE eXWClass, cXWindow *pParent, DLGID_t dlgid=k_DLGID_Static, UID_t uid=cUID::k_CLEAR) | |
| virtual | ~cXWindow () |
| virtual HRESULT | DisposeThis () |
| utility More... | |
| virtual bool | InitXWindow () |
| STDMETHOD_ (XOBJTID_t, get_XObjTypeId)() const | |
| X_WNDCLASS_TYPE | get_XWType () const |
| const ATOMCHAR_t * | get_XWTypeName () const |
| STDMETHOD_ (cString, get_Name)() const override | |
| virtual cXObjectPtr | get_ContainerObject () const override |
| cXDialogPtr | get_DialogParent () const |
| STDMETHOD() | s_PropGet (const cScriptableProp *pProp, cVariant &vValRet) override |
| STDMETHOD() | s_PropPut (const cScriptableProp *pProp, const cVariant &vVal) override |
| STDMETHOD() | s_Invoke (const cScriptableMethod *pMethod, const cVariant &vArgs, cVariant &vValRet) override |
| CSCRIPT_CLASS_DEF1 (XWindow, cXObject) | |
| void | s_Update (P_TYPE_ eProp) |
| virtual void | ShowWindow (SHOWWINDOW_t nCmdShow=SW_SHOW) |
| void | ShowWindowBool (bool bShow) |
| bool | IsWindowVisible (void) const noexcept |
| bool | IsWindowEnabled (void) const noexcept |
| void | EnableWindow (bool bClickable) |
| bool | IsZoomed (void) const noexcept |
| bool | IsIconic (void) const noexcept |
| bool | IsWindowOpen () const noexcept |
| bool | IsStyle (DWORD dwStyle) const noexcept |
| DWORD | get_Style (void) const noexcept |
| virtual void | put_Style (DWORD dwStyle) |
| void | ModifyStyle (DWORD dwStyleAdd, DWORD dwStyleRem=0) |
| void | ModifyStyleBool (DWORD dwStyleMod, bool bFlag) |
| bool | IsExStyle (DWORD dwStyle) const noexcept |
| void | put_ExStyle (DWORD dwStyle) |
| WINFLAG_MASK | get_Flags (void) const noexcept |
| void | put_Flags (WINFLAG_MASK uiFlags) |
| bool | HasFlags (WINFLAG_MASK uiFlags) const noexcept |
| virtual void | ModifyFlags (WINFLAG_MASK uiFlagsAdd, WINFLAG_MASK uiFlagsRem=0) |
| WINDOCKFLAG_MASK | get_DockFlags (void) const noexcept |
| void | put_DockFlags (WINDOCKFLAG_MASK dock) |
| bool | ConstrainDocking (void) |
| DLGID_t | get_DlgID (void) const noexcept |
| void | put_DlgID (DLGID_t id) |
| DLGID_t | get_HelpID () const |
| cDXSpriteElem & | get_TextureDC (void) |
| PIXELS_t | get_XPos (void) const noexcept |
| PIXELS_t | get_YPos (void) const noexcept |
| PIXELS_t | get_Width (void) const noexcept |
| PIXELS_t | get_Height (void) const noexcept |
| void | MoveWindow (PIXELS_t xParent, PIXELS_t yParent, PIXELS_t width, PIXELS_t height) |
| void | MoveWindow (const cRectI &rect) |
| const cRectI & | get_WindowRect (void) const noexcept |
| void | CvtWindowToApp (cPoint2i *pPoint) const |
| void | CvtWindowToApp (cPoint2i *pPoint, PIXELS_t x, PIXELS_t y) const |
| void | CvtAppToWindow (cPoint2i *pPoint) const |
| void | CvtAppToWindow (cPoint2i *pPoint, PIXELS_t x, PIXELS_t y) const |
| HRESULT | SetViewportWindow (cPoint2i &ptAbsolutePos) |
| void | SetScissorWindow (cPoint2i &ptAbsolutePos) |
| bool | IsPointIntersect (PIXELS_t x, PIXELS_t y) const |
| bool | IsAppIntersect (PIXELS_t x, PIXELS_t y) const |
| bool | IsCursorIntersect () const |
| void | ScaleAll (FLOAT fScale) |
| void | MoveToFront () |
| bool | MoveToFront (cXWindow *pChildControl) |
| virtual HRESULT | InitDeviceObjects (cDXDevice *pDXDev) |
| virtual HRESULT | DeleteDeviceObjects () |
| virtual HRESULT | OnResetDeviceX () |
| virtual HRESULT | OnLostDeviceX () |
| virtual void | Render () |
| void | RenderChildren () |
| virtual void | SetWidthHeight (PIXELS_t Width, PIXELS_t Height) |
| virtual void | SetXYPos (PIXELS_t X, PIXELS_t Y) |
| void | SetXYCenter () |
| void | GetSizeParent (SIZE &sizeparent) const |
| virtual bool | OnRender (void) |
| virtual bool | OnMouseDown (MBUTTON_TYPE uButton, PIXELS_t x, PIXELS_t y) |
| virtual bool | OnMouseWheel (MBUTTON_TYPE uButton, PIXELS_t x, PIXELS_t y, short nWheelChange) |
| virtual bool | OnMouseMove (MBUTTON_TYPE uButton, PIXELS_t x, PIXELS_t y) |
| virtual bool | OnMouseUp (MBUTTON_TYPE uButton, PIXELS_t x, PIXELS_t y) |
| virtual bool | OnMouseDblClk (MBUTTON_TYPE uButton, PIXELS_t x, PIXELS_t y) |
| virtual bool | OnKeyDown (VK_TYPE vKey) |
| virtual bool | OnKeyUp (VK_TYPE vKey) |
| virtual bool | OnChar (VK_TYPE vKey) |
| virtual bool | OnCommand (DLGID_t id, cXWindow *pCtrl, WORD wNotify) |
| virtual DWORD | OnNCHitTest (int x, int y) const |
| virtual bool | OnDrop (cXWindow *pDragged, cXWindow *pConsumer, bool bTest) |
| virtual void | OnCancelMode () |
| virtual void | OnShowWindow (bool bShow, UINT nShowWindowCode) |
| virtual bool | OnKeyFocus (bool bActive) |
| virtual bool | OnHelp () const |
| virtual void | OnScroll (int iPos, cXWindow *pCtrl) |
| virtual void | OnContextMenu (cXMenu *pMenu, cXWindow *pCtrl) |
| virtual void | OnSize (UINT uType, PIXELS_t cx, PIXELS_t cy) |
| void | FrameMoveTick (TIMESYS_t timeNow) |
| virtual void | onTick (void) |
| virtual bool | CanTakeMouseInput () const |
| int | get_ChildQty () const noexcept |
| cXWindowPtr | EnumChild (ITERATE_t index) const |
| bool | IsChildTypeOpen (X_WNDCLASS_TYPE xClassType, DLGID_t id=k_DLGID_ANY) const |
| cXWindowPtr | FindChildByType (X_WNDCLASS_TYPE XClassType, DLGID_t id=k_DLGID_ANY) const |
| cXWindowPtr | GetDlgItem (DLGID_t id, int iDescendChildren=0) const |
| int | AddChildWindow (cXWindow *pChild, bool bAddBottom=false, SHOWWINDOW_t nShowCmd=SW_SHOWNORMAL) |
| void | GetWidthHeightForChildren (OUT cRectI &rect, PIXELS_t dx, PIXELS_t dy) |
| bool | IsMyDescendant (const cXWindow *pChild) const |
| virtual cXWindowPtr | GetConsumingControl (int x, int y, cXWindow *pIgnore=nullptr) const |
| bool | DetachFromParent () |
| void | EnableWindowRange (DLGID_t idStart, DLGID_t idEnd, bool bEnable) |
| bool | SendCommand (WORD wNotify) const |
| cXWindowPtr | get_ParentWindow (void) const noexcept |
| virtual bool | LoadTextureFromFile (const FILECHAR_t *File, TEXTURELOAD_t uLoadFlags=TEXTURELOAD_NOP) |
| void | LoadTextureBlank () |
| bool | LoadTextureStyleElem (XSTYLE_ELEM_TYPE eStyleElem, TEXTURELOAD_t uLoadFlags=TEXTURELOAD_NOP) |
| bool | LoadTextureIcon (SPRITEID_t iIconIndex) |
| COLOR_ELEM_t | get_BackAlpha () const noexcept |
| virtual void | put_BackAlpha (COLOR_ELEM_t bAlpha) |
| D3DCOLOR | get_BackColor () const |
| void | put_BackColor (D3DCOLOR color) |
| D3DCOLOR | get_NormalColor () const |
| void | put_NormalColor (D3DCOLOR color) |
| void | put_ToolTip (const GChar_t *pstrToolTip) |
| virtual cString | GetToolTip (cXWindow *pCtrl, int x, int y) const |
| virtual void | put_Text (const GChar_t *pszText) |
| virtual cString | get_Text () const |
| virtual void | put_FontPtr (const cFontBase *pFont) |
| bool | SetKeyFocus () |
| void | put_TickTimer (TIMESYSD_t dwTimeInc) |
Public Member Functions inherited from GrayLib::cXObject | |
| virtual cScriptableInterfaceDefPtr _stdcall | get_ScriptInterfaceDef () const |
| cXObject (UID_t nUID=cUID::k_CLEAR, cXObjDef *pBaseDef=nullptr) | |
| virtual | ~cXObject () |
| virtual bool | isValidCheck () const noexcept override |
| STDMETHOD_ (XOBJTID_t, get_XObjTypeId)() const | |
| const ATOMCHAR_t * | get_XObjTypeName () const |
| virtual int | get_BaseRefCount () const |
| bool | isValidUID () const noexcept |
| UID_t | get_UIDValue () const noexcept |
| UID_t | get_HashCode () const noexcept |
| STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept override | |
| void | put_UIDValuePrivate (UID_t dwIndex) |
| STDMETHOD_ (void, put_UIDValue)(UID_t dwIndex) | |
| STDMETHOD_ (cString, get_Name)() const override | |
| STDMETHOD() | put_Name (cString sName) |
| STDMETHOD_ (cString, get_NameDeco)() const | |
| STDMETHOD_ (cStringA, get_SymName)() const override | |
| STDMETHOD() | put_SymName (cAtomRef aSymName, bool bOverwrite=false) |
| HRESULT | put_SymName2 (cAtomRef aSymName) |
| cXObjDef * | get_BaseDef () const |
| virtual bool | put_BaseDef (cXObjDef *pDef) |
| STDMETHOD_ (cAtomRef, get_BaseSymNameA)() const | |
| shortcut for symbolic name for get_BaseDef() More... | |
| virtual cVariant | get_ContainerVar () const |
| STDMETHOD() | put_ContainerVar (const cVariant &vVal) |
| bool | isMyContainer (const cXObject *pObjParent) const |
| void | InitObjState () |
| XObjState_TYPE | get_ObjState () const noexcept |
| bool | put_ObjState (XObjState_TYPE eObjState) |
| bool | isObjStateLoading () const noexcept |
| bool | isObjStateLoading1 () const noexcept |
| bool | isObjStateLoaded () const noexcept |
| bool | isObjStateModified () const noexcept |
| bool | isObjStateDisposed () const noexcept |
| bool | isObjStateBad () const noexcept |
| STDMETHOD() | SetObjStateLoaded () |
| extra cleanup at the end of the load. More... | |
| void | SetObjStateBad () |
| void | SetObjStateModified () |
| void | ClearObjStateModified () |
| const cTimeInt & | get_TimeSaved () const noexcept |
| void | put_TimeSaved (cTimeInt timeSaved) |
| void | UpdateTimeSaved () |
| virtual cVarTuplePtr | FindTagA (cAtomRef aTagName) const |
| extra Properties/Tags More... | |
| cVarTuplePtr | FindTag (const ATOMCHAR_t *pszTagName) const |
| void | s_WritePropsTags (IScriptableSetter &Update) |
| STDMETHOD() | s_PropPut (const cScriptableProp *pProp, const cVariant &vVal) override |
| STDMETHOD() | s_PropGet (const cScriptableProp *pProp, OUT cVariant &vValRet) override |
| STDMETHOD() | s_Invoke (const cScriptableMethod *pMethod, const cVariant &vArgs, OUT cVariant &vValRet) override |
| STDMETHOD() | s_GetByName (const ATOMCHAR_t *pszPropName, OUT cVariant &rvValRet) override |
| STDMETHOD() | s_TagPut (const ATOMCHAR_t *pszTagName, const cVariant &vValSet) |
| STDMETHOD() | s_TagGet (const ATOMCHAR_t *pszTagName, OUT cVariant &vValRet) |
| STDMETHOD() | s_LoadProps (IScriptableEnumerator &rProps) |
| STDMETHOD() | s_EventSinkAdd (cXObjDef *pXObjDef, bool bRemove=false) |
| cStringA | s_PropGetDumpStr (const cScriptableProp *pProp, XOBJ_DUMP_MASK_t uFlags=0) |
| Enumerate methods and props. reflection/introspection. More... | |
| HRESULT | s_DumpKeys (cStreamOutput &rout, XOBJ_DUMP_MASK_t uFlags, const cScriptableProp *const *ppProps, ITERATE_t iQty) |
| HRESULT | s_DumpHelp (cStreamOutput &rout, const cVariant &vArgs) |
| virtual XOBJ_WEIRD_t | IsWeird () const |
| virtual XOBJ_WEIRD_t | FixWeird () |
| virtual size_t | GetHeapStats (OUT ITERATE_t &iAllocCount) const |
| allocs for all children. does NOT include sizeof(*this) More... | |
| IUNKNOWN_DISAMBIG_R (cThreadLockableRef) | |
| STDMETHOD() | QueryInterface (const IID &riid, void **ppvObject) override |
Public Member Functions inherited from GrayLib::cScriptableObj | |
| virtual | ~cScriptableObj () |
| STDMETHOD_ (cScriptableInterfaceDefPtr, get_ScriptInterfaceDef)() const | |
| STDMETHOD() | s_PropGet (const cScriptableProp *pProp, OUT cVariant &vValRet) override |
| STDMETHOD() | s_PropPut (const cScriptableProp *pProp, const cVariant &vVal) override |
| STDMETHOD() | s_Invoke (const cScriptableMethod *pMethod, const cVariant &vArgs, OUT cVariant &vValRet) override |
| const cScriptableProp * | FindPropStr (const ATOMCHAR_t *pszPropName) const |
| const cScriptableMethod * | FindMethodStr (const ATOMCHAR_t *pszPropName) const |
| HRESULT | s_InvokeKey (const ATOMCHAR_t *pszMethodKey, const cVariant &vArgs, OUT cVariant &vValRet) |
| STDMETHOD_ (cVariant, s_Exec)(const ATOMCHAR_t *pszMethodKey | |
| STDMETHOD() | s_GetEnum (ITERATE_t i, OUT cStringA &rsPropName, OUT cVariant &rvValRet) override |
| STDMETHOD() | s_GetByName (const ATOMCHAR_t *pszPropName, OUT cVariant &rvValRet) override |
| STDMETHOD() | s_Put (const ATOMCHAR_t *pszPropName, const cVariant &vValSet) override |
| void | s_LoadPropsCommandLine (cAppArgs &args) |
| HRESULT | s_LoadPropsBase (IScriptableEnumerator &rProps) |
| HRESULT | s_LoadPropVar (const ATOMCHAR_t *pszPropName, const cVariant &vVal) |
| HRESULT | s_WritePropNULL (IScriptableSetter &s, const cScriptableProp *pProp) |
| HRESULT | s_WriteProp (IScriptableSetter &s, const cScriptableProp *pProp) |
| HRESULT | s_WritePropsClass (IScriptableSetter &s, const cScriptableInterfaceDef *pClass) |
| HRESULT | s_WritePropsArray (IScriptableSetter &s, const cScriptableProp *pProps, IScriptableObj *pDefaultSkip=nullptr) |
| STDMETHOD() | s_WriteProps (IScriptableSetter &s) |
| STDMETHOD_ (cVariant, s_Get)(const ATOMCHAR_t *pszPropName) | |
| cVariant | s_Get (const cScriptableProp &rProp) |
| STDMETHOD_ (cString, s_GetStr)(const ATOMCHAR_t *pszPropName) | |
| STDMETHOD_ (float, s_GetFloat)(const ATOMCHAR_t *pszPropName) | |
| STDMETHOD() | GetTypeInfoCount (UINT *pctinfo) |
Public Member Functions inherited from Gray::cThreadLockableRef | |
| cThreadLockableRef (int iStaticRefCount=0) noexcept | |
| virtual | ~cThreadLockableRef () |
| virtual void | onThreadLockFail (TIMESYSD_t dwWaitMS) |
Public Member Functions inherited from Gray::cRefBase | |
| cRefBase (int iRefCount=0) noexcept | |
| virtual | ~cRefBase () |
| int | get_RefCount () const noexcept |
| HASHCODE_t | get_HashCode () const noexcept |
| STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept | |
| virtual void | onFinalRelease () |
| bool | isValidObj () const noexcept |
| STDMETHOD_ (ULONG, AddRef)(void) override | |
| STDMETHOD_ (ULONG, Release)(void) override | |
| STDMETHOD() | QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override |
| void | IncRefCount () |
| void | DecRefCount () |
| bool | isStaticConstruct () const noexcept |
| void | StaticConstruct () |
| void | StaticDestruct () |
| bool | isDestructing () noexcept |
| void | SetDestructing () |
Public Member Functions inherited from Gray::cThreadLockStub | |
| THREADID_t | get_ThreadLockOwner () const |
Public Member Functions inherited from Gray::CObject | |
| virtual | ~CObject () |
| virtual void | AssertValid () const |
| < memory allocation and structure definitions are valid. More... | |
| virtual void | Serialize (cArchive &a) |
Public Member Functions inherited from Gray::cHeapObject | |
| cHeapObject () | |
| virtual | ~cHeapObject () |
| bool | IsValidInsideN (INT_PTR index) const |
| bool | IsValidInsidePtr (void const *pTest) const |
| virtual size_t | GetHeapStatsThis (OUT ITERATE_t &iAllocCount) const |
Public Member Functions inherited from GrayLib::IInputWnd | |
| virtual bool | OnKeyDown (VK_TYPE nVKey, int lParam) |
| virtual bool | OnKeyUp (VK_TYPE nVKey, int lParam) |
| virtual bool | OnKeyChar (wchar_t nAscii, int lParam) |
| virtual long | OnCommand (int wParam, int lParam) |
Public Member Functions inherited from GrayLib::IInputMouse | |
| virtual bool | OnMouseDblClick (MBUTTON_TYPE uButton, PIXELS_t x, PIXELS_t y) |
| virtual void | OnMouseExit () |
Public Member Functions inherited from Gray3D::cDXBase | |
| cDXBase (cDXDevice *pDXDev=nullptr) noexcept | |
| virtual | ~cDXBase () |
| ID3DDevice * | get_D3DDev () const noexcept |
| bool | isInitDevice () const noexcept |
| bool | isLostDevice () const noexcept |
| UNITTEST_FRIEND (cDXBase) | |
Static Public Member Functions | |
| static const ATOMCHAR_t * | GetXWTypeName (X_WNDCLASS_TYPE eXWClass) |
Static Public Member Functions inherited from GrayLib::cScriptableObj | |
| static HRESULT GRAYCALL | CopyAllProps (IScriptableSetter *pObjDest, IScriptableEnumerator &rProps, int iStart=0) |
Public Attributes | |
| const X_WNDCLASS_TYPE | m_eXWClass |
| cColorDX | m_NormalColor |
| foreground color. More... | |
Public Attributes inherited from GrayLib::cXObject | |
| cVarMap | m_TagMap |
| attach extra tags here. (e.g. properties that don't apply to all instances. ASSUME NO OVERLAP with defined props.) More... | |
Public Attributes inherited from GrayLib::cScriptableObj | |
| const cVariant & | vArgs = cVariant::k_VarNULL) |
Public Attributes inherited from Gray3D::cDXBase | |
| cDXDevice * | m_pDXDev |
| What device is this attached to (or should be)? InitDeviceObjects() was called and DeleteDeviceObjects() was not. More... | |
| cIUnkPtr< ID3DDevice > | m_pD3DDev |
Static Public Attributes | |
| static cScriptableProp | sm_Props [P_QTY+1] |
| static cScriptableMethod | sm_Methods [M_QTY+1] |
| static const ATOMCHAR_t * | k_XWindowClassNames [X_WNDCLASS_QTY+1] |
Static Public Attributes inherited from GrayLib::cXObject | |
| static cScriptableInterfaceDef | sm_ScriptInterfaceDef |
| static cScriptableProp | sm_Props [P_QTY+1] |
| static cScriptableMethod | sm_Methods [M_QTY+1] |
| static ITERATE_t | sm_iLoadingCount = 0 |
| are we loading ? LoadXObject() reentrant ? More... | |
Protected Attributes | |
| cXWindowPtr | m_pParentWnd |
| Set when someone calls AddChildWindow(pMe) for me on my parent. More... | |
| cRectI | m_WindowRect |
| Current coords relative to my m_pParentWnd. More... | |
| cDXSpriteElem | m_TexElem |
| Background texture if we are using one. defines back color also. More... | |
| cArrayRef< cXWindow > | m_aChildWindows |
| z ordered array of children. [0]=draw on top. [qty]=draw on bottom More... | |
Protected Attributes inherited from GrayLib::cXObject | |
| CHEAPOBJECT_IMPL | |
| cRefPtr< cXObjDef > | m_pBaseDef |
| This XObject is based on a template of other XObject/XObjDef. overloads it's props via m_TagMap. More... | |
Friends | |
| class | cXDesktopMgr |
| class | cXDialog |
Additional Inherited Members | |
Protected Member Functions inherited from Gray::cLockableBase | |
| cLockableBase () noexcept | |
| ~cLockableBase () | |
| LONG | get_LockCount () const |
| bool | isLocked () const |
| void | IncLockCount () |
| LONG | DecLockCount () |
| void | Lock () |
| LONG | Unlock () |
Protected Member Functions inherited from Gray::cHeapObject | |
| const void * | get_HeapPtr () const noexcept override |
| Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More... | |
base class for all GUI windows. Similar to MFC CWnd
| GrayGUI::cXWindow::cXWindow | ( | X_WNDCLASS_TYPE | eXWClass, |
| cXWindow * | pParent, | ||
| DLGID_t | dlgid = k_DLGID_Static, |
||
| UID_t | uid = cUID::k_CLEAR |
||
| ) |
|
virtual |
| int GrayGUI::cXWindow::AddChildWindow | ( | cXWindow * | pChild, |
| bool | bAddBottom = false, |
||
| SHOWWINDOW_t | nShowCmd = SW_SHOWNORMAL |
||
| ) |
|
virtual |
Reimplemented in GrayGUI::cXDialog.
| bool GrayGUI::cXWindow::ConstrainDocking | ( | void | ) |
| GrayGUI::cXWindow::CSCRIPT_CLASS_DEF1 | ( | XWindow | , |
| cXObject | |||
| ) |
| void GrayGUI::cXWindow::CvtAppToWindow | ( | cPoint2i * | pPoint | ) | const |
| void GrayGUI::cXWindow::CvtWindowToApp | ( | cPoint2i * | pPoint | ) | const |
traverse up my parents to calculate my app client units position.
|
virtual |
Reimplemented from Gray3D::cDXBase.
Reimplemented in GrayGUI::cXWindowText.
| bool GrayGUI::cXWindow::DetachFromParent | ( | ) |
detach from my parent window
|
virtual |
utility
detach my children etc.
Attempt to force it's removal from the world.
Destroy this object even though there may be references to it. indicate to anyone who looks that this is a deleted object ? Pre-destructor cleanup things can be done since virtuals don't work in destructors.
Reimplemented from GrayLib::cXObject.
Reimplemented in GrayGUI::cXStaticMultiScroll, GrayGUI::cXToolTip, GrayGUI::cXMenu, GrayGUI::cXDialog, GrayGUI::cXDTBase, GrayGUI::cXTableBox, GrayGUI::cXSpinCounter, GrayGUI::cXListBox, and GrayGUI::cXComboBox.
|
inline |
| cXWindowPtr GrayGUI::cXWindow::EnumChild | ( | ITERATE_t | index | ) | const |
| cXWindowPtr GrayGUI::cXWindow::FindChildByType | ( | X_WNDCLASS_TYPE | XClassType, |
| DLGID_t | id = k_DLGID_ANY |
||
| ) | const |
| void GrayGUI::cXWindow::FrameMoveTick | ( | TIMESYS_t | timeNow | ) |
|
inlinenoexcept |
0xff = fully opaque
|
inline |
|
inlinenoexcept |
|
inlineoverridevirtual |
Reimplemented from GrayLib::cXObject.
| cXDialogPtr GrayGUI::cXWindow::get_DialogParent | ( | ) | const |
Walk up the parent tree to get to the top dialog. (if there is one)
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
| DLGID_t GrayGUI::cXWindow::get_HelpID | ( | ) | const |
|
inline |
|
inlinenoexcept |
Equiv to _WIN32 GetParent()
|
inlinenoexcept |
ex. WS_VISIBLE
|
inlinevirtual |
Reimplemented in GrayGUI::cXDialog, GrayGUI::cXStatic, GrayGUI::cXButton, GrayGUI::cXToolTip, GrayGUI::cXGroupBox, and GrayGUI::cXEditText.
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
virtual |
| cXWindowPtr GrayGUI::cXWindow::GetDlgItem | ( | DLGID_t | id, |
| int | iDescendChildren = 0 |
||
| ) | const |
| void GrayGUI::cXWindow::GetSizeParent | ( | SIZE & | sizeparent | ) | const |
overload this to check to dynamic tool tip text.
Reimplemented in GrayGUI::cXDialog, GrayGUI::cXSpinCounter, and GrayGUI::cXScrollBar.
|
static |
Use the cScriptableInterfaceDef stuff ?
|
inlinenoexcept |
Reimplemented from Gray3D::cDXBase.
Reimplemented in GrayGUI::cXWindowText.
|
virtual |
Reimplemented in GrayGUI::cXDialog, GrayGUI::cXDTBase, GrayGUI::cXSpinCounter, GrayGUI::cXScrollBar, GrayGUI::cXProgressBar, GrayGUI::cXListItemHeader, GrayGUI::cXListBox, GrayGUI::cXColorGrid, GrayGUI::cXCheckBox, GrayGUI::cXToolTip, GrayGUI::cXTableItem, GrayGUI::cXTableBox, GrayGUI::cXGroupBox, GrayGUI::cXComboBox, and GrayGUI::cXButton.
| bool GrayGUI::cXWindow::IsChildTypeOpen | ( | X_WNDCLASS_TYPE | xClassType, |
| DLGID_t | id = k_DLGID_ANY |
||
| ) | const |
| bool GrayGUI::cXWindow::IsCursorIntersect | ( | ) | const |
|
inlinenoexcept |
ex. WS_EX_RIGHT
|
inlinenoexcept |
| bool GrayGUI::cXWindow::IsMyDescendant | ( | const cXWindow * | pChild | ) | const |
|
inlinenoexcept |
ex. WS_VISIBLE
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
| void GrayGUI::cXWindow::LoadTextureBlank | ( | ) |
|
virtual |
Load the background texture for the window from a file.
Reimplemented in GrayGUI::cXDialog.
| bool GrayGUI::cXWindow::LoadTextureIcon | ( | SPRITEID_t | iIconIndex | ) |
| bool GrayGUI::cXWindow::LoadTextureStyleElem | ( | XSTYLE_ELEM_TYPE | eStyleElem, |
| TEXTURELOAD_t | uLoadFlags = TEXTURELOAD_NOP |
||
| ) |
|
inlinevirtual |
Reimplemented in GrayGUI::cXDialog.
|
inline |
ex. WS_VISIBLE
|
inline |
ex. WS_VISIBLE
| void GrayGUI::cXWindow::MoveToFront | ( | ) |
| bool GrayGUI::cXWindow::MoveToFront | ( | cXWindow * | pChildControl | ) |
| void GrayGUI::cXWindow::MoveWindow | ( | const cRectI & | rect | ) |
| void GrayGUI::cXWindow::MoveWindow | ( | PIXELS_t | xParent, |
| PIXELS_t | yParent, | ||
| PIXELS_t | width, | ||
| PIXELS_t | height | ||
| ) |
|
inlinevirtual |
|
virtual |
Reimplemented in GrayGUI::cXListBox, and GrayGUI::cXEditText.
Reimplemented in GrayGUI::cXMenu, GrayGUI::cXDialog, GrayGUI::cXTableItem, GrayGUI::cXTableBox, GrayGUI::cXStaticMultiScroll, GrayGUI::cXSpinCounter, GrayGUI::cXScrollBar, GrayGUI::cXListItemHeader, GrayGUI::cXListBox, GrayGUI::cXGroupBox, GrayGUI::cXEditText, GrayGUI::cXComboBox, and GrayGUI::cXCheckListBox.
Reimplemented in GrayGUI::cXDialog, GrayGUI::cXTableItem, GrayGUI::cXListBox, and GrayGUI::cXEditText.
Reimplemented in GrayGUI::cXDialog.
|
virtual |
|
virtual |
Reimplemented in GrayGUI::cXScrollBar, and GrayGUI::cXEditText.
|
virtual |
|
virtual |
Reimplemented in GrayGUI::cXEditText.
|
virtual |
Reimplemented from Gray3D::cDXBase.
Reimplemented in GrayGUI::cXWindowText, GrayGUI::cXImage, and GrayGUI::cXColorGrid.
|
virtual |
Reimplemented in GrayGUI::cXDialog, GrayGUI::cXScrollBar, GrayGUI::cXEditText, and GrayGUI::cXButton.
|
virtual |
Reimplemented from GrayLib::IInputMouse.
Reimplemented in GrayGUI::cXDialog, GrayGUI::cXDTBase, GrayGUI::cXScrollBar, GrayGUI::cXProgressBar, GrayGUI::cXImage, GrayGUI::cXGroupBox, GrayGUI::cXEditText, GrayGUI::cXComboBox, GrayGUI::cXCheckBox, GrayGUI::cXButton, GrayGUI::cXToolTip, GrayGUI::cXMenu, GrayGUI::cXStatic, and GrayGUI::cXColorGrid.
|
virtual |
Reimplemented from GrayLib::IInputMouse.
Reimplemented in GrayGUI::cXDialog, GrayGUI::cXDTBase, GrayGUI::cXScrollBar, GrayGUI::cXEditText, GrayGUI::cXButton, and GrayGUI::cXMenu.
|
virtual |
Reimplemented from GrayLib::IInputMouse.
Reimplemented in GrayGUI::cXDialog, GrayGUI::cXScrollBar, GrayGUI::cXProgressBar, GrayGUI::cXEditText, GrayGUI::cXCheckBox, and GrayGUI::cXButton.
|
virtual |
Reimplemented from GrayLib::IInputMouse.
Reimplemented in GrayGUI::cXSpinCounter, GrayGUI::cXScrollBar, GrayGUI::cXListBox, and GrayGUI::cXStaticMultiScroll.
|
virtual |
Reimplemented in GrayGUI::cXButton, and GrayGUI::cXDialog.
|
virtual |
Just render the texture here. (default operation)
Reimplemented in GrayGUI::cXToolTip, GrayGUI::cXDialog, GrayGUI::cXGroupBox, GrayGUI::cXStaticMulti, GrayGUI::cXStatic, GrayGUI::cXProgressBar, GrayGUI::cXEditText, GrayGUI::cXColorGrid, and GrayGUI::cXButton.
|
virtual |
Reimplemented from Gray3D::cDXBase.
Reimplemented in GrayGUI::cXWindowText, and GrayGUI::cXDialog.
|
virtual |
Reimplemented in GrayGUI::cXStaticMultiScroll, GrayGUI::cXListBox, and GrayGUI::cXGroupBox.
|
virtual |
|
virtual |
Reimplemented in GrayGUI::cXProgressBar, and GrayGUI::cXButton.
|
inlinevirtual |
0xff = fully opaque = COLOR_ALPHA_OPAQUE
Reimplemented in GrayGUI::cXDialog, GrayGUI::cXListBox, and GrayGUI::cXGroupBox.
|
inline |
|
inline |
|
inline |
|
inline |
ex. WS_EX_RIGHT
|
inline |
|
inlinevirtual |
override this when appropriate
Reimplemented in GrayGUI::cXWindowText.
|
inline |
|
inlinevirtual |
ex. WS_VISIBLE
Reimplemented in GrayGUI::cXDialog, GrayGUI::cXStatic, and GrayGUI::cXScrollBar.
|
inlinevirtual |
override this when appropriate
Reimplemented in GrayGUI::cXStaticMultiScroll, GrayGUI::cXStaticMulti, GrayGUI::cXStatic, GrayGUI::cXEditText, GrayGUI::cXToolTip, GrayGUI::cXDialog, GrayGUI::cXGroupBox, and GrayGUI::cXButton.
| void GrayGUI::cXWindow::put_TickTimer | ( | TIMESYSD_t | dwTimeInc | ) |
| void GrayGUI::cXWindow::put_ToolTip | ( | const GChar_t * | pstrToolTip | ) |
|
virtual |
Reimplemented in GrayGUI::cXDialog.
| void GrayGUI::cXWindow::RenderChildren | ( | ) |
|
override |
|
override |
|
override |
| void GrayGUI::cXWindow::s_Update | ( | P_TYPE_ | eProp | ) |
| void GrayGUI::cXWindow::ScaleAll | ( | FLOAT | fScale | ) |
| bool GrayGUI::cXWindow::SendCommand | ( | WORD | wNotify | ) | const |
| bool GrayGUI::cXWindow::SetKeyFocus | ( | ) |
| void GrayGUI::cXWindow::SetScissorWindow | ( | cPoint2i & | ptAbsolutePos | ) |
< Set this window as the scissor rect.
use a square clipper
Reimplemented in GrayGUI::cXDialog.
| void GrayGUI::cXWindow::SetXYCenter | ( | ) |
DS_CENTER
Reimplemented in GrayGUI::cXDialog.
|
virtual |
This should be called on every window (shown or not) When init is complete!
Reimplemented in GrayGUI::cXDialog.
| void GrayGUI::cXWindow::ShowWindowBool | ( | bool | bShow | ) |
|
inlineoverride |
|
inline |
|
friend |
|
friend |
|
static |
z ordered array of children. [0]=draw on top. [qty]=draw on bottom
| const X_WNDCLASS_TYPE GrayGUI::cXWindow::m_eXWClass |
| cColorDX GrayGUI::cXWindow::m_NormalColor |
foreground color.
|
protected |
Set when someone calls AddChildWindow(pMe) for me on my parent.
|
protected |
Background texture if we are using one. defines back color also.
|
protected |
Current coords relative to my m_pParentWnd.
|
static |
|
static |