pub struct ShaderView { /* private fields */ }Expand description
One view’s state, which never renders.
Implementations§
Source§impl ShaderView
impl ShaderView
Sourcepub fn set_layer(&mut self, layer: Option<Arc<ShaderLayer>>)
pub fn set_layer(&mut self, layer: Option<Arc<ShaderLayer>>)
Keeps layer.
Sourcepub fn set_input(
&mut self,
_renderer: &Renderer,
_input: ShaderInput,
_picture: Option<(&[u8], u32, u32, u32)>,
)
pub fn set_input( &mut self, _renderer: &Renderer, _input: ShaderInput, _picture: Option<(&[u8], u32, u32, u32)>, )
Does nothing.
Sourcepub fn set_input_from_frame(
&mut self,
_renderer: &Renderer,
_input: ShaderInput,
) -> bool
pub fn set_input_from_frame( &mut self, _renderer: &Renderer, _input: ShaderInput, ) -> bool
false: there is no frame.
Sourcepub fn has_input(&self, _input: ShaderInput) -> bool
pub fn has_input(&self, _input: ShaderInput) -> bool
false: nothing is kept.
Sourcepub fn start_transition(&mut self, _duration: Duration, _now: Instant)
pub fn start_transition(&mut self, _duration: Duration, _now: Instant)
Does nothing: a transition ends at once.
Sourcepub fn start_transition_backwards(&mut self, _duration: Duration, _now: Instant)
pub fn start_transition_backwards(&mut self, _duration: Duration, _now: Instant)
Does nothing: a transition ends at once.
Sourcepub fn transitioning(&mut self, _now: Instant) -> bool
pub fn transitioning(&mut self, _now: Instant) -> bool
false: a transition ends at once.
Sourcepub fn replaces_children(&mut self, _now: Instant) -> bool
pub fn replaces_children(&mut self, _now: Instant) -> bool
false: the children stay.
Sourcepub fn layer(&self) -> Option<&Arc<ShaderLayer>>
pub fn layer(&self) -> Option<&Arc<ShaderLayer>>
The layer it was given.
Sourcepub fn set_slot(&mut self, _slot: u16, _value: AnimationValue)
pub fn set_slot(&mut self, _slot: u16, _value: AnimationValue)
Does nothing.
Sourcepub fn wants_frame(&self) -> bool
pub fn wants_frame(&self) -> bool
false: there are no frames.
Sourcepub fn collect_frame(&mut self, _renderer: &Renderer) -> bool
pub fn collect_frame(&mut self, _renderer: &Renderer) -> bool
false: there are no frames.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ShaderView
impl Freeze for ShaderView
impl Move for ShaderView
impl RefUnwindSafe for ShaderView
impl Send for ShaderView
impl Sync for ShaderView
impl Unpin for ShaderView
impl UnsafeUnpin for ShaderView
impl UnwindSafe for ShaderView
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