pub struct WindowInfo {Show 19 fields
pub id: WindowId,
pub kind: Option<WindowKind>,
pub window_type: WindowType,
pub title: String,
pub app_id: String,
pub instance: String,
pub parent: Option<WindowId>,
pub modal: bool,
pub hints: SizeHints,
pub requested: Option<Rect>,
pub positioned: bool,
pub decoration: Decoration,
pub output: OutputId,
pub pid: Option<u32>,
pub wants_fullscreen: bool,
pub wants_maximized: bool,
pub wants_minimized: bool,
pub skip_taskbar: bool,
pub accepts_focus: bool,
}Expand description
Everything the policy knows about a window, sent when it appears and again when any of it changes.
Fields§
§id: WindowId§kind: Option<WindowKind>§window_type: WindowType§title: String§app_id: StringThe xdg app id, or the X11 class.
instance: StringThe X11 instance name; empty for a Wayland client.
parent: Option<WindowId>The window this one is transient for.
modal: bool§hints: SizeHints§requested: Option<Rect>The geometry an X11 client asked for, in layout coordinates, where it named one.
positioned: boolWhether the client asked for requested’s position (X11 USPosition or PPosition
hints with a position other than the origin, which toolkits set without meaning it, or a
type that places itself), so the policy keeps it instead of choosing a place.
decoration: Decoration§output: OutputIdThe output the window was opened on: the one under the pointer, or the one a request named.
pid: Option<u32>§wants_fullscreen: boolStates the client asked for before it mapped.
wants_maximized: bool§wants_minimized: bool§skip_taskbar: bool§accepts_focus: boolWhether the client accepts keyboard focus (X11 WM_HINTS input, WM_TAKE_FOCUS).
Trait Implementations§
Source§impl Clone for WindowInfo
impl Clone for WindowInfo
Source§fn clone(&self) -> WindowInfo
fn clone(&self) -> WindowInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WindowInfo
impl Debug for WindowInfo
Source§impl Default for WindowInfo
impl Default for WindowInfo
Source§fn default() -> WindowInfo
fn default() -> WindowInfo
Source§impl PartialEq for WindowInfo
impl PartialEq for WindowInfo
impl StructuralPartialEq for WindowInfo
Auto Trait Implementations§
impl Freeze for WindowInfo
impl RefUnwindSafe for WindowInfo
impl Send for WindowInfo
impl Sync for WindowInfo
impl Unpin for WindowInfo
impl UnsafeUnpin for WindowInfo
impl UnwindSafe for WindowInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
§fn null_value() -> T
fn null_value() -> T
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().