2008-07-01 22:57:50 +00:00
|
|
|
/* GDK - The GIMP Drawing Kit
|
2008-06-27 14:27:44 +00:00
|
|
|
* 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/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GDK_WINDOW_IMPL_H__
|
|
|
|
#define __GDK_WINDOW_IMPL_H__
|
|
|
|
|
|
|
|
#include <gdk/gdkwindow.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GDK_TYPE_WINDOW_IMPL (gdk_window_impl_get_type ())
|
|
|
|
#define GDK_WINDOW_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_WINDOW_IMPL, GdkWindowImpl))
|
|
|
|
#define GDK_IS_WINDOW_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_WINDOW_IMPL))
|
|
|
|
#define GDK_WINDOW_IMPL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GDK_TYPE_WINDOW_IMPL, GdkWindowImplIface))
|
|
|
|
|
|
|
|
typedef struct _GdkWindowImpl GdkWindowImpl; /* dummy */
|
|
|
|
typedef struct _GdkWindowImplIface GdkWindowImplIface;
|
|
|
|
|
|
|
|
struct _GdkWindowImplIface
|
|
|
|
{
|
|
|
|
GTypeInterface g_iface;
|
|
|
|
|
2009-06-16 19:34:37 +00:00
|
|
|
void (* show) (GdkWindow *window,
|
|
|
|
gboolean already_mapped);
|
2008-06-27 14:27:44 +00:00
|
|
|
void (* hide) (GdkWindow *window);
|
|
|
|
void (* withdraw) (GdkWindow *window);
|
|
|
|
void (* raise) (GdkWindow *window);
|
|
|
|
void (* lower) (GdkWindow *window);
|
2009-01-19 11:47:38 +00:00
|
|
|
void (* restack_under) (GdkWindow *window,
|
|
|
|
GList *native_siblings);
|
2008-06-27 14:27:44 +00:00
|
|
|
|
|
|
|
void (* move_resize) (GdkWindow *window,
|
|
|
|
gboolean with_move,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
void (* set_background) (GdkWindow *window,
|
|
|
|
const GdkColor *color);
|
|
|
|
void (* set_back_pixmap) (GdkWindow *window,
|
2008-07-18 13:03:42 +00:00
|
|
|
GdkPixmap *pixmap);
|
2008-06-27 14:27:44 +00:00
|
|
|
|
|
|
|
GdkEventMask (* get_events) (GdkWindow *window);
|
|
|
|
void (* set_events) (GdkWindow *window,
|
|
|
|
GdkEventMask event_mask);
|
|
|
|
|
|
|
|
gboolean (* reparent) (GdkWindow *window,
|
|
|
|
GdkWindow *new_parent,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
|
|
|
|
void (* set_cursor) (GdkWindow *window,
|
|
|
|
GdkCursor *cursor);
|
|
|
|
|
|
|
|
void (* get_geometry) (GdkWindow *window,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
gint *width,
|
|
|
|
gint *height,
|
|
|
|
gint *depth);
|
2009-06-08 15:03:47 +00:00
|
|
|
gint (* get_root_coords) (GdkWindow *window,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint *root_x,
|
|
|
|
gint *root_y);
|
2008-12-06 21:43:01 +00:00
|
|
|
gint (* get_deskrelative_origin) (GdkWindow *window,
|
|
|
|
gint *x,
|
|
|
|
gint *y);
|
2009-06-04 17:21:20 +00:00
|
|
|
gboolean (* get_pointer) (GdkWindow *window,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
GdkModifierType *mask);
|
2008-06-27 14:27:44 +00:00
|
|
|
|
|
|
|
void (* shape_combine_region) (GdkWindow *window,
|
|
|
|
const GdkRegion *shape_region,
|
|
|
|
gint offset_x,
|
|
|
|
gint offset_y);
|
2008-12-17 10:24:46 +00:00
|
|
|
void (* input_shape_combine_region) (GdkWindow *window,
|
|
|
|
const GdkRegion *shape_region,
|
|
|
|
gint offset_x,
|
|
|
|
gint offset_y);
|
2008-06-27 14:27:44 +00:00
|
|
|
|
|
|
|
gboolean (* set_static_gravities) (GdkWindow *window,
|
|
|
|
gboolean use_static);
|
2008-07-18 13:03:42 +00:00
|
|
|
|
|
|
|
/* Called before processing updates for a window. This gives the windowing
|
|
|
|
* layer a chance to save the region for later use in avoiding duplicate
|
|
|
|
* exposes. The return value indicates whether the function has a saved
|
|
|
|
* the region; if the result is TRUE, then the windowing layer is responsible
|
|
|
|
* for destroying the region later.
|
|
|
|
*/
|
|
|
|
gboolean (* queue_antiexpose) (GdkWindow *window,
|
|
|
|
GdkRegion *update_area);
|
2008-12-15 13:55:53 +00:00
|
|
|
void (* queue_translation) (GdkWindow *window,
|
|
|
|
GdkRegion *area,
|
|
|
|
gint dx,
|
|
|
|
gint dy);
|
2008-12-15 14:04:44 +00:00
|
|
|
|
|
|
|
/* Called to do the windowing system specific part of gdk_window_destroy(),
|
|
|
|
*
|
|
|
|
* window: The window being destroyed
|
|
|
|
* recursing: If TRUE, then this is being called because a parent
|
|
|
|
* was destroyed. This generally means that the call to the windowing system
|
|
|
|
* to destroy the window can be omitted, since it will be destroyed as a result
|
|
|
|
* of the parent being destroyed. Unless @foreign_destroy
|
|
|
|
*
|
|
|
|
* foreign_destroy: If TRUE, the window or a parent was destroyed by some external
|
|
|
|
* agency. The window has already been destroyed and no windowing
|
|
|
|
* system calls should be made. (This may never happen for some
|
|
|
|
* windowing systems.)
|
|
|
|
*/
|
|
|
|
void (* destroy) (GdkWindow *window,
|
|
|
|
gboolean recursing,
|
|
|
|
gboolean foreign_destroy);
|
2009-05-29 14:39:12 +00:00
|
|
|
|
|
|
|
void (* input_window_destroy) (GdkWindow *window);
|
|
|
|
void (* input_window_crossing)(GdkWindow *window,
|
|
|
|
gboolean enter);
|
2008-06-27 14:27:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Interface Functions */
|
|
|
|
GType gdk_window_impl_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2008-07-18 13:03:42 +00:00
|
|
|
/* private definitions from gdkwindow.h */
|
|
|
|
|
|
|
|
struct _GdkWindowRedirect
|
|
|
|
{
|
|
|
|
GdkWindowObject *redirected;
|
|
|
|
GdkDrawable *pixmap;
|
|
|
|
|
|
|
|
gint src_x;
|
|
|
|
gint src_y;
|
|
|
|
gint dest_x;
|
|
|
|
gint dest_y;
|
|
|
|
gint width;
|
|
|
|
gint height;
|
|
|
|
|
|
|
|
GdkRegion *damage;
|
|
|
|
guint damage_idle;
|
|
|
|
};
|
|
|
|
|
2008-06-27 14:27:44 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GDK_WINDOW_IMPL_H__ */
|