pub struct LayoutBox { /* private fields */ }Expand description
Computed layout geometry cached on every scene node.
Implementations§
Source§impl LayoutBox
impl LayoutBox
pub fn get_bounds(&self) -> Rect
pub fn get_mut_bounds(&mut self) -> &mut Rect
pub fn set_bounds(&mut self, val: Rect) -> &mut Self
pub fn get_content_bounds(&self) -> Rect
pub fn get_mut_content_bounds(&mut self) -> &mut Rect
pub fn set_content_bounds(&mut self, val: Rect) -> &mut Self
pub fn get_content_size(&self) -> Size
pub fn get_mut_content_size(&mut self) -> &mut Size
pub fn set_content_size(&mut self, val: Size) -> &mut Self
pub fn get_scroll_offset(&self) -> Point
pub fn get_mut_scroll_offset(&mut self) -> &mut Point
pub fn set_scroll_offset(&mut self, val: Point) -> &mut Self
Trait Implementations§
impl Copy for LayoutBox
impl StructuralPartialEq for LayoutBox
Auto Trait Implementations§
impl Forget for LayoutBox
impl Freeze for LayoutBox
impl Move for LayoutBox
impl RefUnwindSafe for LayoutBox
impl Send for LayoutBox
impl Sync for LayoutBox
impl Unpin for LayoutBox
impl UnsafeUnpin for LayoutBox
impl UnwindSafe for LayoutBox
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