pub struct LitContent { /* private fields */ }Expand description
The lighting of the own content of a visual in the render walk: begun before the content is drawn, ended after it (before the children).
Implementations§
Source§impl LitContent
impl LitContent
Sourcepub fn begin(
visual: &ServerCompositionVisual,
canvas: &mut dyn IDrawingContextImpl,
) -> Option<LitContent>
pub fn begin( visual: &ServerCompositionVisual, canvas: &mut dyn IDrawingContextImpl, ) -> Option<LitContent>
When enabled lights reach visual, pushes the layer the content is
drawn into; None (nothing pushed) when no light reaches the visual,
it has no content bounds, the light is full everywhere, or the
visual is a layer visual (whose layer stays open for its children,
which are lit each by itself). Without layer effects, also None
when the compositor has no render interface for the bitmap of the map.
Sourcepub fn end(self, canvas: &mut dyn IDrawingContextImpl)
pub fn end(self, canvas: &mut dyn IDrawingContextImpl)
Ends the lighting: pops the multiply layer, or draws the light map over the content and pops the layer.
Auto Trait Implementations§
impl !RefUnwindSafe for LitContent
impl !UnwindSafe for LitContent
impl Freeze for LitContent
impl Send for LitContent
impl Sync for LitContent
impl Unpin for LitContent
impl UnsafeUnpin for LitContent
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more