Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gdioctx_wrapper.h
Go to the documentation of this file.
1#pragma once
2
3#include <gd.h>
4#include <gvc/gvcext.h>
5#include <stddef.h>
6
7typedef struct {
8 gdIOCtx ctx;
11
12static inline gd_context_t *get_containing_context(gdIOCtx *ctx) {
13 return (gd_context_t *)((char *)ctx - offsetof(gd_context_t, ctx));
14}
15
16int gvdevice_gd_putBuf(gdIOCtx *context, const void *buffer, int len);
17
18// used by gif output
19void gvdevice_gd_putC(gdIOCtx *context, int C);
int gvdevice_gd_putBuf(gdIOCtx *context, const void *buffer, int len)
Definition gvdevice_gd.c:22
void gvdevice_gd_putC(gdIOCtx *context, int C)
Definition gvdevice_gd.c:28
static gd_context_t * get_containing_context(gdIOCtx *ctx)
static double len(glCompPoint p)
Definition glutils.c:150
#define C
Definition pack.c:30