#include "GuiGraphicsSpecializedComposition.h"
namespace
{
namespace
{
namespace
{
GuiSideAlignedComposition
::
GuiSideAlignedComposition
()
:direction(
)
,maxLength(
10
)
,maxRatio(
1.0
)
{
}
GuiSideAlignedComposition
::
~
GuiSideAlignedComposition
()
{
}
GuiSideAlignedComposition
::
GuiSideAlignedComposition
::
()
{
return
;
}
void
GuiSideAlignedComposition
::
(
)
{
=
;
InvokeOnCompositionStateChanged
();
}
GuiSideAlignedComposition
::
()
{
return
;
}
void
GuiSideAlignedComposition
::
(
)
{
if
(
<
0
)
=
0
;
=
;
InvokeOnCompositionStateChanged
();
}
double
GuiSideAlignedComposition
::
()
{
return
;
}
void
GuiSideAlignedComposition
::
(
double
)
{
=
<
0
?
0
:
>
1
?
1
:
;
InvokeOnCompositionStateChanged
();
}
bool
GuiSideAlignedComposition
::
()
{
return
false
;
}
GuiSideAlignedComposition
::
()
{
;
*
=
();
if
(
parent
)
{
=
parent
->
();
= (
)(
bounds
.
()*
);
= (
)(
bounds
.
()*
);
if
(
w
>
)
w
=
;
if
(
h
>
)
h
=
;
switch
(
)
{
case
:
{
bounds
.
=
bounds
.
+
w
;
}
break
;
case
:
{
bounds
.
=
bounds
.
+
h
;
}
break
;
case
:
{
bounds
.
=
bounds
.
-
w
;
}
break
;
case
:
{
bounds
.
=
bounds
.
-
h
;
}
break
;
}
result
bounds
;
}
(
result
);
return
result
;
}
GuiPartialViewComposition
::
GuiPartialViewComposition
()
:wRatio(
0.0
)
,wPageSize(
1.0
)
,hRatio(
0.0
)
,hPageSize(
1.0
)
{
}
GuiPartialViewComposition
::
~
GuiPartialViewComposition
()
{
}
double
GuiPartialViewComposition
::
()
{
return
;
}
double
GuiPartialViewComposition
::
()
{
return
;
}
double
GuiPartialViewComposition
::
()
{
return
;
}
double
GuiPartialViewComposition
::
()
{
return
;
}
void
GuiPartialViewComposition
::
(
double
)
{
=
;
InvokeOnCompositionStateChanged
();
}
void
GuiPartialViewComposition
::
(
double
)
{
=
;
InvokeOnCompositionStateChanged
();
}
void
GuiPartialViewComposition
::
(
double
)
{
=
;
InvokeOnCompositionStateChanged
();
}
void
GuiPartialViewComposition
::
(
double
)
{
=
;
InvokeOnCompositionStateChanged
();
}
bool
GuiPartialViewComposition
::
()
{
return
false
;
}
GuiPartialViewComposition
::
()
{
;
*
=
();
if
(
parent
)
{
=
parent
->
();
=
bounds
.
();
=
bounds
.
();
= (
)(
*
w
);
= (
)(
*
h
);
=
.
-
pw
;
if
(
ow
<
0
)
ow
=
0
;
=
.
-
ph
;
if
(
oh
<
0
)
oh
=
0
;
w
-=
ow
;
h
-=
oh
;
pw
+=
ow
;
ph
+=
oh
;
result
(
((
)(
*
w
), (
)(
*
h
)),
(
pw
,
ph
));
}
(
result
);
return
result
;
}
}
}
}