pub type cef_box_layout_settings_t = _cef_box_layout_settings_t;Expand description
Settings used when initializing a CefBoxLayout.
Aliased Type§
#[repr(C)]pub struct cef_box_layout_settings_t {
pub size: usize,
pub horizontal: i32,
pub inside_border_horizontal_spacing: i32,
pub inside_border_vertical_spacing: i32,
pub inside_border_insets: _cef_insets_t,
pub between_child_spacing: i32,
pub main_axis_alignment: cef_axis_alignment_t,
pub cross_axis_alignment: cef_axis_alignment_t,
pub minimum_cross_axis_size: i32,
pub default_flex: i32,
}Fields§
§size: usizeSize of this structure.
horizontal: i32If true (1) the layout will be horizontal, otherwise the layout will be vertical.
inside_border_horizontal_spacing: i32Adds additional horizontal space between the child view area and the host view border.
inside_border_vertical_spacing: i32Adds additional vertical space between the child view area and the host view border.
inside_border_insets: _cef_insets_tAdds additional space around the child view area.
between_child_spacing: i32Adds additional space between child views.
main_axis_alignment: cef_axis_alignment_tSpecifies where along the main axis the child views should be laid out.
cross_axis_alignment: cef_axis_alignment_tSpecifies where along the cross axis the child views should be laid out.
minimum_cross_axis_size: i32Minimum cross axis size.
default_flex: i32Default flex for views when none is specified via CefBoxLayout methods. Using the preferred size as the basis, free space along the main axis is distributed to views in the ratio of their flex weights. Similarly, if the views will overflow the parent, space is subtracted in these ratios. A flex of 0 means this view is not resized. Flex values must not be negative.