gi-gtk-3.0.26: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.EventControllerMotion

Contents

Description

EventControllerMotion is an event controller meant for situations where you need to track the position of the pointer.

This object was added in 3.24.

Synopsis

Exported types

toEventControllerMotion :: (MonadIO m, IsEventControllerMotion o) => o -> m EventControllerMotion Source #

Cast to EventControllerMotion, for types for which this is known to be safe. For general casts, use castTo.

Methods

new

eventControllerMotionNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsWidget a) 
=> a

widget: a Widget

-> m EventControllerMotion

Returns: a new EventControllerMotion

Creates a new event controller that will handle motion events for the given widget.

Since: 3.24

Signals

enter

type C_EventControllerMotionEnterCallback = Ptr () -> CDouble -> CDouble -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type EventControllerMotionEnterCallback Source #

Arguments

 = Double

x: the x coordinate

-> Double

y: the y coordinate

-> IO () 

Signals that the pointer has entered the widget.

afterEventControllerMotionEnter :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionEnterCallback -> m SignalHandlerId Source #

Connect a signal handler for the “enter” signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after eventControllerMotion #enter callback

onEventControllerMotionEnter :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionEnterCallback -> m SignalHandlerId Source #

Connect a signal handler for the “enter” signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on eventControllerMotion #enter callback

leave

type C_EventControllerMotionLeaveCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type EventControllerMotionLeaveCallback = IO () Source #

Signals that pointer has left the widget.

afterEventControllerMotionLeave :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionLeaveCallback -> m SignalHandlerId Source #

Connect a signal handler for the “leave” signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after eventControllerMotion #leave callback

onEventControllerMotionLeave :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionLeaveCallback -> m SignalHandlerId Source #

Connect a signal handler for the “leave” signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on eventControllerMotion #leave callback

motion

type C_EventControllerMotionMotionCallback = Ptr () -> CDouble -> CDouble -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type EventControllerMotionMotionCallback Source #

Arguments

 = Double

x: the x coordinate

-> Double

y: the y coordinate

-> IO () 

Emitted when the pointer moves inside the widget.

afterEventControllerMotionMotion :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionMotionCallback -> m SignalHandlerId Source #

Connect a signal handler for the “motion” signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after eventControllerMotion #motion callback

onEventControllerMotionMotion :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionMotionCallback -> m SignalHandlerId Source #

Connect a signal handler for the “motion” signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on eventControllerMotion #motion callback