91*      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()portable experimentalp.martini@neuralnoise.com Safe-Infered/Representation of a 2-D affine transformation. DThe Matrix type represents a 2x2 transformation matrix along with a  translation vector. Matrix a1 a2 b1 b2 c1 c2 describes the D transformation of a point with coordinates x,y that is defined by  ) / x' \ = / a1 b1 \ / x \ + / c1 \ ) \ y' / \ a2 b2 / \ y / \ c2 / or  x' = a1 * x + b1 * y + c1  y' = a2 * x + b2 * y + c2  *+    *+portable experimentalp.martini@neuralnoise.com Safe-Infered Specify how filtering is done. &FIXME: We should find out about this. "A Cairo path. G A path is a sequence of drawing operations that are accumulated until  ) is called. Using a path is particularly : useful when drawing lines with special join styles and  . #Specifies how to render text. $(Specifies whether to hint font metrics. KHinting font metrics means quantizing them so that they are integer values I in device space. Doing this improves the consistency of letter and line J spacing, however it also means that text will be laid out differently at  different zoom factors. '2 Hint metrics in the default manner for the font 3 backend and target device & Do not hint font metrics % Hint font metrics (6Specifies the type of hinting to do on font outlines. IHinting is the process of fitting outlines to the pixel grid in order to G improve the appearance of the result. Since hinting outlines involves K distorting them, it also reduces the faithfulness to the original outline I shapes. Not all of the outline hinting styles are supported by all font  backends. -6 Use the default hint style for for font backend and % target device , Do not hint outlines +4 Hint outlines slightly to improve contrast while G retaining good fidelity to the original shapes. *: Hint outlines with medium strength giving a compromise L between fidelity to the original shapes and contrast )( Hint outlines to maximize contrast .KThe subpixel order specifies the order of color elements within each pixel C on the display device when rendering with an antialiasing mode of  Y. 3, Use the default subpixel order for for the ( target device 21 Subpixel elements are arranged horizontally / with red at the left 11 Subpixel elements are arranged horizontally 0 with blue at the left 0. Subpixel elements are arranged vertically . with red at the top /. Subpixel elements are arranged vertically 0 with blue at the top 4Specify font weight. 7Specify font slant. ;%Result of querying the font extents. BSpecify the extents of a text. MSpecify how lines join. QSpecify line endings. T7 Start(stop) the line exactly at the start(end) point. S5 Use a round ending, the center of the circle is the  end point. R5 Use squared ending, the center of the square is the  end point XGSpecifies the type of antialiasing to do when rendering text or shapes \1 Use the default antialiasing for the subsystem  and target device. [ Use a bilevel alpha mask. Z5 Perform single-color antialiasing (using shades of : gray for black text on a white background, for example). Y. Perform antialiasing by taking advantage of ? the order of subpixel elements on devices such as LCD panels. ]1Composition operator for all drawing operations. {Cairo status.  {6 is used to indicate errors that can occur when using I Cairo. In some cases it is returned directly by functions. When using  $, the last error, if any, is stored * in the monad and can be retrieved with . CPatterns can be simple solid colors, various kinds of gradients or $ bitmaps. The current pattern for a Render context is used by the stroke,  fillF and paint operations. These operations composite the current pattern 6 with the target surface using the currently selected ]. The medium to draw on. ,Specify how paths are filled. H For both fill rules, whether or not a point is included in the fill is I determined by taking a ray from that point to infinity and looking at I intersections with the path. The ray can be in any direction, as long  as it doesn';t pass through the end point of a segment or have a tricky E intersection such as intersecting tangent to the path. (Note that C filling is not actually implemented in this way. This is just a - description of the rule that is applied.) W2 If the path crosses the ray from left-to-right, I counts +1. If the path crosses the ray from right to left, counts -1. H (Left and right are determined from the perspective of looking along I the ray from the starting point.) If the total count is non-zero, the  point will be filled. V, Counts the total number of intersections, I without regard to the orientation of the contour. If the total number 6 of intersections is odd, the point will be filled.  !"-#.$%&'()*+,-./0123456789:;<=>?@A/BCDEFGHI0JK1L2MNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~3456789:;<=>?@ABCDEFGHIJKL,  !"-#.$%&'()*+,-./0123456789:;<=>?@A/BCDEFGHI0JK1L2MNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~3456789:;<=>?@ABCDEFGHI2 ! "-#.$'&%(-,+*).3210/4657:98;<=>?@A/BCDEFGHI0JK1L2MPONQTSRUWVX\[ZY]zyxwvutsrqponmlkjihgfedcba`_^{%~}|3456789:;<=>?@ABCDEFGHIJKL,portable experimentalp.martini@neuralnoise.com Safe-InfereddMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~dMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~dMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ portable experimentalp.martini@neuralnoise.com Safe-Infered    portable experimentalp.martini@neuralnoise.com Safe-Infered portable experimentalp.martini@neuralnoise.com Safe-Infered portable experimentalp.martini@neuralnoise.com Safe-Infered                portable experimentalp.martini@neuralnoise.com Safe-Inferedportable experimentalp.martini@neuralnoise.com Safe-Inferedportable experimentalp.martini@neuralnoise.com Safe-Inferedportable experimentalp.martini@neuralnoise.com Safe-Inferedportable experimentalp.martini@neuralnoise.com Safe-Infered !"#$%&'()*+,-./012345 !"#$%&'()*+,-./012345 !"#$%&'()*+,-./012345portable experimentalp.martini@neuralnoise.com Safe-Infered6789:;<6789:;<6789:;<portable experimentalp.martini@neuralnoise.com Safe-Infered=>?@ABCDEFGHIJKLMNOPQRSTUV=>?@ABCDEFGHIJKLMNOPQRSTUV=>?@ABCDEFGHIJKLMNOPQRSTUVportable experimentalp.martini@neuralnoise.com Safe-InferedWXYZ[\]^_`abcdefWXYZ[\]^_`abcdefWXYZ[\]^_`abcdefportable experimentalp.martini@neuralnoise.comNoneIThe Render monad. All drawing operations take place in a Render context. ' You can obtain a Render context for a  using  renderWith. ghi  !"-#.$%&'()*+,-./0123456789:;<=>?@A/BCDEFGHI0JK1L2MNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~3456789:;<=>?@ABCDEFGHIMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghighiportable experimentalp.martini@neuralnoise.com Safe-Infered{4An array that stores the raw pixel data of an image . GCreates a new Render context with all graphics state parameters set to K default values and with the given surface as a target surface. The target H surface should be constructed with a backend-specific function such as   (or any other with<backend>Surface variant). GMakes a copy of the current state and saves it on an internal stack of  saved states. When ) is called, the saved state is restored.  Multiple calls to  and  can be nested; each call to  - restores the state from the matching paired . 3Restores to the state saved by a preceding call to  and removes that ' state from the stack of saved states. "Ask for the status of the current  monad. <Gets the target surface for the Render context as passed to . Like &pushGroupWithContent ContentColorAlpha, but more convenient. KTemporarily redirects drawing to an intermediate surface known as a group. A The redirection lasts until the group is completed by a call to   or $. These calls provide the result of M any drawing to the group as a pattern (either as an explicit object, or set I as the source pattern). This group functionality can be convenient for M performing intermediate compositing. One common use of a group is to render K objects as opaque within the group (so that they occlude each other), and ? then blend the result with translucence onto the destination. DGroups can be nested arbitrarily deeply by making balanced calls to   and . As a side effect,   calls  and  calls , K so that any changes to the graphics state will not be visible outside the  group. AAs an example, here is how one might fill and stroke a path with K translucence, but without any portion of the fill being visible under the  stroke:  pushGroup  setSource fillPattern  fillPreserve  setSource strokePattern  stroke  popGroupToSource  paintWithAlpha alpha Like withGroupPattern setSource, but more convenient. KSets the source pattern within the context to an opaque color. This opaque Q color will then be used for any subsequent drawing operation until a new source  pattern is set. LThe color components are floating point numbers in the range 0 to 1. If the @ values passed in are outside that range, they will be clamped. HSets the source pattern within the context to a translucent color. This J color will then be used for any subsequent drawing operation until a new  source pattern is set. LThe color and alpha components are floating point numbers in the range 0 to J 1. If the values passed in are outside that range, they will be clamped. HSets the source pattern within the context to source. This pattern will N then be used for any subsequent drawing operation until a new source pattern  is set. Note: The pattern'9s transformation matrix will be locked to the user space  in effect at the time of . This means that further O modifications of the current transformation matrix will not affect the source  pattern. See . GThis is a convenience function for creating a pattern from surface and . setting it as the source in the context with . KThe x and y parameters give the user-space coordinate at which the surface O origin should appear. (The surface origin is its upper-left corner before any M transformation has been applied.) The x and y patterns are negated and then 2 set as translation values in the pattern matrix. KOther than the initial translation pattern matrix, as described above, all M other pattern attributes, (such as its extend mode), are set to the default  values as in patternCreateForSurface'. The resulting pattern can be queried  with > so that these attributes can be modified if desired, (eg. to ! create a repeating pattern with patternSetExtent. !Gets the current source pattern. JSet the antialiasing mode of the rasterizer used for drawing shapes. This O value is a hint, and a particular backend may or may not support a particular 1 value. At the current time, no backend supports Y when  drawing shapes. BNote that this option does not affect text rendering, instead see  fontOptionsSetAntilias. $Sets the dash pattern to be used by . A dash pattern is specified J by dashes, a list of positive values. Each value provides the user-space  length of altenate on and off$ portions of the stroke. The offset B specifies an offset into the pattern at which the stroke begins. If dashes is [] then dashing is disabled. JSet the current fill rule within the cairo context. The fill rule is used I to determine which regions are inside or outside a complex (potentially = self-intersecting) path. The current fill rule affects both  and  . See U5 for details on the semantics of each available fill  rule. &Gets the current fill rule, as set by  setFillrule. >Sets the current line cap style within the cairo context. See Q @ for details about how the available line cap styles are drawn. LAs with the other stroke parameters, the current line cap style is examined  by , , and  strokeToPath, but does not have any " effect during path construction. +Gets the current line cap style, as set by . ?Sets the current line join style within the cairo context. See M A for details about how the available line join styles are drawn. MAs with the other stroke parameters, the current line join style is examined  by , , and  strokeToPath, but does not have any " effect during path construction. ,Gets the current line join style, as set by . ESets the current line width within the cairo context. The line width A specifies the diameter of a pen that is circular in user-space. LAs with the other stroke parameters, the current line cap style is examined  by , , and  strokeToPath, but does not have any " effect during path construction. 'Gets the current line width, as set by . (Gets the current miter limit, as set by . ESets the compositing operator to be used for all drawing operations.  See ]< for details on the semantics of each available compositing  operator. ;Gets the current compositing operator for a cairo context. FSets the tolerance used when converting paths into trapezoids. Curved M segments of the path will be subdivided until the maximum deviation between K the original path and the polygonal approximation is less than tolerance. H The default value is 0.1. A larger value will give better performance, J a smaller value, better appearance. (Reducing the value from the default @ value of 0.1 is unlikely to improve appearance significantly.) ,Gets the current tolerance value, as set by . KEstablishes a new clip region by intersecting the current clip region with + the current path as it would be filled by  and according to the current  fill rule (see ). After ;, the current path will be cleared from the cairo context. NThe current clip region affects all drawing operations by effectively masking J out any changes to the surface that are outside the current clip region. Calling > can only make the clip region smaller, never larger. But the O current clip is part of the graphics state, so a temporary restriction of the ( clip region can be achieved by calling  within a 'save'/'restore' pair. C The only other means of increasing the size of the clip region is . KEstablishes a new clip region by intersecting the current clip region with + the current path as it would be filled by  and according to the current  fill rule (see ). Unlike A, cairoClipPreserve preserves the path within the cairo context. NThe current clip region affects all drawing operations by effectively masking J out any changes to the surface that are outside the current clip region. Calling > can only make the clip region smaller, never larger. But the O current clip is part of the graphics state, so a temporary restriction of the ( clip region can be achieved by calling  within a 'save'/'restore' pair. C The only other means of increasing the size of the clip region is . LReset the current clip region to its original, unrestricted state. That is, H set the clip region to an infinitely large shape containing the target N surface. Equivalently, if infinity is too hard to grasp, one can imagine the D clip region being reset to the exact bounds of the target surface. 4Note that code meant to be reusable should not call  as it will ; cause results unexpected by higher-level code which calls  . Consider  using  and  around  as a more robust means of * temporarily restricting the clip region. HA drawing operator that fills the current path according to the current F fill rule, (each sub-path is implicitly closed before being filled).  After ;, the current path will be cleared from the cairo context. See  and . HA drawing operator that fills the current path according to the current F fill rule, (each sub-path is implicitly closed before being filled).  Unlike , . preserves the path within the cairo context. See  and . JA drawing operator that paints the current source using the alpha channel J of pattern as a mask. (Opaque areas of mask are painted with the source, % transparent areas are not painted.) JA drawing operator that paints the current source using the alpha channel M of surface as a mask. (Opaque areas of surface are painted with the source, % transparent areas are not painted.) HA drawing operator that paints the current source everywhere within the  current clip region. HA drawing operator that paints the current source everywhere within the L current clip region using a mask of constant alpha value alpha. The effect  is similar to 6, but the drawing is faded out using the alpha value. JA drawing operator that strokes the current path according to the current C line width, line join, line cap, and dash settings. After issuing , + the current path will be cleared from the  monad. See , , , , and . JA drawing operator that strokes the current path according to the current < line width, line join, line cap, and dash settings. Unlike ,   preserves the path within the  monad. See , , , , and . LGets the current point of the current path, which is conceptually the final # point reached by the path so far. LThe current point is returned in the user-space coordinate system. If there C is no defined current point then x and y will both be set to 0.0. LMost path construction functions alter the current point. See the following 3 for details on how they affect the current point: , ,  , , , , , ,  , ,  strokeToPath. IClears the current path. After this call there will be no current point. KAdds a line segment to the path from the current point to the beginning of 7 the current subpath, (the most recent point passed to ), and closes  this subpath. The behavior of ! is distinct from simply calling  with the I equivalent coordinate in the case of stroking. When a closed subpath is L stroked, there are no caps on the ends of the subpath. Instead, their is a E line join connecting the final and initial segments of the subpath. HAdds a circular arc of the given radius to the current path. The arc is  centered at (xc, yc ), begins at angle1" and proceeds in the direction of  increasing angles to end at angle2. If angle2 is less than angle1 it $ will be progressively increased by 2*pi until it is greater than angle1. JIf there is a current point, an initial line segment will be added to the @ path to connect the current point to the beginning of the arc. IAngles are measured in radians. An angle of 0 is in the direction of the . positive X axis (in user-space). An angle of pi/2 radians (90 degrees) is in N the direction of the positive Y axis (in user-space). Angles increase in the L direction from the positive X axis toward the positive Y axis. So with the J default transformation matrix, angles increase in a clockwise direction. )(To convert from degrees to radians, use degrees * (pi / 180).) GThis function gives the arc in the direction of increasing angles; see  7 to get the arc in the direction of decreasing angles. IThe arc is circular in user-space. To achieve an elliptical arc, you can M scale the current transformation matrix by different amounts in the X and Y N directions. For example, to draw an ellipse in the box given by x, y, width,  height:  save , translate (x + width / 2) (y + height / 2) - scale (1 / (height / 2.)) (1 / (width / 2))  arc 0 0 1 0 (2 * pi)  restore HAdds a circular arc of the given radius to the current path. The arc is  centered at (xc, yc ), begins at angle1" and proceeds in the direction of  decreasing angles to end at angle2. If angle2 is greater than angle1 it & will be progressively decreased by 2*pi until it is greater than angle1. See B for more details. This function differs only in the direction of ! the arc between the two angles. JAdds a cubic Bezier spline to the path from the current point to position  (x3, y3$) in user-space coordinates, using (x1, y1) and (x2, y2) C as the control points. After this call the current point will be (x3, y3). <Adds a line to the path from the current point to position (x, y) in D user-space coordinates. After this call the current point will be (x, y). JIf the current subpath is not empty, begin a new subpath. After this call  the current point will be (x, y). IAdds a closed-subpath rectangle of the given size to the current path at  position (x, y) in user-space coordinates. !Render text at the current path.  See ' for why you should use Gtk functions. Relative-coordinate version of ". All offsets are relative to the N current point. Adds a cubic Bezier spline to the path from the current point . to a point offset from the current point by (dx3, dy3), using points  offset by (dx1, dy1) and (dx2, dy2$) as the control points. After this + call the current point will be offset by (dx3, dy3). ,Given a current point of (x, y), relCurveTo dx1 dy1 dx2 dy2 dx3 dy3 ) is logically equivalent to curveTo (x + dx1) (y + dy1) (x + dx2) (y + dy2) (x + dx3) (y + dy3). Relative-coordinate version of #. Adds a line to the path from the D current point to a point that is offset from the current point by (dx, dy) E in user space. After this call the current point will be offset by (dx, dy). +Given a current point of (x, y), relLineTo dx dy is logically equivalent  to lineTo (x + dx) (y + dy). JIf the current subpath is not empty, begin a new subpath. After this call * the current point will offset by (x, y). +Given a current point of (x, y), relMoveTo dx dy is logically equivalent  to moveTo (x + dx) (y + dy) Creates a new - corresponding to an opaque color. The color J components are floating point numbers in the range 0 to 1. If the values 9 passed in are outside that range, they will be clamped. +For example to create a solid red pattern:  withRBGPattern 1 0 0 $ do  ...  ... Creates a new 1 corresponding to a translucent color. The color J components are floating point numbers in the range 0 to 1. If the values 9 passed in are outside that range, they will be clamped. ?For example to create a solid red pattern at 50% transparency:  withRBGPattern 1 0 0 0.5 $ do  ...  ...  Create a new  for the given surface. HPop the current group from the group stack and use it as a pattern. The , group should be populated first by calling  or  4 and doing some drawing operations. This also calls   to balance the  called in . Create a new linear gradient  along the line defined by (x0, y0)  and (x1, y1)=. Before using the gradient pattern, a number of color stops  should be defined using  and . E Note: The coordinates here are in pattern space. For a new pattern, L pattern space is identical to user space, but the relationship between the  spaces can be changed with . Creates a new radial gradient $ between the two circles defined by   (x0, y0, c0) and  (x1, y1, c0)'. Before using the gradient pattern, a / number of color stops should be defined using   or . E Note: The coordinates here are in pattern space. For a new pattern, L pattern space is identical to user space, but the relationship between the  spaces can be changed with . JAdds an opaque color stop to a gradient pattern. The offset specifies the  location along the gradient'0s control vector. For example, a linear gradient's B control vector is from (x0,y0) to (x1,y1) while a radial gradient' s control L vector is from any point on the start circle to the corresponding point on  the end circle. -The color is specified in the same way as in . HNote: If the pattern is not a gradient pattern, (eg. a linear or radial N pattern), then the pattern will be put into an error status with a status of  . JAdds a translucent color stop to a gradient pattern. The offset specifies  the location along the gradient'(s control vector. For example, a linear  gradient'Cs control vector is from (x0,y0) to (x1,y1) while a radial gradient's K control vector is from any point on the start circle to the corresponding  point on the end circle. <The color is specified in the same way as in setSourceRGBA. HNote: If the pattern is not a gradient pattern, (eg. a linear or radial N pattern), then the pattern will be put into an error status with a status of  . Sets the pattern'4s transformation matrix to matrix. This matrix is a 2 transformation from user space to pattern space. JWhen a pattern is first created it always has the identity matrix for its N transformation matrix, which means that pattern space is initially identical  to user space. KImportant: Please note that the direction of this transformation matrix is K from user space to pattern space. This means that if you imagine the flow L from a pattern to user space (and on to device space), then coordinates in E that flow will be transformed by the inverse of the pattern matrix. HAlso, please note the discussion of the user-space locking semantics of . Get the pattern's transformation matrix. DModifies the current transformation matrix (CTM) by translating the  user-space origin by (tx, ty)-. This offset is interpreted as a user-space A coordinate according to the CTM in place before the new call to . L In other words, the translation of the user-space origin takes place after  any existing transformation. HModifies the current transformation matrix (CTM) by scaling the X and Y J user-space axes by sx and sy respectively. The scaling of the axes takes 8 place after any existing transformation of user space. LModifies the current transformation matrix (CTM) by rotating the user-space  axes by angle: radians. The rotation of the axes takes places after any L existing transformation of user space. The rotation direction for positive @ angles is from the positive X axis toward the positive Y axis. JModifies the current transformation matrix (CTM) by applying matrix as an M additional transformation. The new transformation of user space takes place $ after any existing transformation. HModifies the current transformation matrix (CTM) by setting it equal to  matrix. 2Gets the current transformation matrix, as set by . JResets the current transformation matrix (CTM) by setting it equal to the H identity matrix. That is, the user-space and device-space axes will be J aligned and one user-space unit will transform to one device-space unit. JTransform a coordinate from user space to device space by multiplying the 9 given point by the current transformation matrix (CTM). KTransform a distance vector from user space to device space. This function  is similar to / except that the translation components of the ' CTM will be ignored when transforming (dx,dy). JTransform a coordinate from device space to user space by multiplying the H given point by the inverse of the current transformation matrix (CTM). KTransform a distance vector from device space to user space. This function  is similar to / except that the translation components of the / inverse CTM will be ignored when transforming (dx,dy). FSelects a family and style of font from a simplified description as a  family name, slant and weight). This function is meant to be used only 5 for applications with simple font needs: Cairo doesn't provide for operations L such as listing all available fonts on the system, and it is expected that K most applications will need to use a more comprehensive font handling and + text layout library in addition to cairo. 7Sets the current font matrix to a scale by a factor of size , replacing % any font matrix previously set with  or . This O results in a font size of size user space units. (More precisely, this matrix  will result in the font'8s em-square being a size by size square in user space.)  Sets the current font matrix to matrix. The font matrix gives a F transformation from the design space of the font (in this space, the K em-square is 1 unit by 1 unit) to user space. Normally, a simple scale is  used (see 7), but a more complex font matrix can be used to shear 6 the font or stretch it unequally along the two axes. (Gets the current font matrix, as set by  CSets a set of custom font rendering options. Rendering options are K derived by merging these options with the options derived from underlying  surface; if the value in options has a default value (like  \,), then the value from the surface is used. EA drawing operator that generates the shape from a string of Unicode J characters, rendered according to the current font face, font size (font  matrix), and font options. IThis function first computes a set of glyphs for the string of text. The N first glyph is placed so that its origin is at the current point. The origin K of each subsequent glyph is offset from that of the previous glyph by the ' advance values of the previous glyph. KAfter this call the current point is moved to the origin of where the next L glyph would be placed in this same progression. That is, the current point M will be at the origin of the final glyph offset by its advance values. This K allows for easy display of a single logical string with multiple calls to  .  NOTE: The 8 function call is part of what the cairo designers call  the "toy"A text API. It is convenient for short demos and simple programs, J but it is not expected to be adequate for the most serious of text-using  applications. 7Gets the font extents for the currently selected font. IGets the extents for a string of text. The extents describe a user-space  rectangle that encloses the "inked"& portion of the text, (as it would be  drawn by ). Additionally, the H and  I7 values indicate the amount by which the current point  would be advanced by . JNote that whitespace characters do not directly contribute to the size of  the rectangle (F and G). They do contribute C indirectly by changing the position of non-whitespace characters. L In particular, trailing whitespace characters are likely to not affect the 4 size of the rectangle, though they will affect the H and  I values. LAllocates a new font options object with all options initialized to default  values. CAllocates a new font options object copying the option values from original.  Merges non-default options from other into options, replacing existing M values. This operation can be thought of as somewhat similar to compositing  other onto options with the operation of  OperationOver. KCompute a hash for the font options object; this value will be useful when  storing an object containing a # in a hash table. 0Compares two font options objects for equality. JSets the antiliasing mode for the font options object. This specifies the 1 type of antialiasing to do when rendering text. 7Gets the antialising mode for the font options object.  HSets the subpixel order for the font options object. The subpixel order O specifies the order of color elements within each pixel on the display device - when rendering with an antialiasing mode of Y.  See the documentation for . for full details.  5Gets the subpixel order for the font options object.  See the documentation for . for full details.  CSets the hint style for font outlines for the font options object. J This controls whether to fit font outlines to the pixel grid, and if so, I whether to optimize for fidelity or contrast. See the documentation for  ( for full details.  CGets the hint style for font outlines for the font options object.  See the documentation for ( for full details.  ISets the metrics hinting mode for the font options object. This controls J whether metrics are quantized to integer values in device units. See the  documentation for $ for full details. CGets the metrics hinting mode for the font options object. See the  documentation for $ for full details. ECreate a temporary surface that is as compatible as possible with an M existing surface. The new surface will use the same backend as other unless ' that is not possible for some reason. Like . but creates a Surface that is managed by the J Haskell memory manager rather than only being temporaily allocated. This H is more flexible and allows you to create surfaces that persist, which K can be very useful, for example to cache static elements in an animation. JHowever you should be careful because surfaces can be expensive resources L and the Haskell memory manager cannot guarantee when it will release them. ? You can manually release the resources used by a surface with  . FCreate a temporary surface that is compatible with the current target  surface (like a combination of  and ). JThis is useful for drawing to a temporary surface and then compositing it L into the main suface. For example, the following code draws to a temporary ' surface and then uses that as a mask: C renderWithSimilarSurface ContentAlpha 200 200 $ \tmpSurface -> do  renderWith tmpSurface $ do , ... -- draw onto the temporary surface  ? -- use the temporary surface as a mask, filling it with the ? -- current source which in this example is transparent red.  setSourceRGBA 1 0 0 0.5 F setOperator Operator{something} -- think of something clever to do  maskSurface tmpSurface 0 0) HThis function finishes the surface and drops all references to external J resources. For example, for the Xlib backend it means that cairo will no ? longer access the drawable, which can be freed. After calling  N the only valid operations on a surface are getting and setting user data and O referencing and destroying it. Further drawing to the surface will not affect ( the surface but will instead trigger a  error. When the last call to surfaceDestroy( decreases the reference count to zero,  cairo will call  if it hasn't been called already, before 4 freeing the resources associated with the surface. FDo any pending drawing for the surface and also restore any temporary  modification's cairo has made to the surface's state. This function must be N called before switching from drawing on the surface with cairo to drawing on 3 it directly with native APIs. If the surface doesn't support direct access, " then this function does nothing. JRetrieves the default font rendering options for the surface. This allows N display surfaces to report the correct subpixel order for rendering on them, K print surfaces to disable hinting of metrics and so forth. The result can  then be used with scaledFontCreate. ITells cairo that drawing has been done to surface using means other than O cairo, and that cairo should reread any cached areas. Note that you must call   before doing such drawing. Like 2, but drawing has been done only to the specified L rectangle, so that cairo can retain cached contents for other parts of the  surface. ISets an offset that is added to the device coordinates determined by the M CTM when drawing to surface. One use case for this function is when we want  to create a , that redirects drawing for a portion of an F onscreen surface to an offscreen surface in a way that is completely F invisible to the user of the cairo API. Setting a transformation via   isn'.t sufficient to do this, since functions like   will expose the hidden offset. HNote that the offset only affects drawing to the surface, not using the  surface in a surface pattern. FThis function provides a stride value that will respect all alignment F requirements of the accelerated image-rendering code within cairo. ACreates an image surface of the specified format and dimensions. H The initial contents of the surface is undefined; you must explicitely ' clear the buffer, using, for example,  and  if you want it  cleared. Like . but creates a Surface that is managed by the J Haskell memory manager rather than only being temporaily allocated. This H is more flexible and allows you to create surfaces that persist, which K can be very useful, for example to cache static elements in an animation. JHowever you should be careful because surfaces can be expensive resources L and the Haskell memory manager cannot guarantee when it will release them. ? You can manually release the resources used by a surface with  . .Get the width of the image surface in pixels. /Get the height of the image surface in pixels. FGet the number of bytes from the start of one row to the start of the F next. If the image data contains no padding, then this is equal to  the pixel depth * the width. Get the format of the surface. HReturn a ByteString of the image data for a surface. In order to remain H safe the returned ByteString is a copy of the data. This is a little M slower than returning a pointer into the image surface object itself, but  much safer  /Retrieve the internal array of raw image data. E Image data in an image surface is stored in memory in uncompressed, J packed format. Rows in the image are stored top to bottom, and in each M row pixels are stored from left to right. There may be padding at the end # of a row. The value returned by  indicates the ! number of bytes between rows. K The returned array is a flat representation of a three dimensional array: G x-coordiante, y-coordinate and several channels for each color. The  format depends on the  of the surface: 8: each pixel is 32 bits with alpha in the upper 8 bits, N followed by 8 bits for red, green and blue. Pre-multiplied alpha is used. B (That is, 50% transparent red is 0x80800000, not 0x80ff0000.) <: each pixel is 32 bits with the upper 8 bits being unused, 0 followed by 8 bits for red, green and blue. .: each pixel is 8 bits holding an alpha value <: each pixel is one bit where pixels are packed into 32 bit J quantities. The ordering depends on the endianes of the platform. On a E big-endian machine, the first pixel is in the uppermost bit, on a J little-endian machine the first pixel is in the least-significant bit. 4 To read or write a specific pixel use the formula:  p = y * (rowstride j 4) + x& for the pixel and force the array to " have 32-bit words or integers. K Calling this function without explicitly giving it a type will often lead 0 to a compiler error since the type parameter e is underspecified. If 6 this happens the function can be explicitly typed:  surData <;- (imageSurfaceGetPixels pb :: IO (SurfaceData Int Word32)) & If modifying an image through Haskell's array interface is not fast ! enough, it is possible to use k and l which have  the same type signatures as  readArray and  writeArray. Note that these 6 are internal functions that might change with GHC. E After each write access to the array, you need to inform Cairo that ) about the area that has changed using . B The function will return an error if the surface is not an image  surface of if ! has been called on the surface. !@Creates a PostScript surface of the specified size in points to  be written to filename. DNote that the size of individual pages of the PostScript output can  vary. See &. "7Changes the size of a PDF surface for the current (and  subsequent) pages. BThis function should only be called before any drawing operations A have been performed on the current page. The simplest way to do > this is to call this function immediately after creating the < surface or immediately after completing a page with either   or . #JCreates a new image surface and initializes the contents to the given PNG  file. $-Writes the contents of surface to a new file filename as a PNG image. %@Creates a PostScript surface of the specified size in points to  be written to filename. DNote that the size of individual pages of the PostScript output can  vary. See &. &>Changes the size of a PostScript surface for the current (and  subsequent) pages. BThis function should only be called before any drawing operations A have been performed on the current page. The simplest way to do > this is to call this function immediately after creating the < surface or immediately after completing a page with either   or . '6Creates a SVG surface of the specified size in points  be written to filename. (FReturns the version of the cairo library encoded in a single integer. )KReturns the version of the cairo library as a human-readable string of the  form "X.Y.Z". m is a mutable array. *the target surface for the Render context red component of colour green component of colour blue compoment of colour red component of color green component of color blue component of color alpha component of color a 1 to be used as the source for subsequent drawing  operations. /a surface to be used to set the source pattern +user-space X coordinate for surface origin +user-space Y coordinate for surface origin the new antialiasing mode dashes3 a list specifying alternate lengths of on and off  portions of the stroke ;an offset into the dash pattern at which the stroke should  start  a fill rule a line cap style a line joint style  a line width  a compositing operator 2the tolerance, in device units (typically pixels) a  a  5X coordinate at which to place the origin of surface 5Y coordinate at which to place the origin of surface 4alpha value, between 0 (transparent) and 1 (opaque) xc' - X position of the center of the arc yc' - Y position of the center of the arc radius - the radius of the arc angle1 - the start angle, in radians angle2 - the end angle, in radians xc' - X position of the center of the arc yc' - Y position of the center of the arc radius - the radius of the arc angle1 - the start angle, in radians angle2 - the end angle, in radians x1/ - the X coordinate of the first control point y1/ - the Y coordinate of the first control point x20 - the X coordinate of the second control point y20 - the Y coordinate of the second control point x3, - the X coordinate of the end of the curve y3, - the Y coordinate of the end of the curve x/ - the X coordinate of the end of the new line y/ - the Y coordinate of the end of the new line x( - the X coordinate of the new position y( - the Y coordinate of the new position x= - the X coordinate of the top left corner of the rectangle y= - the Y coordinate of the top left corner of the rectangle width - the width of the rectangle height - the height of the rectangle  dx1+ - the X offset to the first control point dy1+ - the Y offset to the first control point dx2, - the X offset to the second control point dy2, - the Y offset to the second control point dx3( - the X offset to the end of the curve dy3( - the Y offset to the end of the curve dx+ - the X offset to the end of the new line dy+ - the Y offset to the end of the new line dx - the X offset dy - the Y offset red component of the color green component of the color blue component of the color )a nested render action using the pattern red component of color green component of color blue component of color alpha component of color )a nested render action using the pattern )a nested render action using the pattern )a nested render action using the pattern x0# - x coordinate of the start point y0# - y coordinate of the start point x1! - x coordinate of the end point y1! - y coordinate of the end point )a nested render action using the pattern cx03 - x coordinate for the center of the start circle cy03 - y coordinate for the center of the start circle radius0 - radius of the start cirle cx11 - x coordinate for the center of the end circle cy11 - y coordinate for the center of the end circle radius1 - radius of the end circle )a nested render action using the pattern a  "an offset in the range [0.0 .. 1.0] red component of color green component of color blue component of color a  "an offset in the range [0.0 .. 1.0] red component of color green component of color blue component of color alpha component of color a  a  a  a  an Extent a  a  a   a  tx* - amount to translate in the X direction ty* - amount to translate in the Y direction sx$ - scale factor for the X dimension sy$ - scale factor for the Y dimension angle8 - angle (in radians) by which the user-space axes will  be rotated matrix9 - a transformation to be applied to the user-space axes matrix; - a transformation matrix from user space to device space X value of coordinate Y value of coordinate dx$ - X component of a distance vector dy$ - Y component of a distance vector X value of coordinate Y value of coordinate dx$ - X component of a distance vector dy$ - Y component of a distance vector family - a font family name slant - the slant for the font weight - the weight of the font size* - the new font size, in user space units matrix - a ) describing a transform to be applied to  the current font. a string of text a string of text  original options other     Ban existing surface used to select the backend of the new surface Hthe content type for the new surface (color, color+alpha or alpha only) 2width of the new surface, (in device-space units) 2height of the new surface (in device-space units) Ban existing surface used to select the backend of the new surface Hthe content type for the new surface (color, color+alpha or alpha only)  width of the surface, in pixels !height of the surface, in pixels %the content type for the new surface % (color, colour+alpha or alpha only) 2width of the new surface, (in device-space units) 3height of the new surface, (in device-space units) 'this action draws on the main surface, . possibly making use of the temporary surface $ (which gets destroyed afterwards). a   X coordinate of dirty rectangle  Y coordinate of dirty rectangle width of dirty rectangle height of dirty rectangle a  /the offset in the X direction, in device units /the offset in the Y direction, in device units *format of pixels in the surface to create  width of the surface, in pixels :the stride (number of bytes necessary to store one line)  or -14 if the format is invalid or the width is too large *format of pixels in the surface to create  width of the surface, in pixels !height of the surface, in pixels 3an action that may use the surface. The surface is # only valid within in this action. *format of pixels in the surface to create  width of the surface, in pixels !height of the surface, in pixels  !filename3 - a filename for the PS output (must be writable) -width of the surface, in points (1 point == 1/ 72.0 inch) .height of the surface, in points (1 point == 1/ 72.0 inch) 3an action that may use the surface. The surface is # only valid within in this action. "#$a  filename" - the name of a file to write to %filename3 - a filename for the PS output (must be writable) -width of the surface, in points (1 point == 1/ 72.0 inch) .height of the surface, in points (1 point == 1/ 72.0 inch) 3an action that may use the surface. The surface is # only valid within in this action. &'filename4 - a filename for the SVG output (must be writable) -width of the surface, in points (1 point == 1/ 72.0 inch) .height of the surface, in points (1 point == 1/ 72.0 inch) 3an action that may use the surface. The surface is # only valid within in this action. ()m  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()      #$!"%&'(){~}|]zyxwvutsrqponmlkjihgfedcba`_^X\[ZYUWVQTSRMPONLKJBCDEFGHI;<=>?@A7:98465.3210/(-,+*)$'&%#"!        !"#$%&'()mn !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRRSTUVWXXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:9:;<`a==>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                                                                     ) * + , - &    024 !"#$%67      cairo-0.12.3Graphics.Rendering.CairoGraphics.Rendering.Cairo.MatrixGraphics.Rendering.Cairo.Typesstroke closePathRenderstatus/Graphics.Rendering.Cairo.Internal.Drawing.Cairo2Graphics.Rendering.Cairo.Internal.Drawing.Patterns9Graphics.Rendering.Cairo.Internal.Drawing.Transformations3Graphics.Rendering.Cairo.Internal.Fonts.FontOptions0Graphics.Rendering.Cairo.Internal.Surfaces.Image.Graphics.Rendering.Cairo.Internal.Surfaces.PDF.Graphics.Rendering.Cairo.Internal.Surfaces.PNG-Graphics.Rendering.Cairo.Internal.Surfaces.PS.Graphics.Rendering.Cairo.Internal.Surfaces.SVG2Graphics.Rendering.Cairo.Internal.Surfaces.Surface+Graphics.Rendering.Cairo.Internal.Utilities/Graphics.Rendering.Cairo.Internal.Drawing.Paths.Graphics.Rendering.Cairo.Internal.Drawing.Text!Graphics.Rendering.Cairo.Internaltransformers-0.2.2.0Control.Monad.IO.ClassliftIO MatrixPtrMatrixidentity translatescalerotatetransformDistancetransformPointscalarMultiplyadjointinvertFilterFilterGaussianFilterBilinear FilterNearest FilterBest FilterGood FilterFastExtend ExtendPad ExtendReflect ExtendRepeat ExtendNoneFormatFormatA1FormatA8 FormatRGB24 FormatARGB32ContentContentColorAlpha ContentAlpha ContentColorPath FontOptions HintMetrics HintMetricsOnHintMetricsOffHintMetricsDefault HintStyle HintStyleFullHintStyleMediumHintStyleSlight HintStyleNoneHintStyleDefault SubpixelOrderSubpixelOrderVbgrSubpixelOrderVrgbSubpixelOrderBgrSubpixelOrderRgbSubpixelOrderDefault FontWeightFontWeightBoldFontWeightNormal FontSlantFontSlantObliqueFontSlantItalicFontSlantNormal FontExtentsfontExtentsAscentfontExtentsDescentfontExtentsHeightfontExtentsMaxXadvancefontExtentsMaxYadvance TextExtentstextExtentsXbearingtextExtentsYbearingtextExtentsWidthtextExtentsHeighttextExtentsXadvancetextExtentsYadvanceGlyphFontFace ScaledFontLineJoin LineJoinBevel LineJoinRound LineJoinMiterLineCap LineCapSquare LineCapRound LineCapButtFillRuleFillRuleEvenOddFillRuleWinding AntialiasAntialiasSubpixel AntialiasGray AntialiasNoneAntialiasDefaultOperatorOperatorHslLuminosityOperatorHslColorOperatorHslSaturationOperatorHslHueOperatorExclusionOperatorDifferenceOperatorSoftLightOperatorHardLightOperatorColorBurnOperatorColorDodgeOperatorLightenOperatorDarkenOperatorOverlayOperatorScreenOperatorMultiplyOperatorSaturate OperatorAdd OperatorXorOperatorDestAtopOperatorDestOutOperatorDestInOperatorDestOver OperatorDest OperatorAtop OperatorOut OperatorIn OperatorOverOperatorSource OperatorClearStatusStatusLastStatusStatusDeviceErrorStatusDeviceTypeMismatchStatusUserFontNotImplementedStatusInvalidSizeStatusInvalidWeightStatusInvalidSlantStatusInvalidClustersStatusNegativeCountStatusUserFontErrorStatusUserFontImmutableStatusFontTypeMismatchStatusInvalidStrideStatusTempFileErrorStatusClipNotRepresentableStatusInvalidIndexStatusInvalidDscCommentStatusInvalidDashStatusFileNotFoundStatusInvalidVisualStatusInvalidFormatStatusInvalidContentStatusPatternTypeMismatchStatusSurfaceTypeMismatchStatusSurfaceFinishedStatusWriteErrorStatusReadErrorStatusInvalidPathDataStatusInvalidStringStatusNullPointerStatusInvalidStatusStatusInvalidMatrixStatusNoCurrentPointStatusInvalidPopGroupStatusInvalidRestoreStatusNoMemory StatusSuccessPatternSurfaceimageSurfaceCreateFromPNG SurfaceData renderWithsaverestorewithTargetSurface pushGrouppushGroupWithContentpopGroupToSource setSourceRGB setSourceRGBA setSourcesetSourceSurface getSource setAntialiassetDash setFillRule getFillRule setLineCap getLineCap setLineJoin getLineJoin setLineWidth getLineWidth setMiterLimit getMiterLimit setOperator getOperator setTolerance getToleranceclip clipPreserve resetClipfill fillPreserve fillExtentsinFillmask maskSurfacepaintpaintWithAlphastrokePreserve strokeExtentsinStrokecopyPageshowPagegetCurrentPointnewPatharc arcNegativecurveTolineTomoveTo rectangletextPath relCurveTo relLineTo relMoveTowithRGBPatternwithRGBAPatternwithPatternForSurfacewithGroupPatternwithLinearPatternwithRadialPatternpatternAddColorStopRGBpatternAddColorStopRGBApatternSetMatrixpatternGetMatrixpatternSetExtendpatternGetExtendpatternSetFilterpatternGetFilter transform setMatrix getMatrixidentityMatrix userToDeviceuserToDeviceDistance deviceToUserdeviceToUserDistanceselectFontFace setFontSize setFontMatrix getFontMatrixsetFontOptionsshowText fontExtents textExtentsfontOptionsCreatefontOptionsCopyfontOptionsMergefontOptionsHashfontOptionsEqualfontOptionsSetAntialiasfontOptionsGetAntialiasfontOptionsSetSubpixelOrderfontOptionsGetSubpixelOrderfontOptionsSetHintStylefontOptionsGetHintStylefontOptionsSetHintMetricsfontOptionsGetHintMetricswithSimilarSurfacecreateSimilarSurfacerenderWithSimilarSurface surfaceFinish surfaceFlushsurfaceGetFontOptionssurfaceMarkDirtysurfaceMarkDirtyRectanglesurfaceSetDeviceOffsetformatStrideForWidthwithImageSurfacecreateImageSurfaceimageSurfaceGetWidthimageSurfaceGetHeightimageSurfaceGetStrideimageSurfaceGetFormatimageSurfaceGetDataimageSurfaceGetPixelswithPDFSurfacepdfSurfaceSetSizewithImageSurfaceFromPNGsurfaceWriteToPNG withPSSurfacepsSurfaceSetSizewithSVGSurfaceversion versionString $fNumMatrix$fStorableMatrix $fEnumStatusFontExtentsPtrTextExtentsPtrCairounCairo withSurface mkSurface manageSurface unPattern unScaledFont unFontFaceunGlyphwithFontOptions mkFontOptionsunPathcIntConv cFloatConv cFromBoolcToBoolcToEnum cFromEnum peekFloatConv withFloatConv $fEnumContent$fStorableFontExtents$fStorableTextExtents showPage'_ copyPage'_ inStroke'_strokeExtents'_strokePreserve'_stroke'_paintWithAlpha'_paint'_ maskSurface'_mask'_inFill'_ fillExtents'_fillPreserve'_fill'_ resetClip'_clipPreserve'_clip'_getTolerance'_setTolerance'_ getOperator'_ setOperator'_getMiterLimit'_setMiterLimit'_getLineWidth'_setLineWidth'_ getLineJoin'_ setLineJoin'_ getLineCap'_ setLineCap'_ getFillRule'_ setFillRule'_cairo_set_dashgetAntialias'_setAntialias'_ getSource'_setSourceSurface'_ setSource'_setSourceRGBA'_setSourceRGB'_popGroupToSource'_ popGroup'_pushGroupWithContent'_ pushGroup'_ getTarget'_status'_ restore'_save'_ destroy'_ reference'_create'_create referencedestroy getTargetpopGroup getAntialiaspatternGetMatrix'_patternSetMatrix'_patternGetFilter'_patternSetFilter'_patternGetExtend'_patternSetExtend'_patternStatus'_patternReference'_patternDestroy'_patternCreateRadial'_patternCreateLinear'_patternCreateForSurface'_patternCreateRGBA'_patternCreateRGB'_patternAddColorStopRGBA'_patternAddColorStopRGB'_patternCreateRGBpatternCreateRGBApatternCreateForSurfacepatternCreateLinearpatternCreateRadialpatternDestroypatternReference patternStatusdeviceToUserDistance'_deviceToUser'_userToDeviceDistance'_userToDevice'_identityMatrix'_ getMatrix'_ setMatrix'_ transform'_rotate'_scale'_ translate'_fontOptionsGetHintMetrics'_fontOptionsSetHintMetrics'_fontOptionsGetHintStyle'_fontOptionsSetHintStyle'_fontOptionsGetSubpixelOrder'_fontOptionsSetSubpixelOrder'_fontOptionsGetAntialias'_fontOptionsSetAntialias'_fontOptionsEqual'_fontOptionsHash'_fontOptionsMerge'_fontOptionsStatus'_fontOptionsDestroy'_fontOptionsCopy'_fontOptionsCreate'_fontOptionsDestroyfontOptionsStatusformatStrideForWidth'_imageSurfaceGetData'_imageSurfaceGetFormat'_imageSurfaceGetStride'_imageSurfaceGetHeight'_imageSurfaceGetWidth'_imageSurfaceCreate'_imageSurfaceCreatepdfSurfaceSetSize'_pdfSurfaceCreate'_pdfSurfaceCreatesurfaceWriteToPNG'_#cairo_image_surface_create_from_pngpsSurfaceSetSize'_psSurfaceCreate'_psSurfaceCreatesvgSurfaceCreate'_svgSurfaceCreatesurfaceStatus'_surfaceSetDeviceOffset'_surfaceReference'_surfaceMarkDirtyRectangle'_surfaceMarkDirty'_surfaceGetContent'_surfaceGetFontOptions'_surfaceFlush'_surfaceFinish'_surfaceDestroy'_surfaceCreateSimilar'_surfaceCreateSimilarsurfaceDestroysurfaceGetContentsurfaceReference surfaceStatusversionString'_ version'_statusToString'_statusToString withUTFString relMoveTo'_ relLineTo'_ relCurveTo'_ textPath'_ rectangle'_moveTo'_lineTo'_ curveTo'_ arcNegative'_arc'_ closePath'_ newPath'_getCurrentPoint'_ textExtents'_ fontExtents'_ showText'_setFontOptions'_getFontMatrix'_setFontMatrix'_ setFontSize'_selectFontFace'_ runRenderbracketRbaseGHC.Realdiv array-0.4.0.0Data.Array.Base unsafeRead unsafeWrite$fMArraySurfaceDataeIO