[−][src]Struct druid_shell::window::WindowHandle
Fields
inner: WindowHandleMethods from Deref<Target = WindowHandle>
pub fn show(&self)[src]
pub fn close(&self)[src]
pub fn invalidate(&self)[src]
pub fn set_title(&self, title: &str)[src]
Set the title for this menu.
pub fn set_menu(&self, menu: Menu)[src]
pub fn show_context_menu(&self, menu: Menu, x: f64, y: f64)[src]
pub fn get_hwnd(&self) -> Option<HWND>[src]
Get the raw HWND handle, for uses that are not wrapped in druid_win_shell.
pub fn file_dialog(
&self,
ty: FileDialogType,
options: FileDialogOptions
) -> Result<OsString, Error>[src]
&self,
ty: FileDialogType,
options: FileDialogOptions
) -> Result<OsString, Error>
use methods on WinCtx instead
Open a modal file dialog.
Note: this method will be reworked to avoid reentrancy problems. Currently, calling it may result in important messages being dropped.
pub fn get_idle_handle(&self) -> Option<IdleHandle>[src]
Get a handle that can be used to schedule an idle task.
pub fn get_dpi(&self) -> f32[src]
Get the dpi of the window.
pub fn px_to_pixels(&self, x: f32) -> i32[src]
Convert a dimension in px units to physical pixels (rounding).
pub fn px_to_pixels_xy(&self, x: f32, y: f32) -> (i32, i32)[src]
Convert a point in px units to physical pixels (rounding).
pub fn pixels_to_px<T: Into<f64>>(&self, x: T) -> f32[src]
Convert a dimension in physical pixels to px units.
pub fn pixels_to_px_xy<T: Into<f64>>(&self, x: T, y: T) -> (f32, f32)[src]
Convert a point in physical pixels to px units.
Trait Implementations
impl Clone for WindowHandle[src]
fn clone(&self) -> WindowHandle[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for WindowHandle[src]
fn default() -> WindowHandle[src]
impl Deref for WindowHandle[src]
type Target = WindowHandle
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
Auto Trait Implementations
impl !Send for WindowHandle
impl !Sync for WindowHandle
impl Unpin for WindowHandle
impl !UnwindSafe for WindowHandle
impl !RefUnwindSafe for WindowHandle
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> RoundFrom<T> for T
fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,