pub struct OutputManagementState {
pub output_manager: ZwlrOutputManagerV1,
pub output_manager_serial: Option<u32>,
pub output_heads: HashMap<ObjectId, WlOutputHead>,
pub output_modes: HashMap<ObjectId, WlOutputMode>,
pub output_configuration: Option<ZwlrOutputConfigurationV1>,
pub mode_to_head_ids: HashMap<ObjectId, ObjectId>,
/* private fields */
}
Fields§
§output_manager: ZwlrOutputManagerV1
§output_manager_serial: Option<u32>
§output_heads: HashMap<ObjectId, WlOutputHead>
§output_modes: HashMap<ObjectId, WlOutputMode>
§output_configuration: Option<ZwlrOutputConfigurationV1>
§mode_to_head_ids: HashMap<ObjectId, ObjectId>
Implementations§
Source§impl OutputManagementState
impl OutputManagementState
pub fn dispatch_event(&self, event: OutputManagementEvent)
pub fn enable_head( &self, head_id: ObjectId, ) -> Result<bool, OutputManagementHandlerError>
pub fn disable_head( &self, head_id: ObjectId, ) -> Result<bool, OutputManagementHandlerError>
pub fn set_mode( &self, head_id: ObjectId, mode_id: ObjectId, ) -> Result<bool, OutputManagementHandlerError>
pub fn set_custom_mode( &self, head_id: ObjectId, width: i32, height: i32, refresh: i32, ) -> Result<bool, OutputManagementHandlerError>
pub fn set_transform( &self, head_id: ObjectId, transform: Transform, ) -> Result<bool, OutputManagementHandlerError>
pub fn set_position( &self, head_id: ObjectId, x: i32, y: i32, ) -> Result<bool, OutputManagementHandlerError>
pub fn set_scale( &self, head_id: ObjectId, scale: f64, ) -> Result<bool, OutputManagementHandlerError>
pub fn set_adaptive_sync( &self, head_id: ObjectId, enable: bool, ) -> Result<bool, OutputManagementHandlerError>
Trait Implementations§
Source§impl Dispatch<WlRegistry, GlobalListContents> for OutputManagementState
impl Dispatch<WlRegistry, GlobalListContents> for OutputManagementState
Source§fn event(
_: &mut Self,
registry: &WlRegistry,
event: Event,
_: &GlobalListContents,
_: &Connection,
qh: &QueueHandle<OutputManagementState>,
)
fn event( _: &mut Self, registry: &WlRegistry, event: Event, _: &GlobalListContents, _: &Connection, qh: &QueueHandle<OutputManagementState>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
_qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Source§impl Dispatch<ZwlrOutputConfigurationHeadV1, ()> for OutputManagementState
impl Dispatch<ZwlrOutputConfigurationHeadV1, ()> for OutputManagementState
Source§fn event(
_state: &mut Self,
_proxy: &ZwlrOutputConfigurationHeadV1,
event: <ZwlrOutputConfigurationHeadV1 as Proxy>::Event,
_data: &(),
_conn: &Connection,
_handle: &QueueHandle<Self>,
)
fn event( _state: &mut Self, _proxy: &ZwlrOutputConfigurationHeadV1, event: <ZwlrOutputConfigurationHeadV1 as Proxy>::Event, _data: &(), _conn: &Connection, _handle: &QueueHandle<Self>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
_qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Source§impl Dispatch<ZwlrOutputConfigurationV1, ()> for OutputManagementState
impl Dispatch<ZwlrOutputConfigurationV1, ()> for OutputManagementState
Source§fn event(
state: &mut Self,
mode: &ZwlrOutputConfigurationV1,
event: <ZwlrOutputConfigurationV1 as Proxy>::Event,
_data: &(),
_conn: &Connection,
_handle: &QueueHandle<Self>,
)
fn event( state: &mut Self, mode: &ZwlrOutputConfigurationV1, event: <ZwlrOutputConfigurationV1 as Proxy>::Event, _data: &(), _conn: &Connection, _handle: &QueueHandle<Self>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
_qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Source§impl Dispatch<ZwlrOutputHeadV1, ()> for OutputManagementState
impl Dispatch<ZwlrOutputHeadV1, ()> for OutputManagementState
Source§fn event(
state: &mut Self,
head: &ZwlrOutputHeadV1,
event: <ZwlrOutputHeadV1 as Proxy>::Event,
_: &(),
_: &Connection,
_handle: &QueueHandle<Self>,
)
fn event( state: &mut Self, head: &ZwlrOutputHeadV1, event: <ZwlrOutputHeadV1 as Proxy>::Event, _: &(), _: &Connection, _handle: &QueueHandle<Self>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
qhandle: &QueueHandle<Self>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, qhandle: &QueueHandle<Self>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Source§impl Dispatch<ZwlrOutputManagerV1, ()> for OutputManagementState
impl Dispatch<ZwlrOutputManagerV1, ()> for OutputManagementState
Source§fn event(
state: &mut Self,
_: &ZwlrOutputManagerV1,
event: <ZwlrOutputManagerV1 as Proxy>::Event,
_: &(),
_: &Connection,
_: &QueueHandle<Self>,
)
fn event( state: &mut Self, _: &ZwlrOutputManagerV1, event: <ZwlrOutputManagerV1 as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<Self>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
qhandle: &QueueHandle<Self>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, qhandle: &QueueHandle<Self>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Source§impl Dispatch<ZwlrOutputModeV1, ()> for OutputManagementState
impl Dispatch<ZwlrOutputModeV1, ()> for OutputManagementState
Source§fn event(
state: &mut Self,
mode: &ZwlrOutputModeV1,
event: <ZwlrOutputModeV1 as Proxy>::Event,
_data: &(),
_conn: &Connection,
_handle: &QueueHandle<Self>,
)
fn event( state: &mut Self, mode: &ZwlrOutputModeV1, event: <ZwlrOutputModeV1 as Proxy>::Event, _data: &(), _conn: &Connection, _handle: &QueueHandle<Self>, )
Called when an event from the server is processed Read more
Source§fn event_created_child(
opcode: u16,
_qhandle: &QueueHandle<State>,
) -> Arc<dyn ObjectData>
fn event_created_child( opcode: u16, _qhandle: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read more
Auto Trait Implementations§
impl Freeze for OutputManagementState
impl !RefUnwindSafe for OutputManagementState
impl Send for OutputManagementState
impl Sync for OutputManagementState
impl Unpin for OutputManagementState
impl !UnwindSafe for OutputManagementState
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
Mutably borrows from an owned value. Read more
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.