[][src]Struct embedded_layout::layout::ViewGroup

pub struct ViewGroup<C: ViewChainElement = Guard> { /* fields omitted */ }

Group multiple Views together

ViewGroup takes ownership over the views, so make sure you set them up before creating the group. The bounds and size of a ViewGroup envelops all the contained Views.

Note: translating an empty ViewGroup has no effect

Implementations

impl ViewGroup<Guard>[src]

#[must_use]pub const fn new() -> Self[src]

Create a new, empty ViewGroup object

impl<C: ViewChainElement> ViewGroup<C>[src]

pub fn add_view<V: View>(self, view: V) -> ViewGroup<Link<V, C>>[src]

Bind a View to this ViewGroup

The View remains at it's current location, until the ViewGroup is translated.

pub fn view_count(&self) -> u32[src]

Returns the number of views in this ViewGroup

Trait Implementations

impl Default for ViewGroup<Guard>[src]

impl<'a, C, VC> Drawable<C> for &'a ViewGroup<VC> where
    C: PixelColor,
    VC: ViewChainElement,
    &'a VC: Drawable<C>, 
[src]

fn draw<D: DrawTarget<C>>(self, display: &mut D) -> Result<(), D::Error>[src]

Draw the graphics object using the supplied DrawTarget.

impl<C: ViewChainElement> View for ViewGroup<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for ViewGroup<C> where
    C: RefUnwindSafe

impl<C> Send for ViewGroup<C> where
    C: Send

impl<C> Sync for ViewGroup<C> where
    C: Sync

impl<C> Unpin for ViewGroup<C> where
    C: Unpin

impl<C> UnwindSafe for ViewGroup<C> where
    C: UnwindSafe

Blanket Implementations

impl<T> Align for T where
    T: View
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> View for T where
    T: Transform + Dimensions
[src]