-- | Copyright  : Will Thompson, Iñaki García Etxebarria and Jonas Platte
-- License    : LGPL-2.1
-- Maintainer : Iñaki García Etxebarria

#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif

module GI.GstBase.Enums
    ( 

 -- * Enumerations


-- ** AggregatorStartTimeSelection #enum:AggregatorStartTimeSelection#

    AggregatorStartTimeSelection(..)        ,




    ) 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.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
import qualified GHC.Records as R


-- Enum AggregatorStartTimeSelection
-- | /No description available in the introspection data./
-- 
-- /Since: 1.18/
data AggregatorStartTimeSelection = 
      AggregatorStartTimeSelectionZero
    -- ^ Start at running time 0.
    | AggregatorStartTimeSelectionFirst
    -- ^ Start at the running time of
    -- the first buffer that is received.
    | AggregatorStartTimeSelectionSet
    -- ^ Start at the running time
    -- selected by the @start-time@ property.
    | AnotherAggregatorStartTimeSelection Int
    -- ^ Catch-all for unknown values
    deriving (Int -> AggregatorStartTimeSelection -> ShowS
[AggregatorStartTimeSelection] -> ShowS
AggregatorStartTimeSelection -> String
(Int -> AggregatorStartTimeSelection -> ShowS)
-> (AggregatorStartTimeSelection -> String)
-> ([AggregatorStartTimeSelection] -> ShowS)
-> Show AggregatorStartTimeSelection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AggregatorStartTimeSelection] -> ShowS
$cshowList :: [AggregatorStartTimeSelection] -> ShowS
show :: AggregatorStartTimeSelection -> String
$cshow :: AggregatorStartTimeSelection -> String
showsPrec :: Int -> AggregatorStartTimeSelection -> ShowS
$cshowsPrec :: Int -> AggregatorStartTimeSelection -> ShowS
Show, AggregatorStartTimeSelection
-> AggregatorStartTimeSelection -> Bool
(AggregatorStartTimeSelection
 -> AggregatorStartTimeSelection -> Bool)
-> (AggregatorStartTimeSelection
    -> AggregatorStartTimeSelection -> Bool)
-> Eq AggregatorStartTimeSelection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AggregatorStartTimeSelection
-> AggregatorStartTimeSelection -> Bool
$c/= :: AggregatorStartTimeSelection
-> AggregatorStartTimeSelection -> Bool
== :: AggregatorStartTimeSelection
-> AggregatorStartTimeSelection -> Bool
$c== :: AggregatorStartTimeSelection
-> AggregatorStartTimeSelection -> Bool
Eq)

instance P.Enum AggregatorStartTimeSelection where
    fromEnum :: AggregatorStartTimeSelection -> Int
fromEnum AggregatorStartTimeSelection
AggregatorStartTimeSelectionZero = Int
0
    fromEnum AggregatorStartTimeSelection
AggregatorStartTimeSelectionFirst = Int
1
    fromEnum AggregatorStartTimeSelection
AggregatorStartTimeSelectionSet = Int
2
    fromEnum (AnotherAggregatorStartTimeSelection Int
k) = Int
k

    toEnum :: Int -> AggregatorStartTimeSelection
toEnum Int
0 = AggregatorStartTimeSelection
AggregatorStartTimeSelectionZero
    toEnum Int
1 = AggregatorStartTimeSelection
AggregatorStartTimeSelectionFirst
    toEnum Int
2 = AggregatorStartTimeSelection
AggregatorStartTimeSelectionSet
    toEnum Int
k = Int -> AggregatorStartTimeSelection
AnotherAggregatorStartTimeSelection Int
k

instance P.Ord AggregatorStartTimeSelection where
    compare :: AggregatorStartTimeSelection
-> AggregatorStartTimeSelection -> Ordering
compare AggregatorStartTimeSelection
a AggregatorStartTimeSelection
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (AggregatorStartTimeSelection -> Int
forall a. Enum a => a -> Int
P.fromEnum AggregatorStartTimeSelection
a) (AggregatorStartTimeSelection -> Int
forall a. Enum a => a -> Int
P.fromEnum AggregatorStartTimeSelection
b)

type instance O.ParentTypes AggregatorStartTimeSelection = '[]
instance O.HasParentTypes AggregatorStartTimeSelection

foreign import ccall "gst_aggregator_start_time_selection_get_type" c_gst_aggregator_start_time_selection_get_type :: 
    IO GType

instance B.Types.TypedObject AggregatorStartTimeSelection where
    glibType :: IO GType
glibType = IO GType
c_gst_aggregator_start_time_selection_get_type

instance B.Types.BoxedEnum AggregatorStartTimeSelection