pub struct Window(/* private fields */);Expand description
See _cef_window_t for more documentation.
Trait Implementations§
Source§impl ConvertParam<*mut _cef_window_t> for &Window
impl ConvertParam<*mut _cef_window_t> for &Window
fn into_raw(self) -> *mut _cef_window_t
Source§impl ConvertParam<*mut _cef_window_t> for &mut Window
impl ConvertParam<*mut _cef_window_t> for &mut Window
fn into_raw(self) -> *mut _cef_window_t
Source§impl ConvertReturnValue<Window> for *mut _cef_window_t
impl ConvertReturnValue<Window> for *mut _cef_window_t
fn wrap_result(self) -> Window
Source§impl ImplPanel for Window
impl ImplPanel for Window
Source§fn set_to_fill_layout(&self) -> Option<FillLayout>
fn set_to_fill_layout(&self) -> Option<FillLayout>
See
_cef_panel_t::set_to_fill_layout for more documentation.Source§fn set_to_box_layout(
&self,
settings: Option<&BoxLayoutSettings>,
) -> Option<BoxLayout>
fn set_to_box_layout( &self, settings: Option<&BoxLayoutSettings>, ) -> Option<BoxLayout>
See
_cef_panel_t::set_to_box_layout for more documentation.Source§fn get_layout(&self) -> Option<Layout>
fn get_layout(&self) -> Option<Layout>
See
_cef_panel_t::get_layout for more documentation.Source§fn layout(&self)
fn layout(&self)
See
_cef_panel_t::layout for more documentation.Source§fn add_child_view(&self, view: Option<&mut View>)
fn add_child_view(&self, view: Option<&mut View>)
See
_cef_panel_t::add_child_view for more documentation.Source§fn add_child_view_at(&self, view: Option<&mut View>, index: c_int)
fn add_child_view_at(&self, view: Option<&mut View>, index: c_int)
See
_cef_panel_t::add_child_view_at for more documentation.Source§fn reorder_child_view(&self, view: Option<&mut View>, index: c_int)
fn reorder_child_view(&self, view: Option<&mut View>, index: c_int)
See
_cef_panel_t::reorder_child_view for more documentation.Source§fn remove_child_view(&self, view: Option<&mut View>)
fn remove_child_view(&self, view: Option<&mut View>)
See
_cef_panel_t::remove_child_view for more documentation.Source§fn remove_all_child_views(&self)
fn remove_all_child_views(&self)
See
_cef_panel_t::remove_all_child_views for more documentation.Source§fn child_view_count(&self) -> usize
fn child_view_count(&self) -> usize
See
_cef_panel_t::get_child_view_count for more documentation.Source§fn child_view_at(&self, index: c_int) -> Option<View>
fn child_view_at(&self, index: c_int) -> Option<View>
See
_cef_panel_t::get_child_view_at for more documentation.fn get_raw(&self) -> *mut _cef_panel_t
Source§impl ImplView for Window
impl ImplView for Window
Source§fn as_browser_view(&self) -> Option<BrowserView>
fn as_browser_view(&self) -> Option<BrowserView>
See
_cef_view_t::as_browser_view for more documentation.See
_cef_view_t::as_button for more documentation.Source§fn as_scroll_view(&self) -> Option<ScrollView>
fn as_scroll_view(&self) -> Option<ScrollView>
See
_cef_view_t::as_scroll_view for more documentation.Source§fn as_textfield(&self) -> Option<Textfield>
fn as_textfield(&self) -> Option<Textfield>
See
_cef_view_t::as_textfield for more documentation.Source§fn type_string(&self) -> CefStringUserfree
fn type_string(&self) -> CefStringUserfree
See
_cef_view_t::get_type_string for more documentation.Source§fn to_string(&self, include_children: c_int) -> CefStringUserfree
fn to_string(&self, include_children: c_int) -> CefStringUserfree
See
_cef_view_t::to_string for more documentation.Source§fn is_valid(&self) -> c_int
fn is_valid(&self) -> c_int
See
_cef_view_t::is_valid for more documentation.Source§fn is_attached(&self) -> c_int
fn is_attached(&self) -> c_int
See
_cef_view_t::is_attached for more documentation.Source§fn is_same(&self, that: Option<&mut View>) -> c_int
fn is_same(&self, that: Option<&mut View>) -> c_int
See
_cef_view_t::is_same for more documentation.Source§fn delegate(&self) -> Option<ViewDelegate>
fn delegate(&self) -> Option<ViewDelegate>
See
_cef_view_t::get_delegate for more documentation.Source§fn id(&self) -> c_int
fn id(&self) -> c_int
See
_cef_view_t::get_id for more documentation.Source§fn set_id(&self, id: c_int)
fn set_id(&self, id: c_int)
See
_cef_view_t::set_id for more documentation.Source§fn group_id(&self) -> c_int
fn group_id(&self) -> c_int
See
_cef_view_t::get_group_id for more documentation.Source§fn set_group_id(&self, group_id: c_int)
fn set_group_id(&self, group_id: c_int)
See
_cef_view_t::set_group_id for more documentation.Source§fn parent_view(&self) -> Option<View>
fn parent_view(&self) -> Option<View>
See
_cef_view_t::get_parent_view for more documentation.Source§fn view_for_id(&self, id: c_int) -> Option<View>
fn view_for_id(&self, id: c_int) -> Option<View>
See
_cef_view_t::get_view_for_id for more documentation.Source§fn set_bounds(&self, bounds: Option<&Rect>)
fn set_bounds(&self, bounds: Option<&Rect>)
See
_cef_view_t::set_bounds for more documentation.Source§fn bounds(&self) -> Rect
fn bounds(&self) -> Rect
See
_cef_view_t::get_bounds for more documentation.Source§fn bounds_in_screen(&self) -> Rect
fn bounds_in_screen(&self) -> Rect
See
_cef_view_t::get_bounds_in_screen for more documentation.Source§fn size(&self) -> Size
fn size(&self) -> Size
See
_cef_view_t::get_size for more documentation.Source§fn set_position(&self, position: Option<&Point>)
fn set_position(&self, position: Option<&Point>)
See
_cef_view_t::set_position for more documentation.Source§fn position(&self) -> Point
fn position(&self) -> Point
See
_cef_view_t::get_position for more documentation.Source§fn set_insets(&self, insets: Option<&Insets>)
fn set_insets(&self, insets: Option<&Insets>)
See
_cef_view_t::set_insets for more documentation.Source§fn insets(&self) -> Insets
fn insets(&self) -> Insets
See
_cef_view_t::get_insets for more documentation.Source§fn preferred_size(&self) -> Size
fn preferred_size(&self) -> Size
See
_cef_view_t::get_preferred_size for more documentation.Source§fn size_to_preferred_size(&self)
fn size_to_preferred_size(&self)
See
_cef_view_t::size_to_preferred_size for more documentation.Source§fn minimum_size(&self) -> Size
fn minimum_size(&self) -> Size
See
_cef_view_t::get_minimum_size for more documentation.Source§fn maximum_size(&self) -> Size
fn maximum_size(&self) -> Size
See
_cef_view_t::get_maximum_size for more documentation.Source§fn height_for_width(&self, width: c_int) -> c_int
fn height_for_width(&self, width: c_int) -> c_int
See
_cef_view_t::get_height_for_width for more documentation.Source§fn invalidate_layout(&self)
fn invalidate_layout(&self)
See
_cef_view_t::invalidate_layout for more documentation.Source§fn set_visible(&self, visible: c_int)
fn set_visible(&self, visible: c_int)
See
_cef_view_t::set_visible for more documentation.Source§fn is_visible(&self) -> c_int
fn is_visible(&self) -> c_int
See
_cef_view_t::is_visible for more documentation.Source§fn is_drawn(&self) -> c_int
fn is_drawn(&self) -> c_int
See
_cef_view_t::is_drawn for more documentation.Source§fn set_enabled(&self, enabled: c_int)
fn set_enabled(&self, enabled: c_int)
See
_cef_view_t::set_enabled for more documentation.Source§fn is_enabled(&self) -> c_int
fn is_enabled(&self) -> c_int
See
_cef_view_t::is_enabled for more documentation.Source§fn set_focusable(&self, focusable: c_int)
fn set_focusable(&self, focusable: c_int)
See
_cef_view_t::set_focusable for more documentation.Source§fn is_focusable(&self) -> c_int
fn is_focusable(&self) -> c_int
See
_cef_view_t::is_focusable for more documentation.Source§fn is_accessibility_focusable(&self) -> c_int
fn is_accessibility_focusable(&self) -> c_int
See
_cef_view_t::is_accessibility_focusable for more documentation.Source§fn has_focus(&self) -> c_int
fn has_focus(&self) -> c_int
See
_cef_view_t::has_focus for more documentation.Source§fn request_focus(&self)
fn request_focus(&self)
See
_cef_view_t::request_focus for more documentation.Source§fn set_background_color(&self, color: u32)
fn set_background_color(&self, color: u32)
See
_cef_view_t::set_background_color for more documentation.Source§fn background_color(&self) -> cef_color_t
fn background_color(&self) -> cef_color_t
See
_cef_view_t::get_background_color for more documentation.Source§fn theme_color(&self, color_id: c_int) -> cef_color_t
fn theme_color(&self, color_id: c_int) -> cef_color_t
See
_cef_view_t::get_theme_color for more documentation.Source§fn convert_point_to_screen(&self, point: Option<&mut Point>) -> c_int
fn convert_point_to_screen(&self, point: Option<&mut Point>) -> c_int
See
_cef_view_t::convert_point_to_screen for more documentation.Source§fn convert_point_from_screen(&self, point: Option<&mut Point>) -> c_int
fn convert_point_from_screen(&self, point: Option<&mut Point>) -> c_int
See
_cef_view_t::convert_point_from_screen for more documentation.Source§fn convert_point_to_window(&self, point: Option<&mut Point>) -> c_int
fn convert_point_to_window(&self, point: Option<&mut Point>) -> c_int
See
_cef_view_t::convert_point_to_window for more documentation.Source§fn convert_point_from_window(&self, point: Option<&mut Point>) -> c_int
fn convert_point_from_window(&self, point: Option<&mut Point>) -> c_int
See
_cef_view_t::convert_point_from_window for more documentation.Source§fn convert_point_to_view(
&self,
view: Option<&mut View>,
point: Option<&mut Point>,
) -> c_int
fn convert_point_to_view( &self, view: Option<&mut View>, point: Option<&mut Point>, ) -> c_int
See
_cef_view_t::convert_point_to_view for more documentation.Source§fn convert_point_from_view(
&self,
view: Option<&mut View>,
point: Option<&mut Point>,
) -> c_int
fn convert_point_from_view( &self, view: Option<&mut View>, point: Option<&mut Point>, ) -> c_int
See
_cef_view_t::convert_point_from_view for more documentation.fn get_raw(&self) -> *mut _cef_view_t
Source§impl ImplWindow for Window
impl ImplWindow for Window
Source§fn show(&self)
fn show(&self)
See
_cef_window_t::show for more documentation.Source§fn show_as_browser_modal_dialog(&self, browser_view: Option<&mut BrowserView>)
fn show_as_browser_modal_dialog(&self, browser_view: Option<&mut BrowserView>)
See
_cef_window_t::show_as_browser_modal_dialog for more documentation.Source§fn hide(&self)
fn hide(&self)
See
_cef_window_t::hide for more documentation.Source§fn center_window(&self, size: Option<&Size>)
fn center_window(&self, size: Option<&Size>)
See
_cef_window_t::center_window for more documentation.Source§fn close(&self)
fn close(&self)
See
_cef_window_t::close for more documentation.Source§fn is_closed(&self) -> c_int
fn is_closed(&self) -> c_int
See
_cef_window_t::is_closed for more documentation.Source§fn activate(&self)
fn activate(&self)
See
_cef_window_t::activate for more documentation.Source§fn deactivate(&self)
fn deactivate(&self)
See
_cef_window_t::deactivate for more documentation.Source§fn is_active(&self) -> c_int
fn is_active(&self) -> c_int
See
_cef_window_t::is_active for more documentation.Source§fn bring_to_top(&self)
fn bring_to_top(&self)
See
_cef_window_t::bring_to_top for more documentation.Source§fn set_always_on_top(&self, on_top: c_int)
fn set_always_on_top(&self, on_top: c_int)
See
_cef_window_t::set_always_on_top for more documentation.Source§fn is_always_on_top(&self) -> c_int
fn is_always_on_top(&self) -> c_int
See
_cef_window_t::is_always_on_top for more documentation.Source§fn maximize(&self)
fn maximize(&self)
See
_cef_window_t::maximize for more documentation.Source§fn minimize(&self)
fn minimize(&self)
See
_cef_window_t::minimize for more documentation.Source§fn restore(&self)
fn restore(&self)
See
_cef_window_t::restore for more documentation.Source§fn set_fullscreen(&self, fullscreen: c_int)
fn set_fullscreen(&self, fullscreen: c_int)
See
_cef_window_t::set_fullscreen for more documentation.Source§fn is_maximized(&self) -> c_int
fn is_maximized(&self) -> c_int
See
_cef_window_t::is_maximized for more documentation.Source§fn is_minimized(&self) -> c_int
fn is_minimized(&self) -> c_int
See
_cef_window_t::is_minimized for more documentation.Source§fn is_fullscreen(&self) -> c_int
fn is_fullscreen(&self) -> c_int
See
_cef_window_t::is_fullscreen for more documentation.Source§fn focused_view(&self) -> Option<View>
fn focused_view(&self) -> Option<View>
See
_cef_window_t::get_focused_view for more documentation.Source§fn set_title(&self, title: Option<&CefString>)
fn set_title(&self, title: Option<&CefString>)
See
_cef_window_t::set_title for more documentation.Source§fn title(&self) -> CefStringUserfree
fn title(&self) -> CefStringUserfree
See
_cef_window_t::get_title for more documentation.Source§fn set_window_icon(&self, image: Option<&mut Image>)
fn set_window_icon(&self, image: Option<&mut Image>)
See
_cef_window_t::set_window_icon for more documentation.Source§fn window_icon(&self) -> Option<Image>
fn window_icon(&self) -> Option<Image>
See
_cef_window_t::get_window_icon for more documentation.Source§fn set_window_app_icon(&self, image: Option<&mut Image>)
fn set_window_app_icon(&self, image: Option<&mut Image>)
See
_cef_window_t::set_window_app_icon for more documentation.Source§fn window_app_icon(&self) -> Option<Image>
fn window_app_icon(&self) -> Option<Image>
See
_cef_window_t::get_window_app_icon for more documentation.Source§fn add_overlay_view(
&self,
view: Option<&mut View>,
docking_mode: DockingMode,
can_activate: c_int,
) -> Option<OverlayController>
fn add_overlay_view( &self, view: Option<&mut View>, docking_mode: DockingMode, can_activate: c_int, ) -> Option<OverlayController>
See
_cef_window_t::add_overlay_view for more documentation.See
_cef_window_t::show_menu for more documentation.See
_cef_window_t::cancel_menu for more documentation.Source§fn client_area_bounds_in_screen(&self) -> Rect
fn client_area_bounds_in_screen(&self) -> Rect
See
_cef_window_t::get_client_area_bounds_in_screen for more documentation.Source§fn set_draggable_regions(
&self,
regions_count: usize,
regions: Option<&DraggableRegion>,
)
fn set_draggable_regions( &self, regions_count: usize, regions: Option<&DraggableRegion>, )
See
_cef_window_t::set_draggable_regions for more documentation.Source§fn window_handle(&self) -> cef_window_handle_t
fn window_handle(&self) -> cef_window_handle_t
See
_cef_window_t::get_window_handle for more documentation.Source§fn send_key_press(&self, key_code: c_int, event_flags: u32)
fn send_key_press(&self, key_code: c_int, event_flags: u32)
See
_cef_window_t::send_key_press for more documentation.Source§fn send_mouse_move(&self, screen_x: c_int, screen_y: c_int)
fn send_mouse_move(&self, screen_x: c_int, screen_y: c_int)
See
_cef_window_t::send_mouse_move for more documentation.Source§fn send_mouse_events(
&self,
button: MouseButtonType,
mouse_down: c_int,
mouse_up: c_int,
)
fn send_mouse_events( &self, button: MouseButtonType, mouse_down: c_int, mouse_up: c_int, )
See
_cef_window_t::send_mouse_events for more documentation.Source§fn set_accelerator(
&self,
command_id: c_int,
key_code: c_int,
shift_pressed: c_int,
ctrl_pressed: c_int,
alt_pressed: c_int,
high_priority: c_int,
)
fn set_accelerator( &self, command_id: c_int, key_code: c_int, shift_pressed: c_int, ctrl_pressed: c_int, alt_pressed: c_int, high_priority: c_int, )
See
_cef_window_t::set_accelerator for more documentation.Source§fn remove_accelerator(&self, command_id: c_int)
fn remove_accelerator(&self, command_id: c_int)
See
_cef_window_t::remove_accelerator for more documentation.Source§fn remove_all_accelerators(&self)
fn remove_all_accelerators(&self)
See
_cef_window_t::remove_all_accelerators for more documentation.Source§fn set_theme_color(&self, color_id: c_int, color: u32)
fn set_theme_color(&self, color_id: c_int, color: u32)
See
_cef_window_t::set_theme_color for more documentation.Source§fn theme_changed(&self)
fn theme_changed(&self)
See
_cef_window_t::theme_changed for more documentation.Source§fn runtime_style(&self) -> RuntimeStyle
fn runtime_style(&self) -> RuntimeStyle
See
_cef_window_t::get_runtime_style for more documentation.fn get_raw(&self) -> *mut _cef_window_t
Source§impl Rc for Window
impl Rc for Window
Source§fn as_base(&self) -> &_cef_base_ref_counted_t
fn as_base(&self) -> &_cef_base_ref_counted_t
Get the reference of cef_base_ref_counted_t.
Source§unsafe fn release(&self) -> bool
unsafe fn release(&self) -> bool
Decrease reference count by 1 and release the value if the count meets 0.
Reuturn
True if it is released. Read moreSource§fn has_one_ref(&self) -> bool
fn has_one_ref(&self) -> bool
True if the reference count is exactly 1.Source§fn has_at_least_one_ref(&self) -> bool
fn has_at_least_one_ref(&self) -> bool
True if the reference count is larger than 0.Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
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