pub struct Turtle { /* private fields */ }
Implementations§
Source§impl Turtle
impl Turtle
pub fn row_height(&self) -> f64
pub fn update_width_max(&mut self, pos: f64, dx: f64)
pub fn update_height_max(&mut self, pos: f64, dy: f64)
pub fn update_width_min(&mut self, pos: f64, dx: f64)
pub fn update_height_min(&mut self, pos: f64, dy: f64)
pub fn set_shift(&mut self, shift: DVec2)
pub fn layout(&self) -> &Layout
pub fn layout_mut(&mut self) -> &mut Layout
pub fn used(&self) -> DVec2
pub fn set_used(&mut self, width_used: f64, height_used: f64)
pub fn set_wrap_spacing(&mut self, value: f64)
pub fn set_pos(&mut self, pos: DVec2)
pub fn rect_is_visible(&self, geom: Rect) -> bool
pub fn origin(&self) -> DVec2
pub fn rel_pos(&self) -> DVec2
pub fn rel_pos_padded(&self) -> DVec2
pub fn pos(&self) -> DVec2
pub fn scroll(&self) -> DVec2
pub fn max_width(&self, walk: Walk) -> Option<f64>
pub fn max_height(&self, walk: Walk) -> Option<f64>
pub fn eval_width(&self, width: Size, margin: Margin, flow: Flow) -> f64
pub fn eval_height(&self, height: Size, margin: Margin, flow: Flow) -> f64
pub fn rect(&self) -> Rect
pub fn unscrolled_rect(&self) -> Rect
pub fn padded_rect_used(&self) -> Rect
pub fn rect_left(&self) -> Rect
pub fn padded_rect(&self) -> Rect
pub fn size(&self) -> DVec2
pub fn width_left(&self) -> f64
pub fn height_left(&self) -> f64
pub fn padded_height_or_used(&self) -> f64
pub fn padded_width_or_used(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Turtle
impl RefUnwindSafe for Turtle
impl Send for Turtle
impl Sync for Turtle
impl Unpin for Turtle
impl UnwindSafe for Turtle
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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