| 1 | /* GDK - The GIMP Drawing Kit |
| 2 | * |
| 3 | * This library is free software; you can redistribute it and/or |
| 4 | * modify it under the terms of the GNU Lesser General Public |
| 5 | * License as published by the Free Software Foundation; either |
| 6 | * version 2 of the License, or (at your option) any later version. |
| 7 | * |
| 8 | * This library is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 | * Lesser General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Lesser General Public |
| 14 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __GDK_DRAWING_CONTEXT_H__ |
| 18 | #define __GDK_DRAWING_CONTEXT_H__ |
| 19 | |
| 20 | #if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION) |
| 21 | #error "Only <gdk/gdk.h> can be included directly." |
| 22 | #endif |
| 23 | |
| 24 | #include <gdk/gdkversionmacros.h> |
| 25 | #include <gdk/gdktypes.h> |
| 26 | |
| 27 | G_BEGIN_DECLS |
| 28 | |
| 29 | #define GDK_TYPE_DRAWING_CONTEXT (gdk_drawing_context_get_type ()) |
| 30 | |
| 31 | #define GDK_DRAWING_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_DRAWING_CONTEXT, GdkDrawingContext)) |
| 32 | #define GDK_IS_DRAWING_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_DRAWING_CONTEXT)) |
| 33 | |
| 34 | typedef struct _GdkDrawingContext GdkDrawingContext; |
| 35 | typedef struct _GdkDrawingContextClass GdkDrawingContextClass; |
| 36 | |
| 37 | GDK_AVAILABLE_IN_3_22 |
| 38 | GType gdk_drawing_context_get_type (void) G_GNUC_CONST; |
| 39 | |
| 40 | GDK_AVAILABLE_IN_3_22 |
| 41 | GdkWindow * gdk_drawing_context_get_window (GdkDrawingContext *context); |
| 42 | GDK_AVAILABLE_IN_3_22 |
| 43 | cairo_region_t *gdk_drawing_context_get_clip (GdkDrawingContext *context); |
| 44 | |
| 45 | GDK_AVAILABLE_IN_3_22 |
| 46 | gboolean gdk_drawing_context_is_valid (GdkDrawingContext *context); |
| 47 | |
| 48 | GDK_AVAILABLE_IN_3_22 |
| 49 | cairo_t * gdk_drawing_context_get_cairo_context (GdkDrawingContext *context); |
| 50 | |
| 51 | G_END_DECLS |
| 52 | |
| 53 | #endif /* __GDK_DRAWING_CONTEXT_H__ */ |
| 54 | |