Blame gtk/gtkplugprivate.h

Packit 98cdb6
/* GTK - The GIMP Toolkit
Packit 98cdb6
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
Packit 98cdb6
 *
Packit 98cdb6
 * This library is free software; you can redistribute it and/or
Packit 98cdb6
 * modify it under the terms of the GNU Lesser General Public
Packit 98cdb6
 * License as published by the Free Software Foundation; either
Packit 98cdb6
 * version 2 of the License, or (at your option) any later version.
Packit 98cdb6
 *
Packit 98cdb6
 * This library is distributed in the hope that it will be useful,
Packit 98cdb6
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 98cdb6
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 98cdb6
 * Lesser General Public License for more details.
Packit 98cdb6
 *
Packit 98cdb6
 * You should have received a copy of the GNU Lesser General Public
Packit 98cdb6
 * License along with this library; if not, write to the Free
Packit 98cdb6
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
Packit 98cdb6
 * file for a list of people on the GTK+ Team.  See the ChangeLog
Packit 98cdb6
 * files for a list of changes.  These files are distributed with
Packit 98cdb6
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
#ifndef __GTK_PLUG_PRIVATE_H__
Packit 98cdb6
#define __GTK_PLUG_PRIVATE_H__
Packit 98cdb6
Packit 98cdb6
/* In gtkplug.c: */
Packit 98cdb6
void _gtk_plug_send_delete_event      (GtkWidget        *widget);
Packit 98cdb6
void _gtk_plug_add_all_grabbed_keys   (GtkPlug          *plug);
Packit 98cdb6
void _gtk_plug_focus_first_last       (GtkPlug          *plug,
Packit 98cdb6
				       GtkDirectionType  direction);
Packit 98cdb6
void _gtk_plug_handle_modality_on     (GtkPlug          *plug);
Packit 98cdb6
void _gtk_plug_handle_modality_off    (GtkPlug          *plug);
Packit 98cdb6
Packit 98cdb6
/* In backend-specific file: */
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * _gtk_plug_windowing_get_id:
Packit 98cdb6
 *
Packit 98cdb6
 * @plug: a #GtkPlug
Packit 98cdb6
 *
Packit 98cdb6
 * Returns the native window system identifier for the plug's window.
Packit 98cdb6
 */
Packit 98cdb6
GdkNativeWindow _gtk_plug_windowing_get_id (GtkPlug *plug);
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * _gtk_plug_windowing_realize_toplevel:
Packit 98cdb6
 *
Packit 98cdb6
 * @plug_window: a #GtkPlug's #GdkWindow
Packit 98cdb6
 *
Packit 98cdb6
 * Called from GtkPlug's realize method. Should tell the corresponding
Packit 98cdb6
 * socket that the plug has been realized.
Packit 98cdb6
 */
Packit 98cdb6
void _gtk_plug_windowing_realize_toplevel (GtkPlug *plug);
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * _gtk_plug_windowing_map_toplevel:
Packit 98cdb6
 *
Packit 98cdb6
 * @plug: a #GtkPlug
Packit 98cdb6
 *
Packit 98cdb6
 * Called from GtkPlug's map method. Should tell the corresponding
Packit 98cdb6
 * #GtkSocket that the plug has been mapped.
Packit 98cdb6
 */
Packit 98cdb6
void _gtk_plug_windowing_map_toplevel (GtkPlug *plug);
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * _gtk_plug_windowing_map_toplevel:
Packit 98cdb6
 *
Packit 98cdb6
 * @plug: a #GtkPlug
Packit 98cdb6
 *
Packit 98cdb6
 * Called from GtkPlug's unmap method. Should tell the corresponding
Packit 98cdb6
 * #GtkSocket that the plug has been unmapped.
Packit 98cdb6
 */
Packit 98cdb6
void _gtk_plug_windowing_unmap_toplevel (GtkPlug *plug);
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * _gtk_plug_windowing_set_focus:
Packit 98cdb6
 *
Packit 98cdb6
 * @plug: a #GtkPlug
Packit 98cdb6
 *
Packit 98cdb6
 * Called from GtkPlug's set_focus method. Should tell the corresponding
Packit 98cdb6
 * #GtkSocket to request focus.
Packit 98cdb6
 */
Packit 98cdb6
void _gtk_plug_windowing_set_focus (GtkPlug *plug);
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * _gtk_plug_windowing_add_grabbed_key:
Packit 98cdb6
 *
Packit 98cdb6
 * @plug: a #GtkPlug
Packit 98cdb6
 * @accelerator_key: a key
Packit 98cdb6
 * @accelerator_mods: modifiers for it
Packit 98cdb6
 *
Packit 98cdb6
 * Called from GtkPlug's keys_changed method. Should tell the
Packit 98cdb6
 * corresponding #GtkSocket to grab the key.
Packit 98cdb6
 */
Packit 98cdb6
void _gtk_plug_windowing_add_grabbed_key (GtkPlug         *plug,
Packit 98cdb6
					  guint            accelerator_key,
Packit 98cdb6
					  GdkModifierType  accelerator_mods);
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * _gtk_plug_windowing_remove_grabbed_key:
Packit 98cdb6
 *
Packit 98cdb6
 * @plug: a #GtkPlug
Packit 98cdb6
 * @accelerator_key: a key
Packit 98cdb6
 * @accelerator_mods: modifiers for it
Packit 98cdb6
 *
Packit 98cdb6
 * Called from GtkPlug's keys_changed method. Should tell the
Packit 98cdb6
 * corresponding #GtkSocket to remove the key grab.
Packit 98cdb6
 */
Packit 98cdb6
void _gtk_plug_windowing_remove_grabbed_key (GtkPlug         *plug,
Packit 98cdb6
					     guint            accelerator_key,
Packit 98cdb6
					     GdkModifierType  accelerator_mods);
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * _gtk_plug_windowing_focus_to_parent:
Packit 98cdb6
 *
Packit 98cdb6
 * @plug: a #GtkPlug
Packit 98cdb6
 * @direction: a direction
Packit 98cdb6
 *
Packit 98cdb6
 * Called from GtkPlug's focus method. Should tell the corresponding
Packit 98cdb6
 * #GtkSocket to move the focus.
Packit 98cdb6
 */
Packit 98cdb6
void _gtk_plug_windowing_focus_to_parent (GtkPlug         *plug,
Packit 98cdb6
					  GtkDirectionType direction);
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * _gtk_plug_windowing_filter_func:
Packit 98cdb6
 *
Packit 98cdb6
 * @gdk_xevent: a windowing system native event
Packit 98cdb6
 * @event: a pre-allocated empty GdkEvent
Packit 98cdb6
 * @data: the #GtkPlug
Packit 98cdb6
 *
Packit 98cdb6
 * Event filter function installed on plug windows.
Packit 98cdb6
 */
Packit 98cdb6
GdkFilterReturn _gtk_plug_windowing_filter_func (GdkXEvent *gdk_xevent,
Packit 98cdb6
						 GdkEvent  *event,
Packit 98cdb6
						 gpointer   data);
Packit 98cdb6
Packit 98cdb6
#endif /* __GTK_PLUG_PRIVATE_H__ */