Package gtkc.cairoLibtypes


Classes

struct  cairo_t
 Main Gtk struct. More...
struct  cairo_path_t
 A data structure for holding a path. More...
struct  cairo_glyph_t
 The cairo_glyph_t structure holds information about a single glyph when drawing or measuring text. More...
struct  cairo_pattern_t
 Main Gtk struct. More...
struct  cairo_font_face_t
 Main Gtk struct. More...
struct  cairo_scaled_font_t
 Main Gtk struct. More...
struct  cairo_font_extents_t
 The cairo_font_extents_t structure stores metric information for a font. More...
struct  cairo_text_extents_t
 The cairo_text_extents_t structure stores the extents of a single glyph or a string of glyphs in user-space coordinates. More...
struct  cairo_font_options_t
 Main Gtk struct. More...
struct  cairo_surface_t
 Main Gtk struct. More...
struct  cairo_matrix_t
 Main Gtk struct. More...
struct  cairo_user_data_key_t
 cairo_user_data_key_t is used for attaching user data to cairo data structures. More...

Enumerations

enum  cairo_antialias_t {
  DEFAULT,
  DEFAULT,
  DEFAULT,
  DEFAULT,
  NONE,
  NONE,
  NONE,
  GRAY,
  SUBPIXEL
}
 Specifies the type of antialiasing to do when rendering text or shapes. More...
enum  cairo_fill_rule_t {
  WINDING,
  EVEN_ODD
}
 cairo_fill_rule_t is used to select how paths are filled. More...
enum  cairo_line_cap_t {
  BUTT,
  ROUND,
  ROUND,
  SQUARE
}
 enumeration for style of line-endings CAIRO_LINE_CAP_BUTT More...
enum  cairo_line_join_t {
  MITER,
  ROUND,
  ROUND,
  BEVEL
}
enum  cairo_operator_t {
  CLEAR,
  SOURCE,
  OVER,
  IN,
  OUT,
  ATOP,
  DEST,
  DEST_OVER,
  DEST_IN,
  DEST_OUT,
  DEST_ATOP,
  XOR,
  ADD,
  SATURATE
}
enum  cairo_path_data_type_t {
  MOVE_TO,
  LINE_TO,
  CURVE_TO,
  CLOSE_PATH
}
enum  cairo_font_slant_t {
  NORMAL,
  NORMAL,
  ITALIC,
  OBLIQUE
}
enum  cairo_font_weight_t {
  NORMAL,
  NORMAL,
  BOLD
}
enum  cairo_extend_t {
  NONE,
  NONE,
  NONE,
  REPEAT,
  REFLECT,
  PAD
}
 cairo_extend_t is used to describe how the area outside of a pattern will be drawn. More...
enum  cairo_filter_t {
  FAST,
  GOOD,
  BEST,
  NEAREST,
  BILINEAR,
  GAUSSIAN
}
enum  cairo_pattern_type_t {
  SOLID,
  SURFACE,
  LINEAR,
  RADIAL
}
 cairo_pattern_type_t is used to describe the type of a given pattern. More...
enum  cairo_font_type_t {
  TOY,
  FT,
  WIN32,
  WIN32,
  ATSUI
}
 cairo_font_type_t is used to describe the type of a given font face or scaled font. More...
enum  cairo_subpixel_order_t {
  DEFAULT,
  DEFAULT,
  DEFAULT,
  DEFAULT,
  RGB,
  BGR,
  VRGB,
  VBGR
}
 The subpixel order specifies the order of color elements within each pixel on the display device when rendering with an antialiasing mode of CAIRO_ANTIALIAS_SUBPIXEL. More...
enum  cairo_hint_style_t {
  DEFAULT,
  DEFAULT,
  DEFAULT,
  DEFAULT,
  NONE,
  NONE,
  NONE,
  SLIGHT,
  MEDIUM,
  FULL
}
 Specifies the type of hinting to do on font outlines. More...
enum  cairo_hint_metrics_t {
  DEFAULT,
  DEFAULT,
  DEFAULT,
  DEFAULT,
  OFF,
  ON
}
 Specifies whether to hint font metrics; hinting font metrics means quantizing them so that they are integer values in device space. More...
enum  cairo_content_t {
  COLOR = 0x1000,
  ALPHA = 0x2000,
  COLOR_ALPHA = 0x3000
}
 cairo_content_t is used to describe the content that a surface will contain, whether color information, alpha information (translucence vs. More...
enum  cairo_surface_type_t {
  IMAGE,
  PDF,
  PS,
  XLIB,
  XCB,
  GLITZ,
  QUARTZ,
  WIN32,
  WIN32,
  BEOS,
  DIRECTFB,
  SVG
}
 cairo_surface_type_t is used to describe the type of a given surface. More...
enum  cairo_format_t {
  ARGB32,
  RGB24,
  A8,
  A1,
  RGB16_565
}
 cairo_format_t is used to identify the memory format of image data. More...
enum  cairo_status_t {
  SUCCESS = 0,
  NO_MEMORY,
  INVALID_RESTORE,
  INVALID_POP_GROUP,
  NO_CURRENT_POINT,
  INVALID_MATRIX,
  INVALID_STATUS,
  NULL_POINTER,
  INVALID_STRING,
  INVALID_PATH_DATA,
  READ_ERROR,
  WRITE_ERROR,
  SURFACE_FINISHED,
  SURFACE_TYPE_MISMATCH,
  PATTERN_TYPE_MISMATCH,
  INVALID_CONTENT,
  INVALID_FORMAT,
  INVALID_VISUAL,
  FILE_NOT_FOUND,
  INVALID_DASH,
  INVALID_DSC_COMMENT
}
 cairo_status_t is used to indicate errors that can occur when using Cairo. More...

Functions

typedef extern (C) void function(void *) cairo_destroy_func_t

Variables

alias void * HDC
alias ubyte uchar
alias int cairo_bool_t
 typedef int cairo_bool_t; cairo_bool_t is used for boolean values.


Enumeration Type Documentation

enum gtkc::cairoLibtypes::cairo_antialias_t

Specifies the type of antialiasing to do when rendering text or shapes.

CAIRO_ANTIALIAS_DEFAULT

Enumerator:
DEFAULT 
DEFAULT 
DEFAULT 
DEFAULT 
NONE 
NONE 
NONE 
GRAY 
SUBPIXEL 

enum gtkc::cairoLibtypes::cairo_fill_rule_t

cairo_fill_rule_t is used to select how paths are filled.

For both fill rules, whether or not a point is included in the fill is determined by taking a ray from that point to infinity and looking at 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 intersection such as intersecting tangent to the path. (Note that filling is not actually implemented in this way. This is just a description of the rule that is applied.) New entries may be added in future versions. CAIRO_FILL_RULE_WINDING

Enumerator:
WINDING 
EVEN_ODD 

enum gtkc::cairoLibtypes::cairo_line_cap_t

enumeration for style of line-endings CAIRO_LINE_CAP_BUTT

Enumerator:
BUTT 
ROUND 
ROUND 
SQUARE 

enum gtkc::cairoLibtypes::cairo_line_join_t

Enumerator:
MITER 
ROUND 
ROUND 
BEVEL 

enum gtkc::cairoLibtypes::cairo_operator_t

Enumerator:
CLEAR 
SOURCE 
OVER 
IN 
OUT 
ATOP 
DEST 
DEST_OVER 
DEST_IN 
DEST_OUT 
DEST_ATOP 
XOR 
ADD 
SATURATE 

enum gtkc::cairoLibtypes::cairo_path_data_type_t

Enumerator:
MOVE_TO 
LINE_TO 
CURVE_TO 
CLOSE_PATH 

enum gtkc::cairoLibtypes::cairo_font_slant_t

Enumerator:
NORMAL 
NORMAL 
ITALIC 
OBLIQUE 

enum gtkc::cairoLibtypes::cairo_font_weight_t

Enumerator:
NORMAL 
NORMAL 
BOLD 

enum gtkc::cairoLibtypes::cairo_extend_t

cairo_extend_t is used to describe how the area outside of a pattern will be drawn.

New entries may be added in future versions. CAIRO_EXTEND_NONE

Enumerator:
NONE 
NONE 
NONE 
REPEAT 
REFLECT 
PAD 

enum gtkc::cairoLibtypes::cairo_filter_t

Enumerator:
FAST 
GOOD 
BEST 
NEAREST 
BILINEAR 
GAUSSIAN 

enum gtkc::cairoLibtypes::cairo_pattern_type_t

cairo_pattern_type_t is used to describe the type of a given pattern.

The type of a pattern is determined by the function used to create it. The cairo_pattern_create_rgb() and cairo_pattern_create_rgba() functions create SOLID patterns. The remaining cairo_pattern_create functions map to pattern types in obvious ways. The pattern type can be queried with cairo_pattern_get_type() Most cairo_pattern functions can be called with a pattern of any type, (though trying to change the extend or filter for a solid pattern will have no effect). A notable exception is cairo_pattern_add_color_stop_rgb() and cairo_pattern_add_color_stop_rgba() which must only be called with gradient patterns (either LINEAR or RADIAL). Otherwise the pattern will be shutdown and put into an error state. New entries may be added in future versions. CAIRO_PATTERN_TYPE_SOLID

Enumerator:
SOLID 
SURFACE 
LINEAR 
RADIAL 

enum gtkc::cairoLibtypes::cairo_font_type_t

cairo_font_type_t is used to describe the type of a given font face or scaled font.

The font types are also known as "font backends" within cairo. The type of a font face is determined by the function used to create it, which will generally be of the form cairo_type_font_face_create. The font face type can be queried with cairo_font_face_get_type() The various cairo_font_face functions can be used with a font face of any type. The type of a scaled font is determined by the type of the font face passed to cairo_scaled_font_create. The scaled font type can be queried with cairo_scaled_font_get_type() The various cairo_scaled_font functions can be used with scaled fonts of any type, but some font backends also provide type-specific functions that must only be called with a scaled font of the appropriate type. These functions have names that begin with cairo_type_scaled_font such as cairo_ft_scaled_font_lock_face. The behavior of calling a type-specific function with a scaled font of the wrong type is undefined. New entries may be added in future versions. CAIRO_FONT_TYPE_TOY

Enumerator:
TOY 
FT 
WIN32 
WIN32 
ATSUI 

enum gtkc::cairoLibtypes::cairo_subpixel_order_t

The subpixel order specifies the order of color elements within each pixel on the display device when rendering with an antialiasing mode of CAIRO_ANTIALIAS_SUBPIXEL.

CAIRO_SUBPIXEL_ORDER_DEFAULT

Enumerator:
DEFAULT 
DEFAULT 
DEFAULT 
DEFAULT 
RGB 
BGR 
VRGB 
VBGR 

enum gtkc::cairoLibtypes::cairo_hint_style_t

Specifies the type of hinting to do on font outlines.

Hinting is the process of fitting outlines to the pixel grid in order to improve the appearance of the result. Since hinting outlines involves distorting them, it also reduces the faithfulness to the original outline shapes. Not all of the outline hinting styles are supported by all font backends. New entries may be added in future versions. CAIRO_HINT_STYLE_DEFAULT

Enumerator:
DEFAULT 
DEFAULT 
DEFAULT 
DEFAULT 
NONE 
NONE 
NONE 
SLIGHT 
MEDIUM 
FULL 

enum gtkc::cairoLibtypes::cairo_hint_metrics_t

Specifies whether to hint font metrics; hinting font metrics means quantizing them so that they are integer values in device space.

Doing this improves the consistency of letter and line spacing, however it also means that text will be laid out differently at different zoom factors. CAIRO_HINT_METRICS_DEFAULT

Enumerator:
DEFAULT 
DEFAULT 
DEFAULT 
DEFAULT 
OFF 
ON 

enum gtkc::cairoLibtypes::cairo_content_t

cairo_content_t is used to describe the content that a surface will contain, whether color information, alpha information (translucence vs.

opacity), or both. Note: The large values here are designed to keep cairo_content_t values distinct from cairo_format_t values so that the implementation can detect the error if users confuse the two types. CAIRO_CONTENT_COLOR

Enumerator:
COLOR 
ALPHA 
COLOR_ALPHA 

enum gtkc::cairoLibtypes::cairo_surface_type_t

cairo_surface_type_t is used to describe the type of a given surface.

The surface types are also known as "backends" or "surface backends" within cairo. The type of a surface is determined by the function used to create it, which will generally be of the form cairo_type_surface_create, (though see cairo_surface_create_similar as well). The surface type can be queried with cairo_surface_get_type() The various cairo_surface functions can be used with surfaces of any type, but some backends also provide type-specific functions that must only be called with a surface of the appropriate type. These functions have names that begin with cairo_type_surface such as cairo_image_surface_get_width(). The behavior of calling a type-specific function with a surface of the wrong type is undefined. New entries may be added in future versions. CAIRO_SURFACE_TYPE_IMAGE

Enumerator:
IMAGE 
PDF 
PS 
XLIB 
XCB 
GLITZ 
QUARTZ 
WIN32 
WIN32 
BEOS 
DIRECTFB 
SVG 

enum gtkc::cairoLibtypes::cairo_format_t

cairo_format_t is used to identify the memory format of image data.

New entries may be added in future versions. CAIRO_FORMAT_ARGB32

Enumerator:
ARGB32 
RGB24 
A8 
A1 
RGB16_565 

enum gtkc::cairoLibtypes::cairo_status_t

cairo_status_t is used to indicate errors that can occur when using Cairo.

In some cases it is returned directly by functions. but when using cairo_t, the last error, if any, is stored in the context and can be retrieved with cairo_status(). New entries may be added in future versions. Use cairo_status_to_string() to get a human-readable representation of an error message. CAIRO_STATUS_SUCCESS

Enumerator:
SUCCESS 
NO_MEMORY 
INVALID_RESTORE 
INVALID_POP_GROUP 
NO_CURRENT_POINT 
INVALID_MATRIX 
INVALID_STATUS 
NULL_POINTER 
INVALID_STRING 
INVALID_PATH_DATA 
READ_ERROR 
WRITE_ERROR 
SURFACE_FINISHED 
SURFACE_TYPE_MISMATCH 
PATTERN_TYPE_MISMATCH 
INVALID_CONTENT 
INVALID_FORMAT 
INVALID_VISUAL 
FILE_NOT_FOUND 
INVALID_DASH 
INVALID_DSC_COMMENT 


Function Documentation

typedef gtkc.cairoLibtypes.extern (  ) 


Variable Documentation

alias void* gtkc::cairoLibtypes.HDC

alias ubyte gtkc::cairoLibtypes.uchar

alias int gtkc::cairoLibtypes.cairo_bool_t

typedef int cairo_bool_t; cairo_bool_t is used for boolean values.

Returns of type cairo_bool_t will always be either 0 or 1, but testing against these values explicitly is not encouraged; just use the value as a boolean condition.


SourceForge.net Logo DSource.org Logo digitalmars.com Logo