_cef_overlay_controller_t

Struct _cef_overlay_controller_t 

Source
#[repr(C)]
pub struct _cef_overlay_controller_t {
Show 20 fields pub base: cef_base_ref_counted_t, pub is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> c_int>, pub is_same: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, that: *mut _cef_overlay_controller_t) -> c_int>, pub get_contents_view: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> *mut _cef_view_t>, pub get_window: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> *mut _cef_window_t>, pub get_docking_mode: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_docking_mode_t>, pub destroy: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t)>, pub set_bounds: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, bounds: *const cef_rect_t)>, pub get_bounds: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_rect_t>, pub get_bounds_in_screen: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_rect_t>, pub set_size: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, size: *const cef_size_t)>, pub get_size: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_size_t>, pub set_position: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, position: *const cef_point_t)>, pub get_position: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_point_t>, pub set_insets: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, insets: *const cef_insets_t)>, pub get_insets: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_insets_t>, pub size_to_preferred_size: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t)>, pub set_visible: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, visible: c_int)>, pub is_visible: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> c_int>, pub is_drawn: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> c_int>,
}
Expand description

Controller for an overlay that contains a contents View added via cef_window_t::AddOverlayView. Methods exposed by this controller should be called in preference to functions of the same name exposed by the contents View unless otherwise indicated. 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_t

Base structure.

§is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> c_int>

Returns true (1) if this object is valid.

§is_same: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, that: *mut _cef_overlay_controller_t) -> c_int>

Returns true (1) if this object is the same as |that| object.

§get_contents_view: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> *mut _cef_view_t>

Returns the contents View for this overlay.

§get_window: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> *mut _cef_window_t>

Returns the top-level Window hosting this overlay. Use this function instead of calling get_window() on the contents View.

§get_docking_mode: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_docking_mode_t>

Returns the docking mode for this overlay.

§destroy: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t)>

Destroy this overlay.

§set_bounds: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, bounds: *const cef_rect_t)>

Sets the bounds (size and position) of this overlay. This will set the bounds of the contents View to match and trigger a re-layout if necessary. |bounds| is in parent coordinates and any insets configured on this overlay will be ignored. Use this function only for overlays created with a docking mode value of CEF_DOCKING_MODE_CUSTOM. With other docking modes modify the insets of this overlay and/or layout of the contents View and call size_to_preferred_size() instead to calculate the new size and re- position the overlay if necessary.

§get_bounds: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_rect_t>

Returns the bounds (size and position) of this overlay in parent coordinates.

§get_bounds_in_screen: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_rect_t>

Returns the bounds (size and position) of this overlay in DIP screen coordinates.

§set_size: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, size: *const cef_size_t)>

Sets the size of this overlay without changing the position. This will set the size of the contents View to match and trigger a re-layout if necessary. |size| is in parent coordinates and any insets configured on this overlay will be ignored. Use this function only for overlays created with a docking mode value of CEF_DOCKING_MODE_CUSTOM. With other docking modes modify the insets of this overlay and/or layout of the contents View and call size_to_preferred_size() instead to calculate the new size and re-position the overlay if necessary.

§get_size: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_size_t>

Returns the size of this overlay in parent coordinates.

§set_position: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, position: *const cef_point_t)>

Sets the position of this overlay without changing the size. |position| is in parent coordinates and any insets configured on this overlay will be ignored. Use this function only for overlays created with a docking mode value of CEF_DOCKING_MODE_CUSTOM. With other docking modes modify the insets of this overlay and/or layout of the contents View and call size_to_preferred_size() instead to calculate the new size and re-position the overlay if necessary.

§get_position: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_point_t>

Returns the position of this overlay in parent coordinates.

§set_insets: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, insets: *const cef_insets_t)>

Sets the insets for this overlay. |insets| is in parent coordinates. Use this function only for overlays created with a docking mode value other than CEF_DOCKING_MODE_CUSTOM.

§get_insets: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_insets_t>

Returns the insets for this overlay in parent coordinates.

§size_to_preferred_size: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t)>

Size this overlay to its preferred size and trigger a re-layout if necessary. The position of overlays created with a docking mode value of CEF_DOCKING_MODE_CUSTOM will not be modified by calling this function. With other docking modes this function may re-position the overlay if necessary to accommodate the new size and any insets configured on the contents View.

§set_visible: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, visible: c_int)>

Sets whether this overlay is visible. Overlays are hidden by default. If this overlay is hidden then it and any child Views will not be drawn and, if any of those Views currently have focus, then focus will also be cleared. Painting is scheduled as needed.

§is_visible: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> c_int>

Returns whether this overlay is visible. A View may be visible but still not drawn in a Window if any parent Views are hidden. Call is_drawn() to determine whether this overlay and all parent Views are visible and will be drawn.

§is_drawn: Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> c_int>

Returns whether this overlay is visible and drawn in a Window. A View is drawn if it and all parent Views are visible. To determine if the containing Window is visible to the user on-screen call is_visible() on the Window.

Trait Implementations§

Source§

impl Clone for _cef_overlay_controller_t

Source§

fn clone(&self) -> _cef_overlay_controller_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for _cef_overlay_controller_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for _cef_overlay_controller_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.