#ifndef VCZH_PRESENTATION_ELEMENTS_GUIGRAPHICSELEMENT
#define VCZH_PRESENTATION_ELEMENTS_GUIGRAPHICSELEMENT
#include "GuiGraphicsResourceManager.h"
#include "../Resources/GuiResource.h"
#include "../Resources/GuiDocument.h"
namespace
{
namespace
{
namespace
{
enum
class
{
,
,
,
};
struct
{
=
::
;
int
=
0
;
int
=
0
;
bool
(
const
&
)
const
{
return
==
.
&&
==
.
&&
==
.
; }
bool
(
const
&
)
const
{
return
!(*
this
); }
};
class
:
public
<
>
{
DEFINE_GUI_GRAPHICS_ELEMENT(GuiFocusRectangleElement, L"FocusRectangle")
friend
class
<
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"FocusRectangle"
,
false
)); }
return
elementType
; }
protected
:
();
public
:
};
class
:
public
<
>
{
DEFINE_GUI_GRAPHICS_ELEMENT(GuiSolidBorderElement, L"SolidBorder")
friend
class
<
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"SolidBorder"
,
false
)); }
return
elementType
; }
protected
:
;
;
();
public
:
();
void
(
);
();
void
(
);
};
class
:
public
<
>
{
DEFINE_GUI_GRAPHICS_ELEMENT(Gui3DBorderElement, L"3DBorder")
friend
class
<
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"3DBorder"
,
false
)); }
return
elementType
; }
protected
:
;
;
();
public
:
();
void
(
);
();
void
(
);
void
(
,
);
};
class
:
public
<
>
{
DEFINE_GUI_GRAPHICS_ELEMENT(Gui3DSplitterElement, L"3DSplitter")
friend
class
<
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"3DSplitter"
,
false
)); }
return
elementType
; }
public
:
enum
{
,
,
};
protected
:
;
;
;
();
public
:
();
void
(
);
();
void
(
);
void
(
,
);
();
void
(
);
};
class
GuiSolidBackgroundElement
:
public
<
GuiSolidBackgroundElement
>
{
DEFINE_GUI_GRAPHICS_ELEMENT(GuiSolidBackgroundElement, L"SolidBackground")
friend
class
<
GuiSolidBackgroundElement
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"SolidBackground"
,
false
)); }
return
elementType
; }
protected
:
;
;
GuiSolidBackgroundElement
();
public
:
();
void
(
);
();
void
(
);
};
class
GuiGradientBackgroundElement
:
public
<
GuiGradientBackgroundElement
>
{
DEFINE_GUI_GRAPHICS_ELEMENT(GuiGradientBackgroundElement, L"GradientBackground")
friend
class
<
GuiGradientBackgroundElement
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"GradientBackground"
,
false
)); }
return
elementType
; }
public
:
enum
{
,
,
,
,
};
protected
:
;
;
;
;
GuiGradientBackgroundElement
();
public
:
();
void
(
);
();
void
(
);
void
(
,
);
();
void
(
);
();
void
(
);
};
class
:
public
<
>
{
DEFINE_GUI_GRAPHICS_ELEMENT(GuiInnerShadowElement, L"InnerShadow")
friend
class
<
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"InnerShadow"
,
false
)); }
return
elementType
; }
protected
:
;
=
0
;
();
public
:
();
void
(
);
();
void
(
);
};
class
:
public
<
>
{
DEFINE_GUI_GRAPHICS_ELEMENT(GuiSolidLabelElement, L"SolidLabel");
friend
class
<
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"SolidLabel"
,
false
)); }
return
elementType
; };
protected
:
;
;
;
;
;
bool
;
bool
;
bool
;
bool
wrapLineHeightCalculation
;
();
public
:
();
void
(
);
const
&
();
void
(
const
&
);
const
&
();
void
(
const
&
);
();
();
void
(
);
void
(
);
void
(
,
);
bool
();
void
(
bool
);
bool
();
void
(
bool
);
bool
();
void
(
bool
);
bool
GetWrapLineHeightCalculation
();
void
SetWrapLineHeightCalculation
(
bool
);
};
class
:
public
<
>
{
DEFINE_GUI_GRAPHICS_ELEMENT(GuiImageFrameElement, L"ImageFrame");
friend
class
<
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"ImageFrame"
,
false
)); }
return
elementType
; };
protected
:
<
>
;
;
;
;
bool
;
bool
;
();
public
:
<
>
();
();
void
(
<
>
);
void
(
);
void
(
<
>
,
);
();
();
void
(
);
void
(
);
void
(
,
);
bool
();
void
(
bool
);
bool
();
void
(
bool
);
};
class
:
public
<
>
{
DEFINE_GUI_GRAPHICS_ELEMENT(GuiPolygonElement, L"Polygon");
friend
class
<
>;
public
:
static
() {
static
= -
1
;
if
(
elementType
== -
1
) {
auto
=
GetGuiGraphicsResourceManager
();
do
{
if
(!(
manager
!=
nullptr
))
throw
(
L"SetGuiGraphicsResourceManager must be called before registering element types."
);}
while
(
0
);
elementType
=
manager
->
(
(
L"Polygon"
,
false
)); }
return
elementType
; };
typedef
collections
::
<
>
;
protected
:
;
;
;
;
();
public
:
();
void
(
);
const
&
(
);
();
void
(
const
*
,
);
const
&
();
void
(
const
&
);
();
void
(
);
();
void
(
);
};
}
}
}
#endif