Trait Flowable
Source pub trait Flowable:
FlowableClone
+ Send
+ Sync {
// Required methods
fn wrap(&self, avail_width: Pt, avail_height: Pt) -> Size;
fn split(
&self,
avail_width: Pt,
avail_height: Pt,
) -> Option<(Box<dyn Flowable>, Box<dyn Flowable>)>;
fn draw(
&self,
canvas: &mut Canvas,
x: Pt,
y: Pt,
avail_width: Pt,
avail_height: Pt,
);
// Provided methods
fn intrinsic_width(&self) -> Option<Pt> { ... }
fn out_of_flow(&self) -> bool { ... }
fn z_index(&self) -> i32 { ... }
fn pagination(&self) -> Pagination { ... }
fn debug_name(&self) -> &'static str { ... }
}
Performs copy-assignment from
source.
Read more