#[repr(C)]pub struct _cef_layout_t {
pub base: cef_base_ref_counted_t,
pub as_box_layout: Option<unsafe extern "C" fn(self_: *mut _cef_layout_t) -> *mut _cef_box_layout_t>,
pub as_fill_layout: Option<unsafe extern "C" fn(self_: *mut _cef_layout_t) -> *mut _cef_fill_layout_t>,
pub is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_layout_t) -> c_int>,
}Expand description
A Layout handles the sizing of the children of a Panel according to implementation-specific heuristics. Methods must be called on the browser process UI thread unless otherwise indicated.
NOTE: This struct is allocated DLL-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
as_box_layout: Option<unsafe extern "C" fn(self_: *mut _cef_layout_t) -> *mut _cef_box_layout_t>Returns this Layout as a BoxLayout or NULL if this is not a BoxLayout.
as_fill_layout: Option<unsafe extern "C" fn(self_: *mut _cef_layout_t) -> *mut _cef_fill_layout_t>Returns this Layout as a FillLayout or NULL if this is not a FillLayout.
is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_layout_t) -> c_int>Returns true (1) if this Layout is valid.
Trait Implementations§
Source§impl Clone for _cef_layout_t
impl Clone for _cef_layout_t
Source§fn clone(&self) -> _cef_layout_t
fn clone(&self) -> _cef_layout_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_layout_t
impl Debug for _cef_layout_t
impl Copy for _cef_layout_t
Auto Trait Implementations§
impl Freeze for _cef_layout_t
impl RefUnwindSafe for _cef_layout_t
impl Send for _cef_layout_t
impl Sync for _cef_layout_t
impl Unpin for _cef_layout_t
impl UnwindSafe for _cef_layout_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