pub struct LinuxDesktop {
pub cover_policy: CoverPolicy,
/* private fields */
}Expand description
Live wallpapers on every screen, on Wayland or X11.
Fields§
§cover_policy: CoverPolicyImplementations§
Source§impl LinuxDesktop
impl LinuxDesktop
Sourcepub fn start(scenes: Vec<(Monitor, Player)>) -> Result<LinuxDesktop, String>
pub fn start(scenes: Vec<(Monitor, Player)>) -> Result<LinuxDesktop, String>
Plays the scene (Linux composes one, for the whole desktop) on every screen.
Sourcepub fn max_fps(&self) -> u32
pub fn max_fps(&self) -> u32
The highest frame rate worth asking for: the CPU copies every changed pixel.
Sourcepub fn monitors(&self) -> impl Iterator<Item = &Monitor>
pub fn monitors(&self) -> impl Iterator<Item = &Monitor>
The scene’s “monitor” (the whole desktop).
Sourcepub fn tick(&mut self) -> Result<FrameStats, String>
pub fn tick(&mut self) -> Result<FrameStats, String>
Draws the current time wherever it shows.
Auto Trait Implementations§
impl !RefUnwindSafe for LinuxDesktop
impl !UnwindSafe for LinuxDesktop
impl Forget for LinuxDesktop
impl Freeze for LinuxDesktop
impl Move for LinuxDesktop
impl Send for LinuxDesktop
impl Sync for LinuxDesktop
impl Unpin for LinuxDesktop
impl UnsafeUnpin for LinuxDesktop
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.