Struct SctkWinitWindow

pub struct SctkWinitWindow { /* private fields */ }

Trait Implementations§

§

impl Debug for SctkWinitWindow

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Drop for SctkWinitWindow

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl HasDisplayHandle for SctkWinitWindow

§

fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>

Get a handle to the display controller of the windowing system.
§

impl HasWindowHandle for SctkWinitWindow

§

fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>

Get a handle to the window.
§

impl Window for SctkWinitWindow

§

fn id(&self) -> WindowId

Returns an identifier unique to the window.
§

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)

Queues a WindowEvent::RedrawRequested event to be emitted that aligns with the windowing system drawing loop. Read more
§

fn pre_present_notify(&self)

Notify the windowing system before presenting to the window. Read more
§

fn set_cursor(&self, cursor: Cursor)

Modifies the cursor icon of the window. Read more
§

fn set_cursor_visible(&self, visible: bool)

Modifies the cursor’s visibility. Read more
§

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>>

Request the new size for the surface. Read more
§

fn reset_dead_keys(&self)

Reset the dead key state of the keyboard. Read more
§

fn set_outer_position(&self, position: Position)

Sets the position of the window on the desktop. Read more
§

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>)

Sets a minimum dimensions of the window’s surface. Read more
§

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>)

Sets resize increments of the surface. Read more
§

fn set_title(&self, title: &str)

Modifies the title of the window. Read more
§

fn set_transparent(&self, transparent: bool)

Change the window transparency state. Read more
§

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

Get the raw-window-handle v0.6 window handle.
§

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>>

Returns the list of all the monitors available on the system. Read more
§

fn has_focus(&self) -> bool

Gets whether the window has keyboard focus. Read more
§

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)

👎Deprecated: use Window::request_ime_update instead
Sets whether the window should get IME events Read more
§

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_blur(&self, blur: bool)

Change the window blur state. Read more
§

fn set_visible(&self, visible: bool)

Modifies the window’s visibility. Read more
§

fn is_visible(&self) -> Option<bool>

Gets the window’s current visibility state. Read more
§

fn set_resizable(&self, resizable: bool)

Sets whether the window is resizable or not. Read more
§

fn is_resizable(&self) -> bool

Gets the window’s current resizable state. Read more
§

fn set_enabled_buttons(&self, buttons: WindowButtons)

Sets the enabled window buttons. Read more
§

fn enabled_buttons(&self) -> WindowButtons

Gets the enabled window buttons. Read more
§

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>

Gets the window’s current minimized state. Read more
§

fn set_maximized(&self, maximized: bool)

Sets the window to maximized or back. Read more
§

fn is_maximized(&self) -> bool

Gets the window’s current maximized state. Read more
§

fn set_fullscreen(&self, fullscreen: Option<Fullscreen>)

Set the window’s fullscreen state. Read more
§

fn fullscreen(&self) -> Option<Fullscreen>

Gets the window’s current fullscreen state. Read more
§

fn set_decorations(&self, decorations: bool)

Turn window decorations on or off. Read more
§

fn is_decorated(&self) -> bool

Gets the window’s current decorations state. Read more
§

fn set_window_level(&self, level: WindowLevel)

Change the window level. Read more
§

fn set_window_icon(&self, window_icon: Option<Icon>)

Sets the window icon. Read more
§

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>)

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_theme(&self, theme: Option<Theme>)

Set or override the window theme. Read more
§

fn theme(&self) -> Option<Theme>

Returns the current window theme. Read more
§

fn set_content_protected(&self, protected: bool)

Prevents the window contents from being captured by other apps. Read more
§

fn title(&self) -> String

Gets the current title of the window. Read more
§

fn show_window_menu(&self, _position: Position)

Show window menu at a specified position in surface coordinates. Read more
§

fn primary_monitor(&self) -> Option<MonitorHandle>

Returns the primary monitor of the system. Read more
§

fn surface_resize_increments(&self) -> Option<PhysicalSize<u32>>

Returns surface resize increments if any were set. Read more
§

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>

Resizes the window with the left mouse button until the button is released. Read more
§

fn set_cursor_hittest(&self, _hittest: bool) -> Result<(), RequestError>

Modifies whether the window catches cursor events. Read more
§

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>

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>

Changes the position of the cursor in window coordinates. Read more
§

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>

The inset area of the surface that is unobstructed. Read more
§

fn request_ime_update(&self, request: ImeRequest) -> Result<(), ImeRequestError>

Atomically apply request to IME. Read more
§

fn ime_capabilities(&self) -> Option<ImeCapabilities>

Return enabled by the client [ImeCapabilities] for this window. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where 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) -> D
where M: TransformMatrix<T>,

Convert the source color to the destination color using the specified method.
Source§

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default.
§

impl<T> Also for T

§

fn also<F>(self, block: F) -> Self
where F: FnOnce(&mut Self),

Apply a function to this value and return the (possibly) modified value.
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T, Res> Apply<Res> for T
where T: ?Sized,

§

fn apply<F>(self, f: F) -> Res
where F: FnOnce(Self) -> Res, Self: Sized,

Apply a function which takes the parameter by value.
§

fn apply_ref<F>(&self, f: F) -> Res
where F: FnOnce(&Self) -> Res,

Apply a function which takes the parameter by reference.
§

fn apply_mut<F>(&mut self, f: F) -> Res
where F: FnOnce(&mut Self) -> Res,

Apply a function which takes the parameter by mutable reference.
Source§

impl<T, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

Source§

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
Source§

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

Source§

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

Source§

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

Converts self into C, using the provided parameters.
Source§

impl<T, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

Source§

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
§

impl<T> Downcast for T
where T: 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>

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)

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)

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
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromAngle<T> for T

Source§

fn from_angle(angle: T) -> T

Performs a conversion from angle.
Source§

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

Source§

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
§

impl<T> HasRawDisplayHandle for T
where T: HasDisplayHandle + ?Sized,

§

fn raw_display_handle(&self) -> Result<RawDisplayHandle, HandleError>

👎Deprecated: Use HasDisplayHandle instead
§

impl<T> HasRawWindowHandle for T
where T: HasWindowHandle + ?Sized,

§

fn raw_window_handle(&self) -> Result<RawWindowHandle, HandleError>

👎Deprecated: Use HasWindowHandle instead
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> IntoAngle<U> for T
where U: FromAngle<T>,

Source§

fn into_angle(self) -> U

Performs a conversion into T.
§

impl<State, Message> IntoBoot<State, Message> for State

§

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 U
where T: Cam16FromUnclamped<WpParam, U>,

Source§

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

Converts self into C, using the provided parameters.
Source§

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

Source§

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 T
where U: FromColorUnclamped<T>,

Source§

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

Source§

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

Source§

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>

Try to cast this collection of color components into a collection of colors. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

Source§

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 more
Source§

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

Source§

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
Source§

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

Source§

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> Display for T
where T: HasDisplayHandle + 'static,

§

impl<T> MaybeClone for T

§

impl<T> MaybeDebug for T

§

impl<T> MaybeSend for T
where T: Send,

§

impl<T> MaybeSend for T
where T: Send,

§

impl<T> MaybeSync for T
where T: Sync,

§

impl<T> MaybeSync for T
where T: Sync,

§

impl<T> Window for T

§

impl<T> Window for T