#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Wnck.Enums
(
ClientType(..) ,
LayoutCorner_(..) ,
LayoutOrientation_(..) ,
MotionDirection(..) ,
PagerDisplayMode(..) ,
TasklistGroupingType(..) ,
WindowGravity(..) ,
WindowType(..) ,
) 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.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.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
data LayoutOrientation_ =
LayoutOrientationHorizontal_
| LayoutOrientationVertical_
| AnotherLayoutOrientation_ Int
deriving (Show, Eq)
instance P.Enum LayoutOrientation_ where
fromEnum LayoutOrientationHorizontal_ = 0
fromEnum LayoutOrientationVertical_ = 1
fromEnum (AnotherLayoutOrientation_ k) = k
toEnum 0 = LayoutOrientationHorizontal_
toEnum 1 = LayoutOrientationVertical_
toEnum k = AnotherLayoutOrientation_ k
instance P.Ord LayoutOrientation_ where
compare a b = P.compare (P.fromEnum a) (P.fromEnum b)
data LayoutCorner_ =
LayoutCornerTopleft_
| LayoutCornerTopright_
| LayoutCornerBottomright_
| LayoutCornerBottomleft_
| AnotherLayoutCorner_ Int
deriving (Show, Eq)
instance P.Enum LayoutCorner_ where
fromEnum LayoutCornerTopleft_ = 0
fromEnum LayoutCornerTopright_ = 1
fromEnum LayoutCornerBottomright_ = 2
fromEnum LayoutCornerBottomleft_ = 3
fromEnum (AnotherLayoutCorner_ k) = k
toEnum 0 = LayoutCornerTopleft_
toEnum 1 = LayoutCornerTopright_
toEnum 2 = LayoutCornerBottomright_
toEnum 3 = LayoutCornerBottomleft_
toEnum k = AnotherLayoutCorner_ k
instance P.Ord LayoutCorner_ where
compare a b = P.compare (P.fromEnum a) (P.fromEnum b)
data WindowType =
WindowTypeNormal
| WindowTypeDesktop
| WindowTypeDock
| WindowTypeDialog
| WindowTypeToolbar
| WindowTypeMenu
| WindowTypeUtility
| WindowTypeSplashscreen
| AnotherWindowType Int
deriving (Show, Eq)
instance P.Enum WindowType where
fromEnum WindowTypeNormal = 0
fromEnum WindowTypeDesktop = 1
fromEnum WindowTypeDock = 2
fromEnum WindowTypeDialog = 3
fromEnum WindowTypeToolbar = 4
fromEnum WindowTypeMenu = 5
fromEnum WindowTypeUtility = 6
fromEnum WindowTypeSplashscreen = 7
fromEnum (AnotherWindowType k) = k
toEnum 0 = WindowTypeNormal
toEnum 1 = WindowTypeDesktop
toEnum 2 = WindowTypeDock
toEnum 3 = WindowTypeDialog
toEnum 4 = WindowTypeToolbar
toEnum 5 = WindowTypeMenu
toEnum 6 = WindowTypeUtility
toEnum 7 = WindowTypeSplashscreen
toEnum k = AnotherWindowType k
instance P.Ord WindowType where
compare a b = P.compare (P.fromEnum a) (P.fromEnum b)
foreign import ccall "wnck_window_type_get_type" c_wnck_window_type_get_type ::
IO GType
instance BoxedEnum WindowType where
boxedEnumType _ = c_wnck_window_type_get_type
data WindowGravity =
WindowGravityCurrent
| WindowGravityNorthwest
| WindowGravityNorth
| WindowGravityNortheast
| WindowGravityWest
| WindowGravityCenter
| WindowGravityEast
| WindowGravitySouthwest
| WindowGravitySouth
| WindowGravitySoutheast
| WindowGravityStatic
| AnotherWindowGravity Int
deriving (Show, Eq)
instance P.Enum WindowGravity where
fromEnum WindowGravityCurrent = 0
fromEnum WindowGravityNorthwest = 1
fromEnum WindowGravityNorth = 2
fromEnum WindowGravityNortheast = 3
fromEnum WindowGravityWest = 4
fromEnum WindowGravityCenter = 5
fromEnum WindowGravityEast = 6
fromEnum WindowGravitySouthwest = 7
fromEnum WindowGravitySouth = 8
fromEnum WindowGravitySoutheast = 9
fromEnum WindowGravityStatic = 10
fromEnum (AnotherWindowGravity k) = k
toEnum 0 = WindowGravityCurrent
toEnum 1 = WindowGravityNorthwest
toEnum 2 = WindowGravityNorth
toEnum 3 = WindowGravityNortheast
toEnum 4 = WindowGravityWest
toEnum 5 = WindowGravityCenter
toEnum 6 = WindowGravityEast
toEnum 7 = WindowGravitySouthwest
toEnum 8 = WindowGravitySouth
toEnum 9 = WindowGravitySoutheast
toEnum 10 = WindowGravityStatic
toEnum k = AnotherWindowGravity k
instance P.Ord WindowGravity where
compare a b = P.compare (P.fromEnum a) (P.fromEnum b)
foreign import ccall "wnck_window_gravity_get_type" c_wnck_window_gravity_get_type ::
IO GType
instance BoxedEnum WindowGravity where
boxedEnumType _ = c_wnck_window_gravity_get_type
data TasklistGroupingType =
TasklistGroupingTypeNeverGroup
| TasklistGroupingTypeAutoGroup
| TasklistGroupingTypeAlwaysGroup
| AnotherTasklistGroupingType Int
deriving (Show, Eq)
instance P.Enum TasklistGroupingType where
fromEnum TasklistGroupingTypeNeverGroup = 0
fromEnum TasklistGroupingTypeAutoGroup = 1
fromEnum TasklistGroupingTypeAlwaysGroup = 2
fromEnum (AnotherTasklistGroupingType k) = k
toEnum 0 = TasklistGroupingTypeNeverGroup
toEnum 1 = TasklistGroupingTypeAutoGroup
toEnum 2 = TasklistGroupingTypeAlwaysGroup
toEnum k = AnotherTasklistGroupingType k
instance P.Ord TasklistGroupingType where
compare a b = P.compare (P.fromEnum a) (P.fromEnum b)
foreign import ccall "wnck_tasklist_grouping_type_get_type" c_wnck_tasklist_grouping_type_get_type ::
IO GType
instance BoxedEnum TasklistGroupingType where
boxedEnumType _ = c_wnck_tasklist_grouping_type_get_type
data PagerDisplayMode =
PagerDisplayModeName
| PagerDisplayModeContent
| AnotherPagerDisplayMode Int
deriving (Show, Eq)
instance P.Enum PagerDisplayMode where
fromEnum PagerDisplayModeName = 0
fromEnum PagerDisplayModeContent = 1
fromEnum (AnotherPagerDisplayMode k) = k
toEnum 0 = PagerDisplayModeName
toEnum 1 = PagerDisplayModeContent
toEnum k = AnotherPagerDisplayMode k
instance P.Ord PagerDisplayMode where
compare a b = P.compare (P.fromEnum a) (P.fromEnum b)
foreign import ccall "wnck_pager_display_mode_get_type" c_wnck_pager_display_mode_get_type ::
IO GType
instance BoxedEnum PagerDisplayMode where
boxedEnumType _ = c_wnck_pager_display_mode_get_type
data MotionDirection =
MotionDirectionUp
| MotionDirectionDown
| MotionDirectionLeft
| MotionDirectionRight
| AnotherMotionDirection Int
deriving (Show, Eq)
instance P.Enum MotionDirection where
fromEnum MotionDirectionUp = -1
fromEnum MotionDirectionDown = -2
fromEnum MotionDirectionLeft = -3
fromEnum MotionDirectionRight = -4
fromEnum (AnotherMotionDirection k) = k
toEnum -1 = MotionDirectionUp
toEnum -2 = MotionDirectionDown
toEnum -3 = MotionDirectionLeft
toEnum -4 = MotionDirectionRight
toEnum k = AnotherMotionDirection k
instance P.Ord MotionDirection where
compare a b = P.compare (P.fromEnum a) (P.fromEnum b)
foreign import ccall "wnck_motion_direction_get_type" c_wnck_motion_direction_get_type ::
IO GType
instance BoxedEnum MotionDirection where
boxedEnumType _ = c_wnck_motion_direction_get_type
data ClientType =
ClientTypeApplication
| ClientTypePager
| AnotherClientType Int
deriving (Show, Eq)
instance P.Enum ClientType where
fromEnum ClientTypeApplication = 1
fromEnum ClientTypePager = 2
fromEnum (AnotherClientType k) = k
toEnum 1 = ClientTypeApplication
toEnum 2 = ClientTypePager
toEnum k = AnotherClientType k
instance P.Ord ClientType where
compare a b = P.compare (P.fromEnum a) (P.fromEnum b)
foreign import ccall "wnck_client_type_get_type" c_wnck_client_type_get_type ::
IO GType
instance BoxedEnum ClientType where
boxedEnumType _ = c_wnck_client_type_get_type