Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
gvplugin_gdiplus.cpp File Reference
#include <gvc/gvplugin.h>
#include "gvplugin_gdiplus.h"
Include dependency graph for gvplugin_gdiplus.cpp:

Go to the source code of this file.

Macros

#define GVPLUGIN_GDIPLUS_API
 

Functions

static void UnuseGdiplus ()
 
void UseGdiplus ()
 
const Gdiplus::StringFormat * GetGenericTypographic ()
 
void SaveBitmapToStream (Bitmap &bitmap, IStream *stream, int format)
 

Variables

gvplugin_installed_t gvrender_gdiplus_types []
 
gvplugin_installed_t gvtextlayout_gdiplus_types []
 
gvplugin_installed_t gvloadimage_gdiplus_types []
 
gvplugin_installed_t gvdevice_gdiplus_types []
 
gvplugin_installed_t gvdevice_gdiplus_types_for_cairo []
 
static GUID format_id []
 
static ULONG_PTR _gdiplusToken = 0
 
static gvplugin_api_t apis []
 
GVPLUGIN_GDIPLUS_API gvplugin_library_t gvplugin_gdiplus_LTX_library
 

Macro Definition Documentation

◆ GVPLUGIN_GDIPLUS_API

#define GVPLUGIN_GDIPLUS_API

Definition at line 96 of file gvplugin_gdiplus.cpp.

Function Documentation

◆ GetGenericTypographic()

const Gdiplus::StringFormat * GetGenericTypographic ( )

Definition at line 55 of file gvplugin_gdiplus.cpp.

References format.

Referenced by gdiplus_textlayout(), and gdiplusgen_textspan().

Here is the caller graph for this function:

◆ SaveBitmapToStream()

void SaveBitmapToStream ( Bitmap &  bitmap,
IStream *  stream,
int  format 
)

Definition at line 61 of file gvplugin_gdiplus.cpp.

References format, and format_id.

Referenced by gdiplus_format(), and gdiplusgen_end_job().

Here is the caller graph for this function:

◆ UnuseGdiplus()

static void UnuseGdiplus ( )
static

Definition at line 39 of file gvplugin_gdiplus.cpp.

References _gdiplusToken.

Referenced by UseGdiplus().

Here is the caller graph for this function:

◆ UseGdiplus()

void UseGdiplus ( )

Definition at line 44 of file gvplugin_gdiplus.cpp.

References _gdiplusToken, and UnuseGdiplus().

Referenced by gdiplus_format(), gdiplus_textlayout(), and gdiplusgen_begin_job().

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

Variable Documentation

◆ _gdiplusToken

ULONG_PTR _gdiplusToken = 0
static

Definition at line 37 of file gvplugin_gdiplus.cpp.

Referenced by UnuseGdiplus(), and UseGdiplus().

◆ apis

gvplugin_api_t apis[]
static
Initial value:
= {
{API_render, gvrender_gdiplus_types},
{API_textlayout, gvtextlayout_gdiplus_types},
{API_loadimage, gvloadimage_gdiplus_types},
{API_device, gvdevice_gdiplus_types},
{(api_t)0, 0},
}
api_t
Definition gvcext.h:32
gvplugin_installed_t gvdevice_gdiplus_types[]
gvplugin_installed_t gvdevice_gdiplus_types_for_cairo[]
gvplugin_installed_t gvtextlayout_gdiplus_types[]
gvplugin_installed_t gvloadimage_gdiplus_types[]
gvplugin_installed_t gvrender_gdiplus_types[]

Definition at line 80 of file gvplugin_gdiplus.cpp.

◆ format_id

GUID format_id[]
static
Initial value:
= {
GUID_NULL,
GUID_NULL,
ImageFormatBMP,
ImageFormatEMF,
ImageFormatEMF,
ImageFormatGIF,
ImageFormatJPEG,
ImageFormatPNG,
ImageFormatTIFF
}

Definition at line 25 of file gvplugin_gdiplus.cpp.

Referenced by SaveBitmapToStream().

◆ gvdevice_gdiplus_types

gvplugin_installed_t gvdevice_gdiplus_types[]
extern

Definition at line 334 of file gvrender_gdiplus.cpp.

◆ gvdevice_gdiplus_types_for_cairo

gvplugin_installed_t gvdevice_gdiplus_types_for_cairo[]
extern

Definition at line 61 of file gvdevice_gdiplus.cpp.

◆ gvloadimage_gdiplus_types

gvplugin_installed_t gvloadimage_gdiplus_types[]
extern

Definition at line 88 of file gvloadimage_gdiplus.cpp.

◆ gvplugin_gdiplus_LTX_library

GVPLUGIN_GDIPLUS_API gvplugin_library_t gvplugin_gdiplus_LTX_library
Initial value:
= {
const_cast<char*>("gdiplus"), apis
}
static gvplugin_api_t apis[]

Definition at line 99 of file gvplugin_gdiplus.cpp.

◆ gvrender_gdiplus_types

gvplugin_installed_t gvrender_gdiplus_types[]
extern

Definition at line 329 of file gvrender_gdiplus.cpp.

◆ gvtextlayout_gdiplus_types

gvplugin_installed_t gvtextlayout_gdiplus_types[]
extern

Definition at line 104 of file gvtextlayout_gdiplus.cpp.