Struct fui_controls::GestureArea
source · pub struct GestureArea {
pub tap_down: Callback<()>,
pub tap_up: Callback<()>,
pub hover_change: Callback<bool>,
}
Fields§
§tap_down: Callback<()>
§tap_up: Callback<()>
§hover_change: Callback<bool>
Implementations§
source§impl GestureArea
impl GestureArea
source§impl GestureArea
impl GestureArea
pub fn to_view( self, style: Option<Box<dyn Style<Self>>>, context: ViewContext ) -> Rc<RefCell<dyn ControlObject>>
Trait Implementations§
source§impl Style<GestureArea> for DefaultGestureAreaStyle
impl Style<GestureArea> for DefaultGestureAreaStyle
fn setup( &mut self, _data: &mut GestureArea, _control_context: &mut ControlContext )
fn handle_event( &mut self, data: &mut GestureArea, _control_context: &mut ControlContext, _drawing_context: &mut dyn DrawingContext, _event_context: &mut dyn EventContext, event: ControlEvent )
fn measure( &mut self, _data: &mut GestureArea, control_context: &mut ControlContext, drawing_context: &mut dyn DrawingContext, size: Size ) -> Size
fn set_rect( &mut self, _data: &mut GestureArea, control_context: &mut ControlContext, drawing_context: &mut dyn DrawingContext, rect: Rect )
fn hit_test( &self, _data: &GestureArea, control_context: &ControlContext, point: Point ) -> Option<Rc<RefCell<dyn ControlObject>>>
fn to_primitives( &self, _data: &GestureArea, control_context: &ControlContext, drawing_context: &mut dyn DrawingContext ) -> (Vec<Primitive>, Vec<Primitive>)
Auto Trait Implementations§
impl Freeze for GestureArea
impl !RefUnwindSafe for GestureArea
impl !Send for GestureArea
impl !Sync for GestureArea
impl Unpin for GestureArea
impl !UnwindSafe for GestureArea
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more