Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayGUI::cXStyleRenderer Struct Reference

#include <cXStyleSheet.h>

Inheritance diagram for GrayGUI::cXStyleRenderer:
Gray::cSingletonStatic< cXStyleRenderer >

Public Member Functions

 cXStyleRenderer ()
 
 ~cXStyleRenderer ()
 
SPRITEMAP_t get_XStyle (void) const noexcept
 
void put_XStyle (SPRITEMAP_t XStyle)
 
HRESULT UpdateXStyleQty ()
 
HRESULT DrawFrameP (const cPoint2i &ptAbsPos, int x, int y, XSTYLE_ELEM_TYPE eStyleElem)
 
HRESULT DrawFrameR (const cPoint2i &ptAbsPos, int x, int y, XSTYLE_ELEM_TYPE eStyleElem, SIZE szFramePart)
 
HRESULT DrawFrameTX (const cPoint2i &ptAbsPos, int xs, int xe, int ys, XSTYLE_ELEM_TYPE eStyleElem)
 
HRESULT DrawFrameTY (const cPoint2i &ptAbsPos, int ys, int ye, int x, XSTYLE_ELEM_TYPE eStyleElem)
 
void DrawFrame (const cPoint2i &ptAbsPos, int iWidth, int iHeight, XSTYLE_ELEM_TYPE eStyleElem)
 
HRESULT DrawFrameClient (const cPoint2i &ptAbsPos, cRectI &rectClientArea, XSTYLE_ELEM_TYPE eStyleElem)
 
HRESULT DrawFrameH3 (const cPoint2i &ptAbsPos, int xs, int xe, int ys, int ye, XSTYLE_ELEM_TYPE eStyleElem)
 
HRESULT DrawFrameV3 (const cPoint2i &ptAbsPos, int sx, int ex, int sy, int ey, XSTYLE_ELEM_TYPE eStyleElem)
 

Public Attributes

SPRITEMAP_t m_iXStyleQty
 amount of available styles. dynamically detected how many there are. More...
 
SPRITEMAP_t m_eXStyle
 current loaded style. More...
 
cRefPtr< cXStyleSheetm_pXStyleSheet
 current loaded style info. More...
 

Static Public Attributes

static int sm_iQtyDraws
 

Additional Inherited Members

- Static Public Member Functions inherited from Gray::cSingletonStatic< cXStyleRenderer >
static bool isSingleCreated () noexcept
 
static cXStyleRenderer * get_SingleU () noexcept
 
static cXStyleRenderer * get_Single ()
 
static TYPE2 *__stdcall get_SingleCast ()
 
static cXStyleRenderer & I () noexcept
 
- Protected Member Functions inherited from Gray::cSingletonStatic< cXStyleRenderer >
 cSingletonStatic (cXStyleRenderer *pObject) noexcept
 
virtual ~cSingletonStatic () noexcept
 
- Static Protected Attributes inherited from Gray::cSingletonStatic< cXStyleRenderer >
static cXStyleRenderer * sm_pThe
 pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More...
 

Constructor & Destructor Documentation

◆ cXStyleRenderer()

GrayGUI::cXStyleRenderer::cXStyleRenderer ( )

◆ ~cXStyleRenderer()

GrayGUI::cXStyleRenderer::~cXStyleRenderer ( )

Member Function Documentation

◆ DrawFrame()

void GrayGUI::cXStyleRenderer::DrawFrame ( const cPoint2i ptAbsPos,
int  iWidth,
int  iHeight,
XSTYLE_ELEM_TYPE  eStyleElem 
)

◆ DrawFrameClient()

HRESULT GrayGUI::cXStyleRenderer::DrawFrameClient ( const cPoint2i ptAbsPos,
cRectI rectClientArea,
XSTYLE_ELEM_TYPE  eStyleElem 
)

◆ DrawFrameH3()

HRESULT GrayGUI::cXStyleRenderer::DrawFrameH3 ( const cPoint2i ptAbsPos,
int  xs,
int  xe,
int  ys,
int  ye,
XSTYLE_ELEM_TYPE  eStyleElem 
)

◆ DrawFrameP()

HRESULT GrayGUI::cXStyleRenderer::DrawFrameP ( const cPoint2i ptAbsPos,
int  x,
int  y,
XSTYLE_ELEM_TYPE  eStyleElem 
)

◆ DrawFrameR()

HRESULT GrayGUI::cXStyleRenderer::DrawFrameR ( const cPoint2i ptAbsPos,
int  x,
int  y,
XSTYLE_ELEM_TYPE  eStyleElem,
SIZE  szFramePart 
)

◆ DrawFrameTX()

HRESULT GrayGUI::cXStyleRenderer::DrawFrameTX ( const cPoint2i ptAbsPos,
int  xs,
int  xe,
int  ys,
XSTYLE_ELEM_TYPE  eStyleElem 
)

◆ DrawFrameTY()

HRESULT GrayGUI::cXStyleRenderer::DrawFrameTY ( const cPoint2i ptAbsPos,
int  ys,
int  ye,
int  x,
XSTYLE_ELEM_TYPE  eStyleElem 
)

◆ DrawFrameV3()

HRESULT GrayGUI::cXStyleRenderer::DrawFrameV3 ( const cPoint2i ptAbsPos,
int  sx,
int  ex,
int  sy,
int  ey,
XSTYLE_ELEM_TYPE  eStyleElem 
)

Same of DrawFrameH3 but works for 3-part verticals draw the 3 parts to form a caption or button or text box. Left, Mid, Right

◆ get_XStyle()

SPRITEMAP_t GrayGUI::cXStyleRenderer::get_XStyle ( void  ) const
inlinenoexcept

What is the current style?

◆ put_XStyle()

void GrayGUI::cXStyleRenderer::put_XStyle ( SPRITEMAP_t  XStyle)

◆ UpdateXStyleQty()

HRESULT GrayGUI::cXStyleRenderer::UpdateXStyleQty ( )

Member Data Documentation

◆ m_eXStyle

SPRITEMAP_t GrayGUI::cXStyleRenderer::m_eXStyle

current loaded style.

◆ m_iXStyleQty

SPRITEMAP_t GrayGUI::cXStyleRenderer::m_iXStyleQty

amount of available styles. dynamically detected how many there are.

◆ m_pXStyleSheet

cRefPtr<cXStyleSheet> GrayGUI::cXStyleRenderer::m_pXStyleSheet

current loaded style info.

◆ sm_iQtyDraws

int GrayGUI::cXStyleRenderer::sm_iQtyDraws
static

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