#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Gdk.Objects.FrameClock
(
FrameClock(..) ,
IsFrameClock ,
toFrameClock ,
noFrameClock ,
#if ENABLE_OVERLOADING
FrameClockBeginUpdatingMethodInfo ,
#endif
frameClockBeginUpdating ,
#if ENABLE_OVERLOADING
FrameClockEndUpdatingMethodInfo ,
#endif
frameClockEndUpdating ,
#if ENABLE_OVERLOADING
FrameClockGetCurrentTimingsMethodInfo ,
#endif
frameClockGetCurrentTimings ,
#if ENABLE_OVERLOADING
FrameClockGetFrameCounterMethodInfo ,
#endif
frameClockGetFrameCounter ,
#if ENABLE_OVERLOADING
FrameClockGetFrameTimeMethodInfo ,
#endif
frameClockGetFrameTime ,
#if ENABLE_OVERLOADING
FrameClockGetHistoryStartMethodInfo ,
#endif
frameClockGetHistoryStart ,
#if ENABLE_OVERLOADING
FrameClockGetRefreshInfoMethodInfo ,
#endif
frameClockGetRefreshInfo ,
#if ENABLE_OVERLOADING
FrameClockGetTimingsMethodInfo ,
#endif
frameClockGetTimings ,
#if ENABLE_OVERLOADING
FrameClockRequestPhaseMethodInfo ,
#endif
frameClockRequestPhase ,
C_FrameClockAfterPaintCallback ,
FrameClockAfterPaintCallback ,
#if ENABLE_OVERLOADING
FrameClockAfterPaintSignalInfo ,
#endif
afterFrameClockAfterPaint ,
genClosure_FrameClockAfterPaint ,
mk_FrameClockAfterPaintCallback ,
noFrameClockAfterPaintCallback ,
onFrameClockAfterPaint ,
wrap_FrameClockAfterPaintCallback ,
C_FrameClockBeforePaintCallback ,
FrameClockBeforePaintCallback ,
#if ENABLE_OVERLOADING
FrameClockBeforePaintSignalInfo ,
#endif
afterFrameClockBeforePaint ,
genClosure_FrameClockBeforePaint ,
mk_FrameClockBeforePaintCallback ,
noFrameClockBeforePaintCallback ,
onFrameClockBeforePaint ,
wrap_FrameClockBeforePaintCallback ,
C_FrameClockFlushEventsCallback ,
FrameClockFlushEventsCallback ,
#if ENABLE_OVERLOADING
FrameClockFlushEventsSignalInfo ,
#endif
afterFrameClockFlushEvents ,
genClosure_FrameClockFlushEvents ,
mk_FrameClockFlushEventsCallback ,
noFrameClockFlushEventsCallback ,
onFrameClockFlushEvents ,
wrap_FrameClockFlushEventsCallback ,
C_FrameClockLayoutCallback ,
FrameClockLayoutCallback ,
#if ENABLE_OVERLOADING
FrameClockLayoutSignalInfo ,
#endif
afterFrameClockLayout ,
genClosure_FrameClockLayout ,
mk_FrameClockLayoutCallback ,
noFrameClockLayoutCallback ,
onFrameClockLayout ,
wrap_FrameClockLayoutCallback ,
C_FrameClockPaintCallback ,
FrameClockPaintCallback ,
#if ENABLE_OVERLOADING
FrameClockPaintSignalInfo ,
#endif
afterFrameClockPaint ,
genClosure_FrameClockPaint ,
mk_FrameClockPaintCallback ,
noFrameClockPaintCallback ,
onFrameClockPaint ,
wrap_FrameClockPaintCallback ,
C_FrameClockResumeEventsCallback ,
FrameClockResumeEventsCallback ,
#if ENABLE_OVERLOADING
FrameClockResumeEventsSignalInfo ,
#endif
afterFrameClockResumeEvents ,
genClosure_FrameClockResumeEvents ,
mk_FrameClockResumeEventsCallback ,
noFrameClockResumeEventsCallback ,
onFrameClockResumeEvents ,
wrap_FrameClockResumeEventsCallback ,
C_FrameClockUpdateCallback ,
FrameClockUpdateCallback ,
#if ENABLE_OVERLOADING
FrameClockUpdateSignalInfo ,
#endif
afterFrameClockUpdate ,
genClosure_FrameClockUpdate ,
mk_FrameClockUpdateCallback ,
noFrameClockUpdateCallback ,
onFrameClockUpdate ,
wrap_FrameClockUpdateCallback ,
) 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 {-# SOURCE #-} qualified GI.Gdk.Flags as Gdk.Flags
import {-# SOURCE #-} qualified GI.Gdk.Structs.FrameTimings as Gdk.FrameTimings
newtype FrameClock = FrameClock (ManagedPtr FrameClock)
foreign import ccall "gdk_frame_clock_get_type"
c_gdk_frame_clock_get_type :: IO GType
instance GObject FrameClock where
gobjectType _ = c_gdk_frame_clock_get_type
class GObject o => IsFrameClock o
#if MIN_VERSION_base(4,9,0)
instance {-# OVERLAPPABLE #-} (GObject a, O.UnknownAncestorError FrameClock a) =>
IsFrameClock a
#endif
instance IsFrameClock FrameClock
instance GObject.Object.IsObject FrameClock
toFrameClock :: (MonadIO m, IsFrameClock o) => o -> m FrameClock
toFrameClock = liftIO . unsafeCastTo FrameClock
noFrameClock :: Maybe FrameClock
noFrameClock = Nothing
#if ENABLE_OVERLOADING
type family ResolveFrameClockMethod (t :: Symbol) (o :: *) :: * where
ResolveFrameClockMethod "beginUpdating" o = FrameClockBeginUpdatingMethodInfo
ResolveFrameClockMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveFrameClockMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveFrameClockMethod "endUpdating" o = FrameClockEndUpdatingMethodInfo
ResolveFrameClockMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveFrameClockMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveFrameClockMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveFrameClockMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveFrameClockMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveFrameClockMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveFrameClockMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveFrameClockMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveFrameClockMethod "requestPhase" o = FrameClockRequestPhaseMethodInfo
ResolveFrameClockMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveFrameClockMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveFrameClockMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveFrameClockMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveFrameClockMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveFrameClockMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveFrameClockMethod "getCurrentTimings" o = FrameClockGetCurrentTimingsMethodInfo
ResolveFrameClockMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveFrameClockMethod "getFrameCounter" o = FrameClockGetFrameCounterMethodInfo
ResolveFrameClockMethod "getFrameTime" o = FrameClockGetFrameTimeMethodInfo
ResolveFrameClockMethod "getHistoryStart" o = FrameClockGetHistoryStartMethodInfo
ResolveFrameClockMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveFrameClockMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveFrameClockMethod "getRefreshInfo" o = FrameClockGetRefreshInfoMethodInfo
ResolveFrameClockMethod "getTimings" o = FrameClockGetTimingsMethodInfo
ResolveFrameClockMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveFrameClockMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveFrameClockMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveFrameClockMethod t FrameClock, O.MethodInfo info FrameClock p) => O.IsLabelProxy t (FrameClock -> p) where
fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveFrameClockMethod t FrameClock, O.MethodInfo info FrameClock p) => O.IsLabel t (FrameClock -> 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 FrameClockAfterPaintCallback =
IO ()
noFrameClockAfterPaintCallback :: Maybe FrameClockAfterPaintCallback
noFrameClockAfterPaintCallback = Nothing
type C_FrameClockAfterPaintCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_FrameClockAfterPaintCallback :: C_FrameClockAfterPaintCallback -> IO (FunPtr C_FrameClockAfterPaintCallback)
genClosure_FrameClockAfterPaint :: FrameClockAfterPaintCallback -> IO Closure
genClosure_FrameClockAfterPaint cb = do
let cb' = wrap_FrameClockAfterPaintCallback cb
mk_FrameClockAfterPaintCallback cb' >>= newCClosure
wrap_FrameClockAfterPaintCallback ::
FrameClockAfterPaintCallback ->
C_FrameClockAfterPaintCallback
wrap_FrameClockAfterPaintCallback _cb _ _ = do
_cb
onFrameClockAfterPaint :: (IsFrameClock a, MonadIO m) => a -> FrameClockAfterPaintCallback -> m SignalHandlerId
onFrameClockAfterPaint obj cb = liftIO $ do
let cb' = wrap_FrameClockAfterPaintCallback cb
cb'' <- mk_FrameClockAfterPaintCallback cb'
connectSignalFunPtr obj "after-paint" cb'' SignalConnectBefore
afterFrameClockAfterPaint :: (IsFrameClock a, MonadIO m) => a -> FrameClockAfterPaintCallback -> m SignalHandlerId
afterFrameClockAfterPaint obj cb = liftIO $ do
let cb' = wrap_FrameClockAfterPaintCallback cb
cb'' <- mk_FrameClockAfterPaintCallback cb'
connectSignalFunPtr obj "after-paint" cb'' SignalConnectAfter
type FrameClockBeforePaintCallback =
IO ()
noFrameClockBeforePaintCallback :: Maybe FrameClockBeforePaintCallback
noFrameClockBeforePaintCallback = Nothing
type C_FrameClockBeforePaintCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_FrameClockBeforePaintCallback :: C_FrameClockBeforePaintCallback -> IO (FunPtr C_FrameClockBeforePaintCallback)
genClosure_FrameClockBeforePaint :: FrameClockBeforePaintCallback -> IO Closure
genClosure_FrameClockBeforePaint cb = do
let cb' = wrap_FrameClockBeforePaintCallback cb
mk_FrameClockBeforePaintCallback cb' >>= newCClosure
wrap_FrameClockBeforePaintCallback ::
FrameClockBeforePaintCallback ->
C_FrameClockBeforePaintCallback
wrap_FrameClockBeforePaintCallback _cb _ _ = do
_cb
onFrameClockBeforePaint :: (IsFrameClock a, MonadIO m) => a -> FrameClockBeforePaintCallback -> m SignalHandlerId
onFrameClockBeforePaint obj cb = liftIO $ do
let cb' = wrap_FrameClockBeforePaintCallback cb
cb'' <- mk_FrameClockBeforePaintCallback cb'
connectSignalFunPtr obj "before-paint" cb'' SignalConnectBefore
afterFrameClockBeforePaint :: (IsFrameClock a, MonadIO m) => a -> FrameClockBeforePaintCallback -> m SignalHandlerId
afterFrameClockBeforePaint obj cb = liftIO $ do
let cb' = wrap_FrameClockBeforePaintCallback cb
cb'' <- mk_FrameClockBeforePaintCallback cb'
connectSignalFunPtr obj "before-paint" cb'' SignalConnectAfter
type FrameClockFlushEventsCallback =
IO ()
noFrameClockFlushEventsCallback :: Maybe FrameClockFlushEventsCallback
noFrameClockFlushEventsCallback = Nothing
type C_FrameClockFlushEventsCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_FrameClockFlushEventsCallback :: C_FrameClockFlushEventsCallback -> IO (FunPtr C_FrameClockFlushEventsCallback)
genClosure_FrameClockFlushEvents :: FrameClockFlushEventsCallback -> IO Closure
genClosure_FrameClockFlushEvents cb = do
let cb' = wrap_FrameClockFlushEventsCallback cb
mk_FrameClockFlushEventsCallback cb' >>= newCClosure
wrap_FrameClockFlushEventsCallback ::
FrameClockFlushEventsCallback ->
C_FrameClockFlushEventsCallback
wrap_FrameClockFlushEventsCallback _cb _ _ = do
_cb
onFrameClockFlushEvents :: (IsFrameClock a, MonadIO m) => a -> FrameClockFlushEventsCallback -> m SignalHandlerId
onFrameClockFlushEvents obj cb = liftIO $ do
let cb' = wrap_FrameClockFlushEventsCallback cb
cb'' <- mk_FrameClockFlushEventsCallback cb'
connectSignalFunPtr obj "flush-events" cb'' SignalConnectBefore
afterFrameClockFlushEvents :: (IsFrameClock a, MonadIO m) => a -> FrameClockFlushEventsCallback -> m SignalHandlerId
afterFrameClockFlushEvents obj cb = liftIO $ do
let cb' = wrap_FrameClockFlushEventsCallback cb
cb'' <- mk_FrameClockFlushEventsCallback cb'
connectSignalFunPtr obj "flush-events" cb'' SignalConnectAfter
type FrameClockLayoutCallback =
IO ()
noFrameClockLayoutCallback :: Maybe FrameClockLayoutCallback
noFrameClockLayoutCallback = Nothing
type C_FrameClockLayoutCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_FrameClockLayoutCallback :: C_FrameClockLayoutCallback -> IO (FunPtr C_FrameClockLayoutCallback)
genClosure_FrameClockLayout :: FrameClockLayoutCallback -> IO Closure
genClosure_FrameClockLayout cb = do
let cb' = wrap_FrameClockLayoutCallback cb
mk_FrameClockLayoutCallback cb' >>= newCClosure
wrap_FrameClockLayoutCallback ::
FrameClockLayoutCallback ->
C_FrameClockLayoutCallback
wrap_FrameClockLayoutCallback _cb _ _ = do
_cb
onFrameClockLayout :: (IsFrameClock a, MonadIO m) => a -> FrameClockLayoutCallback -> m SignalHandlerId
onFrameClockLayout obj cb = liftIO $ do
let cb' = wrap_FrameClockLayoutCallback cb
cb'' <- mk_FrameClockLayoutCallback cb'
connectSignalFunPtr obj "layout" cb'' SignalConnectBefore
afterFrameClockLayout :: (IsFrameClock a, MonadIO m) => a -> FrameClockLayoutCallback -> m SignalHandlerId
afterFrameClockLayout obj cb = liftIO $ do
let cb' = wrap_FrameClockLayoutCallback cb
cb'' <- mk_FrameClockLayoutCallback cb'
connectSignalFunPtr obj "layout" cb'' SignalConnectAfter
type FrameClockPaintCallback =
IO ()
noFrameClockPaintCallback :: Maybe FrameClockPaintCallback
noFrameClockPaintCallback = Nothing
type C_FrameClockPaintCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_FrameClockPaintCallback :: C_FrameClockPaintCallback -> IO (FunPtr C_FrameClockPaintCallback)
genClosure_FrameClockPaint :: FrameClockPaintCallback -> IO Closure
genClosure_FrameClockPaint cb = do
let cb' = wrap_FrameClockPaintCallback cb
mk_FrameClockPaintCallback cb' >>= newCClosure
wrap_FrameClockPaintCallback ::
FrameClockPaintCallback ->
C_FrameClockPaintCallback
wrap_FrameClockPaintCallback _cb _ _ = do
_cb
onFrameClockPaint :: (IsFrameClock a, MonadIO m) => a -> FrameClockPaintCallback -> m SignalHandlerId
onFrameClockPaint obj cb = liftIO $ do
let cb' = wrap_FrameClockPaintCallback cb
cb'' <- mk_FrameClockPaintCallback cb'
connectSignalFunPtr obj "paint" cb'' SignalConnectBefore
afterFrameClockPaint :: (IsFrameClock a, MonadIO m) => a -> FrameClockPaintCallback -> m SignalHandlerId
afterFrameClockPaint obj cb = liftIO $ do
let cb' = wrap_FrameClockPaintCallback cb
cb'' <- mk_FrameClockPaintCallback cb'
connectSignalFunPtr obj "paint" cb'' SignalConnectAfter
type FrameClockResumeEventsCallback =
IO ()
noFrameClockResumeEventsCallback :: Maybe FrameClockResumeEventsCallback
noFrameClockResumeEventsCallback = Nothing
type C_FrameClockResumeEventsCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_FrameClockResumeEventsCallback :: C_FrameClockResumeEventsCallback -> IO (FunPtr C_FrameClockResumeEventsCallback)
genClosure_FrameClockResumeEvents :: FrameClockResumeEventsCallback -> IO Closure
genClosure_FrameClockResumeEvents cb = do
let cb' = wrap_FrameClockResumeEventsCallback cb
mk_FrameClockResumeEventsCallback cb' >>= newCClosure
wrap_FrameClockResumeEventsCallback ::
FrameClockResumeEventsCallback ->
C_FrameClockResumeEventsCallback
wrap_FrameClockResumeEventsCallback _cb _ _ = do
_cb
onFrameClockResumeEvents :: (IsFrameClock a, MonadIO m) => a -> FrameClockResumeEventsCallback -> m SignalHandlerId
onFrameClockResumeEvents obj cb = liftIO $ do
let cb' = wrap_FrameClockResumeEventsCallback cb
cb'' <- mk_FrameClockResumeEventsCallback cb'
connectSignalFunPtr obj "resume-events" cb'' SignalConnectBefore
afterFrameClockResumeEvents :: (IsFrameClock a, MonadIO m) => a -> FrameClockResumeEventsCallback -> m SignalHandlerId
afterFrameClockResumeEvents obj cb = liftIO $ do
let cb' = wrap_FrameClockResumeEventsCallback cb
cb'' <- mk_FrameClockResumeEventsCallback cb'
connectSignalFunPtr obj "resume-events" cb'' SignalConnectAfter
type FrameClockUpdateCallback =
IO ()
noFrameClockUpdateCallback :: Maybe FrameClockUpdateCallback
noFrameClockUpdateCallback = Nothing
type C_FrameClockUpdateCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_FrameClockUpdateCallback :: C_FrameClockUpdateCallback -> IO (FunPtr C_FrameClockUpdateCallback)
genClosure_FrameClockUpdate :: FrameClockUpdateCallback -> IO Closure
genClosure_FrameClockUpdate cb = do
let cb' = wrap_FrameClockUpdateCallback cb
mk_FrameClockUpdateCallback cb' >>= newCClosure
wrap_FrameClockUpdateCallback ::
FrameClockUpdateCallback ->
C_FrameClockUpdateCallback
wrap_FrameClockUpdateCallback _cb _ _ = do
_cb
onFrameClockUpdate :: (IsFrameClock a, MonadIO m) => a -> FrameClockUpdateCallback -> m SignalHandlerId
onFrameClockUpdate obj cb = liftIO $ do
let cb' = wrap_FrameClockUpdateCallback cb
cb'' <- mk_FrameClockUpdateCallback cb'
connectSignalFunPtr obj "update" cb'' SignalConnectBefore
afterFrameClockUpdate :: (IsFrameClock a, MonadIO m) => a -> FrameClockUpdateCallback -> m SignalHandlerId
afterFrameClockUpdate obj cb = liftIO $ do
let cb' = wrap_FrameClockUpdateCallback cb
cb'' <- mk_FrameClockUpdateCallback cb'
connectSignalFunPtr obj "update" cb'' SignalConnectAfter
#if ENABLE_OVERLOADING
instance O.HasAttributeList FrameClock
type instance O.AttributeList FrameClock = FrameClockAttributeList
type FrameClockAttributeList = ('[ ] :: [(Symbol, *)])
#endif
#if ENABLE_OVERLOADING
#endif
#if ENABLE_OVERLOADING
data FrameClockAfterPaintSignalInfo
instance SignalInfo FrameClockAfterPaintSignalInfo where
type HaskellCallbackType FrameClockAfterPaintSignalInfo = FrameClockAfterPaintCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_FrameClockAfterPaintCallback cb
cb'' <- mk_FrameClockAfterPaintCallback cb'
connectSignalFunPtr obj "after-paint" cb'' connectMode
data FrameClockBeforePaintSignalInfo
instance SignalInfo FrameClockBeforePaintSignalInfo where
type HaskellCallbackType FrameClockBeforePaintSignalInfo = FrameClockBeforePaintCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_FrameClockBeforePaintCallback cb
cb'' <- mk_FrameClockBeforePaintCallback cb'
connectSignalFunPtr obj "before-paint" cb'' connectMode
data FrameClockFlushEventsSignalInfo
instance SignalInfo FrameClockFlushEventsSignalInfo where
type HaskellCallbackType FrameClockFlushEventsSignalInfo = FrameClockFlushEventsCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_FrameClockFlushEventsCallback cb
cb'' <- mk_FrameClockFlushEventsCallback cb'
connectSignalFunPtr obj "flush-events" cb'' connectMode
data FrameClockLayoutSignalInfo
instance SignalInfo FrameClockLayoutSignalInfo where
type HaskellCallbackType FrameClockLayoutSignalInfo = FrameClockLayoutCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_FrameClockLayoutCallback cb
cb'' <- mk_FrameClockLayoutCallback cb'
connectSignalFunPtr obj "layout" cb'' connectMode
data FrameClockPaintSignalInfo
instance SignalInfo FrameClockPaintSignalInfo where
type HaskellCallbackType FrameClockPaintSignalInfo = FrameClockPaintCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_FrameClockPaintCallback cb
cb'' <- mk_FrameClockPaintCallback cb'
connectSignalFunPtr obj "paint" cb'' connectMode
data FrameClockResumeEventsSignalInfo
instance SignalInfo FrameClockResumeEventsSignalInfo where
type HaskellCallbackType FrameClockResumeEventsSignalInfo = FrameClockResumeEventsCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_FrameClockResumeEventsCallback cb
cb'' <- mk_FrameClockResumeEventsCallback cb'
connectSignalFunPtr obj "resume-events" cb'' connectMode
data FrameClockUpdateSignalInfo
instance SignalInfo FrameClockUpdateSignalInfo where
type HaskellCallbackType FrameClockUpdateSignalInfo = FrameClockUpdateCallback
connectSignal _ obj cb connectMode = do
let cb' = wrap_FrameClockUpdateCallback cb
cb'' <- mk_FrameClockUpdateCallback cb'
connectSignalFunPtr obj "update" cb'' connectMode
type instance O.SignalList FrameClock = FrameClockSignalList
type FrameClockSignalList = ('[ '("afterPaint", FrameClockAfterPaintSignalInfo), '("beforePaint", FrameClockBeforePaintSignalInfo), '("flushEvents", FrameClockFlushEventsSignalInfo), '("layout", FrameClockLayoutSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("paint", FrameClockPaintSignalInfo), '("resumeEvents", FrameClockResumeEventsSignalInfo), '("update", FrameClockUpdateSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gdk_frame_clock_begin_updating" gdk_frame_clock_begin_updating ::
Ptr FrameClock ->
IO ()
frameClockBeginUpdating ::
(B.CallStack.HasCallStack, MonadIO m, IsFrameClock a) =>
a
-> m ()
frameClockBeginUpdating frameClock = liftIO $ do
frameClock' <- unsafeManagedPtrCastPtr frameClock
gdk_frame_clock_begin_updating frameClock'
touchManagedPtr frameClock
return ()
#if ENABLE_OVERLOADING
data FrameClockBeginUpdatingMethodInfo
instance (signature ~ (m ()), MonadIO m, IsFrameClock a) => O.MethodInfo FrameClockBeginUpdatingMethodInfo a signature where
overloadedMethod _ = frameClockBeginUpdating
#endif
foreign import ccall "gdk_frame_clock_end_updating" gdk_frame_clock_end_updating ::
Ptr FrameClock ->
IO ()
frameClockEndUpdating ::
(B.CallStack.HasCallStack, MonadIO m, IsFrameClock a) =>
a
-> m ()
frameClockEndUpdating frameClock = liftIO $ do
frameClock' <- unsafeManagedPtrCastPtr frameClock
gdk_frame_clock_end_updating frameClock'
touchManagedPtr frameClock
return ()
#if ENABLE_OVERLOADING
data FrameClockEndUpdatingMethodInfo
instance (signature ~ (m ()), MonadIO m, IsFrameClock a) => O.MethodInfo FrameClockEndUpdatingMethodInfo a signature where
overloadedMethod _ = frameClockEndUpdating
#endif
foreign import ccall "gdk_frame_clock_get_current_timings" gdk_frame_clock_get_current_timings ::
Ptr FrameClock ->
IO (Ptr Gdk.FrameTimings.FrameTimings)
frameClockGetCurrentTimings ::
(B.CallStack.HasCallStack, MonadIO m, IsFrameClock a) =>
a
-> m (Maybe Gdk.FrameTimings.FrameTimings)
frameClockGetCurrentTimings frameClock = liftIO $ do
frameClock' <- unsafeManagedPtrCastPtr frameClock
result <- gdk_frame_clock_get_current_timings frameClock'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (wrapBoxed Gdk.FrameTimings.FrameTimings) result'
return result''
touchManagedPtr frameClock
return maybeResult
#if ENABLE_OVERLOADING
data FrameClockGetCurrentTimingsMethodInfo
instance (signature ~ (m (Maybe Gdk.FrameTimings.FrameTimings)), MonadIO m, IsFrameClock a) => O.MethodInfo FrameClockGetCurrentTimingsMethodInfo a signature where
overloadedMethod _ = frameClockGetCurrentTimings
#endif
foreign import ccall "gdk_frame_clock_get_frame_counter" gdk_frame_clock_get_frame_counter ::
Ptr FrameClock ->
IO Int64
frameClockGetFrameCounter ::
(B.CallStack.HasCallStack, MonadIO m, IsFrameClock a) =>
a
-> m Int64
frameClockGetFrameCounter frameClock = liftIO $ do
frameClock' <- unsafeManagedPtrCastPtr frameClock
result <- gdk_frame_clock_get_frame_counter frameClock'
touchManagedPtr frameClock
return result
#if ENABLE_OVERLOADING
data FrameClockGetFrameCounterMethodInfo
instance (signature ~ (m Int64), MonadIO m, IsFrameClock a) => O.MethodInfo FrameClockGetFrameCounterMethodInfo a signature where
overloadedMethod _ = frameClockGetFrameCounter
#endif
foreign import ccall "gdk_frame_clock_get_frame_time" gdk_frame_clock_get_frame_time ::
Ptr FrameClock ->
IO Int64
frameClockGetFrameTime ::
(B.CallStack.HasCallStack, MonadIO m, IsFrameClock a) =>
a
-> m Int64
frameClockGetFrameTime frameClock = liftIO $ do
frameClock' <- unsafeManagedPtrCastPtr frameClock
result <- gdk_frame_clock_get_frame_time frameClock'
touchManagedPtr frameClock
return result
#if ENABLE_OVERLOADING
data FrameClockGetFrameTimeMethodInfo
instance (signature ~ (m Int64), MonadIO m, IsFrameClock a) => O.MethodInfo FrameClockGetFrameTimeMethodInfo a signature where
overloadedMethod _ = frameClockGetFrameTime
#endif
foreign import ccall "gdk_frame_clock_get_history_start" gdk_frame_clock_get_history_start ::
Ptr FrameClock ->
IO Int64
frameClockGetHistoryStart ::
(B.CallStack.HasCallStack, MonadIO m, IsFrameClock a) =>
a
-> m Int64
frameClockGetHistoryStart frameClock = liftIO $ do
frameClock' <- unsafeManagedPtrCastPtr frameClock
result <- gdk_frame_clock_get_history_start frameClock'
touchManagedPtr frameClock
return result
#if ENABLE_OVERLOADING
data FrameClockGetHistoryStartMethodInfo
instance (signature ~ (m Int64), MonadIO m, IsFrameClock a) => O.MethodInfo FrameClockGetHistoryStartMethodInfo a signature where
overloadedMethod _ = frameClockGetHistoryStart
#endif
foreign import ccall "gdk_frame_clock_get_refresh_info" gdk_frame_clock_get_refresh_info ::
Ptr FrameClock ->
Int64 ->
Ptr Int64 ->
Ptr Int64 ->
IO ()
frameClockGetRefreshInfo ::
(B.CallStack.HasCallStack, MonadIO m, IsFrameClock a) =>
a
-> Int64
-> m ((Int64, Int64))
frameClockGetRefreshInfo frameClock baseTime = liftIO $ do
frameClock' <- unsafeManagedPtrCastPtr frameClock
refreshIntervalReturn <- allocMem :: IO (Ptr Int64)
presentationTimeReturn <- allocMem :: IO (Ptr Int64)
gdk_frame_clock_get_refresh_info frameClock' baseTime refreshIntervalReturn presentationTimeReturn
refreshIntervalReturn' <- peek refreshIntervalReturn
presentationTimeReturn' <- peek presentationTimeReturn
touchManagedPtr frameClock
freeMem refreshIntervalReturn
freeMem presentationTimeReturn
return (refreshIntervalReturn', presentationTimeReturn')
#if ENABLE_OVERLOADING
data FrameClockGetRefreshInfoMethodInfo
instance (signature ~ (Int64 -> m ((Int64, Int64))), MonadIO m, IsFrameClock a) => O.MethodInfo FrameClockGetRefreshInfoMethodInfo a signature where
overloadedMethod _ = frameClockGetRefreshInfo
#endif
foreign import ccall "gdk_frame_clock_get_timings" gdk_frame_clock_get_timings ::
Ptr FrameClock ->
Int64 ->
IO (Ptr Gdk.FrameTimings.FrameTimings)
frameClockGetTimings ::
(B.CallStack.HasCallStack, MonadIO m, IsFrameClock a) =>
a
-> Int64
-> m (Maybe Gdk.FrameTimings.FrameTimings)
frameClockGetTimings frameClock frameCounter = liftIO $ do
frameClock' <- unsafeManagedPtrCastPtr frameClock
result <- gdk_frame_clock_get_timings frameClock' frameCounter
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (wrapBoxed Gdk.FrameTimings.FrameTimings) result'
return result''
touchManagedPtr frameClock
return maybeResult
#if ENABLE_OVERLOADING
data FrameClockGetTimingsMethodInfo
instance (signature ~ (Int64 -> m (Maybe Gdk.FrameTimings.FrameTimings)), MonadIO m, IsFrameClock a) => O.MethodInfo FrameClockGetTimingsMethodInfo a signature where
overloadedMethod _ = frameClockGetTimings
#endif
foreign import ccall "gdk_frame_clock_request_phase" gdk_frame_clock_request_phase ::
Ptr FrameClock ->
CUInt ->
IO ()
frameClockRequestPhase ::
(B.CallStack.HasCallStack, MonadIO m, IsFrameClock a) =>
a
-> [Gdk.Flags.FrameClockPhase]
-> m ()
frameClockRequestPhase frameClock phase = liftIO $ do
frameClock' <- unsafeManagedPtrCastPtr frameClock
let phase' = gflagsToWord phase
gdk_frame_clock_request_phase frameClock' phase'
touchManagedPtr frameClock
return ()
#if ENABLE_OVERLOADING
data FrameClockRequestPhaseMethodInfo
instance (signature ~ ([Gdk.Flags.FrameClockPhase] -> m ()), MonadIO m, IsFrameClock a) => O.MethodInfo FrameClockRequestPhaseMethodInfo a signature where
overloadedMethod _ = frameClockRequestPhase
#endif