pub struct Dimensions {
pub content: Rect,
pub padding: EdgeSizes,
pub border: EdgeSizes,
pub margin: EdgeSizes,
}Fields§
§content: Rect§padding: EdgeSizes§border: EdgeSizes§margin: EdgeSizesImplementations§
Source§impl Dimensions
impl Dimensions
Sourcepub fn padding_box(&self) -> Rect
pub fn padding_box(&self) -> Rect
パディングボックス(content + padding)。絶対配置の包含ブロックに使う。
pub fn margin_box(&self) -> Rect
Trait Implementations§
Source§impl Clone for Dimensions
impl Clone for Dimensions
Source§impl Debug for Dimensions
impl Debug for Dimensions
Auto Trait Implementations§
impl Freeze for Dimensions
impl RefUnwindSafe for Dimensions
impl Send for Dimensions
impl Sync for Dimensions
impl Unpin for Dimensions
impl UnsafeUnpin for Dimensions
impl UnwindSafe for Dimensions
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