pub struct Window { /* private fields */ }Implementations§
Source§impl Window
impl Window
pub fn builder() -> Builder
pub async fn title(&self) -> Result<String, Error>
pub async fn set_title(&self, text: impl AsRef<str>)
pub async fn position(&self) -> Result<Screen<Point<i32>>, Error>
pub fn set_position<T>(&self, position: T)
pub async fn inner_size(&self) -> Result<Physical<Size<u32>>, Error>
pub fn set_inner_size<T>(&self, size: T)
pub async fn dpi(&self) -> Result<u32, Error>
pub fn show(&self)
pub fn hide(&self)
pub fn redraw(&self)
pub fn set_cursor(&self, cursor: Option<Cursor>)
pub async fn is_enabled_ime(&self) -> Result<bool, Error>
pub fn set_enable_ime(&self, enable: bool)
pub fn set_ime_position<T>(&self, position: T)
pub async fn is_closed(&self) -> bool
pub fn close_request(&self)
pub fn close(&self)
pub fn raw_handle(&self) -> *mut c_void
pub async fn draw_receiver(&self) -> Receiver<()>
pub async fn cursor_entered_receiver(&self) -> Receiver<MouseState>
pub async fn cursor_leaved_receiver(&self) -> Receiver<MouseState>
pub async fn cursor_moved_receiver(&self) -> Receiver<MouseState>
pub async fn mouse_input_receiver(&self) -> Receiver<MouseInput>
pub async fn mouse_wheel_receiver(&self) -> Receiver<MouseWheel>
pub async fn mouse_h_wheel_receiver(&self) -> Receiver<MouseWheel>
pub async fn key_input_receiver(&self) -> Receiver<KeyInput>
pub async fn char_input_receiver(&self) -> Receiver<char>
pub async fn ime_start_composition_receiver(&self) -> Receiver<()>
pub async fn ime_composition_receiver( &self, ) -> Receiver<(Composition, Option<CandidateList>)>
pub async fn ime_end_composition_receiver(&self) -> Receiver<Option<String>>
pub async fn moved_receiver(&self) -> Receiver<ScreenPoint<i32>>
pub async fn resizing_receiver(&self) -> Receiver<PhysicalSize<u32>>
pub async fn resized_receiver(&self) -> Receiver<PhysicalSize<u32>>
pub async fn activated_receiver(&self) -> Receiver<()>
pub async fn inactivated_receiver(&self) -> Receiver<()>
pub async fn dpi_changed_receiver(&self) -> Receiver<u32>
pub async fn drop_files_receiver(&self) -> Receiver<DropFiles>
pub async fn close_request_receiver(&self) -> CloseRequestReceiver
pub async fn closed_receiver(&self) -> Receiver<()>
Trait Implementations§
impl Copy for Window
impl Eq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
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
Mutably borrows from an owned value. Read more