pub struct OrgKdePlasmaWindow { /* private fields */ }
Expand description
interface to control application windows
Manages and control an application window.
Only one client can bind this interface at a time.
See also the Request enum for this interface.
Implementations§
Source§impl OrgKdePlasmaWindow
impl OrgKdePlasmaWindow
Sourcepub fn title_changed(&self, title: String)
pub fn title_changed(&self, title: String)
window title has been changed
This event will be sent as soon as the window title is changed.
Sourcepub fn app_id_changed(&self, app_id: String)
pub fn app_id_changed(&self, app_id: String)
application identifier has been changed
This event will be sent as soon as the application identifier is changed.
Sourcepub fn state_changed(&self, flags: u32)
pub fn state_changed(&self, flags: u32)
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.
Sourcepub fn virtual_desktop_changed(&self, number: i32)
pub fn virtual_desktop_changed(&self, number: i32)
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.
Sourcepub fn themed_icon_name_changed(&self, name: String)
pub fn themed_icon_name_changed(&self, name: String)
window’s icon name changed
This event will be sent whenever the themed icon name changes. May be null.
Sourcepub fn unmapped(&self)
pub fn unmapped(&self)
window’s surface was unmapped
This event will be sent immediately after the window is closed and its surface is unmapped.
Sourcepub fn initial_state(&self)
pub fn initial_state(&self)
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.
Sourcepub fn parent_window(&self, parent: Option<&OrgKdePlasmaWindow>)
pub fn parent_window(&self, parent: Option<&OrgKdePlasmaWindow>)
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.
Sourcepub fn geometry(&self, x: i32, y: i32, width: u32, height: u32)
pub fn geometry(&self, x: i32, y: i32, width: u32, height: u32)
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.
Sourcepub fn icon_changed(&self)
pub fn icon_changed(&self)
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.
Sourcepub fn pid_changed(&self, pid: u32)
pub fn pid_changed(&self, pid: u32)
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.
Sourcepub fn virtual_desktop_entered(&self, id: String)
pub fn virtual_desktop_entered(&self, id: String)
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.
Sourcepub fn virtual_desktop_left(&self, is: String)
pub fn virtual_desktop_left(&self, is: String)
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.
notify the client that the current appmenu changed
This event will be sent after the application menu for the window has changed.
Sourcepub fn activity_entered(&self, id: String)
pub fn activity_entered(&self, id: String)
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.
Sourcepub fn activity_left(&self, id: String)
pub fn activity_left(&self, id: String)
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.
Sourcepub fn resource_name_changed(&self, resource_name: String)
pub fn resource_name_changed(&self, resource_name: String)
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.
Trait Implementations§
Source§impl Borrow<ObjectId> for OrgKdePlasmaWindow
impl Borrow<ObjectId> for OrgKdePlasmaWindow
Source§impl Clone for OrgKdePlasmaWindow
impl Clone for OrgKdePlasmaWindow
Source§fn clone(&self) -> OrgKdePlasmaWindow
fn clone(&self) -> OrgKdePlasmaWindow
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OrgKdePlasmaWindow
impl Debug for OrgKdePlasmaWindow
Source§impl Hash for OrgKdePlasmaWindow
impl Hash for OrgKdePlasmaWindow
Source§impl PartialEq<Weak<OrgKdePlasmaWindow>> for OrgKdePlasmaWindow
impl PartialEq<Weak<OrgKdePlasmaWindow>> for OrgKdePlasmaWindow
Source§impl PartialEq for OrgKdePlasmaWindow
impl PartialEq for OrgKdePlasmaWindow
Source§impl Resource for OrgKdePlasmaWindow
impl Resource for OrgKdePlasmaWindow
Source§fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
Source§fn handle(&self) -> &WeakHandle
fn handle(&self) -> &WeakHandle
Source§fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
Source§fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
Source§fn parse_request(
conn: &DisplayHandle,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Request), DispatchError>
fn parse_request( conn: &DisplayHandle, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Request), DispatchError>
Source§fn write_event<'a>(
&self,
conn: &DisplayHandle,
msg: Self::Event<'a>,
) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
fn write_event<'a>( &self, conn: &DisplayHandle, msg: Self::Event<'a>, ) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
Source§fn is_alive(&self) -> bool
fn is_alive(&self) -> bool
impl Eq for OrgKdePlasmaWindow
Auto Trait Implementations§
impl Freeze for OrgKdePlasmaWindow
impl !RefUnwindSafe for OrgKdePlasmaWindow
impl Send for OrgKdePlasmaWindow
impl Sync for OrgKdePlasmaWindow
impl Unpin for OrgKdePlasmaWindow
impl !UnwindSafe for OrgKdePlasmaWindow
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> 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.