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]
impl SplitControllerpub fn new(
value: f64,
min_value: f64,
border: f64,
orientation: SplitOrientation
) -> SplitController[src]
pub fn new(
value: f64,
min_value: f64,
border: f64,
orientation: SplitOrientation
) -> SplitControllerCreates a new SplitController.
pub fn is_dragging(&self) -> bool[src]
pub fn is_dragging(&self) -> boolGets whether the split is currently being dragged by the user.
pub fn event<E: GenericEvent>(
&mut self,
layout: SplitLayout,
max_value: f64,
rect: [f64; 4],
transform: Matrix2x3<f64>,
e: &E
)[src]
pub fn event<E: GenericEvent>(
&mut self,
layout: SplitLayout,
max_value: f64,
rect: [f64; 4],
transform: Matrix2x3<f64>,
e: &E
)Handles event.
pub fn state(&self) -> SplitState[src]
pub fn state(&self) -> SplitStateGets the current state of split.
pub fn line_rect(&self, layout: SplitLayout, rect: [f64; 4]) -> [f64; 4][src]
pub 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.
Auto Trait Implementations
impl Send for SplitController
impl Send for SplitControllerimpl Sync for SplitController
impl Sync for SplitController