|
Packit Service |
fb6fa5 |
/* GDK - The GIMP Drawing Kit
|
|
Packit Service |
fb6fa5 |
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
fb6fa5 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
fb6fa5 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
fb6fa5 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
fb6fa5 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
fb6fa5 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
fb6fa5 |
* Lesser General Public License for more details.
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
fb6fa5 |
* License along with this library; if not, write to the
|
|
Packit Service |
fb6fa5 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit Service |
fb6fa5 |
* Boston, MA 02111-1307, USA.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/*
|
|
Packit Service |
fb6fa5 |
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
Packit Service |
fb6fa5 |
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
Packit Service |
fb6fa5 |
* files for a list of changes. These files are distributed with
|
|
Packit Service |
fb6fa5 |
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#ifndef __GDK_WINDOW_IMPL_H__
|
|
Packit Service |
fb6fa5 |
#define __GDK_WINDOW_IMPL_H__
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#include <gdk/gdkwindow.h>
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
G_BEGIN_DECLS
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#define GDK_TYPE_WINDOW_IMPL (gdk_window_impl_get_type ())
|
|
Packit Service |
fb6fa5 |
#define GDK_WINDOW_IMPL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_WINDOW_IMPL, GdkWindowImpl))
|
|
Packit Service |
fb6fa5 |
#define GDK_IS_WINDOW_IMPL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_WINDOW_IMPL))
|
|
Packit Service |
fb6fa5 |
#define GDK_WINDOW_IMPL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GDK_TYPE_WINDOW_IMPL, GdkWindowImplIface))
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
typedef struct _GdkWindowImpl GdkWindowImpl; /* dummy */
|
|
Packit Service |
fb6fa5 |
typedef struct _GdkWindowImplIface GdkWindowImplIface;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
struct _GdkWindowImplIface
|
|
Packit Service |
fb6fa5 |
{
|
|
Packit Service |
fb6fa5 |
GTypeInterface g_iface;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void (* show) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
gboolean already_mapped);
|
|
Packit Service |
fb6fa5 |
void (* hide) (GdkWindow *window);
|
|
Packit Service |
fb6fa5 |
void (* withdraw) (GdkWindow *window);
|
|
Packit Service |
fb6fa5 |
void (* raise) (GdkWindow *window);
|
|
Packit Service |
fb6fa5 |
void (* lower) (GdkWindow *window);
|
|
Packit Service |
fb6fa5 |
void (* restack_under) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
GList *native_siblings);
|
|
Packit Service |
fb6fa5 |
void (* restack_toplevel) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
GdkWindow *sibling,
|
|
Packit Service |
fb6fa5 |
gboolean above);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void (* move_resize) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
gboolean with_move,
|
|
Packit Service |
fb6fa5 |
gint x,
|
|
Packit Service |
fb6fa5 |
gint y,
|
|
Packit Service |
fb6fa5 |
gint width,
|
|
Packit Service |
fb6fa5 |
gint height);
|
|
Packit Service |
fb6fa5 |
void (* set_background) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
const GdkColor *color);
|
|
Packit Service |
fb6fa5 |
void (* set_back_pixmap) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
GdkPixmap *pixmap);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GdkEventMask (* get_events) (GdkWindow *window);
|
|
Packit Service |
fb6fa5 |
void (* set_events) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
GdkEventMask event_mask);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gboolean (* reparent) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
GdkWindow *new_parent,
|
|
Packit Service |
fb6fa5 |
gint x,
|
|
Packit Service |
fb6fa5 |
gint y);
|
|
Packit Service |
fb6fa5 |
void (* clear_region) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
GdkRegion *region,
|
|
Packit Service |
fb6fa5 |
gboolean send_expose);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void (* set_cursor) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
GdkCursor *cursor);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void (* get_geometry) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
gint *x,
|
|
Packit Service |
fb6fa5 |
gint *y,
|
|
Packit Service |
fb6fa5 |
gint *width,
|
|
Packit Service |
fb6fa5 |
gint *height,
|
|
Packit Service |
fb6fa5 |
gint *depth);
|
|
Packit Service |
fb6fa5 |
gint (* get_root_coords) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
gint x,
|
|
Packit Service |
fb6fa5 |
gint y,
|
|
Packit Service |
fb6fa5 |
gint *root_x,
|
|
Packit Service |
fb6fa5 |
gint *root_y);
|
|
Packit Service |
fb6fa5 |
gint (* get_deskrelative_origin) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
gint *x,
|
|
Packit Service |
fb6fa5 |
gint *y);
|
|
Packit Service |
fb6fa5 |
gboolean (* get_pointer) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
gint *x,
|
|
Packit Service |
fb6fa5 |
gint *y,
|
|
Packit Service |
fb6fa5 |
GdkModifierType *mask);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void (* shape_combine_region) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
const GdkRegion *shape_region,
|
|
Packit Service |
fb6fa5 |
gint offset_x,
|
|
Packit Service |
fb6fa5 |
gint offset_y);
|
|
Packit Service |
fb6fa5 |
void (* input_shape_combine_region) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
const GdkRegion *shape_region,
|
|
Packit Service |
fb6fa5 |
gint offset_x,
|
|
Packit Service |
fb6fa5 |
gint offset_y);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gboolean (* set_static_gravities) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
gboolean use_static);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Called before processing updates for a window. This gives the windowing
|
|
Packit Service |
fb6fa5 |
* layer a chance to save the region for later use in avoiding duplicate
|
|
Packit Service |
fb6fa5 |
* exposes. The return value indicates whether the function has a saved
|
|
Packit Service |
fb6fa5 |
* the region; if the result is TRUE, then the windowing layer is responsible
|
|
Packit Service |
fb6fa5 |
* for destroying the region later.
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
gboolean (* queue_antiexpose) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
GdkRegion *update_area);
|
|
Packit Service |
fb6fa5 |
void (* queue_translation) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
GdkGC *gc,
|
|
Packit Service |
fb6fa5 |
GdkRegion *area,
|
|
Packit Service |
fb6fa5 |
gint dx,
|
|
Packit Service |
fb6fa5 |
gint dy);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Called to do the windowing system specific part of gdk_window_destroy(),
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* window: The window being destroyed
|
|
Packit Service |
fb6fa5 |
* recursing: If TRUE, then this is being called because a parent
|
|
Packit Service |
fb6fa5 |
* was destroyed. This generally means that the call to the windowing system
|
|
Packit Service |
fb6fa5 |
* to destroy the window can be omitted, since it will be destroyed as a result
|
|
Packit Service |
fb6fa5 |
* of the parent being destroyed. Unless @foreign_destroy
|
|
Packit Service |
fb6fa5 |
*
|
|
Packit Service |
fb6fa5 |
* foreign_destroy: If TRUE, the window or a parent was destroyed by some external
|
|
Packit Service |
fb6fa5 |
* agency. The window has already been destroyed and no windowing
|
|
Packit Service |
fb6fa5 |
* system calls should be made. (This may never happen for some
|
|
Packit Service |
fb6fa5 |
* windowing systems.)
|
|
Packit Service |
fb6fa5 |
*/
|
|
Packit Service |
fb6fa5 |
void (* destroy) (GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
gboolean recursing,
|
|
Packit Service |
fb6fa5 |
gboolean foreign_destroy);
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
void (* input_window_destroy) (GdkWindow *window);
|
|
Packit Service |
fb6fa5 |
void (* input_window_crossing)(GdkWindow *window,
|
|
Packit Service |
fb6fa5 |
gboolean enter);
|
|
Packit Service |
fb6fa5 |
gboolean supports_native_bg;
|
|
Packit Service |
fb6fa5 |
};
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* Interface Functions */
|
|
Packit Service |
fb6fa5 |
GType gdk_window_impl_get_type (void) G_GNUC_CONST;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
/* private definitions from gdkwindow.h */
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
struct _GdkWindowRedirect
|
|
Packit Service |
fb6fa5 |
{
|
|
Packit Service |
fb6fa5 |
GdkWindowObject *redirected;
|
|
Packit Service |
fb6fa5 |
GdkDrawable *pixmap;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
gint src_x;
|
|
Packit Service |
fb6fa5 |
gint src_y;
|
|
Packit Service |
fb6fa5 |
gint dest_x;
|
|
Packit Service |
fb6fa5 |
gint dest_y;
|
|
Packit Service |
fb6fa5 |
gint width;
|
|
Packit Service |
fb6fa5 |
gint height;
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
GdkRegion *damage;
|
|
Packit Service |
fb6fa5 |
guint damage_idle;
|
|
Packit Service |
fb6fa5 |
};
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
G_END_DECLS
|
|
Packit Service |
fb6fa5 |
|
|
Packit Service |
fb6fa5 |
#endif /* __GDK_WINDOW_IMPL_H__ */
|