Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
cairo-svg.h File Reference
#include "cairo.h"

Go to the source code of this file.

Typedefs

typedef CAIRO_BEGIN_DECLS enum _cairo_svg_version cairo_svg_version_t
 
typedef enum _cairo_svg_unit cairo_svg_unit_t
 

Enumerations

enum  _cairo_svg_version { CAIRO_SVG_VERSION_1_1 , CAIRO_SVG_VERSION_1_2 }
 
enum  _cairo_svg_unit {
  CAIRO_SVG_UNIT_USER = 0 , CAIRO_SVG_UNIT_EM , CAIRO_SVG_UNIT_EX , CAIRO_SVG_UNIT_PX ,
  CAIRO_SVG_UNIT_IN , CAIRO_SVG_UNIT_CM , CAIRO_SVG_UNIT_MM , CAIRO_SVG_UNIT_PT ,
  CAIRO_SVG_UNIT_PC , CAIRO_SVG_UNIT_PERCENT
}
 

Functions

cairo_public cairo_surface_tcairo_svg_surface_create (const char *filename, double width_in_points, double height_in_points)
 
cairo_public cairo_surface_tcairo_svg_surface_create_for_stream (cairo_write_func_t write_func, void *closure, double width_in_points, double height_in_points)
 
cairo_public void cairo_svg_surface_restrict_to_version (cairo_surface_t *surface, cairo_svg_version_t version)
 
cairo_public void cairo_svg_get_versions (cairo_svg_version_t const **versions, int *num_versions)
 
cairo_public const char * cairo_svg_version_to_string (cairo_svg_version_t version)
 
cairo_public void cairo_svg_surface_set_document_unit (cairo_surface_t *surface, cairo_svg_unit_t unit)
 
cairo_public cairo_svg_unit_t cairo_svg_surface_get_document_unit (cairo_surface_t *surface)
 

Typedef Documentation

◆ cairo_svg_unit_t

cairo_svg_unit_t: @CAIRO_SVG_UNIT_USER: User unit, a value in the current coordinate system. If used in the root element for the initial coordinate systems it corresponds to pixels. (Since 1.16) @CAIRO_SVG_UNIT_EM: The size of the element's font. (Since 1.16) @CAIRO_SVG_UNIT_EX: The x-height of the element’s font. (Since 1.16) @CAIRO_SVG_UNIT_PX: Pixels (1px = 1/96th of 1in). (Since 1.16) @CAIRO_SVG_UNIT_IN: Inches (1in = 2.54cm = 96px). (Since 1.16) @CAIRO_SVG_UNIT_CM: Centimeters (1cm = 96px/2.54). (Since 1.16) @CAIRO_SVG_UNIT_MM: Millimeters (1mm = 1/10th of 1cm). (Since 1.16) @CAIRO_SVG_UNIT_PT: Points (1pt = 1/72th of 1in). (Since 1.16) @CAIRO_SVG_UNIT_PC: Picas (1pc = 1/6th of 1in). (Since 1.16) @CAIRO_SVG_UNIT_PERCENT: Percent, a value that is some fraction of another reference value. (Since 1.16)

cairo_svg_unit_t is used to describe the units valid for coordinates and lengths in the SVG specification.

See also:

Since: 1.16

◆ cairo_svg_version_t

cairo_svg_version_t: @CAIRO_SVG_VERSION_1_1: The version 1.1 of the SVG specification. (Since 1.2) @CAIRO_SVG_VERSION_1_2: The version 1.2 of the SVG specification. (Since 1.2)

cairo_svg_version_t is used to describe the version number of the SVG specification that a generated SVG file will conform to.

Since: 1.2

Enumeration Type Documentation

◆ _cairo_svg_unit

cairo_svg_unit_t: @CAIRO_SVG_UNIT_USER: User unit, a value in the current coordinate system. If used in the root element for the initial coordinate systems it corresponds to pixels. (Since 1.16) @CAIRO_SVG_UNIT_EM: The size of the element's font. (Since 1.16) @CAIRO_SVG_UNIT_EX: The x-height of the element’s font. (Since 1.16) @CAIRO_SVG_UNIT_PX: Pixels (1px = 1/96th of 1in). (Since 1.16) @CAIRO_SVG_UNIT_IN: Inches (1in = 2.54cm = 96px). (Since 1.16) @CAIRO_SVG_UNIT_CM: Centimeters (1cm = 96px/2.54). (Since 1.16) @CAIRO_SVG_UNIT_MM: Millimeters (1mm = 1/10th of 1cm). (Since 1.16) @CAIRO_SVG_UNIT_PT: Points (1pt = 1/72th of 1in). (Since 1.16) @CAIRO_SVG_UNIT_PC: Picas (1pc = 1/6th of 1in). (Since 1.16) @CAIRO_SVG_UNIT_PERCENT: Percent, a value that is some fraction of another reference value. (Since 1.16)

cairo_svg_unit_t is used to describe the units valid for coordinates and lengths in the SVG specification.

See also:

Since: 1.16

Enumerator
CAIRO_SVG_UNIT_USER 
CAIRO_SVG_UNIT_EM 
CAIRO_SVG_UNIT_EX 
CAIRO_SVG_UNIT_PX 
CAIRO_SVG_UNIT_IN 
CAIRO_SVG_UNIT_CM 
CAIRO_SVG_UNIT_MM 
CAIRO_SVG_UNIT_PT 
CAIRO_SVG_UNIT_PC 
CAIRO_SVG_UNIT_PERCENT 

Definition at line 82 of file cairo-svg.h.

82 {
@ CAIRO_SVG_UNIT_MM
Definition cairo-svg.h:89
@ CAIRO_SVG_UNIT_PX
Definition cairo-svg.h:86
@ CAIRO_SVG_UNIT_CM
Definition cairo-svg.h:88
@ CAIRO_SVG_UNIT_PT
Definition cairo-svg.h:90
@ CAIRO_SVG_UNIT_PERCENT
Definition cairo-svg.h:92
@ CAIRO_SVG_UNIT_PC
Definition cairo-svg.h:91
@ CAIRO_SVG_UNIT_IN
Definition cairo-svg.h:87
@ CAIRO_SVG_UNIT_EX
Definition cairo-svg.h:85
@ CAIRO_SVG_UNIT_USER
Definition cairo-svg.h:83
@ CAIRO_SVG_UNIT_EM
Definition cairo-svg.h:84
enum _cairo_svg_unit cairo_svg_unit_t

◆ _cairo_svg_version

cairo_svg_version_t: @CAIRO_SVG_VERSION_1_1: The version 1.1 of the SVG specification. (Since 1.2) @CAIRO_SVG_VERSION_1_2: The version 1.2 of the SVG specification. (Since 1.2)

cairo_svg_version_t is used to describe the version number of the SVG specification that a generated SVG file will conform to.

Since: 1.2

Enumerator
CAIRO_SVG_VERSION_1_1 
CAIRO_SVG_VERSION_1_2 

Definition at line 51 of file cairo-svg.h.

51 {
@ CAIRO_SVG_VERSION_1_1
Definition cairo-svg.h:52
@ CAIRO_SVG_VERSION_1_2
Definition cairo-svg.h:53
CAIRO_BEGIN_DECLS enum _cairo_svg_version cairo_svg_version_t

Function Documentation

◆ cairo_svg_get_versions()

cairo_public void cairo_svg_get_versions ( cairo_svg_version_t const ** versions,
int * num_versions )

◆ cairo_svg_surface_create()

cairo_public cairo_surface_t * cairo_svg_surface_create ( const char * filename,
double width_in_points,
double height_in_points )

◆ cairo_svg_surface_create_for_stream()

cairo_public cairo_surface_t * cairo_svg_surface_create_for_stream ( cairo_write_func_t write_func,
void * closure,
double width_in_points,
double height_in_points )

◆ cairo_svg_surface_get_document_unit()

cairo_public cairo_svg_unit_t cairo_svg_surface_get_document_unit ( cairo_surface_t * surface)

◆ cairo_svg_surface_restrict_to_version()

cairo_public void cairo_svg_surface_restrict_to_version ( cairo_surface_t * surface,
cairo_svg_version_t version )

◆ cairo_svg_surface_set_document_unit()

cairo_public void cairo_svg_surface_set_document_unit ( cairo_surface_t * surface,
cairo_svg_unit_t unit )

◆ cairo_svg_version_to_string()

cairo_public const char * cairo_svg_version_to_string ( cairo_svg_version_t version)