gi-cairo 0.1.14.13 → 0.1.14.14
raw patch · 28 files changed
+178/−39 lines, 28 filesdep ~haskell-gi-basePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: haskell-gi-base
API changes (from Hackage documentation)
- GI.Cairo.Enums: instance Data.GI.Base.BasicTypes.BoxedEnum GI.Cairo.Enums.Content
- GI.Cairo.Enums: instance GHC.Classes.Eq GI.Cairo.Enums.Content
- GI.Cairo.Enums: instance GHC.Enum.Enum GI.Cairo.Enums.Content
- GI.Cairo.Enums: instance GHC.Show.Show GI.Cairo.Enums.Content
- GI.Cairo.Structs.Context: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Context.ResolveContextMethod t GI.Cairo.Structs.Context.Context, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Context.Context p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Context.Context -> p)
- GI.Cairo.Structs.Context: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Context.ResolveContextMethod t GI.Cairo.Structs.Context.Context, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Context.Context p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Context.Context -> p)
- GI.Cairo.Structs.Context: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.Context.Context
- GI.Cairo.Structs.FontFace: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontFace.ResolveFontFaceMethod t GI.Cairo.Structs.FontFace.FontFace, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontFace.FontFace p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.FontFace.FontFace -> p)
- GI.Cairo.Structs.FontFace: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontFace.ResolveFontFaceMethod t GI.Cairo.Structs.FontFace.FontFace, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontFace.FontFace p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.FontFace.FontFace -> p)
- GI.Cairo.Structs.FontFace: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.FontFace.FontFace
- GI.Cairo.Structs.FontOptions: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontOptions.ResolveFontOptionsMethod t GI.Cairo.Structs.FontOptions.FontOptions, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontOptions.FontOptions p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.FontOptions.FontOptions -> p)
- GI.Cairo.Structs.FontOptions: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontOptions.ResolveFontOptionsMethod t GI.Cairo.Structs.FontOptions.FontOptions, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontOptions.FontOptions p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.FontOptions.FontOptions -> p)
- GI.Cairo.Structs.FontType: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontType.ResolveFontTypeMethod t GI.Cairo.Structs.FontType.FontType, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontType.FontType p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.FontType.FontType -> p)
- GI.Cairo.Structs.FontType: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontType.ResolveFontTypeMethod t GI.Cairo.Structs.FontType.FontType, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontType.FontType p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.FontType.FontType -> p)
- GI.Cairo.Structs.Matrix: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Matrix.ResolveMatrixMethod t GI.Cairo.Structs.Matrix.Matrix, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Matrix.Matrix p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Matrix.Matrix -> p)
- GI.Cairo.Structs.Matrix: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Matrix.ResolveMatrixMethod t GI.Cairo.Structs.Matrix.Matrix, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Matrix.Matrix p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Matrix.Matrix -> p)
- GI.Cairo.Structs.Path: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Path.ResolvePathMethod t GI.Cairo.Structs.Path.Path, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Path.Path p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Path.Path -> p)
- GI.Cairo.Structs.Path: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Path.ResolvePathMethod t GI.Cairo.Structs.Path.Path, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Path.Path p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Path.Path -> p)
- GI.Cairo.Structs.Pattern: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Pattern.ResolvePatternMethod t GI.Cairo.Structs.Pattern.Pattern, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Pattern.Pattern p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Pattern.Pattern -> p)
- GI.Cairo.Structs.Pattern: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Pattern.ResolvePatternMethod t GI.Cairo.Structs.Pattern.Pattern, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Pattern.Pattern p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Pattern.Pattern -> p)
- GI.Cairo.Structs.Pattern: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.Pattern.Pattern
- GI.Cairo.Structs.RectangleInt: instance (info Data.Type.Equality.~ GI.Cairo.Structs.RectangleInt.ResolveRectangleIntMethod t GI.Cairo.Structs.RectangleInt.RectangleInt, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.RectangleInt.RectangleInt p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.RectangleInt.RectangleInt -> p)
- GI.Cairo.Structs.RectangleInt: instance (info Data.Type.Equality.~ GI.Cairo.Structs.RectangleInt.ResolveRectangleIntMethod t GI.Cairo.Structs.RectangleInt.RectangleInt, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.RectangleInt.RectangleInt p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.RectangleInt.RectangleInt -> p)
- GI.Cairo.Structs.RectangleInt: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.RectangleInt.RectangleInt
- GI.Cairo.Structs.Region: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Region.ResolveRegionMethod t GI.Cairo.Structs.Region.Region, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Region.Region p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Region.Region -> p)
- GI.Cairo.Structs.Region: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Region.ResolveRegionMethod t GI.Cairo.Structs.Region.Region, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Region.Region p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Region.Region -> p)
- GI.Cairo.Structs.Region: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.Region.Region
- GI.Cairo.Structs.ScaledFont: instance (info Data.Type.Equality.~ GI.Cairo.Structs.ScaledFont.ResolveScaledFontMethod t GI.Cairo.Structs.ScaledFont.ScaledFont, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.ScaledFont.ScaledFont p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.ScaledFont.ScaledFont -> p)
- GI.Cairo.Structs.ScaledFont: instance (info Data.Type.Equality.~ GI.Cairo.Structs.ScaledFont.ResolveScaledFontMethod t GI.Cairo.Structs.ScaledFont.ScaledFont, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.ScaledFont.ScaledFont p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.ScaledFont.ScaledFont -> p)
- GI.Cairo.Structs.ScaledFont: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.ScaledFont.ScaledFont
- GI.Cairo.Structs.Surface: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Surface.ResolveSurfaceMethod t GI.Cairo.Structs.Surface.Surface, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Surface.Surface p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Surface.Surface -> p)
- GI.Cairo.Structs.Surface: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Surface.ResolveSurfaceMethod t GI.Cairo.Structs.Surface.Surface, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Surface.Surface p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Surface.Surface -> p)
- GI.Cairo.Structs.Surface: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.Surface.Surface
+ GI.Cairo.Enums: instance BoxedEnum Content
+ GI.Cairo.Enums: instance Enum Content
+ GI.Cairo.Enums: instance Eq Content
+ GI.Cairo.Enums: instance Show Content
+ GI.Cairo.Structs.Context: instance (info ~ ResolveContextMethod t Context, MethodInfo info Context p) => IsLabelProxy t (Context -> p)
+ GI.Cairo.Structs.Context: instance BoxedObject Context
+ GI.Cairo.Structs.FontFace: instance (info ~ ResolveFontFaceMethod t FontFace, MethodInfo info FontFace p) => IsLabelProxy t (FontFace -> p)
+ GI.Cairo.Structs.FontFace: instance BoxedObject FontFace
+ GI.Cairo.Structs.FontOptions: instance (info ~ ResolveFontOptionsMethod t FontOptions, MethodInfo info FontOptions p) => IsLabelProxy t (FontOptions -> p)
+ GI.Cairo.Structs.FontType: instance (info ~ ResolveFontTypeMethod t FontType, MethodInfo info FontType p) => IsLabelProxy t (FontType -> p)
+ GI.Cairo.Structs.Matrix: instance (info ~ ResolveMatrixMethod t Matrix, MethodInfo info Matrix p) => IsLabelProxy t (Matrix -> p)
+ GI.Cairo.Structs.Path: instance (info ~ ResolvePathMethod t Path, MethodInfo info Path p) => IsLabelProxy t (Path -> p)
+ GI.Cairo.Structs.Pattern: instance (info ~ ResolvePatternMethod t Pattern, MethodInfo info Pattern p) => IsLabelProxy t (Pattern -> p)
+ GI.Cairo.Structs.Pattern: instance BoxedObject Pattern
+ GI.Cairo.Structs.RectangleInt: instance (info ~ ResolveRectangleIntMethod t RectangleInt, MethodInfo info RectangleInt p) => IsLabelProxy t (RectangleInt -> p)
+ GI.Cairo.Structs.RectangleInt: instance AttrInfo RectangleIntHeightFieldInfo
+ GI.Cairo.Structs.RectangleInt: instance AttrInfo RectangleIntWidthFieldInfo
+ GI.Cairo.Structs.RectangleInt: instance AttrInfo RectangleIntXFieldInfo
+ GI.Cairo.Structs.RectangleInt: instance AttrInfo RectangleIntYFieldInfo
+ GI.Cairo.Structs.RectangleInt: instance BoxedObject RectangleInt
+ GI.Cairo.Structs.RectangleInt: instance tag ~ 'AttrSet => Constructible RectangleInt tag
+ GI.Cairo.Structs.RectangleInt: rectangleIntHeight :: AttrLabelProxy "height"
+ GI.Cairo.Structs.RectangleInt: rectangleIntWidth :: AttrLabelProxy "width"
+ GI.Cairo.Structs.RectangleInt: rectangleIntWriteHeight :: MonadIO m => RectangleInt -> Int32 -> m ()
+ GI.Cairo.Structs.RectangleInt: rectangleIntWriteWidth :: MonadIO m => RectangleInt -> Int32 -> m ()
+ GI.Cairo.Structs.RectangleInt: rectangleIntWriteX :: MonadIO m => RectangleInt -> Int32 -> m ()
+ GI.Cairo.Structs.RectangleInt: rectangleIntWriteY :: MonadIO m => RectangleInt -> Int32 -> m ()
+ GI.Cairo.Structs.RectangleInt: rectangleIntX :: AttrLabelProxy "x"
+ GI.Cairo.Structs.RectangleInt: rectangleIntY :: AttrLabelProxy "y"
+ GI.Cairo.Structs.Region: instance (info ~ ResolveRegionMethod t Region, MethodInfo info Region p) => IsLabelProxy t (Region -> p)
+ GI.Cairo.Structs.Region: instance BoxedObject Region
+ GI.Cairo.Structs.ScaledFont: instance (info ~ ResolveScaledFontMethod t ScaledFont, MethodInfo info ScaledFont p) => IsLabelProxy t (ScaledFont -> p)
+ GI.Cairo.Structs.ScaledFont: instance BoxedObject ScaledFont
+ GI.Cairo.Structs.Surface: instance (info ~ ResolveSurfaceMethod t Surface, MethodInfo info Surface p) => IsLabelProxy t (Surface -> p)
+ GI.Cairo.Structs.Surface: instance BoxedObject Surface
- GI.Cairo.Functions: imageSurfaceCreate :: (MonadIO m) => m ()
+ GI.Cairo.Functions: imageSurfaceCreate :: MonadIO m => m ()
- GI.Cairo.Structs.RectangleInt: rectangleIntReadHeight :: RectangleInt -> IO Int32
+ GI.Cairo.Structs.RectangleInt: rectangleIntReadHeight :: MonadIO m => RectangleInt -> m Int32
- GI.Cairo.Structs.RectangleInt: rectangleIntReadWidth :: RectangleInt -> IO Int32
+ GI.Cairo.Structs.RectangleInt: rectangleIntReadWidth :: MonadIO m => RectangleInt -> m Int32
- GI.Cairo.Structs.RectangleInt: rectangleIntReadX :: RectangleInt -> IO Int32
+ GI.Cairo.Structs.RectangleInt: rectangleIntReadX :: MonadIO m => RectangleInt -> m Int32
- GI.Cairo.Structs.RectangleInt: rectangleIntReadY :: RectangleInt -> IO Int32
+ GI.Cairo.Structs.RectangleInt: rectangleIntReadY :: MonadIO m => RectangleInt -> m Int32
Files
- GI/Cairo.hs +1/−1
- GI/Cairo/Callbacks.hs +1/−1
- GI/Cairo/Enums.hs +1/−1
- GI/Cairo/Functions.hs +2/−2
- GI/Cairo/Structs.hs +1/−1
- GI/Cairo/Structs/Context.hs +5/−1
- GI/Cairo/Structs/Context.hs-boot +1/−1
- GI/Cairo/Structs/FontFace.hs +5/−1
- GI/Cairo/Structs/FontFace.hs-boot +1/−1
- GI/Cairo/Structs/FontOptions.hs +5/−1
- GI/Cairo/Structs/FontOptions.hs-boot +1/−1
- GI/Cairo/Structs/FontType.hs +5/−1
- GI/Cairo/Structs/FontType.hs-boot +1/−1
- GI/Cairo/Structs/Matrix.hs +5/−1
- GI/Cairo/Structs/Matrix.hs-boot +1/−1
- GI/Cairo/Structs/Path.hs +5/−1
- GI/Cairo/Structs/Path.hs-boot +1/−1
- GI/Cairo/Structs/Pattern.hs +5/−1
- GI/Cairo/Structs/Pattern.hs-boot +1/−1
- GI/Cairo/Structs/RectangleInt.hs +108/−9
- GI/Cairo/Structs/RectangleInt.hs-boot +1/−1
- GI/Cairo/Structs/Region.hs +5/−1
- GI/Cairo/Structs/Region.hs-boot +1/−1
- GI/Cairo/Structs/ScaledFont.hs +5/−1
- GI/Cairo/Structs/ScaledFont.hs-boot +1/−1
- GI/Cairo/Structs/Surface.hs +5/−1
- GI/Cairo/Structs/Surface.hs-boot +1/−1
- gi-cairo.cabal +3/−3
GI/Cairo.hs view
@@ -24,9 +24,9 @@ import GI.Cairo.Functions import GI.Cairo.Structs -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Callbacks.hs view
@@ -8,9 +8,9 @@ module GI.Cairo.Callbacks () where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Enums.hs view
@@ -15,9 +15,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Functions.hs view
@@ -18,9 +18,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -31,7 +31,7 @@ -- function cairo_image_surface_create -- Args : [] -- Lengths : []--- returnType : TBasicType TVoid+-- returnType : Nothing -- throws : False -- Skip return : False
GI/Cairo/Structs.hs view
@@ -34,9 +34,9 @@ import GI.Cairo.Structs.ScaledFont import GI.Cairo.Structs.Surface -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/Context.hs view
@@ -16,9 +16,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -35,6 +35,10 @@ noContext :: Maybe Context noContext = Nothing+++type instance AttributeList Context = ContextAttributeList+type ContextAttributeList = ('[ ] :: [(Symbol, *)]) type family ResolveContextMethod (t :: Symbol) (o :: *) :: * where ResolveContextMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/Context.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.Context where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/FontFace.hs view
@@ -16,9 +16,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -35,6 +35,10 @@ noFontFace :: Maybe FontFace noFontFace = Nothing+++type instance AttributeList FontFace = FontFaceAttributeList+type FontFaceAttributeList = ('[ ] :: [(Symbol, *)]) type family ResolveFontFaceMethod (t :: Symbol) (o :: *) :: * where ResolveFontFaceMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/FontFace.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.FontFace where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/FontOptions.hs view
@@ -16,9 +16,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -29,6 +29,10 @@ newtype FontOptions = FontOptions (ForeignPtr FontOptions) noFontOptions :: Maybe FontOptions noFontOptions = Nothing+++type instance AttributeList FontOptions = FontOptionsAttributeList+type FontOptionsAttributeList = ('[ ] :: [(Symbol, *)]) type family ResolveFontOptionsMethod (t :: Symbol) (o :: *) :: * where ResolveFontOptionsMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/FontOptions.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.FontOptions where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/FontType.hs view
@@ -16,9 +16,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -29,6 +29,10 @@ newtype FontType = FontType (ForeignPtr FontType) noFontType :: Maybe FontType noFontType = Nothing+++type instance AttributeList FontType = FontTypeAttributeList+type FontTypeAttributeList = ('[ ] :: [(Symbol, *)]) type family ResolveFontTypeMethod (t :: Symbol) (o :: *) :: * where ResolveFontTypeMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/FontType.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.FontType where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/Matrix.hs view
@@ -16,9 +16,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -29,6 +29,10 @@ newtype Matrix = Matrix (ForeignPtr Matrix) noMatrix :: Maybe Matrix noMatrix = Nothing+++type instance AttributeList Matrix = MatrixAttributeList+type MatrixAttributeList = ('[ ] :: [(Symbol, *)]) type family ResolveMatrixMethod (t :: Symbol) (o :: *) :: * where ResolveMatrixMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/Matrix.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.Matrix where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/Path.hs view
@@ -16,9 +16,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -29,6 +29,10 @@ newtype Path = Path (ForeignPtr Path) noPath :: Maybe Path noPath = Nothing+++type instance AttributeList Path = PathAttributeList+type PathAttributeList = ('[ ] :: [(Symbol, *)]) type family ResolvePathMethod (t :: Symbol) (o :: *) :: * where ResolvePathMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/Path.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.Path where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/Pattern.hs view
@@ -16,9 +16,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -35,6 +35,10 @@ noPattern :: Maybe Pattern noPattern = Nothing+++type instance AttributeList Pattern = PatternAttributeList+type PatternAttributeList = ('[ ] :: [(Symbol, *)]) type family ResolvePatternMethod (t :: Symbol) (o :: *) :: * where ResolvePatternMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/Pattern.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.Pattern where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/RectangleInt.hs view
@@ -17,28 +17,36 @@ -- * Properties -- ** Height+ rectangleIntHeight , rectangleIntReadHeight ,+ rectangleIntWriteHeight , -- ** Width rectangleIntReadWidth ,+ rectangleIntWidth ,+ rectangleIntWriteWidth , -- ** X rectangleIntReadX ,+ rectangleIntWriteX ,+ rectangleIntX , -- ** Y rectangleIntReadY ,+ rectangleIntWriteY ,+ rectangleIntY , ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -57,28 +65,119 @@ newZeroRectangleInt :: MonadIO m => m RectangleInt newZeroRectangleInt = liftIO $ callocBoxedBytes 16 >>= wrapBoxed RectangleInt +instance tag ~ 'AttrSet => Constructible RectangleInt tag where+ new _ attrs = do+ o <- newZeroRectangleInt+ GI.Attributes.set o attrs+ return o++ noRectangleInt :: Maybe RectangleInt noRectangleInt = Nothing -rectangleIntReadX :: RectangleInt -> IO Int32-rectangleIntReadX s = withManagedPtr s $ \ptr -> do+rectangleIntReadX :: MonadIO m => RectangleInt -> m Int32+rectangleIntReadX s = liftIO $ withManagedPtr s $ \ptr -> do val <- peek (ptr `plusPtr` 0) :: IO Int32 return val -rectangleIntReadY :: RectangleInt -> IO Int32-rectangleIntReadY s = withManagedPtr s $ \ptr -> do+rectangleIntWriteX :: MonadIO m => RectangleInt -> Int32 -> m ()+rectangleIntWriteX s val = liftIO $ withManagedPtr s $ \ptr -> do+ poke (ptr `plusPtr` 0) (val :: Int32)++data RectangleIntXFieldInfo+instance AttrInfo RectangleIntXFieldInfo where+ type AttrAllowedOps RectangleIntXFieldInfo = '[ 'AttrSet, 'AttrGet]+ type AttrSetTypeConstraint RectangleIntXFieldInfo = (~) Int32+ type AttrBaseTypeConstraint RectangleIntXFieldInfo = (~) RectangleInt+ type AttrGetType RectangleIntXFieldInfo = Int32+ type AttrLabel RectangleIntXFieldInfo = "x"+ attrGet _ = rectangleIntReadX+ attrSet _ = rectangleIntWriteX+ attrConstruct = undefined+ attrClear _ = undefined++rectangleIntX :: AttrLabelProxy "x"+rectangleIntX = AttrLabelProxy+++rectangleIntReadY :: MonadIO m => RectangleInt -> m Int32+rectangleIntReadY s = liftIO $ withManagedPtr s $ \ptr -> do val <- peek (ptr `plusPtr` 4) :: IO Int32 return val -rectangleIntReadWidth :: RectangleInt -> IO Int32-rectangleIntReadWidth s = withManagedPtr s $ \ptr -> do+rectangleIntWriteY :: MonadIO m => RectangleInt -> Int32 -> m ()+rectangleIntWriteY s val = liftIO $ withManagedPtr s $ \ptr -> do+ poke (ptr `plusPtr` 4) (val :: Int32)++data RectangleIntYFieldInfo+instance AttrInfo RectangleIntYFieldInfo where+ type AttrAllowedOps RectangleIntYFieldInfo = '[ 'AttrSet, 'AttrGet]+ type AttrSetTypeConstraint RectangleIntYFieldInfo = (~) Int32+ type AttrBaseTypeConstraint RectangleIntYFieldInfo = (~) RectangleInt+ type AttrGetType RectangleIntYFieldInfo = Int32+ type AttrLabel RectangleIntYFieldInfo = "y"+ attrGet _ = rectangleIntReadY+ attrSet _ = rectangleIntWriteY+ attrConstruct = undefined+ attrClear _ = undefined++rectangleIntY :: AttrLabelProxy "y"+rectangleIntY = AttrLabelProxy+++rectangleIntReadWidth :: MonadIO m => RectangleInt -> m Int32+rectangleIntReadWidth s = liftIO $ withManagedPtr s $ \ptr -> do val <- peek (ptr `plusPtr` 8) :: IO Int32 return val -rectangleIntReadHeight :: RectangleInt -> IO Int32-rectangleIntReadHeight s = withManagedPtr s $ \ptr -> do+rectangleIntWriteWidth :: MonadIO m => RectangleInt -> Int32 -> m ()+rectangleIntWriteWidth s val = liftIO $ withManagedPtr s $ \ptr -> do+ poke (ptr `plusPtr` 8) (val :: Int32)++data RectangleIntWidthFieldInfo+instance AttrInfo RectangleIntWidthFieldInfo where+ type AttrAllowedOps RectangleIntWidthFieldInfo = '[ 'AttrSet, 'AttrGet]+ type AttrSetTypeConstraint RectangleIntWidthFieldInfo = (~) Int32+ type AttrBaseTypeConstraint RectangleIntWidthFieldInfo = (~) RectangleInt+ type AttrGetType RectangleIntWidthFieldInfo = Int32+ type AttrLabel RectangleIntWidthFieldInfo = "width"+ attrGet _ = rectangleIntReadWidth+ attrSet _ = rectangleIntWriteWidth+ attrConstruct = undefined+ attrClear _ = undefined++rectangleIntWidth :: AttrLabelProxy "width"+rectangleIntWidth = AttrLabelProxy+++rectangleIntReadHeight :: MonadIO m => RectangleInt -> m Int32+rectangleIntReadHeight s = liftIO $ withManagedPtr s $ \ptr -> do val <- peek (ptr `plusPtr` 12) :: IO Int32 return val++rectangleIntWriteHeight :: MonadIO m => RectangleInt -> Int32 -> m ()+rectangleIntWriteHeight s val = liftIO $ withManagedPtr s $ \ptr -> do+ poke (ptr `plusPtr` 12) (val :: Int32)++data RectangleIntHeightFieldInfo+instance AttrInfo RectangleIntHeightFieldInfo where+ type AttrAllowedOps RectangleIntHeightFieldInfo = '[ 'AttrSet, 'AttrGet]+ type AttrSetTypeConstraint RectangleIntHeightFieldInfo = (~) Int32+ type AttrBaseTypeConstraint RectangleIntHeightFieldInfo = (~) RectangleInt+ type AttrGetType RectangleIntHeightFieldInfo = Int32+ type AttrLabel RectangleIntHeightFieldInfo = "height"+ attrGet _ = rectangleIntReadHeight+ attrSet _ = rectangleIntWriteHeight+ attrConstruct = undefined+ attrClear _ = undefined++rectangleIntHeight :: AttrLabelProxy "height"+rectangleIntHeight = AttrLabelProxy++++type instance AttributeList RectangleInt = RectangleIntAttributeList+type RectangleIntAttributeList = ('[ '("x", RectangleIntXFieldInfo), '("y", RectangleIntYFieldInfo), '("width", RectangleIntWidthFieldInfo), '("height", RectangleIntHeightFieldInfo)] :: [(Symbol, *)]) type family ResolveRectangleIntMethod (t :: Symbol) (o :: *) :: * where ResolveRectangleIntMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/RectangleInt.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.RectangleInt where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/Region.hs view
@@ -16,9 +16,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -35,6 +35,10 @@ noRegion :: Maybe Region noRegion = Nothing+++type instance AttributeList Region = RegionAttributeList+type RegionAttributeList = ('[ ] :: [(Symbol, *)]) type family ResolveRegionMethod (t :: Symbol) (o :: *) :: * where ResolveRegionMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/Region.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.Region where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/ScaledFont.hs view
@@ -16,9 +16,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -35,6 +35,10 @@ noScaledFont :: Maybe ScaledFont noScaledFont = Nothing+++type instance AttributeList ScaledFont = ScaledFontAttributeList+type ScaledFontAttributeList = ('[ ] :: [(Symbol, *)]) type family ResolveScaledFontMethod (t :: Symbol) (o :: *) :: * where ResolveScaledFontMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/ScaledFont.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.ScaledFont where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
GI/Cairo/Structs/Surface.hs view
@@ -16,9 +16,9 @@ ) where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map@@ -35,6 +35,10 @@ noSurface :: Maybe Surface noSurface = Nothing+++type instance AttributeList Surface = SurfaceAttributeList+type SurfaceAttributeList = ('[ ] :: [(Symbol, *)]) type family ResolveSurfaceMethod (t :: Symbol) (o :: *) :: * where ResolveSurfaceMethod l o = MethodResolutionFailed l o
GI/Cairo/Structs/Surface.hs-boot view
@@ -1,8 +1,8 @@ module GI.Cairo.Structs.Surface where -import Prelude () import Data.GI.Base.ShortPrelude +import qualified Data.GI.Base.Attributes as GI.Attributes import qualified Data.Text as T import qualified Data.ByteString.Char8 as B import qualified Data.Map as Map
gi-cairo.cabal view
@@ -1,6 +1,6 @@ -- Autogenerated, do not edit. name: gi-cairo-version: 0.1.14.13+version: 0.1.14.14 synopsis: cairo bindings description: Bindings for cairo, autogenerated by haskell-gi. homepage: https://github.com/haskell-gi/haskell-gi@@ -14,7 +14,7 @@ library default-language: Haskell2010- default-extensions: ScopedTypeVariables, CPP, OverloadedStrings, NegativeLiterals, ConstraintKinds, TypeFamilies, MultiParamTypeClasses, KindSignatures, FlexibleInstances, UndecidableInstances, DataKinds, FlexibleContexts+ default-extensions: NoImplicitPrelude, ScopedTypeVariables, CPP, OverloadedStrings, NegativeLiterals, ConstraintKinds, TypeFamilies, MultiParamTypeClasses, KindSignatures, FlexibleInstances, UndecidableInstances, DataKinds, FlexibleContexts other-extensions: PatternSynonyms ViewPatterns ghc-options: -fno-warn-unused-imports -fno-warn-warnings-deprecations exposed-modules: GI.Cairo.Types@@ -36,7 +36,7 @@ GI.Cairo.Structs.Surface pkgconfig-depends: cairo-gobject >= 1.14 build-depends: base >= 4.7 && <5,- haskell-gi-base >= 0.13 && < 1,+ haskell-gi-base >= 0.14 && < 1, bytestring >= 0.10, containers >= 0.5, text >= 1.0,