Struct winit::platform_impl::linux::wayland::state::WinitState

source ·
pub struct WinitState {
Show 25 fields pub registry_state: RegistryState, pub output_state: OutputState, pub compositor_state: Arc<CompositorState>, pub subcompositor_state: Option<Arc<SubcompositorState>>, pub seat_state: SeatState, pub shm: Shm, pub custom_cursor_pool: Arc<Mutex<SlotPool>>, pub xdg_shell: XdgShell, pub windows: RefCell<AHashMap<WindowId, Arc<Mutex<WindowState>>>>, pub window_requests: RefCell<AHashMap<WindowId, Arc<WindowRequests>>>, pub window_events_sink: Arc<Mutex<EventSink>>, pub window_compositor_updates: Vec<WindowCompositorUpdate>, pub seats: AHashMap<ObjectId, WinitSeatState>, pub pointer_surfaces: AHashMap<ObjectId, Arc<ThemedPointer<WinitPointerData>>>, pub text_input_state: Option<TextInputState>, pub monitors: Arc<Mutex<Vec<MonitorHandle>>>, pub events_sink: EventSink, pub xdg_activation: Option<XdgActivationState>, pub relative_pointer: Option<RelativePointerState>, pub pointer_constraints: Option<Arc<PointerConstraintsState>>, pub viewporter_state: Option<ViewporterState>, pub fractional_scaling_manager: Option<FractionalScalingManager>, pub kwin_blur_manager: Option<KWinBlurManager>, pub loop_handle: LoopHandle<'static, Self>, pub dispatched_events: bool,
}
Expand description

Winit’s Wayland state.

Fields§

§registry_state: RegistryState

The WlRegistry.

§output_state: OutputState

The state of the WlOutput handling.

§compositor_state: Arc<CompositorState>

The compositor state which is used to create new windows and regions.

§subcompositor_state: Option<Arc<SubcompositorState>>

The state of the subcompositor.

§seat_state: SeatState

The seat state responsible for all sorts of input.

§shm: Shm

The shm for software buffers, such as cursors.

§custom_cursor_pool: Arc<Mutex<SlotPool>>

The pool where custom cursors are allocated.

§xdg_shell: XdgShell

The XDG shell that is used for windows.

§windows: RefCell<AHashMap<WindowId, Arc<Mutex<WindowState>>>>

The currently present windows.

§window_requests: RefCell<AHashMap<WindowId, Arc<WindowRequests>>>

The requests from the Window to EventLoop, such as close operations and redraw requests.

§window_events_sink: Arc<Mutex<EventSink>>

The events that were generated directly from the window.

§window_compositor_updates: Vec<WindowCompositorUpdate>

The update for the windows coming from the compositor.

§seats: AHashMap<ObjectId, WinitSeatState>

Currently handled seats.

§pointer_surfaces: AHashMap<ObjectId, Arc<ThemedPointer<WinitPointerData>>>

Currently present cursor surfaces.

§text_input_state: Option<TextInputState>

The state of the text input on the client.

§monitors: Arc<Mutex<Vec<MonitorHandle>>>

Observed monitors.

§events_sink: EventSink

Sink to accumulate window events from the compositor, which is latter dispatched in event loop run.

§xdg_activation: Option<XdgActivationState>

Xdg activation.

§relative_pointer: Option<RelativePointerState>

Relative pointer.

§pointer_constraints: Option<Arc<PointerConstraintsState>>

Pointer constraints to handle pointer locking and confining.

§viewporter_state: Option<ViewporterState>

Viewporter state on the given window.

§fractional_scaling_manager: Option<FractionalScalingManager>

Fractional scaling manager.

§kwin_blur_manager: Option<KWinBlurManager>

KWin blur manager.

§loop_handle: LoopHandle<'static, Self>

Loop handle to re-register event sources, such as keyboard repeat.

§dispatched_events: bool

Whether we have dispatched events to the user thus we want to send AboutToWait and normally wakeup the user.

Implementations§

source§

impl WinitState

source

fn on_keyboard_destroy(&mut self, seat: &ObjectId)

source§

impl WinitState

source

pub fn new( globals: &GlobalList, queue_handle: &QueueHandle<Self>, loop_handle: LoopHandle<'static, WinitState>, ) -> Result<Self, OsError>

source

pub fn scale_factor_changed( &mut self, surface: &WlSurface, scale_factor: f64, is_legacy: bool, )

source

pub fn queue_close( updates: &mut Vec<WindowCompositorUpdate>, window_id: WindowId, )

Trait Implementations§

source§

impl CompositorHandler for WinitState

source§

fn transform_changed( &mut self, _: &Connection, _: &QueueHandle<Self>, _: &WlSurface, _: Transform, )

The surface has either been moved into or out of an output and the output has different transform.
source§

fn surface_enter( &mut self, _: &Connection, _: &QueueHandle<Self>, _: &WlSurface, _: &WlOutput, )

The surface has entered an output.
source§

fn surface_leave( &mut self, _: &Connection, _: &QueueHandle<Self>, _: &WlSurface, _: &WlOutput, )

The surface has left an output.
source§

fn scale_factor_changed( &mut self, _: &Connection, _: &QueueHandle<Self>, surface: &WlSurface, scale_factor: i32, )

The surface has either been moved into or out of an output and the output has a different scale factor.
source§

fn frame( &mut self, _: &Connection, _: &QueueHandle<Self>, surface: &WlSurface, _: u32, )

A frame callback has been completed. Read more
source§

impl Dispatch<OrgKdeKwinBlur, ()> for WinitState

source§

fn event( state: &mut Self, proxy: &OrgKdeKwinBlur, event: <OrgKdeKwinBlur as Proxy>::Event, data: &(), conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<OrgKdeKwinBlur, (), WinitState> for KWinBlurManager

source§

fn event( _: &mut WinitState, _: &OrgKdeKwinBlur, _: <OrgKdeKwinBlur as Proxy>::Event, _: &(), _: &Connection, _: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<OrgKdeKwinBlurManager, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &OrgKdeKwinBlurManager, event: <OrgKdeKwinBlurManager as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<OrgKdeKwinBlurManager, GlobalData, WinitState> for KWinBlurManager

source§

fn event( _: &mut WinitState, _: &OrgKdeKwinBlurManager, _: <OrgKdeKwinBlurManager as Proxy>::Event, _: &GlobalData, _: &Connection, _: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<WlCallback, WlSurface> for WinitState

source§

fn event( state: &mut Self, proxy: &WlCallback, event: <WlCallback as Proxy>::Event, data: &WlSurface, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WlCompositor, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &WlCompositor, event: <WlCompositor as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WlKeyboard, KeyboardData> for WinitState

source§

fn event( state: &mut WinitState, wl_keyboard: &WlKeyboard, event: <WlKeyboard as Proxy>::Event, data: &KeyboardData, _: &Connection, _: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<WlOutput, OutputData> for WinitState

source§

fn event( state: &mut Self, proxy: &WlOutput, event: <WlOutput as Proxy>::Event, data: &OutputData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WlPointer, WinitPointerData> for WinitState

source§

fn event( state: &mut Self, proxy: &WlPointer, event: <WlPointer as Proxy>::Event, data: &WinitPointerData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WlRegistry, GlobalListContents> for WinitState

source§

fn event( state: &mut Self, proxy: &WlRegistry, event: <WlRegistry as Proxy>::Event, data: &GlobalListContents, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WlSeat, SeatData> for WinitState

source§

fn event( state: &mut Self, proxy: &WlSeat, event: <WlSeat as Proxy>::Event, data: &SeatData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WlShm, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &WlShm, event: <WlShm as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WlSubcompositor, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &WlSubcompositor, event: <WlSubcompositor as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WlSubsurface, SubsurfaceData> for WinitState

source§

fn event( state: &mut Self, proxy: &WlSubsurface, event: <WlSubsurface as Proxy>::Event, data: &SubsurfaceData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WlSurface, SurfaceData> for WinitState

source§

fn event( state: &mut Self, proxy: &WlSurface, event: <WlSurface as Proxy>::Event, data: &SurfaceData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WlTouch, TouchData> for WinitState

source§

fn event( state: &mut Self, proxy: &WlTouch, event: <WlTouch as Proxy>::Event, data: &TouchData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WpCursorShapeDeviceV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &WpCursorShapeDeviceV1, event: <WpCursorShapeDeviceV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WpCursorShapeDeviceV1, GlobalData, WinitState> for SeatState

source§

fn event( _: &mut WinitState, _: &WpCursorShapeDeviceV1, _: <WpCursorShapeDeviceV1 as Proxy>::Event, _: &GlobalData, _: &Connection, _: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<WpCursorShapeManagerV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &WpCursorShapeManagerV1, event: <WpCursorShapeManagerV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WpCursorShapeManagerV1, GlobalData, WinitState> for SeatState

source§

fn event( _: &mut WinitState, _: &WpCursorShapeManagerV1, _: <WpCursorShapeManagerV1 as Proxy>::Event, _: &GlobalData, _: &Connection, _: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<WpFractionalScaleManagerV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &WpFractionalScaleManagerV1, event: <WpFractionalScaleManagerV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WpFractionalScaleManagerV1, GlobalData, WinitState> for FractionalScalingManager

source§

fn event( _: &mut WinitState, _: &WpFractionalScaleManagerV1, _: <WpFractionalScaleManagerV1 as Proxy>::Event, _: &GlobalData, _: &Connection, _: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<WpFractionalScaleV1, FractionalScaling> for WinitState

source§

fn event( state: &mut Self, proxy: &WpFractionalScaleV1, event: <WpFractionalScaleV1 as Proxy>::Event, data: &FractionalScaling, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WpFractionalScaleV1, FractionalScaling, WinitState> for FractionalScalingManager

source§

fn event( state: &mut WinitState, _: &WpFractionalScaleV1, event: <WpFractionalScaleV1 as Proxy>::Event, data: &FractionalScaling, _: &Connection, _: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<WpViewport, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &WpViewport, event: <WpViewport as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WpViewport, GlobalData, WinitState> for ViewporterState

source§

fn event( _: &mut WinitState, _: &WpViewport, _: <WpViewport as Proxy>::Event, _: &GlobalData, _: &Connection, _: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<WpViewporter, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &WpViewporter, event: <WpViewporter as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<WpViewporter, GlobalData, WinitState> for ViewporterState

source§

fn event( _: &mut WinitState, _: &WpViewporter, _: <WpViewporter as Proxy>::Event, _: &GlobalData, _: &Connection, _: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<XdgActivationTokenV1, XdgActivationTokenData> for WinitState

source§

fn event( state: &mut Self, proxy: &XdgActivationTokenV1, event: <XdgActivationTokenV1 as Proxy>::Event, data: &XdgActivationTokenData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<XdgActivationTokenV1, XdgActivationTokenData, WinitState> for XdgActivationState

source§

fn event( state: &mut WinitState, proxy: &XdgActivationTokenV1, event: <XdgActivationTokenV1 as Proxy>::Event, data: &XdgActivationTokenData, _: &Connection, _: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<XdgActivationV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &XdgActivationV1, event: <XdgActivationV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<XdgActivationV1, GlobalData, WinitState> for XdgActivationState

source§

fn event( _state: &mut WinitState, _proxy: &XdgActivationV1, _event: <XdgActivationV1 as Proxy>::Event, _data: &GlobalData, _conn: &Connection, _qhandle: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<XdgSurface, WindowData> for WinitState

source§

fn event( state: &mut Self, proxy: &XdgSurface, event: <XdgSurface as Proxy>::Event, data: &WindowData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<XdgToplevel, WindowData> for WinitState

source§

fn event( state: &mut Self, proxy: &XdgToplevel, event: <XdgToplevel as Proxy>::Event, data: &WindowData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<XdgWmBase, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &XdgWmBase, event: <XdgWmBase as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZwpConfinedPointerV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZwpConfinedPointerV1, event: <ZwpConfinedPointerV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZwpConfinedPointerV1, GlobalData, WinitState> for PointerConstraintsState

source§

fn event( _state: &mut WinitState, _proxy: &ZwpConfinedPointerV1, _event: <ZwpConfinedPointerV1 as Proxy>::Event, _data: &GlobalData, _conn: &Connection, _qhandle: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<ZwpLockedPointerV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZwpLockedPointerV1, event: <ZwpLockedPointerV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZwpLockedPointerV1, GlobalData, WinitState> for PointerConstraintsState

source§

fn event( _state: &mut WinitState, _proxy: &ZwpLockedPointerV1, _event: <ZwpLockedPointerV1 as Proxy>::Event, _data: &GlobalData, _conn: &Connection, _qhandle: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<ZwpPointerConstraintsV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZwpPointerConstraintsV1, event: <ZwpPointerConstraintsV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZwpPointerConstraintsV1, GlobalData, WinitState> for PointerConstraintsState

source§

fn event( _state: &mut WinitState, _proxy: &ZwpPointerConstraintsV1, _event: <ZwpPointerConstraintsV1 as Proxy>::Event, _data: &GlobalData, _conn: &Connection, _qhandle: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<ZwpRelativePointerManagerV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZwpRelativePointerManagerV1, event: <ZwpRelativePointerManagerV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZwpRelativePointerManagerV1, GlobalData, WinitState> for RelativePointerState

source§

fn event( _state: &mut WinitState, _proxy: &ZwpRelativePointerManagerV1, _event: <ZwpRelativePointerManagerV1 as Proxy>::Event, _data: &GlobalData, _conn: &Connection, _qhandle: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<ZwpRelativePointerV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZwpRelativePointerV1, event: <ZwpRelativePointerV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZwpRelativePointerV1, GlobalData, WinitState> for RelativePointerState

source§

fn event( state: &mut WinitState, _proxy: &ZwpRelativePointerV1, event: <ZwpRelativePointerV1 as Proxy>::Event, _data: &GlobalData, _conn: &Connection, _qhandle: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<ZwpTextInputManagerV3, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZwpTextInputManagerV3, event: <ZwpTextInputManagerV3 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZwpTextInputManagerV3, GlobalData, WinitState> for TextInputState

source§

fn event( _state: &mut WinitState, _proxy: &ZwpTextInputManagerV3, _event: <ZwpTextInputManagerV3 as Proxy>::Event, _data: &GlobalData, _conn: &Connection, _qhandle: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<ZwpTextInputV3, TextInputData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZwpTextInputV3, event: <ZwpTextInputV3 as Proxy>::Event, data: &TextInputData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZwpTextInputV3, TextInputData, WinitState> for TextInputState

source§

fn event( state: &mut WinitState, text_input: &ZwpTextInputV3, event: <ZwpTextInputV3 as Proxy>::Event, data: &TextInputData, _conn: &Connection, _qhandle: &QueueHandle<WinitState>, )

Called when an event from the server is processed Read more
source§

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<ZxdgDecorationManagerV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZxdgDecorationManagerV1, event: <ZxdgDecorationManagerV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZxdgOutputManagerV1, GlobalData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZxdgOutputManagerV1, event: <ZxdgOutputManagerV1 as Proxy>::Event, data: &GlobalData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZxdgOutputV1, OutputData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZxdgOutputV1, event: <ZxdgOutputV1 as Proxy>::Event, data: &OutputData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl Dispatch<ZxdgToplevelDecorationV1, WindowData> for WinitState

source§

fn event( state: &mut Self, proxy: &ZxdgToplevelDecorationV1, event: <ZxdgToplevelDecorationV1 as Proxy>::Event, data: &WindowData, conn: &Connection, qhandle: &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>

Method used to initialize the user-data of objects created by events Read more
source§

impl OutputHandler for WinitState

source§

fn output_state(&mut self) -> &mut OutputState

source§

fn new_output( &mut self, _: &Connection, _: &QueueHandle<Self>, output: WlOutput, )

A new output has been advertised.
source§

fn update_output( &mut self, _: &Connection, _: &QueueHandle<Self>, updated: WlOutput, )

An existing output has changed.
source§

fn output_destroyed( &mut self, _: &Connection, _: &QueueHandle<Self>, removed: WlOutput, )

An output is no longer advertised. Read more
source§

impl PointerHandler for WinitState

source§

fn pointer_frame( &mut self, connection: &Connection, _: &QueueHandle<Self>, pointer: &WlPointer, events: &[PointerEvent], )

One or more pointer events are available. Read more
source§

impl ProvidesRegistryState for WinitState

source§

fn runtime_add_global( &mut self, conn: &Connection, qh: &QueueHandle<Self>, name: u32, interface: &str, version: u32, )

Called when a new global has been advertised by the compositor. Read more
source§

fn runtime_remove_global( &mut self, conn: &Connection, qh: &QueueHandle<Self>, name: u32, interface: &str, )

Called when a global has been destroyed by the compositor.
source§

fn registry(&mut self) -> &mut RegistryState

Returns a mutable reference to the registry state.
source§

impl SeatHandler for WinitState

source§

fn seat_state(&mut self) -> &mut SeatState

source§

fn new_capability( &mut self, _: &Connection, queue_handle: &QueueHandle<Self>, seat: WlSeat, capability: SeatCapability, )

A new capability is available on the seat. Read more
source§

fn remove_capability( &mut self, _: &Connection, _queue_handle: &QueueHandle<Self>, seat: WlSeat, capability: SeatCapability, )

A capability has been removed from the seat. Read more
source§

fn new_seat( &mut self, _connection: &Connection, _queue_handle: &QueueHandle<Self>, seat: WlSeat, )

A new seat has been created. Read more
source§

fn remove_seat( &mut self, _connection: &Connection, _queue_handle: &QueueHandle<Self>, seat: WlSeat, )

A seat has been removed. Read more
source§

impl ShmHandler for WinitState

source§

fn shm_state(&mut self) -> &mut Shm

source§

impl TouchHandler for WinitState

source§

fn down( &mut self, _: &Connection, _: &QueueHandle<Self>, touch: &WlTouch, _: u32, _: u32, surface: WlSurface, id: i32, position: (f64, f64), )

New touch point. Read more
source§

fn up( &mut self, _: &Connection, _: &QueueHandle<Self>, touch: &WlTouch, _: u32, _: u32, id: i32, )

End of touch sequence.
source§

fn motion( &mut self, _: &Connection, _: &QueueHandle<Self>, touch: &WlTouch, _: u32, id: i32, position: (f64, f64), )

Touch point motion. Read more
source§

fn cancel(&mut self, _: &Connection, _: &QueueHandle<Self>, touch: &WlTouch)

Cancel active touch sequence. Read more
source§

fn shape( &mut self, _: &Connection, _: &QueueHandle<Self>, _: &WlTouch, _: i32, _: f64, _: f64, )

Touch point shape change. Read more
source§

fn orientation( &mut self, _: &Connection, _: &QueueHandle<Self>, _: &WlTouch, _: i32, _: f64, )

Touch point shape orientation. Read more
source§

impl WindowHandler for WinitState

source§

fn request_close( &mut self, _: &Connection, _: &QueueHandle<Self>, window: &Window, )

Request to close a window. Read more
source§

fn configure( &mut self, _: &Connection, _: &QueueHandle<Self>, window: &Window, configure: WindowConfigure, _serial: u32, )

Apply a suggested surface change. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Downcast for T
where T: Any,

source§

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>

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)

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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more