cairo 0.13.0.4 → 0.13.0.5
raw patch · 5 files changed
+22/−22 lines, 5 files
Files
- Graphics/Rendering/Cairo.hs +14/−14
- Graphics/Rendering/Cairo/Types.chs +4/−4
- Gtk2HsSetup.hs +1/−1
- SetupMain.hs +1/−1
- cairo.cabal +2/−2
Graphics/Rendering/Cairo.hs view
@@ -49,7 +49,7 @@ -- PostScript and PDF. Operations in cairo including stroking and filling cubic -- Bezier splines, transforming and compositing translucent images, and -- antialiased text rendering. All drawing operations can be transformed by any--- affine transformation (scale, rotation, shear, etc.) +-- affine transformation (scale, rotation, shear, etc.) -- -- Cairo is free software and is available to be redistributed and\/or modified -- under the terms of either the GNU Lesser General Public License (LGPL)@@ -358,7 +358,7 @@ -- default values and with the given surface as a target surface. The target -- surface should be constructed with a backend-specific function such as -- 'withImageSurface' (or any other with\<backend\>Surface variant).--- +-- renderWith :: (MonadIO m) => Surface -- ^ the target surface for the Render context -> Render a@@ -927,8 +927,8 @@ -- position (@x@, @y@) in user-space coordinates. -- rectangle ::- Double -- ^ @x@ - the X coordinate of the top left corner of the rectangle - -> Double -- ^ @y@ - the Y coordinate of the top left corner of the rectangle + Double -- ^ @x@ - the X coordinate of the top left corner of the rectangle+ -> Double -- ^ @y@ - the Y coordinate of the top left corner of the rectangle -> Double -- ^ @width@ - the width of the rectangle -> Double -- ^ @height@ - the height of the rectangle -> Render ()@@ -937,7 +937,7 @@ -- | Render text at the current path. -- -- * See 'showText' for why you should use Gtk functions.--- +-- textPath :: CairoString string => string -- ^ -@@ -1435,7 +1435,7 @@ -- | Allocates a new font options object copying the option values from @original@. -- fontOptionsCopy ::- MonadIO m => + MonadIO m => FontOptions -- ^ @original@ -> m FontOptions fontOptionsCopy a = liftIO $ Internal.fontOptionsCopy a@@ -1445,9 +1445,9 @@ -- @other@ onto @options@ with the operation of 'OperationOver'. -- fontOptionsMerge ::- MonadIO m => + MonadIO m => FontOptions -- ^ @options@- -> FontOptions -- ^ @other@ + -> FontOptions -- ^ @other@ -> m () fontOptionsMerge a b = liftIO $ Internal.fontOptionsMerge a b @@ -1539,7 +1539,7 @@ -- Haskell memory manager rather than only being temporaily allocated. This -- is more flexible and allows you to create surfaces that persist, which -- can be very useful, for example to cache static elements in an animation.--- +-- -- However you should be careful because surfaces can be expensive resources -- and the Haskell memory manager cannot guarantee when it will release them. -- You can manually release the resources used by a surface with@@ -1641,7 +1641,7 @@ -- surface. -- surfaceMarkDirtyRectangle ::- MonadIO m => + MonadIO m => Surface -- ^ a 'Surface' -> Int -- ^ X coordinate of dirty rectangle -> Int -- ^ Y coordinate of dirty rectangle@@ -1662,7 +1662,7 @@ -- surface in a surface pattern. -- surfaceSetDeviceOffset ::- MonadIO m => + MonadIO m => Surface -- ^ a 'Surface' -> Double -- ^ the offset in the X direction, in device units -> Double -- ^ the offset in the Y direction, in device units@@ -1676,7 +1676,7 @@ formatStrideForWidth :: Format -- ^ format of pixels in the surface to create -> Int -- ^ width of the surface, in pixels- -> Int -- ^ the stride (number of bytes necessary to store one line) + -> Int -- ^ the stride (number of bytes necessary to store one line) -- or @-1@ if the format is invalid or the width is too large formatStrideForWidth = Internal.formatStrideForWidth #endif@@ -1842,7 +1842,7 @@ -- -- * The function will return an error if the surface is not an image -- surface or if 'surfaceFinish' has been called on the surface.--- +-- imageSurfaceGetPixels :: Storable e => Surface -> IO (SurfaceData Int e) imageSurfaceGetPixels pb = do pixPtr <- Internal.imageSurfaceGetData pb@@ -1969,7 +1969,7 @@ -> (Surface -> IO a) -- ^ an action that may use the surface. The surface is -- only valid within in this action. -> IO a-withPSSurface filename width height f = +withPSSurface filename width height f = bracket (Internal.psSurfaceCreate filename width height) (\surface -> do status <- Internal.surfaceStatus surface Internal.surfaceDestroy surface
Graphics/Rendering/Cairo/Types.chs view
@@ -262,7 +262,7 @@ -- with red at the top -- -- ['SubpixelOrderVbgr'] Subpixel elements are arranged vertically--- with blue at the top +-- with blue at the top -- {#enum subpixel_order_t as SubpixelOrder {underscoreToCase} deriving(Eq,Show)#} @@ -320,11 +320,11 @@ fontOptionsDestroy :: FinalizerPtr FontOptions -- XXX: pathToList :: Path -> [PathData]--- +-- -- http://cairographics.org/manual/bindings-path.html--- +-- -- {#enum path_data_type_t as PathDataType {underscoreToCase}#}--- +-- -- type Point = (Double, Double) -- data PathData = PathMoveTo Point -- | PathLineTo Point
Gtk2HsSetup.hs view
@@ -129,7 +129,7 @@ Just ('.':_) -> True Just ('-':n:_) | isNumber n -> True _ -> False- + -- The following code is a big copy-and-paste job from the sources of -- Cabal 1.8 just to be able to fix a field in the package file. Yuck.
SetupMain.hs view
@@ -10,4 +10,4 @@ main = do checkGtk2hsBuildtools [c2hsLocal] defaultMainWithHooks gtk2hsUserHooks- +
cairo.cabal view
@@ -1,5 +1,5 @@ Name: cairo-Version: 0.13.0.4+Version: 0.13.0.5 License: BSD3 License-file: COPYRIGHT Copyright: (c) 2001-2010 The Gtk2Hs Team, (c) Paolo Martini 2005, (c) Abraham Egnor 2003, 2004, (c) Aetion Technologies LLC 2004@@ -49,7 +49,7 @@ utf8-string >= 0.2 && < 0.4, text >= 1.0.0.0 && < 1.3, bytestring, mtl, array- build-tools: gtk2hsC2hs >= 0.13.11+ build-tools: gtk2hsC2hs >= 0.13.12 exposed-modules: Graphics.Rendering.Cairo Graphics.Rendering.Cairo.Matrix Graphics.Rendering.Cairo.Types