pub trait ImplWindow: ImplPanel {
Show 43 methods
// Required methods
fn show(&self);
fn show_as_browser_modal_dialog(
&self,
browser_view: Option<&mut BrowserView>,
);
fn hide(&self);
fn center_window(&self, size: Option<&Size>);
fn close(&self);
fn is_closed(&self) -> c_int;
fn activate(&self);
fn deactivate(&self);
fn is_active(&self) -> c_int;
fn bring_to_top(&self);
fn set_always_on_top(&self, on_top: c_int);
fn is_always_on_top(&self) -> c_int;
fn maximize(&self);
fn minimize(&self);
fn restore(&self);
fn set_fullscreen(&self, fullscreen: c_int);
fn is_maximized(&self) -> c_int;
fn is_minimized(&self) -> c_int;
fn is_fullscreen(&self) -> c_int;
fn focused_view(&self) -> Option<View>;
fn set_title(&self, title: Option<&CefString>);
fn title(&self) -> CefStringUserfree;
fn set_window_icon(&self, image: Option<&mut Image>);
fn window_icon(&self) -> Option<Image>;
fn set_window_app_icon(&self, image: Option<&mut Image>);
fn window_app_icon(&self) -> Option<Image>;
fn add_overlay_view(
&self,
view: Option<&mut View>,
docking_mode: DockingMode,
can_activate: c_int,
) -> Option<OverlayController>;
fn show_menu(
&self,
menu_model: Option<&mut MenuModel>,
screen_point: Option<&Point>,
anchor_position: MenuAnchorPosition,
);
fn cancel_menu(&self);
fn display(&self) -> Option<Display>;
fn client_area_bounds_in_screen(&self) -> Rect;
fn set_draggable_regions(
&self,
regions_count: usize,
regions: Option<&DraggableRegion>,
);
fn window_handle(&self) -> cef_window_handle_t;
fn send_key_press(&self, key_code: c_int, event_flags: u32);
fn send_mouse_move(&self, screen_x: c_int, screen_y: c_int);
fn send_mouse_events(
&self,
button: MouseButtonType,
mouse_down: c_int,
mouse_up: 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,
);
fn remove_accelerator(&self, command_id: c_int);
fn remove_all_accelerators(&self);
fn set_theme_color(&self, color_id: c_int, color: u32);
fn theme_changed(&self);
fn runtime_style(&self) -> RuntimeStyle;
// Provided method
fn get_raw(&self) -> *mut _cef_window_t { ... }
}Required Methods§
Sourcefn show(&self)
fn show(&self)
See _cef_window_t::show for more documentation.
Sourcefn 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.
Sourcefn hide(&self)
fn hide(&self)
See _cef_window_t::hide for more documentation.
Sourcefn center_window(&self, size: Option<&Size>)
fn center_window(&self, size: Option<&Size>)
See _cef_window_t::center_window for more documentation.
Sourcefn close(&self)
fn close(&self)
See _cef_window_t::close for more documentation.
Sourcefn is_closed(&self) -> c_int
fn is_closed(&self) -> c_int
See _cef_window_t::is_closed for more documentation.
Sourcefn activate(&self)
fn activate(&self)
See _cef_window_t::activate for more documentation.
Sourcefn deactivate(&self)
fn deactivate(&self)
See _cef_window_t::deactivate for more documentation.
Sourcefn is_active(&self) -> c_int
fn is_active(&self) -> c_int
See _cef_window_t::is_active for more documentation.
Sourcefn bring_to_top(&self)
fn bring_to_top(&self)
See _cef_window_t::bring_to_top for more documentation.
Sourcefn 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.
Sourcefn 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.
Sourcefn maximize(&self)
fn maximize(&self)
See _cef_window_t::maximize for more documentation.
Sourcefn minimize(&self)
fn minimize(&self)
See _cef_window_t::minimize for more documentation.
Sourcefn restore(&self)
fn restore(&self)
See _cef_window_t::restore for more documentation.
Sourcefn set_fullscreen(&self, fullscreen: c_int)
fn set_fullscreen(&self, fullscreen: c_int)
See _cef_window_t::set_fullscreen for more documentation.
Sourcefn is_maximized(&self) -> c_int
fn is_maximized(&self) -> c_int
See _cef_window_t::is_maximized for more documentation.
Sourcefn is_minimized(&self) -> c_int
fn is_minimized(&self) -> c_int
See _cef_window_t::is_minimized for more documentation.
Sourcefn is_fullscreen(&self) -> c_int
fn is_fullscreen(&self) -> c_int
See _cef_window_t::is_fullscreen for more documentation.
Sourcefn focused_view(&self) -> Option<View>
fn focused_view(&self) -> Option<View>
See _cef_window_t::get_focused_view for more documentation.
Sourcefn set_title(&self, title: Option<&CefString>)
fn set_title(&self, title: Option<&CefString>)
See _cef_window_t::set_title for more documentation.
Sourcefn title(&self) -> CefStringUserfree
fn title(&self) -> CefStringUserfree
See _cef_window_t::get_title for more documentation.
Sourcefn 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.
Sourcefn window_icon(&self) -> Option<Image>
fn window_icon(&self) -> Option<Image>
See _cef_window_t::get_window_icon for more documentation.
Sourcefn 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.
Sourcefn window_app_icon(&self) -> Option<Image>
fn window_app_icon(&self) -> Option<Image>
See _cef_window_t::get_window_app_icon for more documentation.
Sourcefn 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.
Sourcefn display(&self) -> Option<Display>
fn display(&self) -> Option<Display>
See _cef_window_t::get_display for more documentation.
Sourcefn 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.
Sourcefn 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.
Sourcefn 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.
Sourcefn 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.
Sourcefn 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.
Sourcefn 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.
Sourcefn 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.
Sourcefn remove_accelerator(&self, command_id: c_int)
fn remove_accelerator(&self, command_id: c_int)
See _cef_window_t::remove_accelerator for more documentation.
Sourcefn remove_all_accelerators(&self)
fn remove_all_accelerators(&self)
See _cef_window_t::remove_all_accelerators for more documentation.
Sourcefn 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.
Sourcefn theme_changed(&self)
fn theme_changed(&self)
See _cef_window_t::theme_changed for more documentation.
Sourcefn runtime_style(&self) -> RuntimeStyle
fn runtime_style(&self) -> RuntimeStyle
See _cef_window_t::get_runtime_style for more documentation.
Provided Methods§
fn get_raw(&self) -> *mut _cef_window_t
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.