Graphviz 13.0.0~dev.20250424.1043
Loading...
Searching...
No Matches
gvplugin_quartz.h
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13#include <Availability.h>
14#include <TargetConditionals.h>
15
16#if TARGET_OS_IPHONE
17#include <CoreGraphics/CoreGraphics.h>
18#else
19#include <ApplicationServices/ApplicationServices.h>
20#endif
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
44
45static const int BYTE_ALIGN = 15; /* align to 16 bytes */
46static const int BITS_PER_COMPONENT = 8; /* bits per color component */
47
49
50extern CGDataConsumerCallbacks device_data_consumer_callbacks;
51
52/* gvtextlayout_quartz.c in Mac OS X: layout is a CoreText CTLineRef */
53
54void *quartz_new_layout(char* fontname, double fontsize, char* text);
55void quartz_size_layout(void *layout, double* width, double* height, double* yoffset_layout);
56void quartz_draw_layout(void *layout, CGContextRef context, CGPoint position);
57void quartz_free_layout(void *layout);
58
59#ifdef __cplusplus
60}
61#endif
GVIO_API const char * format
Definition gvio.h:51
void quartz_draw_layout(void *layout, CGContextRef context, CGPoint position)
void * quartz_new_layout(char *fontname, double fontsize, char *text)
static const int BYTE_ALIGN
void quartz_size_layout(void *layout, double *width, double *height, double *yoffset_layout)
static const int BITS_PER_COMPONENT
format_type
@ FORMAT_ICO
@ FORMAT_JPEG
@ FORMAT_PICT
@ FORMAT_TIFF
@ FORMAT_CGIMAGE
@ FORMAT_EXR
@ FORMAT_JPEG2000
@ FORMAT_NONE
@ FORMAT_PDF
@ FORMAT_BMP
@ FORMAT_TGA
@ FORMAT_GIF
@ FORMAT_ICNS
@ FORMAT_PSD
@ FORMAT_SGI
@ FORMAT_PNG
void quartz_free_layout(void *layout)
CGDataConsumerCallbacks device_data_consumer_callbacks
CFStringRef format_to_uti(format_type format)
format_type
static int layout(graph_t *g, layout_info *infop)
Definition layout.c:814