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]
impl<S> Padding<S> where
S: BaseNum,
Trait Implementations
impl<S: Copy> Copy for Padding<S>
[src]
impl<S: Copy> Copy for Padding<S>
impl<S: Clone> Clone for Padding<S>
[src]
impl<S: Clone> Clone for Padding<S>
fn clone(&self) -> Padding<S>
[src]
fn clone(&self) -> Padding<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]
impl<S: Debug> Debug for Padding<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: PartialEq> PartialEq for Padding<S>
[src]
impl<S: PartialEq> PartialEq for Padding<S>