mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
90 lines
3.1 KiB
C
90 lines
3.1 KiB
C
/* GDK - The GIMP Drawing Kit
|
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
/*
|
|
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
* files for a list of changes. These files are distributed with
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
*/
|
|
|
|
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
|
#error "Only <gdk/gdk.h> can be included directly."
|
|
#endif
|
|
|
|
#ifndef __GDK_DRAWABLE_H__
|
|
#define __GDK_DRAWABLE_H__
|
|
|
|
#include <gdk/gdktypes.h>
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
|
|
#include <cairo.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _GdkDrawableClass GdkDrawableClass;
|
|
|
|
#define GDK_TYPE_DRAWABLE (gdk_drawable_get_type ())
|
|
#define GDK_DRAWABLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DRAWABLE, GdkDrawable))
|
|
#define GDK_DRAWABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DRAWABLE, GdkDrawableClass))
|
|
#define GDK_IS_DRAWABLE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DRAWABLE))
|
|
#define GDK_IS_DRAWABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DRAWABLE))
|
|
#define GDK_DRAWABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DRAWABLE, GdkDrawableClass))
|
|
|
|
struct _GdkDrawable
|
|
{
|
|
GObject parent_instance;
|
|
};
|
|
|
|
struct _GdkDrawableClass
|
|
{
|
|
GObjectClass parent_class;
|
|
|
|
cairo_region_t* (*get_clip_region) (GdkDrawable *drawable);
|
|
cairo_region_t* (*get_visible_region) (GdkDrawable *drawable);
|
|
|
|
cairo_surface_t *(*ref_cairo_surface) (GdkDrawable *drawable);
|
|
|
|
void (*set_cairo_clip) (GdkDrawable *drawable,
|
|
cairo_t *cr);
|
|
|
|
cairo_surface_t * (*create_cairo_surface) (GdkDrawable *drawable,
|
|
int width,
|
|
int height);
|
|
|
|
/* Padding for future expansion */
|
|
void (*_gdk_reserved7) (void);
|
|
void (*_gdk_reserved9) (void);
|
|
void (*_gdk_reserved10) (void);
|
|
void (*_gdk_reserved11) (void);
|
|
void (*_gdk_reserved12) (void);
|
|
void (*_gdk_reserved13) (void);
|
|
void (*_gdk_reserved14) (void);
|
|
void (*_gdk_reserved15) (void);
|
|
};
|
|
|
|
GType gdk_drawable_get_type (void) G_GNUC_CONST;
|
|
|
|
cairo_region_t *gdk_drawable_get_clip_region (GdkDrawable *drawable);
|
|
cairo_region_t *gdk_drawable_get_visible_region (GdkDrawable *drawable);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GDK_DRAWABLE_H__ */
|