Top | ![]() |
![]() |
![]() |
![]() |
cairo_region_t * | dzl_cairo_region_create_from_clip_extents () |
void | dzl_cairo_rounded_rectangle () |
gint | dzl_cairo_rectangle_x2 () |
gint | dzl_cairo_rectangle_y2 () |
gint | dzl_cairo_rectangle_center () |
gint | dzl_cairo_rectangle_middle () |
cairo_bool_t | dzl_cairo_rectangle_contains_rectangle () |
Cairo is the graphics library that GTK uses to draw widgets. This section contains functions for commonly used calculations with Cairo objects.
cairo_region_t *
dzl_cairo_region_create_from_clip_extents
(cairo_t *cr
);
Creates a region from the extents of the context's current clip area.
void dzl_cairo_rounded_rectangle (cairo_t *cr
,const GdkRectangle *rect
,gint x_radius
,gint y_radius
);
Adds a rounded rectangle to cr
's current path.
gint
dzl_cairo_rectangle_x2 (const cairo_rectangle_int_t *rect
);
Finds the X coordinate of the right side of a rectangle.
gint
dzl_cairo_rectangle_y2 (const cairo_rectangle_int_t *rect
);
Finds the Y coordinate of the bottom of a rectangle.
gint
dzl_cairo_rectangle_center (const cairo_rectangle_int_t *rect
);
Finds the X coordinate of the center of a rectangle.
gint
dzl_cairo_rectangle_middle (const cairo_rectangle_int_t *rect
);
Finds the Y coordinate of the center of a rectangle.