[−][src]Struct wlroots::shell::xdg_shell::Surface
Methods
impl Surface
[src]
impl Surface
pub fn surface(&mut self) -> Handle
[src]
pub fn surface(&mut self) -> Handle
Gets the surface used by this XDG shell.
pub fn role(&self) -> wlr_xdg_surface_role
[src]
pub fn role(&self) -> wlr_xdg_surface_role
Get the role of this XDG surface.
pub fn state(&mut self) -> Option<&mut ShellState>
[src]
pub fn state(&mut self) -> Option<&mut ShellState>
pub fn configured(&self) -> bool
[src]
pub fn configured(&self) -> bool
Determines if this XDG shell surface has been configured or not.
pub fn added(&self) -> bool
[src]
pub fn added(&self) -> bool
pub fn configure_serial(&self) -> u32
[src]
pub fn configure_serial(&self) -> u32
pub fn configure_next_serial(&self) -> u32
[src]
pub fn configure_next_serial(&self) -> u32
pub fn has_next_geometry(&self) -> bool
[src]
pub fn has_next_geometry(&self) -> bool
pub fn next_geometry(&self) -> Area
[src]
pub fn next_geometry(&self) -> Area
pub fn geometry(&self) -> Area
[src]
pub fn geometry(&self) -> Area
pub fn ping(&mut self)
[src]
pub fn ping(&mut self)
Send a ping to the surface.
If the surface does not respond with a pong within a reasonable amount of time, the ping timeout event will be emitted.
pub fn surface_at(
&mut self,
sx: f64,
sy: f64,
sub_sx: &mut f64,
sub_sy: &mut f64
) -> Option<Handle>
[src]
pub fn surface_at(
&mut self,
sx: f64,
sy: f64,
sub_sx: &mut f64,
sub_sy: &mut f64
) -> Option<Handle>
Find a surface within this surface at the surface-local coordinates.
Returns the popup and coordinates in the topmost surface coordinate system or None if no popup is found at that location.
pub fn for_each_surface<F>(&self, iterator: F) where
F: FnMut(Handle, i32, i32),
[src]
pub fn for_each_surface<F>(&self, iterator: F) where
F: FnMut(Handle, i32, i32),
Trait Implementations
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