{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gst.Objects.FractionRange
(
FractionRange(..) ,
IsFractionRange ,
toFractionRange ,
#if defined(ENABLE_OVERLOADING)
ResolveFractionRangeMethod ,
#endif
) 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.GClosure as B.GClosure
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.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.Text as T
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
newtype FractionRange = FractionRange (SP.ManagedPtr FractionRange)
deriving (FractionRange -> FractionRange -> Bool
(FractionRange -> FractionRange -> Bool)
-> (FractionRange -> FractionRange -> Bool) -> Eq FractionRange
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FractionRange -> FractionRange -> Bool
$c/= :: FractionRange -> FractionRange -> Bool
== :: FractionRange -> FractionRange -> Bool
$c== :: FractionRange -> FractionRange -> Bool
Eq)
instance SP.ManagedPtrNewtype FractionRange where
toManagedPtr :: FractionRange -> ManagedPtr FractionRange
toManagedPtr (FractionRange ManagedPtr FractionRange
p) = ManagedPtr FractionRange
p
foreign import ccall "gst_fraction_range_get_type"
c_gst_fraction_range_get_type :: IO B.Types.GType
instance B.Types.TypedObject FractionRange where
glibType :: IO GType
glibType = IO GType
c_gst_fraction_range_get_type
class (SP.BoxedPtr o, SP.TypedObject o, O.IsDescendantOf FractionRange o) => IsFractionRange o
instance (SP.BoxedPtr o, SP.TypedObject o, O.IsDescendantOf FractionRange o) => IsFractionRange o
instance O.HasParentTypes FractionRange
type instance O.ParentTypes FractionRange = '[]
toFractionRange :: (MonadIO m, IsFractionRange o) => o -> m FractionRange
toFractionRange :: o -> m FractionRange
toFractionRange = IO FractionRange -> m FractionRange
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO FractionRange -> m FractionRange)
-> (o -> IO FractionRange) -> o -> m FractionRange
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr FractionRange -> FractionRange)
-> o -> IO FractionRange
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
unsafeCastTo ManagedPtr FractionRange -> FractionRange
FractionRange
#if defined(ENABLE_OVERLOADING)
type family ResolveFractionRangeMethod (t :: Symbol) (o :: *) :: * where
ResolveFractionRangeMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveFractionRangeMethod t FractionRange, O.MethodInfo info FractionRange p) => OL.IsLabel t (FractionRange -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#endif
instance BoxedPtr FractionRange where
boxedPtrCopy :: FractionRange -> IO FractionRange
boxedPtrCopy = FractionRange -> IO FractionRange
forall (m :: * -> *) a. Monad m => a -> m a
return
boxedPtrFree :: FractionRange -> IO ()
boxedPtrFree = \FractionRange
_x -> () -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()