pub trait Gonstraints: From<StdGonstraints> + Into<StdGonstraints> + Clone {
type Axis: GonstraintAxis;
fn x(&self) -> Self::Axis;
fn y(&self) -> Self::Axis;
fn set_x(&mut self, x: &Self::Axis);
fn set_y(&mut self, y: &Self::Axis);
fn empty() -> Self;
fn fixed(w: u32, h: u32) -> Self;
fn from_axis(x: &Self::Axis, y: &Self::Axis) -> Self;
fn add_x(&mut self, o: &Self);
fn add_y(&mut self, o: &Self);
fn and(&self, o: &Self) -> Self;
fn max(&self, o: &Self) -> Self;
fn add_border(&mut self, b: &Border);
fn par(&self, dir: Orientation) -> Self::Axis { ... }
fn unpar(&self, dir: Orientation) -> Self::Axis { ... }
fn set_par(&mut self, dir: Orientation, v: &Self::Axis) { ... }
fn set_unpar(&mut self, dir: Orientation, v: &Self::Axis) { ... }
fn from_par(dir: Orientation, par: &Self::Axis, unpar: &Self::Axis) -> Self { ... }
fn add(&mut self, o: &Self, dir: Orientation) { ... }
fn flip(&mut self) { ... }
fn add_space(&mut self, v: u32, dir: Orientation) { ... }
}
Loading content...Loading content...Loading content...Loading content...