gi-gtk-4.0.3: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.EventControllerLegacy

Description

EventControllerLegacy is an event controller that gives you direct access to the event stream. It should only be used as a last resort if none of the other event controllers or gestures do the job.

Synopsis

Exported types

newtype EventControllerLegacy Source #

Memory-managed wrapper type.

Constructors

EventControllerLegacy (ManagedPtr EventControllerLegacy) 

Instances

Instances details
Eq EventControllerLegacy Source # 
Instance details

Defined in GI.Gtk.Objects.EventControllerLegacy

GObject EventControllerLegacy Source # 
Instance details

Defined in GI.Gtk.Objects.EventControllerLegacy

ManagedPtrNewtype EventControllerLegacy Source # 
Instance details

Defined in GI.Gtk.Objects.EventControllerLegacy

TypedObject EventControllerLegacy Source # 
Instance details

Defined in GI.Gtk.Objects.EventControllerLegacy

Methods

glibType :: IO GType

IsGValue EventControllerLegacy Source #

Convert EventControllerLegacy to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.EventControllerLegacy

Methods

toGValue :: EventControllerLegacy -> IO GValue

fromGValue :: GValue -> IO EventControllerLegacy

HasParentTypes EventControllerLegacy Source # 
Instance details

Defined in GI.Gtk.Objects.EventControllerLegacy

type ParentTypes EventControllerLegacy Source # 
Instance details

Defined in GI.Gtk.Objects.EventControllerLegacy

type ParentTypes EventControllerLegacy = '[EventController, Object]

class (GObject o, IsDescendantOf EventControllerLegacy o) => IsEventControllerLegacy o Source #

Type class for types which can be safely cast to EventControllerLegacy, for instance with toEventControllerLegacy.

Instances

Instances details
(GObject o, IsDescendantOf EventControllerLegacy o) => IsEventControllerLegacy o Source # 
Instance details

Defined in GI.Gtk.Objects.EventControllerLegacy

toEventControllerLegacy :: (MonadIO m, IsEventControllerLegacy o) => o -> m EventControllerLegacy Source #

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

Methods

Overloaded methods

new

eventControllerLegacyNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m EventControllerLegacy

Returns: the newly created event controller.

Creates a new legacy event controller.

Signals

event

type C_EventControllerLegacyEventCallback = Ptr () -> Ptr Event -> Ptr () -> IO CInt Source #

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

type EventControllerLegacyEventCallback Source #

Arguments

 = Event

event: the Event which triggered this signal

-> IO Bool

Returns: True to stop other handlers from being invoked for the event and the emission of this signal. False to propagate the event further.

Emitted for each GDK event delivered to controller.

afterEventControllerLegacyEvent :: (IsEventControllerLegacy a, MonadIO m) => a -> EventControllerLegacyEventCallback -> m SignalHandlerId Source #

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

after eventControllerLegacy #event callback

onEventControllerLegacyEvent :: (IsEventControllerLegacy a, MonadIO m) => a -> EventControllerLegacyEventCallback -> m SignalHandlerId Source #

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

on eventControllerLegacy #event callback