1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
21 * file for a list of people on the GTK+ Team. See the ChangeLog
22 * files for a list of changes. These files are distributed with
23 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
26 #ifndef __GTK_SOCKET_PRIVATE_H__
27 #define __GTK_SOCKET_PRIVATE_H__
29 typedef struct _GtkSocketPrivate GtkSocketPrivate;
31 struct _GtkSocketPrivate
37 GtkSocketPrivate *_gtk_socket_get_private (GtkSocket *socket);
39 void _gtk_socket_add_grabbed_key (GtkSocket *socket,
41 GdkModifierType modifiers);
42 void _gtk_socket_remove_grabbed_key (GtkSocket *socket,
44 GdkModifierType modifiers);
45 void _gtk_socket_claim_focus (GtkSocket *socket,
47 void _gtk_socket_add_window (GtkSocket *socket,
49 gboolean need_reparent);
50 void _gtk_socket_end_embedding (GtkSocket *socket);
52 void _gtk_socket_handle_map_request (GtkSocket *socket);
53 void _gtk_socket_unmap_notify (GtkSocket *socket);
54 void _gtk_socket_advance_toplevel_focus (GtkSocket *socket,
55 GtkDirectionType direction);
57 /* In backend-specific file: */
60 * _gtk_socket_windowing_get_id:
62 * @socket: a #GtkSocket
64 * Returns the native windowing system identifier for the plug's window.
66 GdkNativeWindow _gtk_socket_windowing_get_id (GtkSocket *socket);
69 * _gtk_socket_windowing_realize_window:
72 void _gtk_socket_windowing_realize_window (GtkSocket *socket);
75 * _gtk_socket_windowing_end_embedding_toplevel:
78 void _gtk_socket_windowing_end_embedding_toplevel (GtkSocket *socket);
81 * _gtk_socket_windowing_size_request:
84 void _gtk_socket_windowing_size_request (GtkSocket *socket);
87 * _gtk_socket_windowing_send_key_event:
90 void _gtk_socket_windowing_send_key_event (GtkSocket *socket,
92 gboolean mask_key_presses);
95 * _gtk_socket_windowing_focus_change:
98 void _gtk_socket_windowing_focus_change (GtkSocket *socket,
102 * _gtk_socket_windowing_update_active:
105 void _gtk_socket_windowing_update_active (GtkSocket *socket,
109 * _gtk_socket_windowing_update_modality:
112 void _gtk_socket_windowing_update_modality (GtkSocket *socket,
116 * _gtk_socket_windowing_focus:
119 void _gtk_socket_windowing_focus (GtkSocket *socket,
120 GtkDirectionType direction);
123 * _gtk_socket_windowing_send_configure_event:
126 void _gtk_socket_windowing_send_configure_event (GtkSocket *socket);
129 * _gtk_socket_windowing_select_plug_window_input:
131 * Asks the windowing system to send necessary events related to the
132 * plug window to the socket window. Called only for out-of-process
135 void _gtk_socket_windowing_select_plug_window_input (GtkSocket *socket);
138 * _gtk_socket_windowing_embed_get_info:
140 * Gets whatever information necessary about an out-of-process plug
143 void _gtk_socket_windowing_embed_get_info (GtkSocket *socket);
146 * _gtk_socket_windowing_embed_notify:
149 void _gtk_socket_windowing_embed_notify (GtkSocket *socket);
152 * _gtk_socket_windowing_embed_get_focus_wrapped:
155 gboolean _gtk_socket_windowing_embed_get_focus_wrapped (void);
158 * _gtk_socket_windowing_embed_set_focus_wrapped:
161 void _gtk_socket_windowing_embed_set_focus_wrapped (void);
164 * _gtk_socket_windowing_filter_func:
167 GdkFilterReturn _gtk_socket_windowing_filter_func (GdkXEvent *gdk_xevent,
171 #endif /* __GTK_SOCKET_PRIVATE_H__ */