Abstract base class for ILayoutAdapter.
abstract class
|
LayoutAdapter
|
with
|
<T>
|
||
implements
|
ILayoutAdapter<T>
|
Returns the alignment of the component in its layout grid cell.
public
abstract
method
|
Align
(T component)
|
||
type
|
int32
|
||
params
|
component
|
The component. | |
returns
|
0 :=
left
/
top
1 :=
center
2 :=
right
/
bottom
|
||
implements
|
ILayoutAdapter.Align
|
Updates the bounds of the given component.
public
abstract
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. | ||
implements
|
ILayoutAdapter.Bounds
|
Returns the children of the given component.
public
abstract
method
|
Children
(T parent)
|
||
type
|
IVectorConst<T>
|
||
params
|
parent
|
The parent component. | |
returns
|
|
The children. | |
implements
|
ILayoutAdapter.Children
|
Shall the component be resized along the layout axis to fill its layout grid cell?
public
abstract
method
|
Fill
(T component)
|
||
type
|
bool
|
||
params
|
component
|
The component. | |
returns
|
true
to
fill
the
grid
cell,
false
to
keep
the
component
size.
|
||
implements
|
ILayoutAdapter.Fill
|
Returns the layout grid range of the component.
public
abstract
method
|
Grid
(T component)
|
||
type
|
RangeI
|
||
params
|
component
|
The component. | |
returns
|
The layout grid range. | ||
implements
|
ILayoutAdapter.Grid
|
Shall the layout grid cell that contains the given component grow when there is space left?
public
abstract
method
|
Grow
(T component)
|
||
type
|
bool
|
||
params
|
component
|
The component. | |
returns
|
true
to
grow
when
space
is
available,
false
to
not
grow. |
||
implements
|
ILayoutAdapter.Grow
|
Is the component currently hidden?
public
abstract
method
|
Hidden
(T component)
|
||
type
|
bool
|
||
params
|
component
|
The component. | |
returns
|
true
if
hidden,
false
if
visible. |
||
implements
|
ILayoutAdapter.Hidden
|
Returns the insets of the given container.
public
abstract
method
|
Insets
(T container)
|
||
type
|
Pair<int32, int32>
|
||
params
|
container
|
The container. | |
returns
|
The insets. | ||
implements
|
ILayoutAdapter.Insets
|
Returns the margins of the given component.
public
abstract
method
|
Margin
(T component)
|
||
type
|
Pair<int32, int32>
|
||
params
|
component
|
The component. | |
returns
|
The margins. | ||
implements
|
ILayoutAdapter.Margin
|
Shall the layout grid cell that contains the given component shrink when not enough space is left?
public
abstract
method
|
Shrink
(T component)
|
||
type
|
bool
|
||
params
|
component
|
The component. | |
returns
|
true
to
shrink
when
not
enough
space
is
available,
false
to
not
shrink.
|
||
implements
|
ILayoutAdapter.Shrink
|
Returns the current pixel size of the given component.
public
abstract
method
|
SizeCurrent
(T component)
|
||
type
|
int32
|
||
params
|
component
|
The component. | |
returns
|
The pixel size. | ||
implements
|
ILayoutAdapter.SizeCurrent
|
Returns the requested size of the given component.
public
abstract
method
|
SizeRequested
(T component)
|
||
type
|
int32
|
||
params
|
component
|
The component. | |
returns
|
The requested size. | ||
implements
|
ILayoutAdapter.SizeRequested
|