Struct flo_ui::control::Bounds
[−]
[src]
pub struct Bounds { pub x1: Position, pub y1: Position, pub x2: Position, pub y2: Position, }
Represents the bounds of a particular control
Fields
x1: Position
y1: Position
x2: Position
y2: Position
Methods
impl Bounds
[src]
pub fn fill_all() -> Bounds
[src]
Creates a bounding box that fills a container
pub fn next_horiz(width: f32) -> Bounds
[src]
Bounding box that fills the container vertically and follows the previous control horizontally
pub fn next_vert(height: f32) -> Bounds
[src]
Bounding box that fills the container horizontally and follows the previous control horizontally
pub fn fill_horiz() -> Bounds
[src]
Bounding box that fills the remaining horizontal space
pub fn stretch_horiz(ratio: f32) -> Bounds
[src]
Bounding box that stretchs to occupy the remaining horizontal space
pub fn fill_vert() -> Bounds
[src]
Bounding box that fills the remaining vertical space
Trait Implementations
impl Clone for Bounds
[src]
fn clone(&self) -> Bounds
[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 PartialEq for Bounds
[src]
fn eq(&self, __arg_0: &Bounds) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Bounds) -> bool
[src]
This method tests for !=
.
impl Debug for Bounds
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more