Struct wayland_protocols::wlr::unstable::output_management::v1::client::zwlr_output_configuration_v1::ZwlrOutputConfigurationV1
source · pub struct ZwlrOutputConfigurationV1(/* private fields */);
Implementations§
source§impl ZwlrOutputConfigurationV1
impl ZwlrOutputConfigurationV1
sourcepub fn enable_head(
&self,
head: &ZwlrOutputHeadV1
) -> Main<ZwlrOutputConfigurationHeadV1>
pub fn enable_head( &self, head: &ZwlrOutputHeadV1 ) -> Main<ZwlrOutputConfigurationHeadV1>
enable and configure a head
Enable a head. This request creates a head configuration object that can be used to change the head’s properties.
sourcepub fn disable_head(&self, head: &ZwlrOutputHeadV1)
pub fn disable_head(&self, head: &ZwlrOutputHeadV1)
disable a head
Disable a head.
sourcepub fn apply(&self)
pub fn apply(&self)
apply the configuration
Apply the new output configuration.
In case the configuration is successfully applied, there is no guarantee that the new output state matches completely the requested configuration. For instance, a compositor might round the scale if it doesn’t support fractional scaling.
After this request has been sent, the compositor must respond with an succeeded, failed or cancelled event. Sending a request that isn’t the destructor is a protocol error.
sourcepub fn test(&self)
pub fn test(&self)
test the configuration
Test the new output configuration. The configuration won’t be applied, but will only be validated.
Even if the compositor succeeds to test a configuration, applying it may fail.
After this request has been sent, the compositor must respond with an succeeded, failed or cancelled event. Sending a request that isn’t the destructor is a protocol error.
sourcepub fn destroy(&self)
pub fn destroy(&self)
destroy the output configuration
Using this request a client can tell the compositor that it is not going to use the configuration object anymore. Any changes to the outputs that have not been applied will be discarded.
This request also destroys wlr_output_configuration_head objects created via this object.
This is a destructor, you cannot send requests to this object any longer once this method is called.
Trait Implementations§
source§impl Clone for ZwlrOutputConfigurationV1
impl Clone for ZwlrOutputConfigurationV1
source§fn clone(&self) -> ZwlrOutputConfigurationV1
fn clone(&self) -> ZwlrOutputConfigurationV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZwlrOutputConfigurationV1
impl Debug for ZwlrOutputConfigurationV1
source§impl From<ZwlrOutputConfigurationV1> for Proxy<ZwlrOutputConfigurationV1>
impl From<ZwlrOutputConfigurationV1> for Proxy<ZwlrOutputConfigurationV1>
source§fn from(value: ZwlrOutputConfigurationV1) -> Self
fn from(value: ZwlrOutputConfigurationV1) -> Self
source§impl Interface for ZwlrOutputConfigurationV1
impl Interface for ZwlrOutputConfigurationV1
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
source§impl PartialEq for ZwlrOutputConfigurationV1
impl PartialEq for ZwlrOutputConfigurationV1
source§fn eq(&self, other: &ZwlrOutputConfigurationV1) -> bool
fn eq(&self, other: &ZwlrOutputConfigurationV1) -> bool
self
and other
values to be equal, and is used
by ==
.