Struct SctkWinitWindow
pub struct SctkWinitWindow { /* private fields */ }Trait Implementations§
§impl Debug for SctkWinitWindow
impl Debug for SctkWinitWindow
§impl HasDisplayHandle for SctkWinitWindow
impl HasDisplayHandle for SctkWinitWindow
§fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>
Get a handle to the display controller of the windowing system.
§impl HasWindowHandle for SctkWinitWindow
impl HasWindowHandle for SctkWinitWindow
§fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>
fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>
Get a handle to the window.
§impl Window for SctkWinitWindow
impl Window for SctkWinitWindow
§fn scale_factor(&self) -> f64
fn scale_factor(&self) -> f64
Returns the scale factor that can be used to map logical pixels to physical pixels, and
vice versa. Read more
§fn request_redraw(&self)
fn request_redraw(&self)
Queues a
WindowEvent::RedrawRequested event to be emitted that aligns with the windowing
system drawing loop. Read more§fn pre_present_notify(&self)
fn pre_present_notify(&self)
Notify the windowing system before presenting to the window. Read more
§fn set_cursor(&self, cursor: Cursor)
fn set_cursor(&self, cursor: Cursor)
Modifies the cursor icon of the window. Read more
§fn set_cursor_visible(&self, visible: bool)
fn set_cursor_visible(&self, visible: bool)
Modifies the cursor’s visibility. Read more
§fn surface_size(&self) -> PhysicalSize<u32>
fn surface_size(&self) -> PhysicalSize<u32>
Returns the size of the window’s render-able surface. Read more
§fn request_surface_size(&self, size: Size) -> Option<PhysicalSize<u32>>
fn request_surface_size(&self, size: Size) -> Option<PhysicalSize<u32>>
Request the new size for the surface. Read more
§fn reset_dead_keys(&self)
fn reset_dead_keys(&self)
Reset the dead key state of the keyboard. Read more
§fn set_outer_position(&self, position: Position)
fn set_outer_position(&self, position: Position)
Sets the position of the window on the desktop. Read more
§fn outer_size(&self) -> PhysicalSize<u32>
fn outer_size(&self) -> PhysicalSize<u32>
Returns the size of the entire window. Read more
§fn set_min_surface_size(&self, min_size: Option<Size>)
fn set_min_surface_size(&self, min_size: Option<Size>)
Sets a minimum dimensions of the window’s surface. Read more
§fn set_max_surface_size(&self, max_size: Option<Size>)
fn set_max_surface_size(&self, max_size: Option<Size>)
Sets a maximum dimensions of the window’s surface. Read more
§fn set_surface_resize_increments(&self, increments: Option<Size>)
fn set_surface_resize_increments(&self, increments: Option<Size>)
Sets resize increments of the surface. Read more
§fn set_transparent(&self, transparent: bool)
fn set_transparent(&self, transparent: bool)
Change the window transparency state. Read more
§fn rwh_06_display_handle(&self) -> &dyn HasDisplayHandle
fn rwh_06_display_handle(&self) -> &dyn HasDisplayHandle
Get the raw-window-handle v0.6 display handle.
§fn rwh_06_window_handle(&self) -> &dyn HasWindowHandle
fn rwh_06_window_handle(&self) -> &dyn HasWindowHandle
Get the raw-window-handle v0.6 window handle.
§fn current_monitor(&self) -> Option<MonitorHandle>
fn current_monitor(&self) -> Option<MonitorHandle>
Returns the monitor on which the window currently resides. Read more
§fn available_monitors(&self) -> Box<dyn Iterator<Item = MonitorHandle>>
fn available_monitors(&self) -> Box<dyn Iterator<Item = MonitorHandle>>
Returns the list of all the monitors available on the system. Read more
§fn set_ime_cursor_area(&self, position: Position, size: Size)
fn set_ime_cursor_area(&self, position: Position, size: Size)
👎Deprecated: use Window::request_ime_update instead
Set the IME cursor editing area, where the
position is the top left corner of that area
in surface coordinates and size is the size of this area starting from the position. An
example of such area could be a input field in the UI or line in the editor. Read more§fn set_ime_allowed(&self, allowed: bool)
fn set_ime_allowed(&self, allowed: bool)
👎Deprecated: use Window::request_ime_update instead
Sets whether the window should get IME events Read more
§fn set_ime_purpose(&self, purpose: ImePurpose)
fn set_ime_purpose(&self, purpose: ImePurpose)
👎Deprecated: use Window::request_ime_update instead
Sets the IME purpose for the window using [
ImePurpose]. Read more§fn set_visible(&self, visible: bool)
fn set_visible(&self, visible: bool)
Modifies the window’s visibility. Read more
§fn is_visible(&self) -> Option<bool>
fn is_visible(&self) -> Option<bool>
Gets the window’s current visibility state. Read more
§fn set_resizable(&self, resizable: bool)
fn set_resizable(&self, resizable: bool)
Sets whether the window is resizable or not. Read more
§fn is_resizable(&self) -> bool
fn is_resizable(&self) -> bool
Gets the window’s current resizable state. Read more
Sets the enabled window buttons. Read more
Gets the enabled window buttons. Read more
§fn set_minimized(&self, minimized: bool)
fn set_minimized(&self, minimized: bool)
Minimize the window, or put it back from the minimized state. Read more
§fn is_minimized(&self) -> Option<bool>
fn is_minimized(&self) -> Option<bool>
Gets the window’s current minimized state. Read more
§fn set_maximized(&self, maximized: bool)
fn set_maximized(&self, maximized: bool)
Sets the window to maximized or back. Read more
§fn is_maximized(&self) -> bool
fn is_maximized(&self) -> bool
Gets the window’s current maximized state. Read more
§fn set_fullscreen(&self, fullscreen: Option<Fullscreen>)
fn set_fullscreen(&self, fullscreen: Option<Fullscreen>)
Set the window’s fullscreen state. Read more
§fn fullscreen(&self) -> Option<Fullscreen>
fn fullscreen(&self) -> Option<Fullscreen>
Gets the window’s current fullscreen state. Read more
§fn set_decorations(&self, decorations: bool)
fn set_decorations(&self, decorations: bool)
Turn window decorations on or off. Read more
§fn is_decorated(&self) -> bool
fn is_decorated(&self) -> bool
Gets the window’s current decorations state. Read more
§fn set_window_level(&self, level: WindowLevel)
fn set_window_level(&self, level: WindowLevel)
Change the window level. Read more
§fn set_window_icon(&self, window_icon: Option<Icon>)
fn set_window_icon(&self, window_icon: Option<Icon>)
Sets the window icon. Read more
§fn focus_window(&self)
fn focus_window(&self)
Brings the window to the front and sets input focus. Has no effect if the window is
already in focus, minimized, or not visible. Read more
§fn request_user_attention(&self, request_type: Option<UserAttentionType>)
fn request_user_attention(&self, request_type: Option<UserAttentionType>)
Requests user attention to the window, this has no effect if the application
is already focused. How requesting for user attention manifests is platform dependent,
see [
UserAttentionType] for details. Read more§fn set_content_protected(&self, protected: bool)
fn set_content_protected(&self, protected: bool)
Prevents the window contents from being captured by other apps. Read more
Show window menu at a specified position in surface coordinates. Read more
§fn primary_monitor(&self) -> Option<MonitorHandle>
fn primary_monitor(&self) -> Option<MonitorHandle>
Returns the primary monitor of the system. Read more
§fn surface_resize_increments(&self) -> Option<PhysicalSize<u32>>
fn surface_resize_increments(&self) -> Option<PhysicalSize<u32>>
Returns surface resize increments if any were set. Read more
§fn drag_window(&self) -> Result<(), RequestError>
fn drag_window(&self) -> Result<(), RequestError>
Moves the window with the left mouse button until the button is released. Read more
§fn drag_resize_window(
&self,
_direction: ResizeDirection,
) -> Result<(), RequestError>
fn drag_resize_window( &self, _direction: ResizeDirection, ) -> Result<(), RequestError>
Resizes the window with the left mouse button until the button is released. Read more
§fn set_cursor_hittest(&self, _hittest: bool) -> Result<(), RequestError>
fn set_cursor_hittest(&self, _hittest: bool) -> Result<(), RequestError>
Modifies whether the window catches cursor events. Read more
§fn surface_position(&self) -> PhysicalPosition<i32>
fn surface_position(&self) -> PhysicalPosition<i32>
The position of the top-left hand corner of the surface relative to the top-left hand corner
of the window. Read more
§fn outer_position(&self) -> Result<PhysicalPosition<i32>, RequestError>
fn outer_position(&self) -> Result<PhysicalPosition<i32>, RequestError>
The position of the top-left hand corner of the window relative to the top-left hand corner
of the desktop. Read more
§fn set_cursor_position(&self, position: Position) -> Result<(), RequestError>
fn set_cursor_position(&self, position: Position) -> Result<(), RequestError>
Changes the position of the cursor in window coordinates. Read more
§fn set_cursor_grab(&self, mode: CursorGrabMode) -> Result<(), RequestError>
fn set_cursor_grab(&self, mode: CursorGrabMode) -> Result<(), RequestError>
Set grabbing [mode][CursorGrabMode] on the cursor preventing it from leaving the window. Read more
§fn safe_area(&self) -> PhysicalInsets<u32>
fn safe_area(&self) -> PhysicalInsets<u32>
The inset area of the surface that is unobstructed. Read more
§fn request_ime_update(&self, request: ImeRequest) -> Result<(), ImeRequestError>
fn request_ime_update(&self, request: ImeRequest) -> Result<(), ImeRequestError>
Atomically apply request to IME. Read more
§fn ime_capabilities(&self) -> Option<ImeCapabilities>
fn ime_capabilities(&self) -> Option<ImeCapabilities>
Return enabled by the client [
ImeCapabilities] for this window. Read moreAuto Trait Implementations§
impl Freeze for SctkWinitWindow
impl !RefUnwindSafe for SctkWinitWindow
impl Send for SctkWinitWindow
impl Sync for SctkWinitWindow
impl Unpin for SctkWinitWindow
impl !UnwindSafe for SctkWinitWindow
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Convert the source color to the destination color using the specified
method.
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default.
§impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Cast a collection of colors into a collection of arrays.
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
Cast this collection of arrays into a collection of colors.
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
Source§impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
The number type that’s used in
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
Converts
self into C, using the provided parameters.Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Cast a collection of colors into a collection of color components.
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
Performs a conversion from
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
Converts
other into Self, while performing the appropriate scaling,
rounding and clamping.§impl<T> HasRawDisplayHandle for Twhere
T: HasDisplayHandle + ?Sized,
impl<T> HasRawDisplayHandle for Twhere
T: HasDisplayHandle + ?Sized,
§fn raw_display_handle(&self) -> Result<RawDisplayHandle, HandleError>
fn raw_display_handle(&self) -> Result<RawDisplayHandle, HandleError>
👎Deprecated: Use
HasDisplayHandle instead§impl<T> HasRawWindowHandle for Twhere
T: HasWindowHandle + ?Sized,
impl<T> HasRawWindowHandle for Twhere
T: HasWindowHandle + ?Sized,
§fn raw_window_handle(&self) -> Result<RawWindowHandle, HandleError>
fn raw_window_handle(&self) -> Result<RawWindowHandle, HandleError>
👎Deprecated: Use
HasWindowHandle instead§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
Performs a conversion into
T.§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
The number type that’s used in
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
Converts
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
Converts
self into T, while performing the appropriate scaling,
rounding and clamping.Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
The error for when
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Try to cast this collection of color components into a collection of
colors. Read more
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds error is returned which contains
the unclamped color. Read moreSource§impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
Source§fn uints_from(colors: C) -> U
fn uints_from(colors: C) -> U
Cast a collection of colors into a collection of unsigned integers.
Source§impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
Source§fn uints_into(self) -> C
fn uints_into(self) -> C
Cast this collection of unsigned integers into a collection of colors.