[−][src]Struct wlroots::shell::xdg_shell_v6::TopLevel
Methods
impl TopLevel
[src]
[−]
impl TopLevel
pub fn title(&self) -> String
[src]
[−]
pub fn title(&self) -> String
Get the title associated with this XDG shell toplevel.
pub fn app_id(&self) -> String
[src]
[−]
pub fn app_id(&self) -> String
Get the app id associated with this XDG shell toplevel.
pub fn base(&self) -> Handle
[src]
[−]
pub fn base(&self) -> Handle
Get a handle to the base surface of the xdg tree.
pub fn parent(&self) -> Handle
[src]
[−]
pub fn parent(&self) -> Handle
Get a handle to the parent surface of the xdg tree.
pub fn added(&self) -> bool
[src]
pub fn added(&self) -> bool
pub fn client_pending_state(&self) -> wlr_xdg_toplevel_v6_state
[src]
[−]
pub fn client_pending_state(&self) -> wlr_xdg_toplevel_v6_state
Get the pending client state.
pub fn server_pending_state(&self) -> wlr_xdg_toplevel_v6_state
[src]
[−]
pub fn server_pending_state(&self) -> wlr_xdg_toplevel_v6_state
Get the pending server state.
pub fn current_state(&self) -> wlr_xdg_toplevel_v6_state
[src]
[−]
pub fn current_state(&self) -> wlr_xdg_toplevel_v6_state
Get the current configure state.
pub fn set_size(&mut self, width: u32, height: u32) -> u32
[src]
[−]
pub fn set_size(&mut self, width: u32, height: u32) -> u32
Request that this toplevel surface be the given size.
Returns the associated configure serial.
pub fn set_activated(&mut self, activated: bool) -> u32
[src]
[−]
pub fn set_activated(&mut self, activated: bool) -> u32
Request that this toplevel surface show itself in an activated or deactivated state.
Returns the associated configure serial.
pub fn set_maximized(&mut self, maximized: bool) -> u32
[src]
[−]
pub fn set_maximized(&mut self, maximized: bool) -> u32
Request that this toplevel surface consider itself maximized or not maximized.
Returns the associated configure serial.
pub fn set_fullscreen(&mut self, fullscreen: bool) -> u32
[src]
[−]
pub fn set_fullscreen(&mut self, fullscreen: bool) -> u32
Request that this toplevel surface consider itself fullscreen or not fullscreen.
Returns the associated configure serial.
pub fn set_resizing(&mut self, resizing: bool) -> u32
[src]
[−]
pub fn set_resizing(&mut self, resizing: bool) -> u32
Request that this toplevel surface consider itself to be resizing or not resizing.
Returns the associated configure serial.
pub fn close(&mut self)
[src]
[−]
pub fn close(&mut self)
Request that this toplevel surface closes.
Trait Implementations
impl Eq for TopLevel
[src]
impl Eq for TopLevel
impl PartialEq<TopLevel> for TopLevel
[src]
[+]
impl PartialEq<TopLevel> for TopLevel
impl Hash for TopLevel
[src]
[+]
impl Hash for TopLevel
impl Debug for TopLevel
[src]
[+]
impl Debug for TopLevel
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
[−]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
[−]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
[−]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
[−]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
[−]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
[−]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
[−]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
[−]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
[−]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
[−]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
[−]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more