Graphviz 13.0.0~dev.20241220.2304
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:24
void gvdevice_gd_putC(gdIOCtx *context, int C)
Definition gvdevice_gd.c:33
static gd_context_t * get_containing_context(gdIOCtx *ctx)
static double len(glCompPoint p)
Definition glutils.c:150
#define C
Definition pack.c:29