#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Gtk.Objects.EventControllerKey
(
EventControllerKey(..) ,
IsEventControllerKey ,
toEventControllerKey ,
noEventControllerKey ,
#if ENABLE_OVERLOADING
EventControllerKeyForwardMethodInfo ,
#endif
eventControllerKeyForward ,
#if ENABLE_OVERLOADING
EventControllerKeyGetGroupMethodInfo ,
#endif
eventControllerKeyGetGroup ,
#if ENABLE_OVERLOADING
EventControllerKeyGetImContextMethodInfo,
#endif
eventControllerKeyGetImContext ,
eventControllerKeyNew ,
#if ENABLE_OVERLOADING
EventControllerKeySetImContextMethodInfo,
#endif
eventControllerKeySetImContext ,
C_EventControllerKeyFocusInCallback ,
EventControllerKeyFocusInCallback ,
#if ENABLE_OVERLOADING
EventControllerKeyFocusInSignalInfo ,
#endif
afterEventControllerKeyFocusIn ,
genClosure_EventControllerKeyFocusIn ,
mk_EventControllerKeyFocusInCallback ,
noEventControllerKeyFocusInCallback ,
onEventControllerKeyFocusIn ,
wrap_EventControllerKeyFocusInCallback ,
C_EventControllerKeyFocusOutCallback ,
EventControllerKeyFocusOutCallback ,
#if ENABLE_OVERLOADING
EventControllerKeyFocusOutSignalInfo ,
#endif
afterEventControllerKeyFocusOut ,
genClosure_EventControllerKeyFocusOut ,
mk_EventControllerKeyFocusOutCallback ,
noEventControllerKeyFocusOutCallback ,
onEventControllerKeyFocusOut ,
wrap_EventControllerKeyFocusOutCallback ,
C_EventControllerKeyImUpdateCallback ,
EventControllerKeyImUpdateCallback ,
#if ENABLE_OVERLOADING
EventControllerKeyImUpdateSignalInfo ,
#endif
afterEventControllerKeyImUpdate ,
genClosure_EventControllerKeyImUpdate ,
mk_EventControllerKeyImUpdateCallback ,
noEventControllerKeyImUpdateCallback ,
onEventControllerKeyImUpdate ,
wrap_EventControllerKeyImUpdateCallback ,
C_EventControllerKeyKeyPressedCallback ,
EventControllerKeyKeyPressedCallback ,
#if ENABLE_OVERLOADING
EventControllerKeyKeyPressedSignalInfo ,
#endif
afterEventControllerKeyKeyPressed ,
genClosure_EventControllerKeyKeyPressed ,
mk_EventControllerKeyKeyPressedCallback ,
noEventControllerKeyKeyPressedCallback ,
onEventControllerKeyKeyPressed ,
wrap_EventControllerKeyKeyPressedCallback,
C_EventControllerKeyKeyReleasedCallback ,
EventControllerKeyKeyReleasedCallback ,
#if ENABLE_OVERLOADING
EventControllerKeyKeyReleasedSignalInfo ,
#endif
afterEventControllerKeyKeyReleased ,
genClosure_EventControllerKeyKeyReleased,
mk_EventControllerKeyKeyReleasedCallback,
noEventControllerKeyKeyReleasedCallback ,
onEventControllerKeyKeyReleased ,
wrap_EventControllerKeyKeyReleasedCallback,
C_EventControllerKeyModifiersCallback ,
EventControllerKeyModifiersCallback ,
#if ENABLE_OVERLOADING
EventControllerKeyModifiersSignalInfo ,
#endif
afterEventControllerKeyModifiers ,
genClosure_EventControllerKeyModifiers ,
mk_EventControllerKeyModifiersCallback ,
noEventControllerKeyModifiersCallback ,
onEventControllerKeyModifiers ,
wrap_EventControllerKeyModifiersCallback,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gdk.Flags as Gdk.Flags
import {-# SOURCE #-} qualified GI.Gtk.Objects.EventController as Gtk.EventController
import {-# SOURCE #-} qualified GI.Gtk.Objects.IMContext as Gtk.IMContext
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
newtype EventControllerKey = EventControllerKey (ManagedPtr EventControllerKey)
foreign import ccall "gtk_event_controller_key_get_type"
c_gtk_event_controller_key_get_type :: IO GType
instance GObject EventControllerKey where
gobjectType _ = c_gtk_event_controller_key_get_type
class GObject o => IsEventControllerKey o
#if MIN_VERSION_base(4,9,0)
instance {-# OVERLAPPABLE #-} (GObject a, O.UnknownAncestorError EventControllerKey a) =>
IsEventControllerKey a
#endif
instance IsEventControllerKey EventControllerKey
instance Gtk.EventController.IsEventController EventControllerKey
instance GObject.Object.IsObject EventControllerKey
toEventControllerKey :: (MonadIO m, IsEventControllerKey o) => o -> m EventControllerKey
toEventControllerKey = liftIO . unsafeCastTo EventControllerKey
noEventControllerKey :: Maybe EventControllerKey
noEventControllerKey = Nothing
#if ENABLE_OVERLOADING
type family ResolveEventControllerKeyMethod (t :: Symbol) (o :: *) :: * where
ResolveEventControllerKeyMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveEventControllerKeyMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveEventControllerKeyMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveEventControllerKeyMethod "forward" o = EventControllerKeyForwardMethodInfo
ResolveEventControllerKeyMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveEventControllerKeyMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveEventControllerKeyMethod "handleEvent" o = Gtk.EventController.EventControllerHandleEventMethodInfo
ResolveEventControllerKeyMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveEventControllerKeyMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveEventControllerKeyMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveEventControllerKeyMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveEventControllerKeyMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveEventControllerKeyMethod "reset" o = Gtk.EventController.EventControllerResetMethodInfo
ResolveEventControllerKeyMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveEventControllerKeyMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveEventControllerKeyMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveEventControllerKeyMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveEventControllerKeyMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveEventControllerKeyMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveEventControllerKeyMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveEventControllerKeyMethod "getGroup" o = EventControllerKeyGetGroupMethodInfo
ResolveEventControllerKeyMethod "getImContext" o = EventControllerKeyGetImContextMethodInfo
ResolveEventControllerKeyMethod "getPropagationPhase" o = Gtk.EventController.EventControllerGetPropagationPhaseMethodInfo
ResolveEventControllerKeyMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveEventControllerKeyMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveEventControllerKeyMethod "getWidget" o = Gtk.EventController.EventControllerGetWidgetMethodInfo
ResolveEventControllerKeyMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveEventControllerKeyMethod "setImContext" o = EventControllerKeySetImContextMethodInfo
ResolveEventControllerKeyMethod "setPropagationPhase" o = Gtk.EventController.EventControllerSetPropagationPhaseMethodInfo
ResolveEventControllerKeyMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveEventControllerKeyMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveEventControllerKeyMethod t EventControllerKey, O.MethodInfo info EventControllerKey p) => O.IsLabelProxy t (EventControllerKey -> p) where
fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveEventControllerKeyMethod t EventControllerKey, O.MethodInfo info EventControllerKey p) => O.IsLabel t (EventControllerKey -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#else
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
#endif
#endif
type EventControllerKeyFocusInCallback =
IO ()
noEventControllerKeyFocusInCallback :: Maybe EventControllerKeyFocusInCallback
noEventControllerKeyFocusInCallback = Nothing
type C_EventControllerKeyFocusInCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_EventControllerKeyFocusInCallback :: C_EventControllerKeyFocusInCallback -> IO (FunPtr C_EventControllerKeyFocusInCallback)
genClosure_EventControllerKeyFocusIn :: EventControllerKeyFocusInCallback -> IO Closure
genClosure_EventControllerKeyFocusIn cb = do
let cb' = wrap_EventControllerKeyFocusInCallback cb
mk_EventControllerKeyFocusInCallback cb' >>= newCClosure
wrap_EventControllerKeyFocusInCallback ::
EventControllerKeyFocusInCallback ->
C_EventControllerKeyFocusInCallback
wrap_EventControllerKeyFocusInCallback _cb _ _ = do
_cb
onEventControllerKeyFocusIn :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusInCallback -> m SignalHandlerId
onEventControllerKeyFocusIn obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyFocusInCallback cb
cb'' <- mk_EventControllerKeyFocusInCallback cb'
connectSignalFunPtr obj "focus-in" cb'' SignalConnectBefore
afterEventControllerKeyFocusIn :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusInCallback -> m SignalHandlerId
afterEventControllerKeyFocusIn obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyFocusInCallback cb
cb'' <- mk_EventControllerKeyFocusInCallback cb'
connectSignalFunPtr obj "focus-in" cb'' SignalConnectAfter
type EventControllerKeyFocusOutCallback =
IO ()
noEventControllerKeyFocusOutCallback :: Maybe EventControllerKeyFocusOutCallback
noEventControllerKeyFocusOutCallback = Nothing
type C_EventControllerKeyFocusOutCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_EventControllerKeyFocusOutCallback :: C_EventControllerKeyFocusOutCallback -> IO (FunPtr C_EventControllerKeyFocusOutCallback)
genClosure_EventControllerKeyFocusOut :: EventControllerKeyFocusOutCallback -> IO Closure
genClosure_EventControllerKeyFocusOut cb = do
let cb' = wrap_EventControllerKeyFocusOutCallback cb
mk_EventControllerKeyFocusOutCallback cb' >>= newCClosure
wrap_EventControllerKeyFocusOutCallback ::
EventControllerKeyFocusOutCallback ->
C_EventControllerKeyFocusOutCallback
wrap_EventControllerKeyFocusOutCallback _cb _ _ = do
_cb
onEventControllerKeyFocusOut :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusOutCallback -> m SignalHandlerId
onEventControllerKeyFocusOut obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyFocusOutCallback cb
cb'' <- mk_EventControllerKeyFocusOutCallback cb'
connectSignalFunPtr obj "focus-out" cb'' SignalConnectBefore
afterEventControllerKeyFocusOut :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusOutCallback -> m SignalHandlerId
afterEventControllerKeyFocusOut obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyFocusOutCallback cb
cb'' <- mk_EventControllerKeyFocusOutCallback cb'
connectSignalFunPtr obj "focus-out" cb'' SignalConnectAfter
type EventControllerKeyImUpdateCallback =
IO ()
noEventControllerKeyImUpdateCallback :: Maybe EventControllerKeyImUpdateCallback
noEventControllerKeyImUpdateCallback = Nothing
type C_EventControllerKeyImUpdateCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_EventControllerKeyImUpdateCallback :: C_EventControllerKeyImUpdateCallback -> IO (FunPtr C_EventControllerKeyImUpdateCallback)
genClosure_EventControllerKeyImUpdate :: EventControllerKeyImUpdateCallback -> IO Closure
genClosure_EventControllerKeyImUpdate cb = do
let cb' = wrap_EventControllerKeyImUpdateCallback cb
mk_EventControllerKeyImUpdateCallback cb' >>= newCClosure
wrap_EventControllerKeyImUpdateCallback ::
EventControllerKeyImUpdateCallback ->
C_EventControllerKeyImUpdateCallback
wrap_EventControllerKeyImUpdateCallback _cb _ _ = do
_cb
onEventControllerKeyImUpdate :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyImUpdateCallback -> m SignalHandlerId
onEventControllerKeyImUpdate obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyImUpdateCallback cb
cb'' <- mk_EventControllerKeyImUpdateCallback cb'
connectSignalFunPtr obj "im-update" cb'' SignalConnectBefore
afterEventControllerKeyImUpdate :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyImUpdateCallback -> m SignalHandlerId
afterEventControllerKeyImUpdate obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyImUpdateCallback cb
cb'' <- mk_EventControllerKeyImUpdateCallback cb'
connectSignalFunPtr obj "im-update" cb'' SignalConnectAfter
type EventControllerKeyKeyPressedCallback =
Word32
-> Word32
-> [Gdk.Flags.ModifierType]
-> IO Bool
noEventControllerKeyKeyPressedCallback :: Maybe EventControllerKeyKeyPressedCallback
noEventControllerKeyKeyPressedCallback = Nothing
type C_EventControllerKeyKeyPressedCallback =
Ptr () ->
Word32 ->
Word32 ->
CUInt ->
Ptr () ->
IO CInt
foreign import ccall "wrapper"
mk_EventControllerKeyKeyPressedCallback :: C_EventControllerKeyKeyPressedCallback -> IO (FunPtr C_EventControllerKeyKeyPressedCallback)
genClosure_EventControllerKeyKeyPressed :: EventControllerKeyKeyPressedCallback -> IO Closure
genClosure_EventControllerKeyKeyPressed cb = do
let cb' = wrap_EventControllerKeyKeyPressedCallback cb
mk_EventControllerKeyKeyPressedCallback cb' >>= newCClosure
wrap_EventControllerKeyKeyPressedCallback ::
EventControllerKeyKeyPressedCallback ->
C_EventControllerKeyKeyPressedCallback
wrap_EventControllerKeyKeyPressedCallback _cb _ object p0 p1 _ = do
let p1' = wordToGFlags p1
result <- _cb object p0 p1'
let result' = (fromIntegral . fromEnum) result
return result'
onEventControllerKeyKeyPressed :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyPressedCallback -> m SignalHandlerId
onEventControllerKeyKeyPressed obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyKeyPressedCallback cb
cb'' <- mk_EventControllerKeyKeyPressedCallback cb'
connectSignalFunPtr obj "key-pressed" cb'' SignalConnectBefore
afterEventControllerKeyKeyPressed :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyPressedCallback -> m SignalHandlerId
afterEventControllerKeyKeyPressed obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyKeyPressedCallback cb
cb'' <- mk_EventControllerKeyKeyPressedCallback cb'
connectSignalFunPtr obj "key-pressed" cb'' SignalConnectAfter
type EventControllerKeyKeyReleasedCallback =
Word32
-> Word32
-> [Gdk.Flags.ModifierType]
-> IO ()
noEventControllerKeyKeyReleasedCallback :: Maybe EventControllerKeyKeyReleasedCallback
noEventControllerKeyKeyReleasedCallback = Nothing
type C_EventControllerKeyKeyReleasedCallback =
Ptr () ->
Word32 ->
Word32 ->
CUInt ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_EventControllerKeyKeyReleasedCallback :: C_EventControllerKeyKeyReleasedCallback -> IO (FunPtr C_EventControllerKeyKeyReleasedCallback)
genClosure_EventControllerKeyKeyReleased :: EventControllerKeyKeyReleasedCallback -> IO Closure
genClosure_EventControllerKeyKeyReleased cb = do
let cb' = wrap_EventControllerKeyKeyReleasedCallback cb
mk_EventControllerKeyKeyReleasedCallback cb' >>= newCClosure
wrap_EventControllerKeyKeyReleasedCallback ::
EventControllerKeyKeyReleasedCallback ->
C_EventControllerKeyKeyReleasedCallback
wrap_EventControllerKeyKeyReleasedCallback _cb _ object p0 p1 _ = do
let p1' = wordToGFlags p1
_cb object p0 p1'
onEventControllerKeyKeyReleased :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyReleasedCallback -> m SignalHandlerId
onEventControllerKeyKeyReleased obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyKeyReleasedCallback cb
cb'' <- mk_EventControllerKeyKeyReleasedCallback cb'
connectSignalFunPtr obj "key-released" cb'' SignalConnectBefore
afterEventControllerKeyKeyReleased :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyReleasedCallback -> m SignalHandlerId
afterEventControllerKeyKeyReleased obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyKeyReleasedCallback cb
cb'' <- mk_EventControllerKeyKeyReleasedCallback cb'
connectSignalFunPtr obj "key-released" cb'' SignalConnectAfter
type EventControllerKeyModifiersCallback =
[Gdk.Flags.ModifierType]
-> IO Bool
noEventControllerKeyModifiersCallback :: Maybe EventControllerKeyModifiersCallback
noEventControllerKeyModifiersCallback = Nothing
type C_EventControllerKeyModifiersCallback =
Ptr () ->
CUInt ->
Ptr () ->
IO CInt
foreign import ccall "wrapper"
mk_EventControllerKeyModifiersCallback :: C_EventControllerKeyModifiersCallback -> IO (FunPtr C_EventControllerKeyModifiersCallback)
genClosure_EventControllerKeyModifiers :: EventControllerKeyModifiersCallback -> IO Closure
genClosure_EventControllerKeyModifiers cb = do
let cb' = wrap_EventControllerKeyModifiersCallback cb
mk_EventControllerKeyModifiersCallback cb' >>= newCClosure
wrap_EventControllerKeyModifiersCallback ::
EventControllerKeyModifiersCallback ->
C_EventControllerKeyModifiersCallback
wrap_EventControllerKeyModifiersCallback _cb _ object _ = do
let object' = wordToGFlags object
result <- _cb object'
let result' = (fromIntegral . fromEnum) result
return result'
onEventControllerKeyModifiers :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyModifiersCallback -> m SignalHandlerId
onEventControllerKeyModifiers obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyModifiersCallback cb
cb'' <- mk_EventControllerKeyModifiersCallback cb'
connectSignalFunPtr obj "modifiers" cb'' SignalConnectBefore
afterEventControllerKeyModifiers :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyModifiersCallback -> m SignalHandlerId
afterEventControllerKeyModifiers obj cb = liftIO $ do
let cb' = wrap_EventControllerKeyModifiersCallback cb
cb'' <- mk_EventControllerKeyModifiersCallback cb'
connectSignalFunPtr obj "modifiers" cb'' SignalConnectAfter
#if ENABLE_OVERLOADING
instance O.HasAttributeList EventControllerKey
type instance O.AttributeList EventControllerKey = EventControllerKeyAttributeList
type EventControllerKeyAttributeList = ('[ '("propagationPhase", Gtk.EventController.EventControllerPropagationPhasePropertyInfo), '("widget", Gtk.EventController.EventControllerWidgetPropertyInfo)] :: [(Symbol, *)])
#endif
#if ENABLE_OVERLOADING
#endif
#if ENABLE_OVERLOADING
data EventControllerKeyFocusInSignalInfo
instance SignalInfo EventControllerKeyFocusInSignalInfo where
type HaskellCallbackType EventControllerKeyFocusInSignalInfo = EventControllerKeyFocusInCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_EventControllerKeyFocusInCallback cb
cb'' <- mk_EventControllerKeyFocusInCallback cb'
connectSignalFunPtr obj "focus-in" cb'' connectMode
data EventControllerKeyFocusOutSignalInfo
instance SignalInfo EventControllerKeyFocusOutSignalInfo where
type HaskellCallbackType EventControllerKeyFocusOutSignalInfo = EventControllerKeyFocusOutCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_EventControllerKeyFocusOutCallback cb
cb'' <- mk_EventControllerKeyFocusOutCallback cb'
connectSignalFunPtr obj "focus-out" cb'' connectMode
data EventControllerKeyImUpdateSignalInfo
instance SignalInfo EventControllerKeyImUpdateSignalInfo where
type HaskellCallbackType EventControllerKeyImUpdateSignalInfo = EventControllerKeyImUpdateCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_EventControllerKeyImUpdateCallback cb
cb'' <- mk_EventControllerKeyImUpdateCallback cb'
connectSignalFunPtr obj "im-update" cb'' connectMode
data EventControllerKeyKeyPressedSignalInfo
instance SignalInfo EventControllerKeyKeyPressedSignalInfo where
type HaskellCallbackType EventControllerKeyKeyPressedSignalInfo = EventControllerKeyKeyPressedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_EventControllerKeyKeyPressedCallback cb
cb'' <- mk_EventControllerKeyKeyPressedCallback cb'
connectSignalFunPtr obj "key-pressed" cb'' connectMode
data EventControllerKeyKeyReleasedSignalInfo
instance SignalInfo EventControllerKeyKeyReleasedSignalInfo where
type HaskellCallbackType EventControllerKeyKeyReleasedSignalInfo = EventControllerKeyKeyReleasedCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_EventControllerKeyKeyReleasedCallback cb
cb'' <- mk_EventControllerKeyKeyReleasedCallback cb'
connectSignalFunPtr obj "key-released" cb'' connectMode
data EventControllerKeyModifiersSignalInfo
instance SignalInfo EventControllerKeyModifiersSignalInfo where
type HaskellCallbackType EventControllerKeyModifiersSignalInfo = EventControllerKeyModifiersCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_EventControllerKeyModifiersCallback cb
cb'' <- mk_EventControllerKeyModifiersCallback cb'
connectSignalFunPtr obj "modifiers" cb'' connectMode
type instance O.SignalList EventControllerKey = EventControllerKeySignalList
type EventControllerKeySignalList = ('[ '("focusIn", EventControllerKeyFocusInSignalInfo), '("focusOut", EventControllerKeyFocusOutSignalInfo), '("imUpdate", EventControllerKeyImUpdateSignalInfo), '("keyPressed", EventControllerKeyKeyPressedSignalInfo), '("keyReleased", EventControllerKeyKeyReleasedSignalInfo), '("modifiers", EventControllerKeyModifiersSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_event_controller_key_new" gtk_event_controller_key_new ::
Ptr Gtk.Widget.Widget ->
IO (Ptr EventControllerKey)
eventControllerKeyNew ::
(B.CallStack.HasCallStack, MonadIO m, Gtk.Widget.IsWidget a) =>
a
-> m EventControllerKey
eventControllerKeyNew widget = liftIO $ do
widget' <- unsafeManagedPtrCastPtr widget
result <- gtk_event_controller_key_new widget'
checkUnexpectedReturnNULL "eventControllerKeyNew" result
result' <- (wrapObject EventControllerKey) result
touchManagedPtr widget
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_event_controller_key_forward" gtk_event_controller_key_forward ::
Ptr EventControllerKey ->
Ptr Gtk.Widget.Widget ->
IO CInt
eventControllerKeyForward ::
(B.CallStack.HasCallStack, MonadIO m, IsEventControllerKey a, Gtk.Widget.IsWidget b) =>
a
-> b
-> m Bool
eventControllerKeyForward controller widget = liftIO $ do
controller' <- unsafeManagedPtrCastPtr controller
widget' <- unsafeManagedPtrCastPtr widget
result <- gtk_event_controller_key_forward controller' widget'
let result' = (/= 0) result
touchManagedPtr controller
touchManagedPtr widget
return result'
#if ENABLE_OVERLOADING
data EventControllerKeyForwardMethodInfo
instance (signature ~ (b -> m Bool), MonadIO m, IsEventControllerKey a, Gtk.Widget.IsWidget b) => O.MethodInfo EventControllerKeyForwardMethodInfo a signature where
overloadedMethod _ = eventControllerKeyForward
#endif
foreign import ccall "gtk_event_controller_key_get_group" gtk_event_controller_key_get_group ::
Ptr EventControllerKey ->
IO Word32
eventControllerKeyGetGroup ::
(B.CallStack.HasCallStack, MonadIO m, IsEventControllerKey a) =>
a
-> m Word32
eventControllerKeyGetGroup controller = liftIO $ do
controller' <- unsafeManagedPtrCastPtr controller
result <- gtk_event_controller_key_get_group controller'
touchManagedPtr controller
return result
#if ENABLE_OVERLOADING
data EventControllerKeyGetGroupMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsEventControllerKey a) => O.MethodInfo EventControllerKeyGetGroupMethodInfo a signature where
overloadedMethod _ = eventControllerKeyGetGroup
#endif
foreign import ccall "gtk_event_controller_key_get_im_context" gtk_event_controller_key_get_im_context ::
Ptr EventControllerKey ->
IO (Ptr Gtk.IMContext.IMContext)
eventControllerKeyGetImContext ::
(B.CallStack.HasCallStack, MonadIO m, IsEventControllerKey a) =>
a
-> m Gtk.IMContext.IMContext
eventControllerKeyGetImContext controller = liftIO $ do
controller' <- unsafeManagedPtrCastPtr controller
result <- gtk_event_controller_key_get_im_context controller'
checkUnexpectedReturnNULL "eventControllerKeyGetImContext" result
result' <- (newObject Gtk.IMContext.IMContext) result
touchManagedPtr controller
return result'
#if ENABLE_OVERLOADING
data EventControllerKeyGetImContextMethodInfo
instance (signature ~ (m Gtk.IMContext.IMContext), MonadIO m, IsEventControllerKey a) => O.MethodInfo EventControllerKeyGetImContextMethodInfo a signature where
overloadedMethod _ = eventControllerKeyGetImContext
#endif
foreign import ccall "gtk_event_controller_key_set_im_context" gtk_event_controller_key_set_im_context ::
Ptr EventControllerKey ->
Ptr Gtk.IMContext.IMContext ->
IO ()
eventControllerKeySetImContext ::
(B.CallStack.HasCallStack, MonadIO m, IsEventControllerKey a, Gtk.IMContext.IsIMContext b) =>
a
-> b
-> m ()
eventControllerKeySetImContext controller imContext = liftIO $ do
controller' <- unsafeManagedPtrCastPtr controller
imContext' <- unsafeManagedPtrCastPtr imContext
gtk_event_controller_key_set_im_context controller' imContext'
touchManagedPtr controller
touchManagedPtr imContext
return ()
#if ENABLE_OVERLOADING
data EventControllerKeySetImContextMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsEventControllerKey a, Gtk.IMContext.IsIMContext b) => O.MethodInfo EventControllerKeySetImContextMethodInfo a signature where
overloadedMethod _ = eventControllerKeySetImContext
#endif