One ILayoutAdapter object per layout axis is used by the LayoutGrid class.
interface
|
ILayoutAdapter
|
with
|
<T>
|
||
base of
|
LayoutAdapter
|
Returns the alignment of the component in its layout grid cell.
method
|
Align
(T component)
|
||
type
|
int32
|
||
params
|
component
|
The component. | |
returns
|
0 :=
left
/
top
1 :=
center
2 :=
right
/
bottom
|
Updates the bounds of the given component.
method
|
Bounds
(T component,
int32 position,
int32 screenSize,
int32 scrollSize)
|
||
params
|
component
|
The component. | |
position
|
The pixel position. | ||
screenSize
|
The visible screen size, in pixels. | ||
scrollSize
|
The scroll size, in pixels. Will always be equal to or greater than screenSize. |
Returns the children of the given component.
method
|
Children
(T parent)
|
||
type
|
IVectorConst<T>
|
||
params
|
parent
|
The parent component. | |
returns
|
|
The children. |
Shall the component be resized along the layout axis to fill its layout grid cell?
method
|
Fill
(T component)
|
||
type
|
bool
|
||
params
|
component
|
The component. | |
returns
|
true
to
fill
the
grid
cell,
false
to
keep
the
component
size.
|
Returns the layout grid range of the component.
method
|
Grid
(T component)
|
||
type
|
RangeI
|
||
params
|
component
|
The component. | |
returns
|
The layout grid range. |
Shall the layout grid cell that contains the given component grow when there is space left?
method
|
Grow
(T component)
|
||
type
|
bool
|
||
params
|
component
|
The component. | |
returns
|
true
to
grow
when
space
is
available,
false
to
not
grow. |
Is the component currently hidden?
method
|
Hidden
(T component)
|
||
type
|
bool
|
||
params
|
component
|
The component. | |
returns
|
true
if
hidden,
false
if
visible. |
Returns the insets of the given container.
method
|
Insets
(T container)
|
||
type
|
Pair<int32, int32>
|
||
params
|
container
|
The container. | |
returns
|
The insets. |
Returns the margins of the given component.
method
|
Margin
(T component)
|
||
type
|
Pair<int32, int32>
|
||
params
|
component
|
The component. | |
returns
|
The margins. |
Shall the layout grid cell that contains the given component shrink when not enough space is left?
method
|
Shrink
(T component)
|
||
type
|
bool
|
||
params
|
component
|
The component. | |
returns
|
true
to
shrink
when
not
enough
space
is
available,
false
to
not
shrink.
|
Returns the current pixel size of the given component.
method
|
SizeCurrent
(T component)
|
||
type
|
int32
|
||
params
|
component
|
The component. | |
returns
|
The pixel size. |
Returns the requested size of the given component.
method
|
SizeRequested
(T component)
|
||
type
|
int32
|
||
params
|
component
|
The component. | |
returns
|
The requested size. |