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
7
typedef
struct
{
8
gdIOCtx
ctx
;
9
GVJ_t
*
job
;
10
}
gd_context_t
;
11
12
static
inline
gd_context_t
*
get_containing_context
(gdIOCtx *ctx) {
13
return
(
gd_context_t
*)((
char
*)ctx - offsetof(
gd_context_t
, ctx));
14
}
15
16
int
gvdevice_gd_putBuf
(gdIOCtx *context,
const
void
*buffer,
int
len
);
17
18
// used by gif output
19
void
gvdevice_gd_putC
(gdIOCtx *context,
int
C
);
gvdevice_gd_putBuf
int gvdevice_gd_putBuf(gdIOCtx *context, const void *buffer, int len)
Definition
gvdevice_gd.c:24
gvdevice_gd_putC
void gvdevice_gd_putC(gdIOCtx *context, int C)
Definition
gvdevice_gd.c:33
get_containing_context
static gd_context_t * get_containing_context(gdIOCtx *ctx)
Definition
gdioctx_wrapper.h:12
len
static double len(glCompPoint p)
Definition
glutils.c:150
gvcext.h
C
#define C
Definition
pack.c:29
GVJ_s
Definition
gvcjob.h:262
gd_context_t
Definition
gdioctx_wrapper.h:7
gd_context_t::job
GVJ_t * job
Definition
gdioctx_wrapper.h:9
gd_context_t::ctx
gdIOCtx ctx
Definition
gdioctx_wrapper.h:8
plugin
gd
gdioctx_wrapper.h
Generated by
1.9.8