-
Notifications
You must be signed in to change notification settings - Fork 23
/
Geometry.hsc
30 lines (24 loc) · 842 Bytes
/
Geometry.hsc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Graphics.ImageMagick.MagickCore.Types.FFI.Geometry
where
import Foreign.C.Types
#include <magick/MagickCore.h>
newtype GravityType = GravityType { unGravityType :: CInt }
deriving (Eq, Show)
#{enum GravityType, GravityType
, forgetGravity = ForgetGravity
, northWestGravity = NorthWestGravity
, northGravity = NorthGravity
, northEastGravity = NorthEastGravity
, westGravity = WestGravity
, centerGravity = CenterGravity
, eastGravity = EastGravity
, southWestGravity = SouthWestGravity
, southGravity = SouthGravity
, southEastGravity = SouthEastGravity
, staticGravity = StaticGravity
}
undefinedGravity :: GravityType
undefinedGravity = forgetGravity