pub struct Builder<'a, A: Application> { /* private fields */ }Expand description
Builder for Free.
Implementations§
Source§impl<'a, A: Application> FreeBuilder<'a, A>
impl<'a, A: Application> FreeBuilder<'a, A>
pub fn elements(self, value: &'a Tree<Element>) -> Self
pub fn parent_id(self, value: &'a NodeId) -> Self
pub fn appearances(self, value: Appearances) -> Self
pub fn area(self, value: Area) -> Self
pub fn bindings(self, value: &'a Bindings<A>) -> Self
pub fn border(self, value: Border) -> Self
pub fn clear_color(self, value: ClearColor) -> Self
pub fn coord_kind_override(self, value: Kind) -> Self
pub fn disabled(self, value: bool) -> Self
pub fn layout(self, value: Free) -> Self
pub fn orientation(self, value: (Orientation, Area)) -> Self
Source§impl<'a, A: Application> FreeBuilder<'a, A>
impl<'a, A: Application> FreeBuilder<'a, A>
Trait Implementations§
Source§impl<'a, A: Application> BuildElement for FreeBuilder<'a, A>
impl<'a, A: Application> BuildElement for FreeBuilder<'a, A>
Source§fn build_element(self) -> Element
fn build_element(self) -> Element
Create a frame element with the given parent frame, free layout and optional color.
Controls for free frames will be taken from the given bindings.
If not given an explicit coordinate kind, canvas coordinates type will match that of the given parent dimensions (tile or pixel).
Source§impl<'a, A: Application> Default for FreeBuilder<'a, A>
impl<'a, A: Application> Default for FreeBuilder<'a, A>
Auto Trait Implementations§
impl<'a, A> Freeze for FreeBuilder<'a, A>
impl<'a, A> RefUnwindSafe for FreeBuilder<'a, A>where
<A as Application>::ButtonControls: RefUnwindSafe,
<A as Application>::SystemControls: RefUnwindSafe,
<A as Application>::TextControls: RefUnwindSafe,
<A as Application>::MotionControls: RefUnwindSafe,
<A as Application>::PointerControls: RefUnwindSafe,
impl<'a, A> Send for FreeBuilder<'a, A>where
<A as Application>::ButtonControls: Sync,
<A as Application>::SystemControls: Sync,
<A as Application>::TextControls: Sync,
<A as Application>::MotionControls: Sync,
<A as Application>::PointerControls: Sync,
impl<'a, A> Sync for FreeBuilder<'a, A>where
<A as Application>::ButtonControls: Sync,
<A as Application>::SystemControls: Sync,
<A as Application>::TextControls: Sync,
<A as Application>::MotionControls: Sync,
<A as Application>::PointerControls: Sync,
impl<'a, A> Unpin for FreeBuilder<'a, A>
impl<'a, A> UnwindSafe for FreeBuilder<'a, A>where
<A as Application>::ButtonControls: RefUnwindSafe,
<A as Application>::SystemControls: RefUnwindSafe,
<A as Application>::TextControls: RefUnwindSafe,
<A as Application>::MotionControls: RefUnwindSafe,
<A as Application>::PointerControls: RefUnwindSafe,
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.