pub struct Flow {
pub width: Dim,
pub height: Dim,
/* private fields */
}Expand description
Positions a block in a flow layout
Will place items in a flow. Left to right, then top to bottom.
Fields§
§width: Dim§height: DimImplementations§
Source§impl Flow
impl Flow
pub fn new() -> ElementWrap<Self>
pub fn width<T>(self: ElementWrap<Self>, val: T) -> ElementWrap<Self>
pub fn height<T>(self: ElementWrap<Self>, val: T) -> ElementWrap<Self>
pub fn children(self: ElementWrap<Self>, val: Elements) -> ElementWrap<Self>
pub fn key(self: ElementWrap<Self>, val: String) -> ElementWrap<Self>
pub fn key_option( self: ElementWrap<Self>, val: Option<String>, ) -> ElementWrap<Self>
Source§impl Flow
impl Flow
pub fn make_block(self, x: f32, y: f32) -> ElementWrap<Blk>
Trait Implementations§
Source§impl RenderElement for Flow
impl RenderElement for Flow
fn render(self: ElementWrap<Self>) -> Elements
Auto Trait Implementations§
impl Freeze for Flow
impl !RefUnwindSafe for Flow
impl !Send for Flow
impl !Sync for Flow
impl Unpin for Flow
impl !UnwindSafe for Flow
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> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.