Struct wayland_protocols_plasma::server_decoration::server::org_kde_kwin_server_decoration::OrgKdeKwinServerDecoration
source · pub struct OrgKdeKwinServerDecoration { /* private fields */ }
Expand description
org_kde_kwin_server_decoration
See also the Request enum for this interface.
Implementations§
source§impl OrgKdeKwinServerDecoration
impl OrgKdeKwinServerDecoration
sourcepub fn mode(&self, mode: u32)
pub fn mode(&self, mode: u32)
The new decoration mode applied by the server
This event is emitted directly after the decoration is created and represents the base decoration policy by the server. E.g. a server which wants all surfaces to be client-side decorated will send Client, a server which wants server-side decoration will send Server.
The client can request a different mode through the decoration request. The server will acknowledge this by another event with the same mode. So even if a server prefers server-side decoration it’s possible to force a client-side decoration.
The server may emit this event at any time. In this case the client can again request a different mode. It’s the responsibility of the server to prevent a feedback loop.
Trait Implementations§
source§impl Borrow<ObjectId> for OrgKdeKwinServerDecoration
impl Borrow<ObjectId> for OrgKdeKwinServerDecoration
source§impl Clone for OrgKdeKwinServerDecoration
impl Clone for OrgKdeKwinServerDecoration
source§fn clone(&self) -> OrgKdeKwinServerDecoration
fn clone(&self) -> OrgKdeKwinServerDecoration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OrgKdeKwinServerDecoration
impl Debug for OrgKdeKwinServerDecoration
source§impl Hash for OrgKdeKwinServerDecoration
impl Hash for OrgKdeKwinServerDecoration
source§impl PartialEq<Weak<OrgKdeKwinServerDecoration>> for OrgKdeKwinServerDecoration
impl PartialEq<Weak<OrgKdeKwinServerDecoration>> for OrgKdeKwinServerDecoration
source§impl PartialEq for OrgKdeKwinServerDecoration
impl PartialEq for OrgKdeKwinServerDecoration
source§fn eq(&self, other: &OrgKdeKwinServerDecoration) -> bool
fn eq(&self, other: &OrgKdeKwinServerDecoration) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Resource for OrgKdeKwinServerDecoration
impl Resource for OrgKdeKwinServerDecoration
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 OrgKdeKwinServerDecoration
Auto Trait Implementations§
impl Freeze for OrgKdeKwinServerDecoration
impl !RefUnwindSafe for OrgKdeKwinServerDecoration
impl Send for OrgKdeKwinServerDecoration
impl Sync for OrgKdeKwinServerDecoration
impl Unpin for OrgKdeKwinServerDecoration
impl !UnwindSafe for OrgKdeKwinServerDecoration
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<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.