pub struct RingBuilder { /* private fields */ }
Expand description
A utility for constructing a Ring
.
Implementations§
Source§impl RingBuilder
impl RingBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new RingBuilder
.
Sourcepub fn outer(&mut self, rect: Rect) -> &mut Self
pub fn outer(&mut self, rect: Rect) -> &mut Self
Set the outer region of the ring.
Only one of inner and outer may be set.
Sourcepub fn inner(&mut self, rect: Rect) -> &mut Self
pub fn inner(&mut self, rect: Rect) -> &mut Self
Set the inner region of the ring.
Only one of inner and outer may be set.
Sourcepub fn left_width(&mut self, value: i64) -> &mut Self
pub fn left_width(&mut self, value: i64) -> &mut Self
Set the width of the left side of the ring.
Sourcepub fn right_width(&mut self, value: i64) -> &mut Self
pub fn right_width(&mut self, value: i64) -> &mut Self
Set the width of the right side of the ring.
Sourcepub fn bot_height(&mut self, value: i64) -> &mut Self
pub fn bot_height(&mut self, value: i64) -> &mut Self
Set the height of the bottom of the ring.
Sourcepub fn top_height(&mut self, value: i64) -> &mut Self
pub fn top_height(&mut self, value: i64) -> &mut Self
Set the height of the top of the ring.
Sourcepub fn widths(&mut self, value: i64) -> &mut Self
pub fn widths(&mut self, value: i64) -> &mut Self
Sets the widths of the vertical-going parts of the ring to the given value.
Sourcepub fn heights(&mut self, value: i64) -> &mut Self
pub fn heights(&mut self, value: i64) -> &mut Self
Sets the heights of the horizontal-going parts of the ring to the given value.
Sourcepub fn uniform_width(&mut self, value: i64) -> &mut Self
pub fn uniform_width(&mut self, value: i64) -> &mut Self
Sets the width of all ring edges to the given value.
Sourcepub fn dir_widths(&mut self, dir: Dir, value: i64) -> &mut Self
pub fn dir_widths(&mut self, dir: Dir, value: i64) -> &mut Self
Sets the width of segments running in the given direction.
If dir
is Dir::Vert
, sets the widths of the left/right regions.
If dir
is Dir::Horiz
, sets the heights of the top/bottom regions.
Sourcepub fn side_width(&mut self, side: Side, value: i64) -> &mut Self
pub fn side_width(&mut self, side: Side, value: i64) -> &mut Self
Set the width of the given side.
Trait Implementations§
Source§impl Clone for RingBuilder
impl Clone for RingBuilder
Source§fn clone(&self) -> RingBuilder
fn clone(&self) -> RingBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more