Trait treemap::Mappable

source ·
pub trait Mappable {
    fn get_size(&self) -> f64;
    fn set_size(&mut self, size: f64);
    fn get_bounds(&self) -> &Rect;
    fn set_bounds_from_rect(&mut self, bounds: Rect);
    fn set_bounds_from_points(&mut self, x: f64, y: f64, w: f64, h: f64);
    fn get_order(&self) -> i32;
    fn set_order(&mut self, order: i32);
    fn get_depth(&self) -> i32;
    fn set_depth(&mut self, depth: i32);
}
Expand description

Interface representing an object that can be placed in a treemap layout.

Properties

  • size: corresponds to area in map.
  • order: the sort order of the item.
  • depth: the depth in hierarchy.
  • bounds: the bounding rectangle of the item in the map.

Required Methods

Implementors