pub struct WinitEnv {Show 13 fields
seats: SeatHandler,
outputs: OutputHandler,
shm: ShmHandler,
compositor: SimpleGlobal<WlCompositor>,
subcompositor: SimpleGlobal<WlSubcompositor>,
shell: ShellHandler,
relative_pointer_manager: SimpleGlobal<ZwpRelativePointerManagerV1>,
pointer_constraints: SimpleGlobal<ZwpPointerConstraintsV1>,
text_input_manager: SimpleGlobal<ZwpTextInputManagerV3>,
decoration_manager: SimpleGlobal<ZxdgDecorationManagerV1>,
xdg_activation: SimpleGlobal<XdgActivationV1>,
fractional_scale_manager: SimpleGlobal<WpFractionalScaleManagerV1>,
viewporter: SimpleGlobal<WpViewporter>,
}
Expand description
The environment that we utilize.
Fields§
§seats: SeatHandler
§outputs: OutputHandler
§shm: ShmHandler
§compositor: SimpleGlobal<WlCompositor>
§subcompositor: SimpleGlobal<WlSubcompositor>
§shell: ShellHandler
§relative_pointer_manager: SimpleGlobal<ZwpRelativePointerManagerV1>
§pointer_constraints: SimpleGlobal<ZwpPointerConstraintsV1>
§text_input_manager: SimpleGlobal<ZwpTextInputManagerV3>
§decoration_manager: SimpleGlobal<ZxdgDecorationManagerV1>
§xdg_activation: SimpleGlobal<XdgActivationV1>
§fractional_scale_manager: SimpleGlobal<WpFractionalScaleManagerV1>
§viewporter: SimpleGlobal<WpViewporter>
Implementations§
Trait Implementations§
source§impl GlobalHandler<WlCompositor> for WinitEnv
impl GlobalHandler<WlCompositor> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
This global was created and signaled in the registry with given id and version
source§impl GlobalHandler<WlShell> for WinitEnv
impl GlobalHandler<WlShell> for WinitEnv
source§impl GlobalHandler<WlShm> for WinitEnv
impl GlobalHandler<WlShm> for WinitEnv
source§impl GlobalHandler<WlSubcompositor> for WinitEnv
impl GlobalHandler<WlSubcompositor> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
This global was created and signaled in the registry with given id and version
source§impl GlobalHandler<WpFractionalScaleManagerV1> for WinitEnv
impl GlobalHandler<WpFractionalScaleManagerV1> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
This global was created and signaled in the registry with given id and version
source§impl GlobalHandler<WpViewporter> for WinitEnv
impl GlobalHandler<WpViewporter> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
This global was created and signaled in the registry with given id and version
source§impl GlobalHandler<XdgActivationV1> for WinitEnv
impl GlobalHandler<XdgActivationV1> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
This global was created and signaled in the registry with given id and version
source§impl GlobalHandler<XdgWmBase> for WinitEnv
impl GlobalHandler<XdgWmBase> for WinitEnv
source§impl GlobalHandler<ZwpPointerConstraintsV1> for WinitEnv
impl GlobalHandler<ZwpPointerConstraintsV1> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
This global was created and signaled in the registry with given id and version
source§impl GlobalHandler<ZwpRelativePointerManagerV1> for WinitEnv
impl GlobalHandler<ZwpRelativePointerManagerV1> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
This global was created and signaled in the registry with given id and version
source§impl GlobalHandler<ZwpTextInputManagerV3> for WinitEnv
impl GlobalHandler<ZwpTextInputManagerV3> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
This global was created and signaled in the registry with given id and version
source§impl GlobalHandler<ZxdgDecorationManagerV1> for WinitEnv
impl GlobalHandler<ZxdgDecorationManagerV1> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
This global was created and signaled in the registry with given id and version
source§impl GlobalHandler<ZxdgShellV6> for WinitEnv
impl GlobalHandler<ZxdgShellV6> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
This global was created and signaled in the registry with given id and version
source§impl InnerEnv for WinitEnv
impl InnerEnv for WinitEnv
source§fn process_event(
&mut self,
event: GlobalEvent,
registry: Attached<WlRegistry>,
ddata: DispatchData<'_>
)
fn process_event( &mut self, event: GlobalEvent, registry: Attached<WlRegistry>, ddata: DispatchData<'_> )
Process a
GlobalEvent
source§impl MultiGlobalHandler<WlOutput> for WinitEnv
impl MultiGlobalHandler<WlOutput> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
A new instance of this global was created with given id and version
source§fn removed(&mut self, id: u32, ddata: DispatchData<'_>)
fn removed(&mut self, id: u32, ddata: DispatchData<'_>)
The instance with given id was removed
source§impl MultiGlobalHandler<WlSeat> for WinitEnv
impl MultiGlobalHandler<WlSeat> for WinitEnv
source§fn created(
&mut self,
registry: Attached<WlRegistry>,
id: u32,
version: u32,
ddata: DispatchData<'_>
)
fn created( &mut self, registry: Attached<WlRegistry>, id: u32, version: u32, ddata: DispatchData<'_> )
A new instance of this global was created with given id and version
source§fn removed(&mut self, id: u32, ddata: DispatchData<'_>)
fn removed(&mut self, id: u32, ddata: DispatchData<'_>)
The instance with given id was removed
source§impl OutputHandling for WinitEnv
impl OutputHandling for WinitEnv
source§fn listen<F: FnMut(WlOutput, &OutputInfo, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> OutputStatusListener
fn listen<F: FnMut(WlOutput, &OutputInfo, DispatchData<'_>) + 'static>( &mut self, f: F ) -> OutputStatusListener
Insert a listener for output creation and removal events
source§impl SeatHandling for WinitEnv
impl SeatHandling for WinitEnv
source§fn listen<F: FnMut(Attached<WlSeat>, &SeatData, DispatchData<'_>) + 'static>(
&mut self,
f: F
) -> SeatListener
fn listen<F: FnMut(Attached<WlSeat>, &SeatData, DispatchData<'_>) + 'static>( &mut self, f: F ) -> SeatListener
Insert a listener for seat events
Auto Trait Implementations§
impl !RefUnwindSafe for WinitEnv
impl !Send for WinitEnv
impl !Sync for WinitEnv
impl Unpin for WinitEnv
impl !UnwindSafe for WinitEnv
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