{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gsk.Structs.PathMeasure
(
PathMeasure(..) ,
#if defined(ENABLE_OVERLOADING)
ResolvePathMeasureMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
PathMeasureGetLengthMethodInfo ,
#endif
pathMeasureGetLength ,
#if defined(ENABLE_OVERLOADING)
PathMeasureGetPathMethodInfo ,
#endif
pathMeasureGetPath ,
#if defined(ENABLE_OVERLOADING)
PathMeasureGetToleranceMethodInfo ,
#endif
pathMeasureGetTolerance ,
pathMeasureNew ,
pathMeasureNewWithTolerance ,
#if defined(ENABLE_OVERLOADING)
PathMeasureRefMethodInfo ,
#endif
pathMeasureRef ,
#if defined(ENABLE_OVERLOADING)
PathMeasureUnrefMethodInfo ,
#endif
pathMeasureUnref ,
) 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.Structs.Context as Cairo.Context
import qualified GI.GLib.Structs.String as GLib.String
import qualified GI.Graphene.Structs.Point as Graphene.Point
import qualified GI.Graphene.Structs.Rect as Graphene.Rect
import qualified GI.Gsk.Callbacks as Gsk.Callbacks
import {-# SOURCE #-} qualified GI.Gsk.Enums as Gsk.Enums
import {-# SOURCE #-} qualified GI.Gsk.Flags as Gsk.Flags
import {-# SOURCE #-} qualified GI.Gsk.Structs.Path as Gsk.Path
import {-# SOURCE #-} qualified GI.Gsk.Structs.Stroke as Gsk.Stroke
#else
import {-# SOURCE #-} qualified GI.Gsk.Structs.Path as Gsk.Path
#endif
newtype PathMeasure = PathMeasure (SP.ManagedPtr PathMeasure)
deriving (PathMeasure -> PathMeasure -> Bool
(PathMeasure -> PathMeasure -> Bool)
-> (PathMeasure -> PathMeasure -> Bool) -> Eq PathMeasure
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PathMeasure -> PathMeasure -> Bool
== :: PathMeasure -> PathMeasure -> Bool
$c/= :: PathMeasure -> PathMeasure -> Bool
/= :: PathMeasure -> PathMeasure -> Bool
Eq)
instance SP.ManagedPtrNewtype PathMeasure where
toManagedPtr :: PathMeasure -> ManagedPtr PathMeasure
toManagedPtr (PathMeasure ManagedPtr PathMeasure
p) = ManagedPtr PathMeasure
p
foreign import ccall "gsk_path_measure_get_type" c_gsk_path_measure_get_type ::
IO GType
type instance O.ParentTypes PathMeasure = '[]
instance O.HasParentTypes PathMeasure
instance B.Types.TypedObject PathMeasure where
glibType :: IO GType
glibType = IO GType
c_gsk_path_measure_get_type
instance B.Types.GBoxed PathMeasure
instance B.GValue.IsGValue (Maybe PathMeasure) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gsk_path_measure_get_type
gvalueSet_ :: Ptr GValue -> Maybe PathMeasure -> IO ()
gvalueSet_ Ptr GValue
gv Maybe PathMeasure
P.Nothing = Ptr GValue -> Ptr PathMeasure -> IO ()
forall a. Ptr GValue -> Ptr a -> IO ()
B.GValue.set_boxed Ptr GValue
gv (Ptr PathMeasure
forall a. Ptr a
FP.nullPtr :: FP.Ptr PathMeasure)
gvalueSet_ Ptr GValue
gv (P.Just PathMeasure
obj) = PathMeasure -> (Ptr PathMeasure -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr PathMeasure
obj (Ptr GValue -> Ptr PathMeasure -> IO ()
forall a. Ptr GValue -> Ptr a -> IO ()
B.GValue.set_boxed Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe PathMeasure)
gvalueGet_ Ptr GValue
gv = do
Ptr PathMeasure
ptr <- Ptr GValue -> IO (Ptr PathMeasure)
forall b. Ptr GValue -> IO (Ptr b)
B.GValue.get_boxed Ptr GValue
gv :: IO (Ptr PathMeasure)
if Ptr PathMeasure
ptr Ptr PathMeasure -> Ptr PathMeasure -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr PathMeasure
forall a. Ptr a
FP.nullPtr
then PathMeasure -> Maybe PathMeasure
forall a. a -> Maybe a
P.Just (PathMeasure -> Maybe PathMeasure)
-> IO PathMeasure -> IO (Maybe PathMeasure)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr PathMeasure -> PathMeasure)
-> Ptr PathMeasure -> IO PathMeasure
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
B.ManagedPtr.newBoxed ManagedPtr PathMeasure -> PathMeasure
PathMeasure Ptr PathMeasure
ptr
else Maybe PathMeasure -> IO (Maybe PathMeasure)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe PathMeasure
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList PathMeasure
type instance O.AttributeList PathMeasure = PathMeasureAttributeList
type PathMeasureAttributeList = ('[ ] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "gsk_path_measure_new" gsk_path_measure_new ::
Ptr Gsk.Path.Path ->
IO (Ptr PathMeasure)
pathMeasureNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
Gsk.Path.Path
-> m PathMeasure
pathMeasureNew :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
Path -> m PathMeasure
pathMeasureNew Path
path = IO PathMeasure -> m PathMeasure
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO PathMeasure -> m PathMeasure)
-> IO PathMeasure -> m PathMeasure
forall a b. (a -> b) -> a -> b
$ do
Ptr Path
path' <- Path -> IO (Ptr Path)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr Path
path
Ptr PathMeasure
result <- Ptr Path -> IO (Ptr PathMeasure)
gsk_path_measure_new Ptr Path
path'
Text -> Ptr PathMeasure -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"pathMeasureNew" Ptr PathMeasure
result
PathMeasure
result' <- ((ManagedPtr PathMeasure -> PathMeasure)
-> Ptr PathMeasure -> IO PathMeasure
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr PathMeasure -> PathMeasure
PathMeasure) Ptr PathMeasure
result
Path -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr Path
path
PathMeasure -> IO PathMeasure
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return PathMeasure
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gsk_path_measure_new_with_tolerance" gsk_path_measure_new_with_tolerance ::
Ptr Gsk.Path.Path ->
CFloat ->
IO (Ptr PathMeasure)
pathMeasureNewWithTolerance ::
(B.CallStack.HasCallStack, MonadIO m) =>
Gsk.Path.Path
-> Float
-> m PathMeasure
pathMeasureNewWithTolerance :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
Path -> Float -> m PathMeasure
pathMeasureNewWithTolerance Path
path Float
tolerance = IO PathMeasure -> m PathMeasure
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO PathMeasure -> m PathMeasure)
-> IO PathMeasure -> m PathMeasure
forall a b. (a -> b) -> a -> b
$ do
Ptr Path
path' <- Path -> IO (Ptr Path)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr Path
path
let tolerance' :: CFloat
tolerance' = Float -> CFloat
forall a b. (Real a, Fractional b) => a -> b
realToFrac Float
tolerance
Ptr PathMeasure
result <- Ptr Path -> CFloat -> IO (Ptr PathMeasure)
gsk_path_measure_new_with_tolerance Ptr Path
path' CFloat
tolerance'
Text -> Ptr PathMeasure -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"pathMeasureNewWithTolerance" Ptr PathMeasure
result
PathMeasure
result' <- ((ManagedPtr PathMeasure -> PathMeasure)
-> Ptr PathMeasure -> IO PathMeasure
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr PathMeasure -> PathMeasure
PathMeasure) Ptr PathMeasure
result
Path -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr Path
path
PathMeasure -> IO PathMeasure
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return PathMeasure
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gsk_path_measure_get_length" gsk_path_measure_get_length ::
Ptr PathMeasure ->
IO CFloat
pathMeasureGetLength ::
(B.CallStack.HasCallStack, MonadIO m) =>
PathMeasure
-> m Float
pathMeasureGetLength :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
PathMeasure -> m Float
pathMeasureGetLength PathMeasure
self = IO Float -> m Float
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Float -> m Float) -> IO Float -> m Float
forall a b. (a -> b) -> a -> b
$ do
Ptr PathMeasure
self' <- PathMeasure -> IO (Ptr PathMeasure)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr PathMeasure
self
CFloat
result <- Ptr PathMeasure -> IO CFloat
gsk_path_measure_get_length Ptr PathMeasure
self'
let result' :: Float
result' = CFloat -> Float
forall a b. (Real a, Fractional b) => a -> b
realToFrac CFloat
result
PathMeasure -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr PathMeasure
self
Float -> IO Float
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Float
result'
#if defined(ENABLE_OVERLOADING)
data PathMeasureGetLengthMethodInfo
instance (signature ~ (m Float), MonadIO m) => O.OverloadedMethod PathMeasureGetLengthMethodInfo PathMeasure signature where
overloadedMethod = pathMeasureGetLength
instance O.OverloadedMethodInfo PathMeasureGetLengthMethodInfo PathMeasure where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gsk.Structs.PathMeasure.pathMeasureGetLength",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gsk-4.0.8/docs/GI-Gsk-Structs-PathMeasure.html#v:pathMeasureGetLength"
})
#endif
foreign import ccall "gsk_path_measure_get_path" gsk_path_measure_get_path ::
Ptr PathMeasure ->
IO (Ptr Gsk.Path.Path)
pathMeasureGetPath ::
(B.CallStack.HasCallStack, MonadIO m) =>
PathMeasure
-> m Gsk.Path.Path
pathMeasureGetPath :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
PathMeasure -> m Path
pathMeasureGetPath PathMeasure
self = IO Path -> m Path
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Path -> m Path) -> IO Path -> m Path
forall a b. (a -> b) -> a -> b
$ do
Ptr PathMeasure
self' <- PathMeasure -> IO (Ptr PathMeasure)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr PathMeasure
self
Ptr Path
result <- Ptr PathMeasure -> IO (Ptr Path)
gsk_path_measure_get_path Ptr PathMeasure
self'
Text -> Ptr Path -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"pathMeasureGetPath" Ptr Path
result
Path
result' <- ((ManagedPtr Path -> Path) -> Ptr Path -> IO Path
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
newBoxed ManagedPtr Path -> Path
Gsk.Path.Path) Ptr Path
result
PathMeasure -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr PathMeasure
self
Path -> IO Path
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Path
result'
#if defined(ENABLE_OVERLOADING)
data PathMeasureGetPathMethodInfo
instance (signature ~ (m Gsk.Path.Path), MonadIO m) => O.OverloadedMethod PathMeasureGetPathMethodInfo PathMeasure signature where
overloadedMethod = pathMeasureGetPath
instance O.OverloadedMethodInfo PathMeasureGetPathMethodInfo PathMeasure where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gsk.Structs.PathMeasure.pathMeasureGetPath",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gsk-4.0.8/docs/GI-Gsk-Structs-PathMeasure.html#v:pathMeasureGetPath"
})
#endif
foreign import ccall "gsk_path_measure_get_tolerance" gsk_path_measure_get_tolerance ::
Ptr PathMeasure ->
IO CFloat
pathMeasureGetTolerance ::
(B.CallStack.HasCallStack, MonadIO m) =>
PathMeasure
-> m Float
pathMeasureGetTolerance :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
PathMeasure -> m Float
pathMeasureGetTolerance PathMeasure
self = IO Float -> m Float
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Float -> m Float) -> IO Float -> m Float
forall a b. (a -> b) -> a -> b
$ do
Ptr PathMeasure
self' <- PathMeasure -> IO (Ptr PathMeasure)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr PathMeasure
self
CFloat
result <- Ptr PathMeasure -> IO CFloat
gsk_path_measure_get_tolerance Ptr PathMeasure
self'
let result' :: Float
result' = CFloat -> Float
forall a b. (Real a, Fractional b) => a -> b
realToFrac CFloat
result
PathMeasure -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr PathMeasure
self
Float -> IO Float
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Float
result'
#if defined(ENABLE_OVERLOADING)
data PathMeasureGetToleranceMethodInfo
instance (signature ~ (m Float), MonadIO m) => O.OverloadedMethod PathMeasureGetToleranceMethodInfo PathMeasure signature where
overloadedMethod = pathMeasureGetTolerance
instance O.OverloadedMethodInfo PathMeasureGetToleranceMethodInfo PathMeasure where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gsk.Structs.PathMeasure.pathMeasureGetTolerance",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gsk-4.0.8/docs/GI-Gsk-Structs-PathMeasure.html#v:pathMeasureGetTolerance"
})
#endif
foreign import ccall "gsk_path_measure_ref" gsk_path_measure_ref ::
Ptr PathMeasure ->
IO (Ptr PathMeasure)
pathMeasureRef ::
(B.CallStack.HasCallStack, MonadIO m) =>
PathMeasure
-> m PathMeasure
pathMeasureRef :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
PathMeasure -> m PathMeasure
pathMeasureRef PathMeasure
self = IO PathMeasure -> m PathMeasure
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO PathMeasure -> m PathMeasure)
-> IO PathMeasure -> m PathMeasure
forall a b. (a -> b) -> a -> b
$ do
Ptr PathMeasure
self' <- PathMeasure -> IO (Ptr PathMeasure)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr PathMeasure
self
Ptr PathMeasure
result <- Ptr PathMeasure -> IO (Ptr PathMeasure)
gsk_path_measure_ref Ptr PathMeasure
self'
Text -> Ptr PathMeasure -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"pathMeasureRef" Ptr PathMeasure
result
PathMeasure
result' <- ((ManagedPtr PathMeasure -> PathMeasure)
-> Ptr PathMeasure -> IO PathMeasure
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr PathMeasure -> PathMeasure
PathMeasure) Ptr PathMeasure
result
PathMeasure -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr PathMeasure
self
PathMeasure -> IO PathMeasure
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return PathMeasure
result'
#if defined(ENABLE_OVERLOADING)
data PathMeasureRefMethodInfo
instance (signature ~ (m PathMeasure), MonadIO m) => O.OverloadedMethod PathMeasureRefMethodInfo PathMeasure signature where
overloadedMethod = pathMeasureRef
instance O.OverloadedMethodInfo PathMeasureRefMethodInfo PathMeasure where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gsk.Structs.PathMeasure.pathMeasureRef",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gsk-4.0.8/docs/GI-Gsk-Structs-PathMeasure.html#v:pathMeasureRef"
})
#endif
foreign import ccall "gsk_path_measure_unref" gsk_path_measure_unref ::
Ptr PathMeasure ->
IO ()
pathMeasureUnref ::
(B.CallStack.HasCallStack, MonadIO m) =>
PathMeasure
-> m ()
pathMeasureUnref :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
PathMeasure -> m ()
pathMeasureUnref PathMeasure
self = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr PathMeasure
self' <- PathMeasure -> IO (Ptr PathMeasure)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr PathMeasure
self
Ptr PathMeasure -> IO ()
gsk_path_measure_unref Ptr PathMeasure
self'
PathMeasure -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr PathMeasure
self
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PathMeasureUnrefMethodInfo
instance (signature ~ (m ()), MonadIO m) => O.OverloadedMethod PathMeasureUnrefMethodInfo PathMeasure signature where
overloadedMethod = pathMeasureUnref
instance O.OverloadedMethodInfo PathMeasureUnrefMethodInfo PathMeasure where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gsk.Structs.PathMeasure.pathMeasureUnref",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gsk-4.0.8/docs/GI-Gsk-Structs-PathMeasure.html#v:pathMeasureUnref"
})
#endif
#if defined(ENABLE_OVERLOADING)
type family ResolvePathMeasureMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolvePathMeasureMethod "ref" o = PathMeasureRefMethodInfo
ResolvePathMeasureMethod "unref" o = PathMeasureUnrefMethodInfo
ResolvePathMeasureMethod "getLength" o = PathMeasureGetLengthMethodInfo
ResolvePathMeasureMethod "getPath" o = PathMeasureGetPathMethodInfo
ResolvePathMeasureMethod "getTolerance" o = PathMeasureGetToleranceMethodInfo
ResolvePathMeasureMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolvePathMeasureMethod t PathMeasure, O.OverloadedMethod info PathMeasure p) => OL.IsLabel t (PathMeasure -> 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 ~ ResolvePathMeasureMethod t PathMeasure, O.OverloadedMethod info PathMeasure p, R.HasField t PathMeasure p) => R.HasField t PathMeasure p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolvePathMeasureMethod t PathMeasure, O.OverloadedMethodInfo info PathMeasure) => OL.IsLabel t (O.MethodProxy info PathMeasure) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif