#[repr(C)]pub struct _cef_box_layout_settings_t {
pub size: usize,
pub horizontal: c_int,
pub inside_border_horizontal_spacing: c_int,
pub inside_border_vertical_spacing: c_int,
pub inside_border_insets: cef_insets_t,
pub between_child_spacing: c_int,
pub main_axis_alignment: cef_axis_alignment_t,
pub cross_axis_alignment: cef_axis_alignment_t,
pub minimum_cross_axis_size: c_int,
pub default_flex: c_int,
}Expand description
Settings used when initializing a CefBoxLayout.
Fields§
§size: usizeSize of this structure.
horizontal: c_intIf true (1) the layout will be horizontal, otherwise the layout will be vertical.
inside_border_horizontal_spacing: c_intAdds additional horizontal space between the child view area and the host view border.
inside_border_vertical_spacing: c_intAdds 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: c_intAdds 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: c_intMinimum cross axis size.
default_flex: c_intDefault 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.
Trait Implementations§
Source§impl Clone for _cef_box_layout_settings_t
impl Clone for _cef_box_layout_settings_t
Source§fn clone(&self) -> _cef_box_layout_settings_t
fn clone(&self) -> _cef_box_layout_settings_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more