[][src]Struct makepad_widget::Splitter

pub struct Splitter {
    pub axis: Axis,
    pub align: SplitterAlign,
    pub pos: f32,
    pub min_size: f32,
    pub split_size: f32,
    pub bg: Quad,
    pub animator: Animator,
    pub realign_dist: f32,
    pub split_view: View,
    pub _split_area: Area,
    pub _calc_pos: f32,
    pub _is_moving: bool,
    pub _drag_point: f32,
    pub _drag_pos_start: f32,
    pub _drag_max_pos: f32,
    pub _hit_state_margin: Option<Margin>,
}

Fields

axis: Axisalign: SplitterAlignpos: f32min_size: f32split_size: f32bg: Quadanimator: Animatorrealign_dist: f32split_view: View_split_area: Area_calc_pos: f32_is_moving: bool_drag_point: f32_drag_pos_start: f32_drag_max_pos: f32_hit_state_margin: Option<Margin>

Methods

impl Splitter[src]

pub fn proto(cx: &mut Cx) -> Self[src]

pub fn anim_default() -> AnimId[src]

pub fn anim_over() -> AnimId[src]

pub fn anim_down() -> AnimId[src]

pub fn shader_bg() -> ShaderId[src]

pub fn style(cx: &mut Cx, _opt: &StyleOptions)[src]

pub fn handle_splitter(
    &mut self,
    cx: &mut Cx,
    event: &mut Event
) -> SplitterEvent
[src]

pub fn set_splitter_state(&mut self, align: SplitterAlign, pos: f32, axis: Axis)[src]

pub fn begin_splitter(&mut self, cx: &mut Cx)[src]

pub fn mid_splitter(&mut self, cx: &mut Cx)[src]

pub fn end_splitter(&mut self, cx: &mut Cx)[src]

Trait Implementations

impl Clone for Splitter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]