[−][src]Trait embedded_layout::View
A View
is the base unit for most of the embedded-layout
operations.
View
s must have a size and a position, so they need to implement the Dimensions
and
Transform
traits.
See the custom_view
example for how you can define more complex views.
Required methods
fn translate(&mut self, by: Point)
Move the origin of an object by a given number of (x, y) pixels
fn bounds(&self) -> Rectangle
Returns the bounding box of the View
as a Rectangle
Provided methods
Loading content...Implementors
impl<C: ViewChainElement> View for ViewGroup<C>
[src]
impl<T> View for T where
T: Transform + Dimensions,
[src]
T: Transform + Dimensions,