Trait guion::layout::Gonstraints[][src]

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) { ... } }

Associated Types

Loading content...

Required methods

fn x(&self) -> Self::Axis[src]

fn y(&self) -> Self::Axis[src]

fn set_x(&mut self, x: &Self::Axis)[src]

fn set_y(&mut self, y: &Self::Axis)[src]

fn empty() -> Self[src]

fn fixed(w: u32, h: u32) -> Self[src]

fn from_axis(x: &Self::Axis, y: &Self::Axis) -> Self[src]

fn add_x(&mut self, o: &Self)[src]

fn add_y(&mut self, o: &Self)[src]

fn and(&self, o: &Self) -> Self[src]

fn max(&self, o: &Self) -> Self[src]

fn add_border(&mut self, b: &Border)[src]

Loading content...

Provided methods

fn par(&self, dir: Orientation) -> Self::Axis[src]

fn unpar(&self, dir: Orientation) -> Self::Axis[src]

fn set_par(&mut self, dir: Orientation, v: &Self::Axis)[src]

fn set_unpar(&mut self, dir: Orientation, v: &Self::Axis)[src]

fn from_par(dir: Orientation, par: &Self::Axis, unpar: &Self::Axis) -> Self[src]

fn add(&mut self, o: &Self, dir: Orientation)[src]

fn flip(&mut self)[src]

fn add_space(&mut self, v: u32, dir: Orientation)[src]

Loading content...

Implementors

impl Gonstraints for StdGonstraints[src]

type Axis = StdGonstraintAxis

Loading content...