pub trait Placeable {
// Required methods
fn place(&self, x: f32, y: f32);
fn width(&self) -> f32;
fn height(&self) -> f32;
fn node_id(&self) -> usize;
// Provided method
fn content_offset(&self) -> (f32, f32) { ... }
}Expand description
Result of running a measurement pass for a single child.
Required Methods§
Provided Methods§
Sourcefn content_offset(&self) -> (f32, f32)
fn content_offset(&self) -> (f32, f32)
Returns the accumulated content offset from the coordinator chain. This is used by layout modifiers (like scroll) to report where content should be positioned within this placeable’s bounds. Default is (0.0, 0.0) for no offset.