Skip to main content

cef_box_layout_settings_t

Type Alias cef_box_layout_settings_t 

Source
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: usize

Size of this structure.

§horizontal: i32

If true (1) the layout will be horizontal, otherwise the layout will be vertical.

§inside_border_horizontal_spacing: i32

Adds additional horizontal space between the child view area and the host view border.

§inside_border_vertical_spacing: i32

Adds additional vertical space between the child view area and the host view border.

§inside_border_insets: _cef_insets_t

Adds additional space around the child view area.

§between_child_spacing: i32

Adds additional space between child views.

§main_axis_alignment: cef_axis_alignment_t

Specifies where along the main axis the child views should be laid out.

§cross_axis_alignment: cef_axis_alignment_t

Specifies where along the cross axis the child views should be laid out.

§minimum_cross_axis_size: i32

Minimum cross axis size.

§default_flex: i32

Default 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.