Struct riddle_platform_winit::WindowHandle [−][src]
Implementations
impl WindowHandle
[src]
pub fn downgrade(this: &WindowHandle) -> WindowWeak
[src]
Downgrade this handle to a weak handle
pub fn eq(a: &WindowHandle, b: &WindowHandle) -> bool
[src]
Test whether two handles point to the same location in memory
Methods from Deref<Target = Window>
pub fn physical_size(&self) -> (u32, u32)
[src]
Get the size of the drawable area of the window in pixels
pub fn logical_size(&self) -> LogicalSize
[src]
Get the size of the drawable area of the window in logical units.
pub fn scale_factor(&self) -> f64
[src]
Get the scale factor of the window, based on how the window manager configures hidpi scaling
pub fn set_title(&self, title: &str)
[src]
Set the window title
pub fn subscribe_to_events(&self, sub: &EventSub<PlatformEvent>)
[src]
Attach a subscriber to the subset of platform events that relate to this window
Example
let rdl = RiddleLib::new()?; let subscriber: EventSub<PlatformEvent> = EventSub::new(); let window = WindowBuilder::new().build(rdl.context())?; window.subscribe_to_events(&subscriber);
pub fn id(&self) -> WindowId
[src]
The window id which is used to identify this window in PlatformEvent
s
Trait Implementations
impl Clone for WindowHandle
[src]
fn clone(&self) -> WindowHandle
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Deref for WindowHandle
[src]
Auto Trait Implementations
impl !RefUnwindSafe for WindowHandle
impl Send for WindowHandle
impl Sync for WindowHandle
impl Unpin for WindowHandle
impl !UnwindSafe for WindowHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,