|
PLplot
5.10.0
|
#include <stdio.h>#include <string.h>#include <math.h>#include <cairo.h>#include <pango/pangocairo.h>#include "plDevs.h"#include "plplotP.h"#include "drivers.h"Go to the source code of this file.
| #define FAMILY_LOOKUP_LEN 1024 |
| #define MAX_MARKUP_LEN MAX_STRING_LEN * 10 |
| #define MAX_STRING_LEN 500 |
| #define NPANGOLOOKUP 5 |
| #define PLCAIRO_DEFAULT_X 720 |
| #define PLCAIRO_DEFAULT_Y 540 |
| #define RISE_FACTOR 0.8 |
| void arc | ( | PLStream * | pls, |
| arc_struct * | arc_info | ||
| ) | [static] |
| int cairo_family_check | ( | PLStream * | pls | ) |
| void close_span_tag | ( | char * | pangoMarkupString, |
| int | upDown | ||
| ) | [static] |
| void end_raster | ( | PLStream * | pls | ) | [static] |
| void filled_polygon | ( | PLStream * | pls, |
| short * | xa, | ||
| short * | ya, | ||
| PLINT | npts | ||
| ) | [static] |
| void get_line_properties | ( | PLCairo * | aStream, |
| cairo_line_join_t * | join, | ||
| cairo_line_cap_t * | cap | ||
| ) |
| void open_span_tag | ( | char * | pangoMarkupString, |
| PLUNICODE | fci, | ||
| float | fontSize, | ||
| int | upDown | ||
| ) | [static] |
| void plD_bop_cairo | ( | PLStream * | pls | ) |
| void plD_eop_cairo | ( | PLStream * | pls | ) |
| void plD_line_cairo | ( | PLStream * | pls, |
| short | x1a, | ||
| short | y1a, | ||
| short | x2a, | ||
| short | y2a | ||
| ) |
| void plD_polyline_cairo | ( | PLStream * | pls, |
| short * | xa, | ||
| short * | ya, | ||
| PLINT | npts | ||
| ) |
| void plD_state_cairo | ( | PLStream * | , |
| PLINT | |||
| ) |
| void plD_state_cairo | ( | PLStream * | PL_UNUSEDpls, |
| PLINT | PL_UNUSEDop | ||
| ) |
| void plD_tidy_cairo | ( | PLStream * | pls | ) |
| char * rise_span_tag | ( | int | ifsuperscript, |
| float | fontSize, | ||
| float | multiplier, | ||
| float | rise | ||
| ) | [static] |
| void rotate_cairo_surface | ( | PLStream * | pls, |
| float | x11, | ||
| float | x12, | ||
| float | x21, | ||
| float | x22, | ||
| float | x0, | ||
| float | y0, | ||
| PLBOOL | is_xcairo | ||
| ) | [static] |
| void set_current_context | ( | PLStream * | pls | ) | [static] |
| void set_line_properties | ( | PLCairo * | aStream, |
| cairo_line_join_t | join, | ||
| cairo_line_cap_t | cap | ||
| ) |
| void start_raster | ( | PLStream * | pls | ) | [static] |
| PLCairo * stream_and_font_setup | ( | PLStream * | pls, |
| int | interactive | ||
| ) |
| void text_begin_cairo | ( | PLStream * | pls, |
| EscText * | args | ||
| ) | [static] |
| void text_char_cairo | ( | PLStream * | pls, |
| EscText * | args | ||
| ) | [static] |
| void text_end_cairo | ( | PLStream * | pls, |
| EscText * | args | ||
| ) | [static] |
| void text_esc_cairo | ( | PLStream * | pls, |
| EscText * | args | ||
| ) | [static] |
| char * ucs4_to_pango_markup_format | ( | PLUNICODE * | ucs4, |
| int | ucs4Len, | ||
| float | fontSize | ||
| ) | [static] |
| cairo_status_t write_to_stream | ( | void * | filePointer, |
| unsigned char * | data, | ||
| unsigned int | length | ||
| ) |
int already_warned = 0 [static] |
DrvOpt cairo_options[] [static] |
{ { "text_clipping", DRV_INT, &text_clipping, "Use text clipping (text_clipping=0|1)" },
{ "text_anti_aliasing", DRV_INT, &text_anti_aliasing, "Set desired text anti-aliasing (text_anti_aliasing=0|1|2|3). The numbers are in the same order as the cairo_antialias_t enumeration documented at http://cairographics.org/manual/cairo-cairo-t.html#cairo-antialias-t)" },
{ "graphics_anti_aliasing", DRV_INT, &graphics_anti_aliasing, "Set desired graphics anti-aliasing (graphics_anti_aliasing=0|1|2|3). The numbers are in the same order as the cairo_antialias_t enumeration documented at http://cairographics.org/manual/cairo-cairo-t.html#cairo-antialias-t" },
{ "external_drawable", DRV_INT, &external_drawable, "Plot to external X drawable" },
{ "rasterize_image", DRV_INT, &rasterize_image, "Raster or vector image rendering (rasterize_image=0|1)" },
{ "set_background", DRV_INT, &set_background, "Set the background for the extcairo device (set_background=0|1). If 1 then the plot background will set by PLplot" },
{ "image_buffering", DRV_INT, &image_buffering, "Buffered offscreen rendering for the xcairo device (image_buffering=0|1)." },
{ NULL, DRV_INT, NULL, NULL } }
| const char* defaultFamilyLookup[NPANGOLOOKUP] |
| const char* envFamilyLookup[NPANGOLOOKUP] |
int external_drawable [static] |
int graphics_anti_aliasing [static] |
int image_buffering [static] |
| PLDLLIMPEXP_DRIVER const char* plD_DEVICE_INFO_cairo |
int rasterize_image [static] |
int set_background [static] |
| const char* styleLookup[3] |
int text_anti_aliasing [static] |
int text_clipping [static] |
| const char* weightLookup[2] |