cl-cairo2

API Reference

a-cl-cairo2-loader

No packages.

cl-cairo2

Cairo bindings

CL-CAIRO2

  • Function VERSION (&optional (ver (%cairo-version)))
  • Function DEG-TO-RAD (deg)
    Convert degrees to radians.
  • Generic-Function DESTROY (object)
    Destroys Cairo object.
  • Generic-Function REFERENCE-COUNT (object)
    Return Cairo's reference count for OBJECT
  • Struct RGBA
    ALPHA
  • Function RGBA (red green blue alpha)
  • Function RED (rgb)
  • Function GREEN (rgb)
  • Function BLUE (rgb)
  • Function ALPHA (rgba)
  • Function HSV->RGB (hsv)
  • Variable TABLE-FORMAT
    '((:cairo_format_argb32 . :argb32) (:cairo_format_rgb24 . :rgb24)
      (:cairo_format_a8 . :a8) (:cairo_format_a1 . :a1)
      (:cairo_format_rgb16_565 . :rgb16_565) (:cairo_format_rgb30 . :rgb30))
  • Variable TABLE-ANTIALIAS
    '((:cairo_antialias_default . :default) (:cairo_antialias_none . :none)
      (:cairo_antialias_gray . :gray) (:cairo_antialias_subpixel . :subpixel)
      (:cairo_antialias_fast . :fast) (:cairo_antialias_good . :good)
      (:cairo_antialias_best . :best))
  • Variable TABLE-FILL-RULE
    '((:cairo_fill_rule_winding . :winding) (:cairo_fill_rule_even_odd . :odd))
  • Variable TABLE-LINE-CAP
    '((:cairo_line_cap_butt . :butt) (:cairo_line_cap_round . :round)
      (:cairo_line_cap_square . :square))
  • Variable TABLE-LINE-JOIN
    '((:cairo_line_join_miter . :miter) (:cairo_line_join_round . :round)
      (:cairo_line_join_bevel . :bevel))
  • Variable TABLE-OPERATOR
    '((:cairo_operator_clear . :clear) (:cairo_operator_source . :source)
      (:cairo_operator_over . :over) (:cairo_operator_in . :in)
      (:cairo_operator_out . :out) (:cairo_operator_atop . :atop)
      (:cairo_operator_dest . :dest) (:cairo_operator_dest_over . :dest-over)
      (:cairo_operator_dest_in . :dest-in) (:cairo_operator_dest_out . :dest-out)
      (:cairo_operator_dest_atop . :dest-atop) (:cairo_operator_xor . :xor)
      (:cairo_operator_add . :add) (:cairo_operator_saturate . :saturate)
      (:cairo_operator_multiply . :multiply) (:cairo_operator_screen . :screen)
      (:cairo_operator_overlay . :overlay) (:cairo_operator_darken . :darken)
      (:cairo_operator_lighten . :lighten) (:cairo_operator_color_dodge . :dodge)
      (:cairo_operator_color_burn . :burn)
      (:cairo_operator_hard_light . :hard-light)
      (:cairo_operator_soft_light . :soft-light)
      (:cairo_operator_difference . :difference)
      (:cairo_operator_exclusion . :exclusion) (:cairo_operator_hsl_hue . :hue)
      (:cairo_operator_hsl_saturation . :saturation)
      (:cairo_operator_hsl_color . :color)
      (:cairo_operator_hsl_luminosity . :luminosity))
  • Variable TABLE-FONT-SLANT
    '((:cairo_font_slant_normal . :normal) (:cairo_font_slant_italic . :italic)
      (:cairo_font_slant_oblique . :oblique))
  • Variable TABLE-FONT-WEIGHT
    '((:cairo_font_weight_normal . :normal) (:cairo_font_weight_bold . :bold))
  • Variable TABLE-SUBPIXEL-ORDER
    '((:cairo_subpixel_order_default . :default) (:cairo_subpixel_order_rgb . :rgb)
      (:cairo_subpixel_order_bgr . :bgr) (:cairo_subpixel_order_vrgb . :vrgb)
      (:cairo_subpixel_order_vbgr . :vbgr))
  • Variable TABLE-HINT-STYLE
    '((:cairo_hint_style_default . :default) (:cairo_hint_style_none . :none)
      (:cairo_hint_style_slight . :slight) (:cairo_hint_style_medium . :medium)
      (:cairo_hint_style_full . :full))
  • Variable TABLE-HINT-METRICS
    '((:cairo_hint_metrics_default . :default) (:cairo_hint_metrics_off . :off)
      (:cairo_hint_metrics_on . :on))
  • Variable TABLE-STATUS
    '((:cairo_status_success . :success) (:cairo_status_no_memory . :no-memory)
      (:cairo_status_invalid_restore . :invalid-restore)
      (:cairo_status_invalid_pop_group . :invalid-pop-group)
      (:cairo_status_no_current_point . :no-current-point)
      (:cairo_status_invalid_matrix . :invalid-matrix)
      (:cairo_status_invalid_status . :invalid-status)
      (:cairo_status_null_pointer . :null-pointer)
      (:cairo_status_invalid_string . :invalid-string)
      (:cairo_status_invalid_path_data . :invalid-path-data)
      (:cairo_status_read_error . :read-error)
      (:cairo_status_write_error . :write-error)
      (:cairo_status_surface_finished . :surface-finished)
      (:cairo_status_surface_type_mismatch . :surface-type-mismatch)
      (:cairo_status_pattern_type_mismatch . :pattern-type-mismatch)
      (:cairo_status_invalid_content . :invalid-content)
      (:cairo_status_invalid_format . :invalid-format)
      (:cairo_status_invalid_visual . :invalid-visual)
      (:cairo_status_file_not_found . :file-not-found)
      (:cairo_status_invalid_dash . :invalid-dash)
      (:cairo_status_invalid_dsc_comment . :invalid-dsc-comment)
      (:cairo_status_invalid_index . :invalid-index)
      (:cairo_status_clip_not_representable . :clip-not-representable)
      (:cairo_status_temp_file_error . :temp-file-error)
      (:cairo_status_invalid_stride . :invalid-stride)
      (:cairo_status_font_type_mismatch . :font-type-mismatch)
      (:cairo_status_user_font_immutable . :user-font-immutable)
      (:cairo_status_user_font_error . :user-font-error)
      (:cairo_status_negative_count . :negative-count)
      (:cairo_status_invalid_clusters . :invalid-clusters)
      (:cairo_status_invalid_slant . :invalid-slant)
      (:cairo_status_invalid_weight . :invalid-weight)
      (:cairo_status_invalid_size . :invalid-size)
      (:cairo_status_user_font_not_implemented . :user-font-not-implemented)
      (:cairo_status_device_type_mismatch . :device-type-mismatch)
      (:cairo_status_device_error . :device-error)
      (:cairo_status_invalid_mesh_construction . :invalid-mesh-construction)
      (:cairo_status_device_finished . :device-finished)
      (:cairo_status_last_status . :last-status))
  • Variable TABLE-PATTERN-TYPE
    '((:cairo_pattern_type_solid . :solid) (:cairo_pattern_type_surface . :surface)
      (:cairo_pattern_type_linear . :linear) (:cairo_pattern_type_radial . :radial))
  • Variable TABLE-EXTEND
    '((:cairo_extend_none . :none) (:cairo_extend_repeat . :repeat)
      (:cairo_extend_reflect . :reflect) (:cairo_extend_pad . :pad))
  • Variable TABLE-FILTER
    '((:cairo_filter_fast . :fast) (:cairo_filter_good . :good)
      (:cairo_filter_best . :best) (:cairo_filter_nearest . :nearest)
      (:cairo_filter_bilinear . :bilinear) (:cairo_filter_gaussian . :gaussian))
  • Variable TABLE-CONTENT
    '((:cairo_content_color . :color) (:cairo_content_alpha . :alpha)
      (:cairo_content_color_alpha . :color-alpha))
  • Variable *SURFACE*
  • Generic-Function WIDTH (object)
    return the width of an object
  • Generic-Function HEIGHT (object)
    return the height of an object
  • Generic-Function PIXEL-BASED-P (object)
    return t iff the object uses a pixel-based backend
  • Method DESTROY ((object cairo-object))
  • Class SURFACE  (CAIRO-OBJECT)
    WIDTH   Reader: WIDTH
    HEIGHT   Reader: HEIGHT
    PIXEL-BASED-P   Reader: PIXEL-BASED-P
  • Function CREATE-SURFACE-FROM-FOREIGN (pointer &optional (pixel-based-p t) (assume-memory-p t))
    Wrap a foreign pointer to a cairo surface in a CL-CAIRO2:SURFACE object. If ASSUME-MEMORY-P is true, takes control of freeing the memory for the pointer when no longer needed.
  • Method REFERENCE-COUNT ((surface surface))
  • Function SURFACE-FLUSH (surface)
  • Function SURFACE-FINISH (surface)
  • Function SURFACE-MARK-DIRTY (surface)
  • Function CREATE-PDF-SURFACE (filename width height)
  • Function PDF-SURFACE-SET-SIZE (surface width height)
    Set the current pdf page size.
  • Function CREATE-PS-SURFACE (filename width height)
  • Function PS-SURFACE-SET-SIZE (surface width height)
    Set the current ps page size.
  • Function CREATE-SVG-SURFACE (filename width height)
  • Function CREATE-RECORDING-SURFACE (content &optional x y width height)
  • Function CREATE-IMAGE-SURFACE (format width height)
  • Function CREATE-SIMILAR-IMAGE (other-surface format width height)
    Create a new image surface suitable for fast blitting to OTHER-SURFACE via cairo_surface_create_similar_image.
  • Function CREATE-IMAGE-SURFACE-FOR-DATA (data format width height stride)
  • Function CREATE-IMAGE-SURFACE-FOR-ARRAY (data)
    Create a cairo image surface from DATA. The dimensions and color format of the created surface are determined based on the shaped of DATA: + WxH -> BW + WxHx3 -> RGB + WxHx4 -> ARGB
  • Function IMAGE-SURFACE-GET-DATA (surface &key (pointer-only nil))
    get the pointer referencing the image data directly. Then return it immediately when pointer-only is t. Otherwise, return the copy of the image data along with the pointer.
  • Function IMAGE-SURFACE-GET-FORMAT (surface)
  • Function IMAGE-SURFACE-GET-WIDTH (surface)
  • Function IMAGE-SURFACE-GET-HEIGHT (surface)
  • Function IMAGE-SURFACE-GET-STRIDE (surface)
  • Macro WITH-SURFACE ((surface-name surface &key (destroy t)) &body body)
  • Macro WITH-CONTEXT-FROM-SURFACE ((surface) &body body)
  • Macro WITH-SURFACE-AND-CONTEXT ((surface-name surface) &body body)
  • Function IMAGE-SURFACE-CREATE-FROM-PNG (filename)
  • Function IMAGE-SURFACE-CREATE-FROM-PNG-CALLBACK (callback)
    Construct a cairo image surface by repeatedly calling CALLBACK retrieving one chunk of PNG data at a time. CALLBACK should take a single argument which is the amount of data that to be retrieved.
  • Function IMAGE-SURFACE-CREATE-FROM-PNG-STREAM (stream)
    Construct a cairo image surface by reading PNG data from STREAM.
  • Function SURFACE-WRITE-TO-PNG (surface filename)
  • Macro WITH-PNG-SURFACE ((png-file surface-name) &body body)
  • Class CONTEXT  (CAIRO-OBJECT)
    WIDTH   Reader: WIDTH
    HEIGHT   Reader: HEIGHT
    PIXEL-BASED-P   Reader: PIXEL-BASED-P
  • Variable *CONTEXT*
    nil
    The default context for cl-cairo2 functions.
  • Macro WITH-CONTEXT ((context) &body body)
    Set *context* to context for body.
  • Function CREATE-CONTEXT (surface)
  • Generic-Function SYNC (object)
    Synchronize contents of the object with the physical device if needed.
  • Generic-Function SYNC-LOCK (object)
    Suspend syncing (ie sync will have no effect) until sync-unlock is called. Calls to sync-lock nest.
  • Generic-Function SYNC-UNLOCK (object)
    Undo a call to sync-lock.
  • Generic-Function SYNC-RESET (object)
    Undo all calls to sync, ie object will be synced (if necessary) no matter how many times sync was called before.
  • Method SYNC ((object context))
  • Method SYNC-LOCK ((object context))
  • Method SYNC-UNLOCK ((object context))
  • Method SYNC-RESET ((object context))
  • Macro WITH-SYNC-LOCK ((context) &body body)
    Lock sync for context for the duration of body. Protected against nonlocal exits.
  • Macro WITH-PNG-FILE ((filename format width height &key (surface (gensym)) (context '*context*)) &body body)
    Execute the body with context (defaults to *context*) bound to a newly created png file, and close it after executing body. The surface will be bound to surface-name.
  • Function SAVE (&optional (context *context*))
  • Function RESTORE (&optional (context *context*))
  • Function PUSH-GROUP (&optional (context *context*))
  • Function POP-GROUP (&optional (context *context*))
  • Function POP-GROUP-TO-SOURCE (&optional (context *context*))
  • Function SET-SOURCE-RGB (red green blue &optional (context *context*))
  • Function SET-SOURCE-RGBA (red green blue alpha &optional (context *context*))
  • Function CLIP (&optional (context *context*))
  • Function CLIP-PRESERVE (&optional (context *context*))
  • Function RESET-CLIP (&optional (context *context*))
  • Function COPY-PAGE (&optional (context *context*))
  • Function SHOW-PAGE (&optional (context *context*))
  • Function FILL-PRESERVE (&optional (context *context*))
  • Function PAINT (&optional (context *context*))
  • Function PAINT-WITH-ALPHA (alpha &optional (context *context*))
  • Function STROKE (&optional (context *context*))
  • Function STROKE-PRESERVE (&optional (context *context*))
  • Function MASK-SURFACE (surface x y &optional (context *context*))
  • Function SET-SOURCE-SURFACE (image x y &optional (context *context*))
  • Function GET-TARGET (context)
    Obtain the target surface of a given context. Width and height will be nil, as cairo can't provide that in general.
  • Generic-Function SET-SOURCE-COLOR (color &optional context)
  • Method SET-SOURCE-COLOR ((color rgb) &optional (context *context*))
  • Method SET-SOURCE-COLOR ((color rgba) &optional (context *context*))
  • Method SET-SOURCE-COLOR ((color hsv) &optional (context *context*))
  • Function GET-LINE-WIDTH (&optional (context *context*))
  • Function SET-LINE-WIDTH (line-width &optional (context *context*))
  • Function GET-MITER-LIMIT (&optional (context *context*))
  • Function SET-MITER-LIMIT (miter-limit &optional (context *context*))
  • Function GET-ANTIALIAS (&optional (context *context*))
  • Function SET-ANTIALIAS (antialias &optional (context *context*))
  • Function GET-FILL-RULE (&optional (context *context*))
  • Function SET-FILL-RULE (fill-rule &optional (context *context*))
  • Function GET-LINE-CAP (&optional (context *context*))
  • Function SET-LINE-CAP (line-cap &optional (context *context*))
  • Function GET-LINE-JOIN (&optional (context *context*))
  • Function SET-LINE-JOIN (line-join &optional (context *context*))
  • Function GET-OPERATOR (&optional (context *context*))
  • Function SET-OPERATOR (operator &optional (context *context*))
  • Function FILL-PATH (&optional (context *context*))
  • Function SET-DASH (offset dashes &optional (context *context*))
  • Function GET-DASH (&optional (context *context*))
  • Function CLIP-EXTENTS (&optional (context *context*))
  • Function FILL-EXTENTS (&optional (context *context*))
  • Function IN-FILL (x y &optional (context *context*))
  • Function CREATE-PS-CONTEXT (filename width height)
    Create a surface, then a context for a file, then destroy (dereference) the surface. The user only needs to destroy the context when done.
  • Function CREATE-PDF-CONTEXT (filename width height)
    Create a surface, then a context for a file, then destroy (dereference) the surface. The user only needs to destroy the context when done.
  • Function CREATE-SVG-CONTEXT (filename width height)
    Create a surface, then a context for a file, then destroy (dereference) the surface. The user only needs to destroy the context when done.
  • Function TRANSLATE (tx ty &optional (context *context*))
  • Function SCALE (sx sy &optional (context *context*))
  • Function ROTATE (angle &optional (context *context*))
  • Function RESET-TRANS-MATRIX (&optional (context *context*))
  • Function TRANS-MATRIX-P (object)
  • Function TRANS-MATRIX-XX (instance)
  • Function (setf TRANS-MATRIX-XX) (value instance)
  • Function TRANS-MATRIX-YX (instance)
  • Function (setf TRANS-MATRIX-YX) (value instance)
  • Function TRANS-MATRIX-XY (instance)
  • Function (setf TRANS-MATRIX-XY) (value instance)
  • Function TRANS-MATRIX-YY (instance)
  • Function (setf TRANS-MATRIX-YY) (value instance)
  • Function TRANS-MATRIX-X0 (instance)
  • Function (setf TRANS-MATRIX-X0) (value instance)
  • Function TRANS-MATRIX-Y0 (instance)
  • Function (setf TRANS-MATRIX-Y0) (value instance)
  • Function MAKE-TRANS-MATRIX (&key ((xx xx) 1.0d0) ((yx yx) 0.0d0) ((xy xy) 0.0d0) ((yy yy) 1.0d0) ((x0 x0) 0.0d0) ((y0 y0) 0.0d0))
  • Function TRANSFORM (matrix &optional (context *context*))
  • Function SET-TRANS-MATRIX (matrix &optional (context *context*))
  • Function GET-TRANS-MATRIX (&optional (context *context*))
  • Function USER-TO-DEVICE (x y &optional (context *context*))
  • Function USER-TO-DEVICE-DISTANCE (x y &optional (context *context*))
  • Function DEVICE-TO-USER (x y &optional (context *context*))
  • Function DEVICE-TO-USER-DISTANCE (x y &optional (context *context*))
  • Function TRANS-MATRIX-INIT-TRANSLATE (tx ty)
  • Function TRANS-MATRIX-INIT-SCALE (sx sy)
  • Function TRANS-MATRIX-INIT-ROTATE (radians)
  • Function TRANS-MATRIX-TRANSLATE (matrix tx ty)
  • Function TRANS-MATRIX-TRANSLATE (matrix tx ty)
  • Function TRANS-MATRIX-SCALE (matrix sx sy)
  • Function TRANS-MATRIX-SCALE (matrix sx sy)
  • Function TRANS-MATRIX-ROTATE (matrix radians)
  • Function TRANS-MATRIX-ROTATE (matrix radians)
  • Function TRANS-MATRIX-INVERT (matrix)
  • Function TRANS-MATRIX-INVERT (matrix)
  • Function TRANS-MATRIX-MULTIPLY (a b)
  • Function TRANSFORM-POINT (matrix x y)
  • Class PATTERN  (CAIRO-OBJECT)
    No slots.
  • Function CREATE-RGB-PATTERN (red green blue)
  • Function CREATE-RGBA-PATTERN (red green blue alpha)
  • Function CREATE-LINEAR-PATTERN (start-x start-y end-x end-y)
  • Function CREATE-RADIAL-PATTERN (center0-x center0-y radius0 center1-x center1-y radius1)
  • Function CREATE-MESH-PATTERN
  • Function CREATE-PATTERN-FOR-SURFACE (image)
  • Function PATTERN-ADD-COLOR-STOP-RGB (pattern offset red green blue)
  • Function PATTERN-ADD-COLOR-STOP-RGBA (pattern offset red green blue alpha)
  • Function PATTERN-SET-MATRIX (pattern matrix)
  • Function PATTERN-GET-MATRIX (pattern)
  • Function PATTERN-GET-TYPE (pattern)
  • Function PATTERN-GET-EXTEND (pattern)
  • Function PATTERN-SET-EXTEND (pattern extend)
  • Function PATTERN-GET-FILTER (pattern)
  • Function PATTERN-MESH-BEGIN-PATCH (pattern)
  • Function PATTERN-MESH-END-PATCH (pattern)
  • Function PATTERN-MESH-MOVE-TO (pattern x y)
  • Function PATTERN-MESH-LINE-TO (pattern x y)
  • Function PATTERN-MESH-CURVE-TO (pattern x1 y1 x2 y2 x3 y3)
  • Function PATTERN-MESH-SET-CONTROL-POINT (pattern point-num x y)
  • Function PATTERN-MESH-SET-CORNER-COLOR-RGB (pattern corner-num r g b)
  • Function PATTERN-MESH-SET-CORNER-COLOR-RGBA (pattern corner-num r g b a)
  • Function PATTERN-MESH-GET-PATCH-COUNT (pattern)
  • Function PATTERN-MESH-GET-CONTROL-POINT (pattern patch-num point-num)
  • Function PATTERN-MESH-GET-CORNER-RGBA (pattern patch-num corner-num)
  • Function PATTERN-GET-RGBA (pattern)
  • Function PATTERN-GET-SURFACE (pattern)
  • Function GET-SOURCE (&optional (context *context*))
  • Function PATTERN-GET-COLOR-STOP-RGBA (pattern index)
  • Function PATTERN-GET-COLOR-STOP-COUNT (pattern)
  • Function PATTERN-GET-COLOR-STOPS (pattern)
  • Function PATTERN-GET-LINEAR-POINTS (pattern)
  • Function PATTERN-GET-RADIAL-CIRCLES (pattern)
  • Function SET-SOURCE (pattern &optional (context *context*))
  • Function MASK (pattern &optional (context *context*))
  • Generic-Function CREATE-COLOR-PATTERN (color)
    create a rgb or rgba pattern from the supplied color
  • Method CREATE-COLOR-PATTERN ((color rgb))
  • Method CREATE-COLOR-PATTERN ((color rgba))
  • Generic-Function PATTERN-ADD-COLOR-STOP (pattern offset color)
    add a color stop to the pattern. color must be of class rgb, rgba or a list (r g b) or (r g b a)
  • Method PATTERN-ADD-COLOR-STOP ((pattern pattern) offset color)
  • Method PATTERN-ADD-COLOR-STOP ((pattern pattern) (offset number) (color rgb))
  • Method PATTERN-ADD-COLOR-STOP ((pattern pattern) (offset number) (color rgba))
  • Method PATTERN-ADD-COLOR-STOP ((pattern pattern) (offset number) (color cons))
  • Macro WITH-RADIAL-PATTERN (pattern-name (center0-x center0-y radius0 center1-x center1-y radius1) color-stops &body body)
  • Macro WITH-LINEAR-PATTERN (pattern-name (start-x start-y end-x end-y) color-stops &body body)
  • Macro WITH-PATTERNS (pattern-forms &body body)
    create patterns from pattern-forms, each has its name as specified in the corresponding pattern-form, and then execute body in which the patterns can be referenced using the names.
  • Function NEW-PATH (&optional (context *context*))
  • Function NEW-SUB-PATH (&optional (context *context*))
  • Function CLOSE-PATH (&optional (context *context*))
  • Function ARC (xc yc radius angle1 angle2 &optional (context *context*))
  • Function ARC-NEGATIVE (xc yc radius angle1 angle2 &optional (context *context*))
  • Function CURVE-TO (x1 y1 x2 y2 x3 y3 &optional (context *context*))
  • Function LINE-TO (x y &optional (context *context*))
  • Function MOVE-TO (x y &optional (context *context*))
  • Function RECTANGLE (x y width height &optional (context *context*))
  • Function REL-MOVE-TO (dx dy &optional (context *context*))
  • Function REL-CURVE-TO (dx1 dy1 dx2 dy2 dx3 dy3 &optional (context *context*))
  • Function REL-LINE-TO (dx dy &optional (context *context*))
  • Function TEXT-PATH (text &optional (context *context*))
  • Function GET-CURRENT-POINT (&optional (context *context*))
  • Function HAS-CURRENT-POINT (&optional (context *context*))
  • Function SELECT-FONT-FACE (family slant weight &optional (context *context*))
  • Function SET-FONT-SIZE (size &optional (context *context*))
  • Function TEXT-EXTENTS (text &optional (context *context*))
  • Function SHOW-TEXT (text &optional (context *context*))
  • Function TEXT-X-BEARING (extents-t)
  • Function (setf TEXT-X-BEARING) (value extents-t)
  • Function TEXT-Y-BEARING (extents-t)
  • Function (setf TEXT-Y-BEARING) (value extents-t)
  • Function TEXT-WIDTH (extents-t)
  • Function (setf TEXT-WIDTH) (value extents-t)
  • Function TEXT-HEIGHT (extents-t)
  • Function (setf TEXT-HEIGHT) (value extents-t)
  • Function TEXT-X-ADVANCE (extents-t)
  • Function (setf TEXT-X-ADVANCE) (value extents-t)
  • Function TEXT-Y-ADVANCE (extents-t)
  • Function (setf TEXT-Y-ADVANCE) (value extents-t)
  • Function FONT-ASCENT (extents-t)
  • Function (setf FONT-ASCENT) (value extents-t)
  • Function FONT-DESCENT (extents-t)
  • Function (setf FONT-DESCENT) (value extents-t)
  • Function FONT-HEIGHT (extents-t)
  • Function (setf FONT-HEIGHT) (value extents-t)
  • Function FONT-MAX-X-ADVANCE (extents-t)
  • Function (setf FONT-MAX-X-ADVANCE) (value extents-t)
  • Function FONT-MAX-Y-ADVANCE (extents-t)
  • Function (setf FONT-MAX-Y-ADVANCE) (value extents-t)
  • Function GET-TEXT-EXTENTS (utf8 &optional (context *context*))
  • Function GET-FONT-EXTENTS (&optional (context *context*))
  • Struct GLYPH-ARRAY
    COUNT
    FILLED
    POINTER
  • Function GLYPH-ARRAY-COUNT (instance)
  • Function (setf GLYPH-ARRAY-COUNT) (value instance)
  • Function GLYPH-ARRAY-FILLED (instance)
  • Function (setf GLYPH-ARRAY-FILLED) (value instance)
  • Function MAKE-GLYPH-ARRAY (count)
  • Function GLYPH-ARRAY-ADD (glyph-array index x y)
  • Function GLYPH-ARRAY-SET-GLYPH (glyph-array array-index glyph-index x y)
  • Function GLYPH-ARRAY-RESET-FILL (glyph-array)
  • Function SET-FONT-MATRIX (matrix &optional (context *context*))
  • Function GET-FONT-MATRIX (&optional (context *context*))
  • Function SET-FONT-OPTIONS (font-options &optional (context *context*))
  • Function GET-FONT-OPTIONS (&optional (context *context*))
  • Function SET-FONT-FACE (font-face &optional (context *context*))
  • Function GET-FONT-FACE (&optional (context *context*))
  • Function SET-SCALED-FONT (scaled-font &optional (context *context*))
  • Function GET-SCALED-FONT (&optional (context *context*))
  • Function SHOW-GLYPHS (glyph-array &optional (context *context*))
  • Function GLYPH-EXTENTS (glyph-array &optional (context *context*))
  • Class FONT-FACE  (CAIRO-OBJECT)
    No slots.
  • Class SCALED-FONT  (CAIRO-OBJECT)
    FONT-FACE   Accessor: SCALED-FONT-FACE
  • Class FONT-OPTIONS  (CAIRO-OBJECT)
    No slots.
  • Generic-Function CREATE-FONT (source-face &key &allow-other-keys)
    Create a FONT-FACE (cairo_font_t) from SOURCE-FACE
  • Generic-Function SET-FONT (font-face &optional context)
    Set the current font to FONT-FACE
  • Method SET-FONT ((font-face font-face) &optional (context *context*))
  • Method SET-FONT ((font-face scaled-font) &optional (context *context*))
  • Function CREATE-SCALED-FONT (font font-matrix matrix options)
  • Function SCALED-FONT-EXTENTS (scaled-font)
  • Function SCALED-FONT-TEXT-EXTENTS (scaled-font string)
  • Function SCALED-FONT-GLYPH-EXTENTS (scaled-font glyphs)
  • Function SCALED-FONT-GET-CTM (scaled-font)
  • Function SCALED-FONT-GET-FONT-MATRIX (scaled-font)
  • Function SCALED-FONT-GET-SCALE-MATRIX (scaled-font)
  • Function SCALED-FONT-GET-TYPE (scaled-font)
  • Function CREATE-FONT-OPTIONS
  • Function FONT-OPTIONS-COPY (font-options)
  • Function FONT-OPTIONS-MERGE (fo1 fo2)
  • Function FONT-OPTIONS-HASH (font-options)
  • Function FONT-OPTIONS-EQUAL (fo1 fo2)
  • Function FONT-OPTIONS-SET-ANTIALIAS (font-options antialias-type)
  • Function FONT-OPTIONS-GET-ANTIALIAS (font-options)
  • Function FONT-OPTIONS-SET-SUBPIXEL-ORDER (font-options subpixel-order)
  • Function FONT-OPTIONS-GET-SUBPIXEL-ORDER (font-options)
  • Function FONT-OPTIONS-SET-HINT-STYLE (font-options hint-style)
  • Function FONT-OPTIONS-GET-HINT-STYLE (font-options)
  • Function FONT-OPTIONS-SET-HINT-METRICS (font-options hint-metrics)
  • Function FONT-OPTIONS-GET-HINT-METRICS (font-options)
  • Class USER-FONT-FACE  (FONT-FACE)
    INIT-FUN   Accessor: USER-FONT-INIT-FUN
    RENDER-GLYPH-FUN   Accessor: USER-FONT-RENDER-GLYPH-FUN
    UNICODE-TO-GLYPH-FUN   Accessor: USER-FONT-UNICODE-TO-GLYPH-FUN
  • Class XLIB-IMAGE-CONTEXT  (CONTEXT)
    DISPLAY
    BACKGROUND-COLOR
    DEST-SURFACE
    WINDOW
    GRAPHICS-CONTEXT
    SIGNAL-WINDOW
    XLIB-CONTEXT   Accessor: XLIB-CONTEXT
    WM-DELETE-WINDOW
    WIDTH
    HEIGHT
    THREAD
    SYNC-COUNTER   Accessor: SYNC-COUNTER
  • Class GTK2-XLIB-CONTEXT  (CONTEXT)
    CAIRO-DRAWING-AREA   Accessor: CAIRO-DRAWING-AREA
    BACKGROUND-COLOR
    SYNC-COUNTER   Accessor: SYNC-COUNTER

cl-cairo2-demos

Demos for cl-cairo2

CAIRO-DEMO

  • Function RUN (demo-name &key (output-file "cairo-demo.png") (w 300) (h 300))
    Run DEMO-NAME on an image surface of WxH. Output is a PNG file, written to OUTPUT-FILE. DEMO-NAME should refer to a function which takes (WIDTH HEIGHT SURFACE).
  • Function ARC1 (w h surface)
  • Function MESH1 (w h surface)

cl-cairo2-gtk2

No packages.

cl-cairo2-xlib

No packages.