[−][src]Struct embedded_layout::layout::ViewGroup
Group multiple View
s 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 View
s.
Note: translating an empty ViewGroup
has no effect
Implementations
impl ViewGroup<Guard>
[src]
impl<C: ViewChainElement> ViewGroup<C>
[src]
pub fn add_view<V: View>(self, view: V) -> ViewGroup<Link<V, C>>
[src]
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]
C: PixelColor,
VC: ViewChainElement,
&'a VC: Drawable<C>,
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,
C: RefUnwindSafe,
impl<C> Send for ViewGroup<C> where
C: Send,
C: Send,
impl<C> Sync for ViewGroup<C> where
C: Sync,
C: Sync,
impl<C> Unpin for ViewGroup<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for ViewGroup<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Align for T where
T: View,
[src]
T: View,
fn align_to<H, V>(Self, &impl View, H, V) -> T where
H: HorizontalAlignment,
V: VerticalAlignment,
[src]
H: HorizontalAlignment,
V: VerticalAlignment,
fn align_to_mut<H, V>(&mut Self, &impl View, H, V) -> &mut T where
H: HorizontalAlignment,
V: VerticalAlignment,
[src]
H: HorizontalAlignment,
V: VerticalAlignment,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> View for T where
T: Transform + Dimensions,
[src]
T: Transform + Dimensions,