pub struct OwnedWindow(/* private fields */);Expand description
A wrapper around Window that automatically deletes the window when dropped.
Implementations§
Methods from Deref<Target = Window>§
pub fn get_identifier(&self) -> usize
pub fn peek_event(&self) -> Option<Event>
pub fn pop_event(&mut self) -> Option<Event>
pub fn as_object(&self) -> &lv_obj_t
pub fn as_object_mutable(&mut self) -> &mut lv_obj_t
pub fn get_icon(&self) -> (&str, Color)
pub fn set_icon(&mut self, icon_string: &str, icon_color: Color)
pub fn wake_up(&mut self)
pub fn register_waker(&mut self, waker: &Waker)
pub fn yield_now(&mut self) -> impl Future<Output = ()> + '_
pub fn delete(&mut self)
Methods from Deref<Target = lv_obj_t>§
pub fn layout_inv(&self) -> u16
pub fn set_layout_inv(&mut self, val: u16)
pub fn readjust_scroll_after_layout(&self) -> u16
pub fn set_readjust_scroll_after_layout(&mut self, val: u16)
pub fn scr_layout_inv(&self) -> u16
pub fn set_scr_layout_inv(&mut self, val: u16)
pub fn skip_trans(&self) -> u16
pub fn set_skip_trans(&mut self, val: u16)
pub fn style_cnt(&self) -> u16
pub fn set_style_cnt(&mut self, val: u16)
pub fn h_layout(&self) -> u16
pub fn set_h_layout(&mut self, val: u16)
pub fn w_layout(&self) -> u16
pub fn set_w_layout(&mut self, val: u16)
pub fn is_deleting(&self) -> u16
pub fn set_is_deleting(&mut self, val: u16)
Trait Implementations§
Source§impl Deref for OwnedWindow
impl Deref for OwnedWindow
Source§impl DerefMut for OwnedWindow
impl DerefMut for OwnedWindow
Source§impl Drop for OwnedWindow
impl Drop for OwnedWindow
Source§impl From<OwnedWindow> for NonNull<Window>
impl From<OwnedWindow> for NonNull<Window>
Source§fn from(val: OwnedWindow) -> Self
fn from(val: OwnedWindow) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OwnedWindow
impl !RefUnwindSafe for OwnedWindow
impl !Send for OwnedWindow
impl !Sync for OwnedWindow
impl Unpin for OwnedWindow
impl UnsafeUnpin for OwnedWindow
impl !UnwindSafe for OwnedWindow
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