Layout#
-
type krpc_UI_Layout_t#
Arranges the elements of a panel automatically, so that they do not have to be positioned one by one. See
krpc_UI_Panel_AddHorizontalLayout(),krpc_UI_Panel_AddVerticalLayout()andkrpc_UI_Panel_AddGridLayout().-
KRPC_CLASS_UI_LAYOUT#
The service and class ids of the class, for
krpc_KRPC_Type_ClassTypeById().
-
krpc_error_t krpc_UI_Layout_Spacing(krpc_connection_t connection, float *returnValue, krpc_UI_Layout_t instance)#
-
krpc_error_t krpc_UI_Layout_set_Spacing(krpc_connection_t connection, krpc_UI_Layout_t instance, float value)#
The gap left between the elements, in pixels. A grid layout uses it in both directions.
-
krpc_error_t krpc_UI_Layout_Padding(krpc_connection_t connection, krpc_UI_Padding_t *returnValue, krpc_UI_Layout_t instance)#
-
krpc_error_t krpc_UI_Layout_set_Padding(krpc_connection_t connection, krpc_UI_Layout_t instance, const krpc_UI_Padding_t *value)#
The gap left inside the edges of the panel.
-
krpc_error_t krpc_UI_Layout_ChildAlignment(krpc_connection_t connection, krpc_UI_TextAnchor_t *returnValue, krpc_UI_Layout_t instance)#
-
krpc_error_t krpc_UI_Layout_set_ChildAlignment(krpc_connection_t connection, krpc_UI_Layout_t instance, krpc_UI_TextAnchor_t value)#
Where the elements are placed within the space the layout has to fill.
-
krpc_error_t krpc_UI_Layout_CellSize(krpc_connection_t connection, krpc_tuple_double_double_t *returnValue, krpc_UI_Layout_t instance)#
-
krpc_error_t krpc_UI_Layout_set_CellSize(krpc_connection_t connection, krpc_UI_Layout_t instance, const krpc_tuple_double_double_t *value)#
The size of each cell of a grid layout, in pixels.
Note
Only applies to a grid layout. Throws an exception for the other layouts, whose elements are sized individually using their layout elements.
-
krpc_error_t krpc_UI_Layout_Constraint(krpc_connection_t connection, krpc_UI_GridConstraint_t *returnValue, krpc_UI_Layout_t instance)#
-
krpc_error_t krpc_UI_Layout_set_Constraint(krpc_connection_t connection, krpc_UI_Layout_t instance, krpc_UI_GridConstraint_t value)#
What fixes the shape of a grid layout.
Note
Only applies to a grid layout. Throws an exception for the other layouts.
-
krpc_error_t krpc_UI_Layout_ConstraintCount(krpc_connection_t connection, int32_t *returnValue, krpc_UI_Layout_t instance)#
-
krpc_error_t krpc_UI_Layout_set_ConstraintCount(krpc_connection_t connection, krpc_UI_Layout_t instance, int32_t value)#
The number of columns or rows that
krpc_UI_Layout_Constraint()fixes, ignored when the constraint isKRPC_UI_GRIDCONSTRAINT_FLEXIBLE.Note
Only applies to a grid layout. Throws an exception for the other layouts.
-
KRPC_CLASS_UI_LAYOUT#
-
type krpc_UI_Padding_t#
The gap left inside each edge of a layout, in whole pixels.
Note
See
krpc_UI_Layout_Padding(). .. macro:: KRPC_STRUCT_UI_PADDINGThe service and structure ids of the structure, for
krpc_KRPC_Type_StructTypeById().-
int32_t left#
The gap inside the left edge.
-
KRPC_FIELD_UI_PADDING_LEFT#
The position of the field, for
krpc_KRPC_Expression_GetFieldByIndex().
-
KRPC_FIELD_UI_PADDING_LEFT#
-
int32_t right#
The gap inside the right edge.
-
KRPC_FIELD_UI_PADDING_RIGHT#
The position of the field, for
krpc_KRPC_Expression_GetFieldByIndex().
-
KRPC_FIELD_UI_PADDING_RIGHT#
-
int32_t left#
-
type krpc_UI_GridConstraint_t#
What fixes the shape of a grid layout.
-
KRPC_ENUMERATION_UI_GRIDCONSTRAINT#
The service and enumeration ids of the enumeration, for
krpc_KRPC_Type_EnumerationTypeById()andkrpc_KRPC_Expression_ConstantEnumById().
-
KRPC_UI_GRIDCONSTRAINT_FLEXIBLE#
Fit as many columns and rows as the size of the panel allows.
-
KRPC_UI_GRIDCONSTRAINT_FIXEDCOLUMNCOUNT#
Use a fixed number of columns, and as many rows as are needed.
-
KRPC_UI_GRIDCONSTRAINT_FIXEDROWCOUNT#
Use a fixed number of rows, and as many columns as are needed.
-
KRPC_ENUMERATION_UI_GRIDCONSTRAINT#