Skip to main content

SplashState

Struct SplashState 

Source
struct SplashState {
Show 15 fields registry_state: RegistryState, output_state: OutputState, shm: Shm, pool: SlotPool, window: Window, width: u32, height: u32, start: Instant, min_hold: Duration, ready_file: PathBuf, fade_start: Option<Instant>, exit: bool, footer: Vec<String>, startup_rx: Receiver<StartupEvent>, stage_list: StageList,
}

Fields§

§registry_state: RegistryState§output_state: OutputState§shm: Shm§pool: SlotPool§window: Window§width: u32§height: u32§start: Instant§min_hold: Duration§ready_file: PathBuf§fade_start: Option<Instant>§exit: bool§footer: Vec<String>§startup_rx: Receiver<StartupEvent>§stage_list: StageList

Implementations§

Source§

impl SplashState

Source

fn should_dismiss(&self) -> bool

Source

fn draw(&mut self, qh: &QueueHandle<Self>)

Paint one frame and request the next frame callback, or set exit once the dismiss condition is met. Driven by the compositor’s frame callbacks (which also pace the ~60 fps pulse).

Trait Implementations§

Source§

impl CompositorHandler for SplashState

Source§

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

The surface has either been moved into or out of an output and the output has a different scale factor.
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 frame( &mut self, _: &Connection, qh: &QueueHandle<Self>, _: &WlSurface, _: u32, )

A frame callback has been completed. Read more
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§

impl Dispatch<WlCallback, WlSurface> for SplashState

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 SplashState

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

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<WlRegistry, GlobalListContents> for SplashState

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<WlShm, GlobalData> for SplashState

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<WlSurface, SurfaceData> for SplashState

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

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 SplashState

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 SplashState

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

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 SplashState

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 SplashState

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 SplashState

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 SplashState

Source§

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

Source§

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

A new output has been advertised.
Source§

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

An existing output has changed.
Source§

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

An output is no longer advertised. Read more
Source§

impl ProvidesRegistryState for SplashState

Source§

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

Returns a mutable reference to the registry state.
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§

impl ShmHandler for SplashState

Source§

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

Source§

impl WindowHandler for SplashState

Source§

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

Request to close a window. Read more
Source§

fn configure( &mut self, _: &Connection, qh: &QueueHandle<Self>, _: &Window, _: WindowConfigure, _: 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
§

impl<T> Downcast for T
where T: 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.
§

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.
§

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.
§

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.

§

impl<T> Instrument for T

§

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

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

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> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

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