Struct split_controller::SplitController 
                   
                       [−]
                   
               [src]
pub struct SplitController {
    pub value: f64,
    pub min_value: f64,
    pub border: f64,
    pub orientation: SplitOrientation,
    // some fields omitted
}Stores information about an UI split.
Fields
value: f64
                           The value of split.
min_value: f64
                           The minimum value of split.
border: f64
                           The border width.
orientation: SplitOrientation
                           The orientation of split.
Methods
impl SplitController[src]
fn new(
    value: f64, 
    min_value: f64, 
    border: f64, 
    orientation: SplitOrientation
) -> SplitController
value: f64,
min_value: f64,
border: f64,
orientation: SplitOrientation
) -> SplitController
Creates a new SplitController.
fn is_dragging(&self) -> bool
Gets whether the split is currently being dragged by the user.
fn event<E: GenericEvent>(
    &mut self, 
    layout: SplitLayout, 
    max_value: f64, 
    rect: [f64; 4], 
    transform: Matrix2x3<f64>, 
    e: &E
)
&mut self,
layout: SplitLayout,
max_value: f64,
rect: [f64; 4],
transform: Matrix2x3<f64>,
e: &E
)
Handles event.
fn state(&self) -> SplitState
Gets the current state of split.
fn line_rect(&self, layout: SplitLayout, rect: [f64; 4]) -> [f64; 4]
Gets line rectangle [x, y, w, h] from rectangle [x, y, w, h] of parent panel.