pub trait ImplWindowDelegate: ImplPanelDelegate {
Show 25 methods
// Provided methods
fn on_window_created(&self, window: Option<&mut Window>) { ... }
fn on_window_closing(&self, window: Option<&mut Window>) { ... }
fn on_window_destroyed(&self, window: Option<&mut Window>) { ... }
fn on_window_activation_changed(
&self,
window: Option<&mut Window>,
active: c_int,
) { ... }
fn on_window_bounds_changed(
&self,
window: Option<&mut Window>,
new_bounds: Option<&Rect>,
) { ... }
fn on_window_fullscreen_transition(
&self,
window: Option<&mut Window>,
is_completed: c_int,
) { ... }
fn parent_window(
&self,
window: Option<&mut Window>,
is_menu: Option<&mut c_int>,
can_activate_menu: Option<&mut c_int>,
) -> Option<Window> { ... }
fn is_window_modal_dialog(&self, window: Option<&mut Window>) -> c_int { ... }
fn initial_bounds(&self, window: Option<&mut Window>) -> Rect { ... }
fn initial_show_state(&self, window: Option<&mut Window>) -> ShowState { ... }
fn is_frameless(&self, window: Option<&mut Window>) -> c_int { ... }
fn with_standard_window_buttons(&self, window: Option<&mut Window>) -> c_int { ... }
fn titlebar_height(
&self,
window: Option<&mut Window>,
titlebar_height: Option<&mut f32>,
) -> c_int { ... }
fn accepts_first_mouse(&self, window: Option<&mut Window>) -> State { ... }
fn can_resize(&self, window: Option<&mut Window>) -> c_int { ... }
fn can_maximize(&self, window: Option<&mut Window>) -> c_int { ... }
fn can_minimize(&self, window: Option<&mut Window>) -> c_int { ... }
fn can_close(&self, window: Option<&mut Window>) -> c_int { ... }
fn on_accelerator(
&self,
window: Option<&mut Window>,
command_id: c_int,
) -> c_int { ... }
fn on_key_event(
&self,
window: Option<&mut Window>,
event: Option<&KeyEvent>,
) -> c_int { ... }
fn on_theme_colors_changed(
&self,
window: Option<&mut Window>,
chrome_theme: c_int,
) { ... }
fn window_runtime_style(&self) -> RuntimeStyle { ... }
fn linux_window_properties(
&self,
window: Option<&mut Window>,
properties: Option<&mut LinuxWindowProperties>,
) -> c_int { ... }
fn init_methods(object: &mut _cef_window_delegate_t) { ... }
fn get_raw(&self) -> *mut _cef_window_delegate_t { ... }
}Provided Methods§
Sourcefn on_window_created(&self, window: Option<&mut Window>)
fn on_window_created(&self, window: Option<&mut Window>)
See _cef_window_delegate_t::on_window_created for more documentation.
Sourcefn on_window_closing(&self, window: Option<&mut Window>)
fn on_window_closing(&self, window: Option<&mut Window>)
See _cef_window_delegate_t::on_window_closing for more documentation.
Sourcefn on_window_destroyed(&self, window: Option<&mut Window>)
fn on_window_destroyed(&self, window: Option<&mut Window>)
See _cef_window_delegate_t::on_window_destroyed for more documentation.
Sourcefn on_window_activation_changed(
&self,
window: Option<&mut Window>,
active: c_int,
)
fn on_window_activation_changed( &self, window: Option<&mut Window>, active: c_int, )
See _cef_window_delegate_t::on_window_activation_changed for more documentation.
Sourcefn on_window_bounds_changed(
&self,
window: Option<&mut Window>,
new_bounds: Option<&Rect>,
)
fn on_window_bounds_changed( &self, window: Option<&mut Window>, new_bounds: Option<&Rect>, )
See _cef_window_delegate_t::on_window_bounds_changed for more documentation.
Sourcefn on_window_fullscreen_transition(
&self,
window: Option<&mut Window>,
is_completed: c_int,
)
fn on_window_fullscreen_transition( &self, window: Option<&mut Window>, is_completed: c_int, )
See _cef_window_delegate_t::on_window_fullscreen_transition for more documentation.
Sourcefn parent_window(
&self,
window: Option<&mut Window>,
is_menu: Option<&mut c_int>,
can_activate_menu: Option<&mut c_int>,
) -> Option<Window>
fn parent_window( &self, window: Option<&mut Window>, is_menu: Option<&mut c_int>, can_activate_menu: Option<&mut c_int>, ) -> Option<Window>
See _cef_window_delegate_t::get_parent_window for more documentation.
Sourcefn is_window_modal_dialog(&self, window: Option<&mut Window>) -> c_int
fn is_window_modal_dialog(&self, window: Option<&mut Window>) -> c_int
See _cef_window_delegate_t::is_window_modal_dialog for more documentation.
Sourcefn initial_bounds(&self, window: Option<&mut Window>) -> Rect
fn initial_bounds(&self, window: Option<&mut Window>) -> Rect
See _cef_window_delegate_t::get_initial_bounds for more documentation.
Sourcefn initial_show_state(&self, window: Option<&mut Window>) -> ShowState
fn initial_show_state(&self, window: Option<&mut Window>) -> ShowState
See _cef_window_delegate_t::get_initial_show_state for more documentation.
Sourcefn is_frameless(&self, window: Option<&mut Window>) -> c_int
fn is_frameless(&self, window: Option<&mut Window>) -> c_int
See _cef_window_delegate_t::is_frameless for more documentation.
See _cef_window_delegate_t::with_standard_window_buttons for more documentation.
Sourcefn titlebar_height(
&self,
window: Option<&mut Window>,
titlebar_height: Option<&mut f32>,
) -> c_int
fn titlebar_height( &self, window: Option<&mut Window>, titlebar_height: Option<&mut f32>, ) -> c_int
See _cef_window_delegate_t::get_titlebar_height for more documentation.
Sourcefn accepts_first_mouse(&self, window: Option<&mut Window>) -> State
fn accepts_first_mouse(&self, window: Option<&mut Window>) -> State
See _cef_window_delegate_t::accepts_first_mouse for more documentation.
Sourcefn can_resize(&self, window: Option<&mut Window>) -> c_int
fn can_resize(&self, window: Option<&mut Window>) -> c_int
See _cef_window_delegate_t::can_resize for more documentation.
Sourcefn can_maximize(&self, window: Option<&mut Window>) -> c_int
fn can_maximize(&self, window: Option<&mut Window>) -> c_int
See _cef_window_delegate_t::can_maximize for more documentation.
Sourcefn can_minimize(&self, window: Option<&mut Window>) -> c_int
fn can_minimize(&self, window: Option<&mut Window>) -> c_int
See _cef_window_delegate_t::can_minimize for more documentation.
Sourcefn can_close(&self, window: Option<&mut Window>) -> c_int
fn can_close(&self, window: Option<&mut Window>) -> c_int
See _cef_window_delegate_t::can_close for more documentation.
Sourcefn on_accelerator(
&self,
window: Option<&mut Window>,
command_id: c_int,
) -> c_int
fn on_accelerator( &self, window: Option<&mut Window>, command_id: c_int, ) -> c_int
See _cef_window_delegate_t::on_accelerator for more documentation.
Sourcefn on_key_event(
&self,
window: Option<&mut Window>,
event: Option<&KeyEvent>,
) -> c_int
fn on_key_event( &self, window: Option<&mut Window>, event: Option<&KeyEvent>, ) -> c_int
See _cef_window_delegate_t::on_key_event for more documentation.
Sourcefn on_theme_colors_changed(
&self,
window: Option<&mut Window>,
chrome_theme: c_int,
)
fn on_theme_colors_changed( &self, window: Option<&mut Window>, chrome_theme: c_int, )
See _cef_window_delegate_t::on_theme_colors_changed for more documentation.
Sourcefn window_runtime_style(&self) -> RuntimeStyle
fn window_runtime_style(&self) -> RuntimeStyle
See _cef_window_delegate_t::get_window_runtime_style for more documentation.
Sourcefn linux_window_properties(
&self,
window: Option<&mut Window>,
properties: Option<&mut LinuxWindowProperties>,
) -> c_int
fn linux_window_properties( &self, window: Option<&mut Window>, properties: Option<&mut LinuxWindowProperties>, ) -> c_int
See _cef_window_delegate_t::get_linux_window_properties for more documentation.
fn init_methods(object: &mut _cef_window_delegate_t)
fn get_raw(&self) -> *mut _cef_window_delegate_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.