Struct lay_rs::view::LayerTreeBuilder
source · pub struct LayerTreeBuilder { /* private fields */ }
Expand description
Builder for LayerTree
.
Implementations§
source§impl LayerTreeBuilder
impl LayerTreeBuilder
pub fn key<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn background_color<VALUE: Into<(PaintColor, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn border_color<VALUE: Into<(Color, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn border_width<VALUE: Into<(f32, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn border_style<VALUE: Into<BorderStyle>>( &mut self, value: VALUE, ) -> &mut Self
pub fn border_corner_radius<VALUE: Into<(BorderRadius, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn size<VALUE: Into<(Size, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn position<VALUE: Into<(Point, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn anchor_point<VALUE: Into<(Point, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn scale<VALUE: Into<(Point, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn shadow_offset<VALUE: Into<(Point, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn shadow_radius<VALUE: Into<(f32, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn shadow_color<VALUE: Into<(Color, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn shadow_spread<VALUE: Into<(f32, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn blend_mode<VALUE: Into<BlendMode>>(&mut self, value: VALUE) -> &mut Self
pub fn layout_style<VALUE: Into<Style>>(&mut self, value: VALUE) -> &mut Self
pub fn opacity<VALUE: Into<(f32, Option<Transition>)>>( &mut self, value: VALUE, ) -> &mut Self
pub fn image_cache<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn pointer_events<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn replicate_node<VALUE: Into<Option<NodeRef>>>( &mut self, value: VALUE, ) -> &mut Self
source§impl LayerTreeBuilder
impl LayerTreeBuilder
A builder for the LayerTree struct
pub fn with_key(key: impl Into<String>) -> Self
pub fn children( &mut self, children: Vec<impl RenderLayerTree + 'static>, ) -> &mut Self
pub fn content<F: Into<ContentDrawFunction>>( &mut self, content_handler: Option<F>, ) -> &mut Self
pub fn on_pointer_move<F: Into<PointerHandlerFunction>>( &mut self, on_pointer_move: F, ) -> &mut Self
pub fn on_pointer_in<F: Into<PointerHandlerFunction>>( &mut self, on_pointer_in: F, ) -> &mut Self
pub fn on_pointer_out<F: Into<PointerHandlerFunction>>( &mut self, on_pointer_out: F, ) -> &mut Self
pub fn on_pointer_press<F: Into<PointerHandlerFunction>>( &mut self, on_pointer_press: F, ) -> &mut Self
pub fn on_pointer_release<F: Into<PointerHandlerFunction>>( &mut self, on_pointer_release: F, ) -> &mut Self
Trait Implementations§
source§impl Clone for LayerTreeBuilder
impl Clone for LayerTreeBuilder
source§fn clone(&self) -> LayerTreeBuilder
fn clone(&self) -> LayerTreeBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LayerTreeBuilder
impl !RefUnwindSafe for LayerTreeBuilder
impl !Send for LayerTreeBuilder
impl !Sync for LayerTreeBuilder
impl Unpin for LayerTreeBuilder
impl !UnwindSafe for LayerTreeBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more