[][src]Trait orbtk::prelude::api::MouseHandler

pub trait MouseHandler: Widget {
    fn on_click<H>(self, handler: H) -> Self
    where
        H: 'static + Fn(Point) -> bool
, { ... }
fn on_mouse_down<H>(self, handler: H) -> Self
    where
        H: 'static + Fn(Point) -> bool
, { ... }
fn on_mouse_up<H>(self, handler: H) -> Self
    where
        H: 'static + Fn(Point) -> bool
, { ... }
fn on_scroll<H>(self, handler: H) -> Self
    where
        H: 'static + Fn(Point) -> bool
, { ... } }

Provided methods

fn on_click<H>(self, handler: H) -> Self where
    H: 'static + Fn(Point) -> bool

Inserts a click handler.

fn on_mouse_down<H>(self, handler: H) -> Self where
    H: 'static + Fn(Point) -> bool

Insert a mouse down handler.

fn on_mouse_up<H>(self, handler: H) -> Self where
    H: 'static + Fn(Point) -> bool

Insert a mouse up handler.

fn on_scroll<H>(self, handler: H) -> Self where
    H: 'static + Fn(Point) -> bool

Insert a mouse up handler.

Loading content...

Implementors

impl MouseHandler for FocusBehavior

impl MouseHandler for MouseBehavior

impl MouseHandler for SelectionBehavior

impl MouseHandler for Button

impl MouseHandler for CheckBox

impl MouseHandler for ListViewItem

impl MouseHandler for ScrollViewer

impl MouseHandler for Switch

impl MouseHandler for ToggleButton

Loading content...