Struct nannou::geom::rect::Padding
[−]
[src]
pub struct Padding<S = DefaultScalar> { pub x: Range<S>, pub y: Range<S>, }
The distance between the inner edge of a border and the outer edge of the inner content.
Fields
x: Range<S>
Padding on the start and end of the x axis.
y: Range<S>
Padding on the start and end of the y axis.
Methods
impl<S> Padding<S> where
S: BaseNum,
[src]
S: BaseNum,
Trait Implementations
impl<S: Copy> Copy for Padding<S>
[src]
impl<S: Clone> Clone for Padding<S>
[src]
fn clone(&self) -> Padding<S>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for Padding<S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more