Enum wayland_protocols_plasma::plasma_window_management::generated::client::org_kde_plasma_window::Event
source · #[non_exhaustive]pub enum Event {
Show 17 variants
TitleChanged {
title: String,
},
AppIdChanged {
app_id: String,
},
StateChanged {
flags: u32,
},
VirtualDesktopChanged {
number: i32,
},
ThemedIconNameChanged {
name: String,
},
Unmapped,
InitialState,
ParentWindow {
parent: Option<OrgKdePlasmaWindow>,
},
Geometry {
x: i32,
y: i32,
width: u32,
height: u32,
},
IconChanged,
PidChanged {
pid: u32,
},
VirtualDesktopEntered {
id: String,
},
VirtualDesktopLeft {
is: String,
},
ApplicationMenu {
service_name: String,
object_path: String,
},
ActivityEntered {
id: String,
},
ActivityLeft {
id: String,
},
ResourceNameChanged {
resource_name: String,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TitleChanged
window title has been changed
This event will be sent as soon as the window title is changed.
AppIdChanged
application identifier has been changed
This event will be sent as soon as the application identifier is changed.
StateChanged
window state has been changed
This event will be sent as soon as the window state changes.
Values for state argument are described by org_kde_plasma_window_management.state.
VirtualDesktopChanged
window was moved to another workspace
DEPRECATED: use virtual_desktop_entered and virtual_desktop_left instead This event will be sent when a window is moved to another virtual desktop.
It is not sent if it becomes visible on all virtual desktops though.
ThemedIconNameChanged
window’s icon name changed
This event will be sent whenever the themed icon name changes. May be null.
Unmapped
window’s surface was unmapped
This event will be sent immediately after the window is closed and its surface is unmapped.
InitialState
All initial known state is submitted
This event will be sent immediately after all initial state been sent to the client. If the Plasma window is already unmapped, the unmapped event will be sent before the initial_state event.
Only available since version 4 of the interface
ParentWindow
The parent window changed
This event will be sent whenever the parent window of this org_kde_plasma_window changes. The passed parent is another org_kde_plasma_window and this org_kde_plasma_window is a transient window to the parent window. If the parent argument is null, this org_kde_plasma_window does not have a parent window.
Only available since version 5 of the interface
Fields
parent: Option<OrgKdePlasmaWindow>
The parent window
Geometry
The geometry of this window in absolute coordinates
This event will be sent whenever the window geometry of this org_kde_plasma_window changes. The coordinates are in absolute coordinates of the windowing system.
Only available since version 6 of the interface
Fields
IconChanged
The icon of the window changed
This event will be sent whenever the icon of the window changes, but there is no themed icon name. Common examples are Xwayland windows which have a pixmap based icon.
The client can request the icon using get_icon.
Only available since version 7 of the interface
PidChanged
process id of application owning the window has changed
This event will be sent when the compositor has set the process id this window belongs to. This should be set once before the initial_state is sent.
VirtualDesktopEntered
the window entered a new virtual desktop
This event will be sent when the window has entered a new virtual desktop. The window can be on more than one desktop, or none: then is considered on all of them.
Only available since version 8 of the interface
VirtualDesktopLeft
the window left a virtual desktop
This event will be sent when the window left a virtual desktop. If the window leaves all desktops, it can be considered on all. If the window gets manually added on all desktops, the server has to send virtual_desktop_left for every previous desktop it was in for the window to be really considered on all desktops.
Only available since version 8 of the interface
ApplicationMenu
notify the client that the current appmenu changed
This event will be sent after the application menu for the window has changed.
Only available since version 10 of the interface
ActivityEntered
the window entered an activity
This event will be sent when the window has entered an activity. The window can be on more than one activity, or none: then is considered on all of them.
Only available since version 14 of the interface
ActivityLeft
the window left an activity
This event will be sent when the window left an activity. If the window leaves all activities, it will be considered on all. If the window gets manually added on all activities, the server has to send activity_left for every previous activity it was in for the window to be really considered on all activities.
Only available since version 14 of the interface
ResourceNameChanged
X11 resource name has changed
This event will be sent when the X11 resource name of the window has changed. This is only set for XWayland windows.
Only available since version 16 of the interface
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§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
.source§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
.source§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.source§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.