Graphviz 13.0.0~dev.20250608.0154
Loading...
Searching...
No Matches
gvdevice_gdk.c File Reference
#include <assert.h>
#include <gvc/gvplugin_device.h>
#include <gvc/gvio.h>
#include <limits.h>
#include <util/gv_math.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <util/agxbuf.h>
Include dependency graph for gvdevice_gdk.c:

Go to the source code of this file.

Enumerations

enum  {
  FORMAT_BMP , FORMAT_ICO , FORMAT_JPEG , FORMAT_PNG ,
  FORMAT_TIFF
}
 

Functions

static gboolean writer (const char *buf, gsize count, GError **error, void *data)
 
static void gdk_format (GVJ_t *job)
 

Variables

static gvdevice_engine_t gdk_engine
 
static gvdevice_features_t device_features_gdk
 
gvplugin_installed_t gvdevice_gdk_types []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FORMAT_BMP 
FORMAT_ICO 
FORMAT_JPEG 
FORMAT_PNG 
FORMAT_TIFF 

Definition at line 19 of file gvdevice_gdk.c.

Function Documentation

◆ gdk_format()

static void gdk_format ( GVJ_t job)
static

Definition at line 33 of file gvdevice_gdk.c.

References agxbfree(), agxbprint(), agxbuse(), argb2rgba(), BYTES_PER_PIXEL, GVJ_s::device, GVJ_s::dpi, FORMAT_BMP, FORMAT_ICO, FORMAT_JPEG, FORMAT_PNG, FORMAT_TIFF, GVJ_s::height, gvplugin_active_device_s::id, GVJ_s::imagedata, NULL, GVJ_s::width, writer(), pointf_s::x, and pointf_s::y.

Here is the call graph for this function:

◆ writer()

static gboolean writer ( const char *  buf,
gsize  count,
GError **  error,
void *  data 
)
static

Definition at line 27 of file gvdevice_gdk.c.

References error, and gvwrite().

Referenced by gdk_format().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ device_features_gdk

gvdevice_features_t device_features_gdk
static
Initial value:
= {
{0.,0.},
{0.,0.},
{96.,96.},
}
#define GVDEVICE_DOES_TRUECOLOR
Definition gvcjob.h:90
#define GVDEVICE_BINARY_FORMAT
Definition gvcjob.h:91

Definition at line 84 of file gvdevice_gdk.c.

◆ gdk_engine

gvdevice_engine_t gdk_engine
static
Initial value:
= {
NULL,
NULL,
}
node NULL
Definition grammar.y:180
static void gdk_format(GVJ_t *job)

Definition at line 78 of file gvdevice_gdk.c.

◆ gvdevice_gdk_types

gvplugin_installed_t gvdevice_gdk_types[]
Initial value:
= {
{FORMAT_BMP, "bmp:cairo", 6, &gdk_engine, &device_features_gdk},
{FORMAT_ICO, "ico:cairo", 6, &gdk_engine, &device_features_gdk},
{FORMAT_JPEG, "jpeg:cairo", 6, &gdk_engine, &device_features_gdk},
{FORMAT_PNG, "png:cairo", 6, &gdk_engine, &device_features_gdk},
{FORMAT_TIFF, "tiff:cairo", 6, &gdk_engine, &device_features_gdk},
{0, NULL, 0, NULL, NULL}
}
static gvdevice_engine_t gdk_engine
static gvdevice_features_t device_features_gdk
@ FORMAT_ICO
@ FORMAT_JPEG
@ FORMAT_TIFF
@ FORMAT_BMP
@ FORMAT_PNG

Definition at line 92 of file gvdevice_gdk.c.