Struct wayland_protocols_plasma::output_management::v1::client::org_kde_kwin_outputmanagement::OrgKdeKwinOutputmanagement
source · pub struct OrgKdeKwinOutputmanagement {
id: ObjectId,
version: u32,
data: Option<Arc<dyn ObjectData>>,
backend: WeakBackend,
}
Expand description
configuration of server outputs through clients
This interface enables clients to set properties of output devices for screen configuration purposes via the server. To this end output devices are referenced by global org_kde_kwin_outputdevice objects.
§outputmanagement (wl_global)
request:
- create_configuration -> outputconfiguration (wl_resource)
§outputconfiguration (wl_resource)
requests:
- enable(outputdevice, bool)
- mode(outputdevice, mode_id)
- transformation(outputdevice, flag)
- position(outputdevice, x, y)
- apply
events:
- applied
- failed
The server registers one outputmanagement object as a global object. In order to configure outputs a client requests create_configuration, which provides a resource referencing an outputconfiguration for one-time configuration. That way the server knows which requests belong together and can group them by that.
On the outputconfiguration object the client calls for each output whether the output should be enabled, which mode should be set (by referencing the mode from the list of announced modes) and the output’s global position. Once all outputs are configured that way, the client calls apply. At that point and not earlier the server should try to apply the configuration. If this succeeds the server emits the applied signal, otherwise the failed signal, such that the configuring client is noticed about the success of its configuration request.
Through this design the interface enables atomic output configuration changes if internally supported by the server.
This interface has no events.
Fields§
§id: ObjectId
§version: u32
§data: Option<Arc<dyn ObjectData>>
§backend: WeakBackend
Implementations§
source§impl OrgKdeKwinOutputmanagement
impl OrgKdeKwinOutputmanagement
sourcepub fn create_configuration<U: Send + Sync + 'static, D: Dispatch<OrgKdeKwinOutputconfiguration, U> + 'static>(
&self,
qh: &QueueHandle<D>,
udata: U,
) -> OrgKdeKwinOutputconfiguration
pub fn create_configuration<U: Send + Sync + 'static, D: Dispatch<OrgKdeKwinOutputconfiguration, U> + 'static>( &self, qh: &QueueHandle<D>, udata: U, ) -> OrgKdeKwinOutputconfiguration
provide outputconfiguration object for configuring outputs
Request an outputconfiguration object through which the client can configure output devices.
Trait Implementations§
source§impl Borrow<ObjectId> for OrgKdeKwinOutputmanagement
impl Borrow<ObjectId> for OrgKdeKwinOutputmanagement
source§impl Clone for OrgKdeKwinOutputmanagement
impl Clone for OrgKdeKwinOutputmanagement
source§fn clone(&self) -> OrgKdeKwinOutputmanagement
fn clone(&self) -> OrgKdeKwinOutputmanagement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OrgKdeKwinOutputmanagement
impl Debug for OrgKdeKwinOutputmanagement
source§impl Hash for OrgKdeKwinOutputmanagement
impl Hash for OrgKdeKwinOutputmanagement
source§impl PartialEq<Weak<OrgKdeKwinOutputmanagement>> for OrgKdeKwinOutputmanagement
impl PartialEq<Weak<OrgKdeKwinOutputmanagement>> for OrgKdeKwinOutputmanagement
source§impl Proxy for OrgKdeKwinOutputmanagement
impl Proxy for OrgKdeKwinOutputmanagement
source§fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
source§fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
source§fn backend(&self) -> &WeakBackend
fn backend(&self) -> &WeakBackend
source§fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
source§fn send_constructor<I: Proxy>(
&self,
req: Self::Request<'_>,
data: Arc<dyn ObjectData>,
) -> Result<I, InvalidId>
fn send_constructor<I: Proxy>( &self, req: Self::Request<'_>, data: Arc<dyn ObjectData>, ) -> Result<I, InvalidId>
source§fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
source§fn inert(backend: WeakBackend) -> Self
fn inert(backend: WeakBackend) -> Self
source§fn parse_event(
conn: &Connection,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Event), DispatchError>
fn parse_event( conn: &Connection, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Event), DispatchError>
source§fn write_request<'a>(
&self,
conn: &Connection,
msg: Self::Request<'a>,
) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
fn write_request<'a>( &self, conn: &Connection, msg: Self::Request<'a>, ) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
impl Eq for OrgKdeKwinOutputmanagement
Auto Trait Implementations§
impl Freeze for OrgKdeKwinOutputmanagement
impl !RefUnwindSafe for OrgKdeKwinOutputmanagement
impl Send for OrgKdeKwinOutputmanagement
impl Sync for OrgKdeKwinOutputmanagement
impl Unpin for OrgKdeKwinOutputmanagement
impl !UnwindSafe for OrgKdeKwinOutputmanagement
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.