Struct makepad_widgets::turtle::Turtle
source · pub struct Turtle { /* private fields */ }
Implementations§
source§impl Turtle
impl Turtle
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 used(&self) -> DVec2
pub fn set_used(&mut self, width_used: f64, height_used: 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 pos(&self) -> DVec2
pub fn scroll(&self) -> DVec2
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 RefUnwindSafe for Turtle
impl Send for Turtle
impl Sync for Turtle
impl Unpin for Turtle
impl UnwindSafe for Turtle
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