libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
acfutils
cairo_utils.h
Go to the documentation of this file.
1
/*
2
* CDDL HEADER START
3
*
4
* The contents of this file are subject to the terms of the
5
* Common Development and Distribution License, Version 1.0 only
6
* (the "License"). You may not use this file except in compliance
7
* with the License.
8
*
9
* You can obtain a copy of the license in the file COPYING
10
* or http://www.opensource.org/licenses/CDDL-1.0.
11
* See the License for the specific language governing permissions
12
* and limitations under the License.
13
*
14
* When distributing Covered Code, include this CDDL HEADER in each
15
* file and include the License file COPYING.
16
* If applicable, add the following below this CDDL HEADER, with the
17
* fields enclosed by brackets "[]" replaced with your own identifying
18
* information: Portions Copyright [yyyy] [name of copyright owner]
19
*
20
* CDDL HEADER END
21
*/
22
/*
23
* Copyright 2023 Saso Kiselkov. All rights reserved.
24
*/
30
#ifndef _ACF_UTILS_CAIRO_UTILS_H_
31
#define _ACF_UTILS_CAIRO_UTILS_H_
32
33
#include <cairo.h>
34
35
#include "
core.h
"
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
40
45
#define CAIRO_SURFACE_DESTROY(surf) \
46
do {\
47
if ((surf) != NULL) { \
48
cairo_surface_destroy((surf)); \
49
(surf) = NULL; \
50
} \
51
} while (0)
52
54
#define mt_cairo_render_rounded_rectangle cairo_utils_rounded_rect
64
API_EXPORT
void
cairo_utils_rounded_rect
(cairo_t *cr,
double
x,
double
y,
65
double
w,
double
h,
double
radius);
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* _ACF_UTILS_CAIRO_UTILS_H_ */
cairo_utils_rounded_rect
void cairo_utils_rounded_rect(cairo_t *cr, double x, double y, double w, double h, double radius)
Definition
cairo_utils.c:31
core.h
Generated by
1.9.8