{-# LANGUAGE ImplicitParams, RankNTypes, TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gdk.Interfaces.DragSurface
(
DragSurface(..) ,
IsDragSurface ,
toDragSurface ,
#if defined(ENABLE_OVERLOADING)
ResolveDragSurfaceMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
DragSurfacePresentMethodInfo ,
#endif
dragSurfacePresent ,
DragSurfaceComputeSizeCallback ,
#if defined(ENABLE_OVERLOADING)
DragSurfaceComputeSizeSignalInfo ,
#endif
afterDragSurfaceComputeSize ,
onDragSurfaceComputeSize ,
) 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.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
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.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
import qualified GI.Cairo.Enums as Cairo.Enums
import qualified GI.Cairo.Structs.Context as Cairo.Context
import qualified GI.Cairo.Structs.Region as Cairo.Region
import qualified GI.Cairo.Structs.Surface as Cairo.Surface
import qualified GI.GLib.Structs.Bytes as GLib.Bytes
import qualified GI.GLib.Structs.String as GLib.String
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gdk.Enums as Gdk.Enums
import {-# SOURCE #-} qualified GI.Gdk.Flags as Gdk.Flags
import {-# SOURCE #-} qualified GI.Gdk.Interfaces.Paintable as Gdk.Paintable
import {-# SOURCE #-} qualified GI.Gdk.Objects.AppLaunchContext as Gdk.AppLaunchContext
import {-# SOURCE #-} qualified GI.Gdk.Objects.CairoContext as Gdk.CairoContext
import {-# SOURCE #-} qualified GI.Gdk.Objects.Clipboard as Gdk.Clipboard
import {-# SOURCE #-} qualified GI.Gdk.Objects.ContentProvider as Gdk.ContentProvider
import {-# SOURCE #-} qualified GI.Gdk.Objects.Cursor as Gdk.Cursor
import {-# SOURCE #-} qualified GI.Gdk.Objects.Device as Gdk.Device
import {-# SOURCE #-} qualified GI.Gdk.Objects.DeviceTool as Gdk.DeviceTool
import {-# SOURCE #-} qualified GI.Gdk.Objects.Display as Gdk.Display
import {-# SOURCE #-} qualified GI.Gdk.Objects.DrawContext as Gdk.DrawContext
import {-# SOURCE #-} qualified GI.Gdk.Objects.Event as Gdk.Event
import {-# SOURCE #-} qualified GI.Gdk.Objects.FrameClock as Gdk.FrameClock
import {-# SOURCE #-} qualified GI.Gdk.Objects.GLContext as Gdk.GLContext
import {-# SOURCE #-} qualified GI.Gdk.Objects.Monitor as Gdk.Monitor
import {-# SOURCE #-} qualified GI.Gdk.Objects.Seat as Gdk.Seat
import {-# SOURCE #-} qualified GI.Gdk.Objects.Snapshot as Gdk.Snapshot
import {-# SOURCE #-} qualified GI.Gdk.Objects.Surface as Gdk.Surface
import {-# SOURCE #-} qualified GI.Gdk.Objects.Texture as Gdk.Texture
import {-# SOURCE #-} qualified GI.Gdk.Objects.VulkanContext as Gdk.VulkanContext
import {-# SOURCE #-} qualified GI.Gdk.Structs.ContentFormats as Gdk.ContentFormats
import {-# SOURCE #-} qualified GI.Gdk.Structs.DmabufFormats as Gdk.DmabufFormats
import {-# SOURCE #-} qualified GI.Gdk.Structs.DragSurfaceSize as Gdk.DragSurfaceSize
import {-# SOURCE #-} qualified GI.Gdk.Structs.EventSequence as Gdk.EventSequence
import {-# SOURCE #-} qualified GI.Gdk.Structs.FrameTimings as Gdk.FrameTimings
import {-# SOURCE #-} qualified GI.Gdk.Structs.KeymapKey as Gdk.KeymapKey
import {-# SOURCE #-} qualified GI.Gdk.Structs.Rectangle as Gdk.Rectangle
import {-# SOURCE #-} qualified GI.Gdk.Structs.TimeCoord as Gdk.TimeCoord
import qualified GI.GdkPixbuf.Objects.Pixbuf as GdkPixbuf.Pixbuf
import qualified GI.Gio.Callbacks as Gio.Callbacks
import qualified GI.Gio.Interfaces.AsyncResult as Gio.AsyncResult
import qualified GI.Gio.Interfaces.File as Gio.File
import qualified GI.Gio.Interfaces.Icon as Gio.Icon
import qualified GI.Gio.Interfaces.Initable as Gio.Initable
import qualified GI.Gio.Interfaces.ListModel as Gio.ListModel
import qualified GI.Gio.Interfaces.LoadableIcon as Gio.LoadableIcon
import qualified GI.Gio.Objects.AppLaunchContext as Gio.AppLaunchContext
import qualified GI.Gio.Objects.Cancellable as Gio.Cancellable
import qualified GI.Gio.Objects.InputStream as Gio.InputStream
import qualified GI.Gio.Objects.OutputStream as Gio.OutputStream
import qualified GI.Pango.Enums as Pango.Enums
#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gdk.Objects.Surface as Gdk.Surface
import {-# SOURCE #-} qualified GI.Gdk.Structs.DragSurfaceSize as Gdk.DragSurfaceSize
#endif
newtype DragSurface = DragSurface (SP.ManagedPtr DragSurface)
deriving (DragSurface -> DragSurface -> Bool
(DragSurface -> DragSurface -> Bool)
-> (DragSurface -> DragSurface -> Bool) -> Eq DragSurface
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DragSurface -> DragSurface -> Bool
== :: DragSurface -> DragSurface -> Bool
$c/= :: DragSurface -> DragSurface -> Bool
/= :: DragSurface -> DragSurface -> Bool
Eq)
instance SP.ManagedPtrNewtype DragSurface where
toManagedPtr :: DragSurface -> ManagedPtr DragSurface
toManagedPtr (DragSurface ManagedPtr DragSurface
p) = ManagedPtr DragSurface
p
foreign import ccall "gdk_drag_surface_get_type"
c_gdk_drag_surface_get_type :: IO B.Types.GType
instance B.Types.TypedObject DragSurface where
glibType :: IO GType
glibType = IO GType
c_gdk_drag_surface_get_type
instance B.Types.GObject DragSurface
class (SP.GObject o, O.IsDescendantOf DragSurface o) => IsDragSurface o
instance (SP.GObject o, O.IsDescendantOf DragSurface o) => IsDragSurface o
instance O.HasParentTypes DragSurface
type instance O.ParentTypes DragSurface = '[GObject.Object.Object, Gdk.Surface.Surface]
toDragSurface :: (MIO.MonadIO m, IsDragSurface o) => o -> m DragSurface
toDragSurface :: forall (m :: * -> *) o.
(MonadIO m, IsDragSurface o) =>
o -> m DragSurface
toDragSurface = IO DragSurface -> m DragSurface
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO DragSurface -> m DragSurface)
-> (o -> IO DragSurface) -> o -> m DragSurface
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr DragSurface -> DragSurface) -> o -> IO DragSurface
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr DragSurface -> DragSurface
DragSurface
instance B.GValue.IsGValue (Maybe DragSurface) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gdk_drag_surface_get_type
gvalueSet_ :: Ptr GValue -> Maybe DragSurface -> IO ()
gvalueSet_ Ptr GValue
gv Maybe DragSurface
P.Nothing = Ptr GValue -> Ptr DragSurface -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr DragSurface
forall a. Ptr a
FP.nullPtr :: FP.Ptr DragSurface)
gvalueSet_ Ptr GValue
gv (P.Just DragSurface
obj) = DragSurface -> (Ptr DragSurface -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr DragSurface
obj (Ptr GValue -> Ptr DragSurface -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe DragSurface)
gvalueGet_ Ptr GValue
gv = do
ptr <- Ptr GValue -> IO (Ptr DragSurface)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr DragSurface)
if ptr /= FP.nullPtr
then P.Just <$> B.ManagedPtr.newObject DragSurface ptr
else return P.Nothing
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList DragSurface
type instance O.AttributeList DragSurface = DragSurfaceAttributeList
type DragSurfaceAttributeList = ('[ '("cursor", Gdk.Surface.SurfaceCursorPropertyInfo), '("display", Gdk.Surface.SurfaceDisplayPropertyInfo), '("frameClock", Gdk.Surface.SurfaceFrameClockPropertyInfo), '("height", Gdk.Surface.SurfaceHeightPropertyInfo), '("mapped", Gdk.Surface.SurfaceMappedPropertyInfo), '("scale", Gdk.Surface.SurfaceScalePropertyInfo), '("scaleFactor", Gdk.Surface.SurfaceScaleFactorPropertyInfo), '("width", Gdk.Surface.SurfaceWidthPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
#endif
#if defined(ENABLE_OVERLOADING)
type family ResolveDragSurfaceMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveDragSurfaceMethod "beep" o = Gdk.Surface.SurfaceBeepMethodInfo
ResolveDragSurfaceMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveDragSurfaceMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveDragSurfaceMethod "createCairoContext" o = Gdk.Surface.SurfaceCreateCairoContextMethodInfo
ResolveDragSurfaceMethod "createGlContext" o = Gdk.Surface.SurfaceCreateGlContextMethodInfo
ResolveDragSurfaceMethod "createSimilarSurface" o = Gdk.Surface.SurfaceCreateSimilarSurfaceMethodInfo
ResolveDragSurfaceMethod "createVulkanContext" o = Gdk.Surface.SurfaceCreateVulkanContextMethodInfo
ResolveDragSurfaceMethod "destroy" o = Gdk.Surface.SurfaceDestroyMethodInfo
ResolveDragSurfaceMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveDragSurfaceMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveDragSurfaceMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveDragSurfaceMethod "hide" o = Gdk.Surface.SurfaceHideMethodInfo
ResolveDragSurfaceMethod "isDestroyed" o = Gdk.Surface.SurfaceIsDestroyedMethodInfo
ResolveDragSurfaceMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveDragSurfaceMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveDragSurfaceMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveDragSurfaceMethod "present" o = DragSurfacePresentMethodInfo
ResolveDragSurfaceMethod "queueRender" o = Gdk.Surface.SurfaceQueueRenderMethodInfo
ResolveDragSurfaceMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveDragSurfaceMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveDragSurfaceMethod "requestLayout" o = Gdk.Surface.SurfaceRequestLayoutMethodInfo
ResolveDragSurfaceMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveDragSurfaceMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveDragSurfaceMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveDragSurfaceMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveDragSurfaceMethod "translateCoordinates" o = Gdk.Surface.SurfaceTranslateCoordinatesMethodInfo
ResolveDragSurfaceMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveDragSurfaceMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveDragSurfaceMethod "getCursor" o = Gdk.Surface.SurfaceGetCursorMethodInfo
ResolveDragSurfaceMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveDragSurfaceMethod "getDeviceCursor" o = Gdk.Surface.SurfaceGetDeviceCursorMethodInfo
ResolveDragSurfaceMethod "getDevicePosition" o = Gdk.Surface.SurfaceGetDevicePositionMethodInfo
ResolveDragSurfaceMethod "getDisplay" o = Gdk.Surface.SurfaceGetDisplayMethodInfo
ResolveDragSurfaceMethod "getFrameClock" o = Gdk.Surface.SurfaceGetFrameClockMethodInfo
ResolveDragSurfaceMethod "getHeight" o = Gdk.Surface.SurfaceGetHeightMethodInfo
ResolveDragSurfaceMethod "getMapped" o = Gdk.Surface.SurfaceGetMappedMethodInfo
ResolveDragSurfaceMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveDragSurfaceMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveDragSurfaceMethod "getScale" o = Gdk.Surface.SurfaceGetScaleMethodInfo
ResolveDragSurfaceMethod "getScaleFactor" o = Gdk.Surface.SurfaceGetScaleFactorMethodInfo
ResolveDragSurfaceMethod "getWidth" o = Gdk.Surface.SurfaceGetWidthMethodInfo
ResolveDragSurfaceMethod "setCursor" o = Gdk.Surface.SurfaceSetCursorMethodInfo
ResolveDragSurfaceMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveDragSurfaceMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveDragSurfaceMethod "setDeviceCursor" o = Gdk.Surface.SurfaceSetDeviceCursorMethodInfo
ResolveDragSurfaceMethod "setInputRegion" o = Gdk.Surface.SurfaceSetInputRegionMethodInfo
ResolveDragSurfaceMethod "setOpaqueRegion" o = Gdk.Surface.SurfaceSetOpaqueRegionMethodInfo
ResolveDragSurfaceMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveDragSurfaceMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveDragSurfaceMethod t DragSurface, O.OverloadedMethod info DragSurface p) => OL.IsLabel t (DragSurface -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveDragSurfaceMethod t DragSurface, O.OverloadedMethod info DragSurface p, R.HasField t DragSurface p) => R.HasField t DragSurface p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveDragSurfaceMethod t DragSurface, O.OverloadedMethodInfo info DragSurface) => OL.IsLabel t (O.MethodProxy info DragSurface) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
foreign import ccall "gdk_drag_surface_present" gdk_drag_surface_present ::
Ptr DragSurface ->
Int32 ->
Int32 ->
IO CInt
dragSurfacePresent ::
(B.CallStack.HasCallStack, MonadIO m, IsDragSurface a) =>
a
-> Int32
-> Int32
-> m Bool
dragSurfacePresent :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsDragSurface a) =>
a -> Int32 -> Int32 -> m Bool
dragSurfacePresent a
dragSurface Int32
width Int32
height = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
dragSurface' <- a -> IO (Ptr DragSurface)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
dragSurface
result <- gdk_drag_surface_present dragSurface' width height
let result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
touchManagedPtr dragSurface
return result'
#if defined(ENABLE_OVERLOADING)
data DragSurfacePresentMethodInfo
instance (signature ~ (Int32 -> Int32 -> m Bool), MonadIO m, IsDragSurface a) => O.OverloadedMethod DragSurfacePresentMethodInfo a signature where
overloadedMethod = dragSurfacePresent
instance O.OverloadedMethodInfo DragSurfacePresentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gdk.Interfaces.DragSurface.dragSurfacePresent",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gdk-4.0.9/docs/GI-Gdk-Interfaces-DragSurface.html#v:dragSurfacePresent"
})
#endif
type DragSurfaceComputeSizeCallback =
Gdk.DragSurfaceSize.DragSurfaceSize
-> IO ()
type C_DragSurfaceComputeSizeCallback =
Ptr DragSurface ->
Ptr Gdk.DragSurfaceSize.DragSurfaceSize ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_DragSurfaceComputeSizeCallback :: C_DragSurfaceComputeSizeCallback -> IO (FunPtr C_DragSurfaceComputeSizeCallback)
wrap_DragSurfaceComputeSizeCallback ::
GObject a => (a -> DragSurfaceComputeSizeCallback) ->
C_DragSurfaceComputeSizeCallback
wrap_DragSurfaceComputeSizeCallback :: forall a.
GObject a =>
(a -> DragSurfaceComputeSizeCallback)
-> C_DragSurfaceComputeSizeCallback
wrap_DragSurfaceComputeSizeCallback a -> DragSurfaceComputeSizeCallback
gi'cb Ptr DragSurface
gi'selfPtr Ptr DragSurfaceSize
size Ptr ()
_ = do
size' <- ((ManagedPtr DragSurfaceSize -> DragSurfaceSize)
-> Ptr DragSurfaceSize -> IO DragSurfaceSize
forall a.
(HasCallStack, BoxedPtr a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
newPtr ManagedPtr DragSurfaceSize -> DragSurfaceSize
Gdk.DragSurfaceSize.DragSurfaceSize) Ptr DragSurfaceSize
size
B.ManagedPtr.withNewObject gi'selfPtr $ \DragSurface
gi'self -> a -> DragSurfaceComputeSizeCallback
gi'cb (DragSurface -> a
forall a b. Coercible a b => a -> b
Coerce.coerce DragSurface
gi'self) DragSurfaceSize
size'
onDragSurfaceComputeSize :: (IsDragSurface a, MonadIO m) => a -> ((?self :: a) => DragSurfaceComputeSizeCallback) -> m SignalHandlerId
onDragSurfaceComputeSize :: forall a (m :: * -> *).
(IsDragSurface a, MonadIO m) =>
a
-> ((?self::a) => DragSurfaceComputeSizeCallback)
-> m SignalHandlerId
onDragSurfaceComputeSize a
obj (?self::a) => DragSurfaceComputeSizeCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> DragSurfaceComputeSizeCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => DragSurfaceComputeSizeCallback
DragSurfaceComputeSizeCallback
cb
let wrapped' :: C_DragSurfaceComputeSizeCallback
wrapped' = (a -> DragSurfaceComputeSizeCallback)
-> C_DragSurfaceComputeSizeCallback
forall a.
GObject a =>
(a -> DragSurfaceComputeSizeCallback)
-> C_DragSurfaceComputeSizeCallback
wrap_DragSurfaceComputeSizeCallback a -> DragSurfaceComputeSizeCallback
wrapped
wrapped'' <- C_DragSurfaceComputeSizeCallback
-> IO (FunPtr C_DragSurfaceComputeSizeCallback)
mk_DragSurfaceComputeSizeCallback C_DragSurfaceComputeSizeCallback
wrapped'
connectSignalFunPtr obj "compute-size" wrapped'' SignalConnectBefore Nothing
afterDragSurfaceComputeSize :: (IsDragSurface a, MonadIO m) => a -> ((?self :: a) => DragSurfaceComputeSizeCallback) -> m SignalHandlerId
afterDragSurfaceComputeSize :: forall a (m :: * -> *).
(IsDragSurface a, MonadIO m) =>
a
-> ((?self::a) => DragSurfaceComputeSizeCallback)
-> m SignalHandlerId
afterDragSurfaceComputeSize a
obj (?self::a) => DragSurfaceComputeSizeCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> DragSurfaceComputeSizeCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => DragSurfaceComputeSizeCallback
DragSurfaceComputeSizeCallback
cb
let wrapped' :: C_DragSurfaceComputeSizeCallback
wrapped' = (a -> DragSurfaceComputeSizeCallback)
-> C_DragSurfaceComputeSizeCallback
forall a.
GObject a =>
(a -> DragSurfaceComputeSizeCallback)
-> C_DragSurfaceComputeSizeCallback
wrap_DragSurfaceComputeSizeCallback a -> DragSurfaceComputeSizeCallback
wrapped
wrapped'' <- C_DragSurfaceComputeSizeCallback
-> IO (FunPtr C_DragSurfaceComputeSizeCallback)
mk_DragSurfaceComputeSizeCallback C_DragSurfaceComputeSizeCallback
wrapped'
connectSignalFunPtr obj "compute-size" wrapped'' SignalConnectAfter Nothing
#if defined(ENABLE_OVERLOADING)
data DragSurfaceComputeSizeSignalInfo
instance SignalInfo DragSurfaceComputeSizeSignalInfo where
type HaskellCallbackType DragSurfaceComputeSizeSignalInfo = DragSurfaceComputeSizeCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_DragSurfaceComputeSizeCallback cb
cb'' <- mk_DragSurfaceComputeSizeCallback cb'
connectSignalFunPtr obj "compute-size" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gdk.Interfaces.DragSurface::compute-size"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gdk-4.0.9/docs/GI-Gdk-Interfaces-DragSurface.html#g:signal:computeSize"})
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList DragSurface = DragSurfaceSignalList
type DragSurfaceSignalList = ('[ '("computeSize", DragSurfaceComputeSizeSignalInfo), '("enterMonitor", Gdk.Surface.SurfaceEnterMonitorSignalInfo), '("event", Gdk.Surface.SurfaceEventSignalInfo), '("layout", Gdk.Surface.SurfaceLayoutSignalInfo), '("leaveMonitor", Gdk.Surface.SurfaceLeaveMonitorSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("render", Gdk.Surface.SurfaceRenderSignalInfo)] :: [(Symbol, DK.Type)])
#endif