pub struct Pad { /* private fields */ }
Expand description
Sets the padding of the title. Each padding value only applies when the corresponding xanchor
/yanchor
value is set accordingly. E.g. for left padding to take effect, xanchor
must be set to left. The same rule applies if xanchor
/yanchor
is determined automatically. Padding is muted if the respective anchor value is middle/center.
Implementations§
Source§impl Pad
impl Pad
Sourcepub fn t(&mut self, t: f64) -> &mut Self
pub fn t(&mut self, t: f64) -> &mut Self
The amount of padding (in px) along the top of the component.
default: 0
Sourcepub fn r(&mut self, r: f64) -> &mut Self
pub fn r(&mut self, r: f64) -> &mut Self
The amount of padding (in px) on the right side of the component.
default: 0
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pad
impl RefUnwindSafe for Pad
impl Send for Pad
impl Sync for Pad
impl Unpin for Pad
impl UnwindSafe for Pad
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