|
libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
|

Go to the source code of this file.
Macros | |
| #define | CAIRO_SURFACE_DESTROY(surf) |
| #define | mt_cairo_render_rounded_rectangle cairo_utils_rounded_rect |
Functions | |
| void | cairo_utils_rounded_rect (cairo_t *cr, double x, double y, double w, double h, double radius) |
This file contains various utility and helper functions for cairo graphics.
Definition in file cairo_utils.h.
| #define CAIRO_SURFACE_DESTROY | ( | surf | ) |
If surf is not NULL, calls cairo_surface_destroy() on it and resets the surf pointer to NULL afterwards.
Definition at line 45 of file cairo_utils.h.
| #define mt_cairo_render_rounded_rectangle cairo_utils_rounded_rect |
For backwards compatibility with legacy apps.
Definition at line 54 of file cairo_utils.h.
| void cairo_utils_rounded_rect | ( | cairo_t * | cr, |
| double | x, | ||
| double | y, | ||
| double | w, | ||
| double | h, | ||
| double | radius | ||
| ) |
Appends a rounded rectangle to the current path. In essence operates exactly as cairo_rectangle(), except the corners can be rounded over.
| x | X coordinate origin of the rectangle. |
| y | Y coordinate origin of the rectangle. |
| w | Width of rectangle. |
| h | Height of rectangle. |
| radius | Radius of the rounded arcs comprising the corners. |
Definition at line 31 of file cairo_utils.c.