Struct wayland_protocols_plasma::output_management::v2::client::kde_output_management_v2::KdeOutputManagementV2
source · pub struct KdeOutputManagementV2 { /* private fields */ }
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 kde_output_device_v2 objects.
outputmanagement (wl_global)
request:
- create_configuration -> outputconfiguration (wl_resource)
outputconfiguration (wl_resource)
requests:
- enable(outputdevice, bool)
- mode(outputdevice, mode)
- 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.
Implementations§
source§impl KdeOutputManagementV2
impl KdeOutputManagementV2
sourcepub fn create_configuration<U: Send + Sync + 'static, D: Dispatch<KdeOutputConfigurationV2, U> + 'static>(
&self,
qh: &QueueHandle<D>,
udata: U
) -> KdeOutputConfigurationV2
pub fn create_configuration<U: Send + Sync + 'static, D: Dispatch<KdeOutputConfigurationV2, U> + 'static>( &self, qh: &QueueHandle<D>, udata: U ) -> KdeOutputConfigurationV2
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 KdeOutputManagementV2
impl Borrow<ObjectId> for KdeOutputManagementV2
source§impl Clone for KdeOutputManagementV2
impl Clone for KdeOutputManagementV2
source§fn clone(&self) -> KdeOutputManagementV2
fn clone(&self) -> KdeOutputManagementV2
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KdeOutputManagementV2
impl Debug for KdeOutputManagementV2
source§impl Hash for KdeOutputManagementV2
impl Hash for KdeOutputManagementV2
source§impl PartialEq<Weak<KdeOutputManagementV2>> for KdeOutputManagementV2
impl PartialEq<Weak<KdeOutputManagementV2>> for KdeOutputManagementV2
source§impl PartialEq for KdeOutputManagementV2
impl PartialEq for KdeOutputManagementV2
source§fn eq(&self, other: &KdeOutputManagementV2) -> bool
fn eq(&self, other: &KdeOutputManagementV2) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Proxy for KdeOutputManagementV2
impl Proxy for KdeOutputManagementV2
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 KdeOutputManagementV2
Auto Trait Implementations§
impl !RefUnwindSafe for KdeOutputManagementV2
impl Send for KdeOutputManagementV2
impl Sync for KdeOutputManagementV2
impl Unpin for KdeOutputManagementV2
impl !UnwindSafe for KdeOutputManagementV2
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.