Graphviz 13.0.0~dev.20250424.1043
Loading...
Searching...
No Matches
gvtextlayout_quartz.c File Reference
#include "config.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <TargetConditionals.h>
#include <gvc/gvplugin_textlayout.h>
#include "gvplugin_quartz.h"
Include dependency graph for gvtextlayout_quartz.c:

Go to the source code of this file.

Functions

void * quartz_new_layout (char *fontname, double fontsize, char *text)
 
void quartz_size_layout (void *layout, double *width, double *height, double *yoffset_layout)
 
void quartz_draw_layout (void *layout, CGContextRef context, CGPoint position)
 
void quartz_free_layout (void *layout)
 
static bool quartz_textlayout (textspan_t *para, char **fontpath)
 

Variables

static gvtextlayout_engine_t quartz_textlayout_engine
 
gvplugin_installed_t gvtextlayout_quartz_types []
 

Function Documentation

◆ quartz_draw_layout()

void quartz_draw_layout ( void *  layout,
CGContextRef  context,
CGPoint  position 
)

Definition at line 70 of file gvtextlayout_quartz.c.

References layout(), position::x, and position::y.

Referenced by quartzgen_textspan().

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

◆ quartz_free_layout()

void quartz_free_layout ( void *  layout)

Definition at line 76 of file gvtextlayout_quartz.c.

References layout().

Referenced by quartz_textlayout(), and quartzgen_textspan().

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

◆ quartz_new_layout()

void * quartz_new_layout ( char *  fontname,
double  fontsize,
char *  text 
)

Definition at line 25 of file gvtextlayout_quartz.c.

References font, and NULL.

Referenced by quartz_textlayout(), and quartzgen_textspan().

Here is the caller graph for this function:

◆ quartz_size_layout()

void quartz_size_layout ( void *  layout,
double *  width,
double *  height,
double *  yoffset_layout 
)

Definition at line 58 of file gvtextlayout_quartz.c.

References layout().

Referenced by quartz_textlayout().

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

◆ quartz_textlayout()

static bool quartz_textlayout ( textspan_t para,
char **  fontpath 
)
static

Definition at line 82 of file gvtextlayout_quartz.c.

References textspan_t::font, textspan_t::free_layout, textspan_t::layout, textfont_t::name, quartz_free_layout(), quartz_new_layout(), quartz_size_layout(), textfont_t::size, textspan_t::size, textspan_t::str, 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

◆ gvtextlayout_quartz_types

gvplugin_installed_t gvtextlayout_quartz_types[]
Initial value:
= {
{0, "textlayout", 8, &quartz_textlayout_engine, NULL},
{0, NULL, 0, NULL, NULL}
}
node NULL
Definition grammar.y:163
static gvtextlayout_engine_t quartz_textlayout_engine

Definition at line 104 of file gvtextlayout_quartz.c.

◆ quartz_textlayout_engine

gvtextlayout_engine_t quartz_textlayout_engine
static
Initial value:
= {
}
static bool quartz_textlayout(textspan_t *para, char **fontpath)

Definition at line 100 of file gvtextlayout_quartz.c.