pub struct Window { /* private fields */ }Expand description
窗口实例
Implementations§
Trait Implementations§
Source§impl WindowManager for Window
impl WindowManager for Window
fn get_handle(&self) -> usize
fn id(&self) -> WindowId
Source§fn set_title(&self, title: &str)
fn set_title(&self, title: &str)
👎Deprecated since 1.0.0: 此方法已弃用,请使用 WindowManager::set_text() 代替
设置窗口文本 Read more
Source§fn title(&self) -> String
fn title(&self) -> String
👎Deprecated since 1.0.0: 此方法已弃用,请使用 WindowManager::text() 代替
获取窗口文本 Read more
Source§fn set_parent(&self, parent: WindowId)
fn set_parent(&self, parent: WindowId)
设置窗口的父窗口
Source§fn parent(&self) -> Option<WindowHandle>
fn parent(&self) -> Option<WindowHandle>
获取窗口父窗口的句柄
Source§fn get_client_rect(&self) -> Rect<i32>
fn get_client_rect(&self) -> Rect<i32>
获取窗口客户区矩形区域坐标
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