Layout Element#
-
type krpc_UI_LayoutElement_t#
How much space a user interface element asks a
krpc_UI_Layout_tfor.Note
A layout gives every element its minimum size first. Any space left over is shared out to bring elements up to their preferred size, and anything still left over is shared between the elements with a flexible size, in proportion to it.
-
krpc_error_t krpc_UI_LayoutElement_MinSize(krpc_connection_t connection, krpc_tuple_double_double_t *returnValue, krpc_UI_LayoutElement_t instance)#
-
krpc_error_t krpc_UI_LayoutElement_set_MinSize(krpc_connection_t connection, krpc_UI_LayoutElement_t instance, const krpc_tuple_double_double_t *value)#
The smallest size the element can be given, in pixels. A negative value in either direction leaves that direction unconstrained.
-
krpc_error_t krpc_UI_LayoutElement_PreferredSize(krpc_connection_t connection, krpc_tuple_double_double_t *returnValue, krpc_UI_LayoutElement_t instance)#
-
krpc_error_t krpc_UI_LayoutElement_set_PreferredSize(krpc_connection_t connection, krpc_UI_LayoutElement_t instance, const krpc_tuple_double_double_t *value)#
The size the element asks for, in pixels. A negative value in either direction leaves that direction unconstrained.
-
krpc_error_t krpc_UI_LayoutElement_FlexibleSize(krpc_connection_t connection, krpc_tuple_double_double_t *returnValue, krpc_UI_LayoutElement_t instance)#
-
krpc_error_t krpc_UI_LayoutElement_set_FlexibleSize(krpc_connection_t connection, krpc_UI_LayoutElement_t instance, const krpc_tuple_double_double_t *value)#
The share the element takes of the space left over once every element has its preferred size. A negative value in either direction takes no share.
-
krpc_error_t krpc_UI_LayoutElement_IgnoreLayout(krpc_connection_t connection, bool *returnValue, krpc_UI_LayoutElement_t instance)#
-
krpc_error_t krpc_UI_LayoutElement_set_IgnoreLayout(krpc_connection_t connection, krpc_UI_LayoutElement_t instance, bool value)#
Whether the layout leaves the element out and lets it be positioned by hand.
-
krpc_error_t krpc_UI_LayoutElement_MinSize(krpc_connection_t connection, krpc_tuple_double_double_t *returnValue, krpc_UI_LayoutElement_t instance)#