Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gvtextlayout_gdiplus.cpp File Reference
#include "config.h"
#include <memory>
#include <stdlib.h>
#include <string.h>
#include <gvc/gvplugin_textlayout.h>
#include "gvplugin_gdiplus.h"
Include dependency graph for gvtextlayout_gdiplus.cpp:

Go to the source code of this file.

Functions

static int CALLBACK fetch_first_font (const LOGFONTA *logFont, const TEXTMETRICA *, DWORD, LPARAM lParam)
 
void gdiplus_free_layout (void *layout)
 
bool gdiplus_textlayout (textspan_t *span, char **)
 

Variables

static gvtextlayout_engine_t gdiplus_textlayout_engine
 
gvplugin_installed_t gvtextlayout_gdiplus_types []
 

Function Documentation

◆ fetch_first_font()

static int CALLBACK fetch_first_font ( const LOGFONTA *  logFont,
const TEXTMETRICA *  ,
DWORD  ,
LPARAM  lParam 
)
static

Definition at line 22 of file gvtextlayout_gdiplus.cpp.

Referenced by Layout::Layout().

Here is the caller graph for this function:

◆ gdiplus_free_layout()

void gdiplus_free_layout ( void *  layout)

Definition at line 60 of file gvtextlayout_gdiplus.cpp.

References layout().

Referenced by gdiplus_textlayout(), and gdiplusgen_textspan().

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

◆ gdiplus_textlayout()

bool gdiplus_textlayout ( textspan_t span,
char **   
)

Definition at line 66 of file gvtextlayout_gdiplus.cpp.

References textspan_t::font, textspan_t::free_layout, gdiplus_free_layout(), GetGenericTypographic(), DeviceContext::hdc, textspan_t::layout, layout(), textfont_t::name, textfont_t::size, textspan_t::size, textspan_t::str, UseGdiplus(), pointf_s::x, pointf_s::y, textspan_t::yoffset_centerline, and textspan_t::yoffset_layout.

Here is the call graph for this function:

Variable Documentation

◆ gdiplus_textlayout_engine

gvtextlayout_engine_t gdiplus_textlayout_engine
static
Initial value:
= {
}
bool gdiplus_textlayout(textspan_t *span, char **)

Definition at line 100 of file gvtextlayout_gdiplus.cpp.

◆ gvtextlayout_gdiplus_types

gvplugin_installed_t gvtextlayout_gdiplus_types[]
Initial value:
= {
{0, "textlayout", 8, &gdiplus_textlayout_engine, nullptr},
{0, nullptr, 0, nullptr, nullptr}
}
static gvtextlayout_engine_t gdiplus_textlayout_engine

Definition at line 104 of file gvtextlayout_gdiplus.cpp.