pub struct OffscreenTopLevelImplBase { /* private fields */ }Expand description
The base of the top-level implementations that are not backed by a window of the platform: the client size and the scaling are set by the owner, which also feeds the input and provides the surfaces.
This API is unstable.
Implementations§
Source§impl OffscreenTopLevelImplBase
impl OffscreenTopLevelImplBase
Sourcepub fn new(overrides: Rc<dyn OffscreenTopLevelImplOverrides>) -> Rc<Self>
pub fn new(overrides: Rc<dyn OffscreenTopLevelImplOverrides>) -> Rc<Self>
Creates the implementation over the members of the deriving class, with a compositor of its own.
Sourcepub fn overrides(&self) -> &Rc<dyn OffscreenTopLevelImplOverrides>
pub fn overrides(&self) -> &Rc<dyn OffscreenTopLevelImplOverrides>
The members of the deriving class.
Sourcepub fn input_root(&self) -> Option<Rc<dyn IInputRoot>>
pub fn input_root(&self) -> Option<Rc<dyn IInputRoot>>
The input root the top-level set.
Sourcepub fn is_disposed(&self) -> bool
pub fn is_disposed(&self) -> bool
Whether the implementation has been disposed.
Sourcepub fn base_dispose(&self)
pub fn base_dispose(&self)
The Dispose of the base class.
Sourcepub fn compositor(&self) -> &Rc<Compositor>
pub fn compositor(&self) -> &Rc<Compositor>
The compositor of the top-level.
Sourcepub fn client_size(&self) -> Size
pub fn client_size(&self) -> Size
The client size of the top-level.
Sourcepub fn frame_size(&self) -> Option<Size>
pub fn frame_size(&self) -> Option<Size>
The size of the frame of the top-level: an offscreen top-level has none.
Sourcepub fn set_client_size(&self, value: Size)
pub fn set_client_size(&self, value: Size)
Sets the client size and notifies the top-level.
Sourcepub fn render_scaling(&self) -> f64
pub fn render_scaling(&self) -> f64
The scaling factor of the top-level.
Sourcepub fn set_render_scaling(&self, value: f64)
pub fn set_render_scaling(&self, value: f64)
Sets the scaling factor and notifies the top-level.
Sourcepub fn mouse_device(&self) -> Rc<dyn IMouseDevice>
pub fn mouse_device(&self) -> Rc<dyn IMouseDevice>
The mouse device of the top-level.
Trait Implementations§
Source§impl ITopLevelImpl for OffscreenTopLevelImplBase
impl ITopLevelImpl for OffscreenTopLevelImplBase
Source§fn desktop_scaling(&self) -> f64
fn desktop_scaling(&self) -> f64
Source§fn client_size(&self) -> Size
fn client_size(&self) -> Size
Source§fn render_scaling(&self) -> f64
fn render_scaling(&self) -> f64
Source§fn surfaces(&self) -> Vec<Arc<dyn IPlatformRenderSurface>>
fn surfaces(&self) -> Vec<Arc<dyn IPlatformRenderSurface>>
Source§fn compositor(&self) -> Option<Rc<Compositor>>
fn compositor(&self) -> Option<Rc<Compositor>>
Source§fn input(&self) -> Option<Rc<dyn Fn(Rc<dyn IRawInputEventArgs>)>>
fn input(&self) -> Option<Rc<dyn Fn(Rc<dyn IRawInputEventArgs>)>>
Source§fn set_input(&self, value: Option<Rc<dyn Fn(Rc<dyn IRawInputEventArgs>)>>)
fn set_input(&self, value: Option<Rc<dyn Fn(Rc<dyn IRawInputEventArgs>)>>)
Source§fn paint(&self) -> Option<Rc<dyn Fn(Rect)>>
fn paint(&self) -> Option<Rc<dyn Fn(Rect)>>
Source§fn set_paint(&self, value: Option<Rc<dyn Fn(Rect)>>)
fn set_paint(&self, value: Option<Rc<dyn Fn(Rect)>>)
Source§fn resized(&self) -> Option<Rc<dyn Fn(Size, WindowResizeReason)>>
fn resized(&self) -> Option<Rc<dyn Fn(Size, WindowResizeReason)>>
Source§fn set_resized(&self, value: Option<Rc<dyn Fn(Size, WindowResizeReason)>>)
fn set_resized(&self, value: Option<Rc<dyn Fn(Size, WindowResizeReason)>>)
Source§fn scaling_changed(&self) -> Option<Rc<dyn Fn(f64)>>
fn scaling_changed(&self) -> Option<Rc<dyn Fn(f64)>>
Source§fn set_scaling_changed(&self, value: Option<Rc<dyn Fn(f64)>>)
fn set_scaling_changed(&self, value: Option<Rc<dyn Fn(f64)>>)
Source§fn transparency_level_changed(
&self,
) -> Option<Rc<dyn Fn(WindowTransparencyLevel)>>
fn transparency_level_changed( &self, ) -> Option<Rc<dyn Fn(WindowTransparencyLevel)>>
Source§fn set_transparency_level_changed(
&self,
value: Option<Rc<dyn Fn(WindowTransparencyLevel)>>,
)
fn set_transparency_level_changed( &self, value: Option<Rc<dyn Fn(WindowTransparencyLevel)>>, )
Source§fn set_input_root(&self, input_root: Rc<dyn IInputRoot>)
fn set_input_root(&self, input_root: Rc<dyn IInputRoot>)
Source§fn point_to_client(&self, point: PixelPoint) -> Point
fn point_to_client(&self, point: PixelPoint) -> Point
Source§fn point_to_screen(&self, point: Point) -> PixelPoint
fn point_to_screen(&self, point: Point) -> PixelPoint
Source§fn set_cursor(&self, cursor: Option<Rc<dyn ICursorImpl>>)
fn set_cursor(&self, cursor: Option<Rc<dyn ICursorImpl>>)
None stands for the
default cursor.Source§fn closed(&self) -> Option<Rc<dyn Fn()>>
fn closed(&self) -> Option<Rc<dyn Fn()>>
Source§fn set_closed(&self, value: Option<Rc<dyn Fn()>>)
fn set_closed(&self, value: Option<Rc<dyn Fn()>>)
Source§fn lost_focus(&self) -> Option<Rc<dyn Fn()>>
fn lost_focus(&self) -> Option<Rc<dyn Fn()>>
Source§fn set_lost_focus(&self, value: Option<Rc<dyn Fn()>>)
fn set_lost_focus(&self, value: Option<Rc<dyn Fn()>>)
Source§fn create_popup(&self) -> Option<Rc<dyn IPopupImpl>>
fn create_popup(&self) -> Option<Rc<dyn IPopupImpl>>
Source§fn set_transparency_level_hint(
&self,
_transparency_levels: &[WindowTransparencyLevel],
)
fn set_transparency_level_hint( &self, _transparency_levels: &[WindowTransparencyLevel], )
Source§fn transparency_level(&self) -> WindowTransparencyLevel
fn transparency_level(&self) -> WindowTransparencyLevel
Source§fn acrylic_compensation_levels(&self) -> AcrylicPlatformCompensationLevels
fn acrylic_compensation_levels(&self) -> AcrylicPlatformCompensationLevels
Source§fn set_frame_theme_variant(&self, _theme_variant: Option<PlatformThemeVariant>)
fn set_frame_theme_variant(&self, _theme_variant: Option<PlatformThemeVariant>)
None follows the system.Source§fn render_surfaces(
&self,
) -> Arc<dyn Fn() -> Vec<Arc<dyn IPlatformRenderSurface>> + Send + Sync> ⓘ
fn render_surfaces( &self, ) -> Arc<dyn Fn() -> Vec<Arc<dyn IPlatformRenderSurface>> + Send + Sync> ⓘ
Surfaces of the top-level
there). Read moreSource§fn platform_specific_scene_info(&self) -> Option<Arc<dyn Any + Send + Sync>>
fn platform_specific_scene_info(&self) -> Option<Arc<dyn Any + Send + Sync>>
Source§fn platform_specific_scene_info_changed(
&self,
) -> Option<Rc<dyn Fn(Option<Arc<dyn Any + Send + Sync>>)>>
fn platform_specific_scene_info_changed( &self, ) -> Option<Rc<dyn Fn(Option<Arc<dyn Any + Send + Sync>>)>>
Source§fn set_platform_specific_scene_info_changed(
&self,
_value: Option<Rc<dyn Fn(Option<Arc<dyn Any + Send + Sync>>)>>,
)
fn set_platform_specific_scene_info_changed( &self, _value: Option<Rc<dyn Fn(Option<Arc<dyn Any + Send + Sync>>)>>, )
Source§fn as_window_base_impl(&self) -> Option<&dyn IWindowBaseImpl>
fn as_window_base_impl(&self) -> Option<&dyn IWindowBaseImpl>
Source§fn as_window_impl(&self) -> Option<&dyn IWindowImpl>
fn as_window_impl(&self) -> Option<&dyn IWindowImpl>
Source§fn as_popup_impl(&self) -> Option<&dyn IPopupImpl>
fn as_popup_impl(&self) -> Option<&dyn IPopupImpl>
Source§fn as_win32_options_top_level_impl(
&self,
) -> Option<&dyn IWin32OptionsTopLevelImpl>
fn as_win32_options_top_level_impl( &self, ) -> Option<&dyn IWin32OptionsTopLevelImpl>
Auto Trait Implementations§
impl !Freeze for OffscreenTopLevelImplBase
impl !RefUnwindSafe for OffscreenTopLevelImplBase
impl !Send for OffscreenTopLevelImplBase
impl !Sync for OffscreenTopLevelImplBase
impl !UnwindSafe for OffscreenTopLevelImplBase
impl Unpin for OffscreenTopLevelImplBase
impl UnsafeUnpin for OffscreenTopLevelImplBase
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more