#[non_exhaustive]#[repr(u32)]pub enum cef_axis_alignment_t {
CEF_AXIS_ALIGNMENT_START = 0,
CEF_AXIS_ALIGNMENT_CENTER = 1,
CEF_AXIS_ALIGNMENT_END = 2,
CEF_AXIS_ALIGNMENT_STRETCH = 3,
CEF_AXIS_ALIGNMENT_NUM_VALUES = 4,
}Expand description
Specifies where along the axis the CefBoxLayout child views should be laid out. Should be kept in sync with Chromium’s views::LayoutAlignment type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CEF_AXIS_ALIGNMENT_START = 0
Child views will be left/top-aligned.
CEF_AXIS_ALIGNMENT_CENTER = 1
Child views will be center-aligned.
CEF_AXIS_ALIGNMENT_END = 2
Child views will be right/bottom-aligned.
CEF_AXIS_ALIGNMENT_STRETCH = 3
Child views will be stretched to fit.
CEF_AXIS_ALIGNMENT_NUM_VALUES = 4
Child views will be stretched to fit.
Trait Implementations§
Source§impl Clone for cef_axis_alignment_t
impl Clone for cef_axis_alignment_t
Source§fn clone(&self) -> cef_axis_alignment_t
fn clone(&self) -> cef_axis_alignment_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for cef_axis_alignment_t
impl Debug for cef_axis_alignment_t
Source§impl Hash for cef_axis_alignment_t
impl Hash for cef_axis_alignment_t
Source§impl PartialEq for cef_axis_alignment_t
impl PartialEq for cef_axis_alignment_t
impl Copy for cef_axis_alignment_t
impl Eq for cef_axis_alignment_t
impl StructuralPartialEq for cef_axis_alignment_t
Auto Trait Implementations§
impl Freeze for cef_axis_alignment_t
impl RefUnwindSafe for cef_axis_alignment_t
impl Send for cef_axis_alignment_t
impl Sync for cef_axis_alignment_t
impl Unpin for cef_axis_alignment_t
impl UnwindSafe for cef_axis_alignment_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more