您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

106 行
3.2 KiB

  1. /* GTK - The GIMP Toolkit
  2. * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  3. *
  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.
  8. *
  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.
  13. *
  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.
  17. */
  18. /*
  19. * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
  20. * file for a list of people on the GTK+ Team. See the ChangeLog
  21. * files for a list of changes. These files are distributed with
  22. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  23. */
  24. #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
  25. #error "Only <gtk/gtk.h> can be included directly."
  26. #endif
  27. #ifndef __GTK_PLUG_H__
  28. #define __GTK_PLUG_H__
  29. #include <gtk/gtksocket.h>
  30. #include <gtk/gtkwindow.h>
  31. G_BEGIN_DECLS
  32. #define GTK_TYPE_PLUG (gtk_plug_get_type ())
  33. #define GTK_PLUG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PLUG, GtkPlug))
  34. #define GTK_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PLUG, GtkPlugClass))
  35. #define GTK_IS_PLUG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PLUG))
  36. #define GTK_IS_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PLUG))
  37. #define GTK_PLUG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PLUG, GtkPlugClass))
  38. typedef struct _GtkPlug GtkPlug;
  39. typedef struct _GtkPlugClass GtkPlugClass;
  40. struct _GtkPlug
  41. {
  42. GtkWindow window;
  43. GdkWindow *GSEAL (socket_window);
  44. GtkWidget *GSEAL (modality_window);
  45. GtkWindowGroup *GSEAL (modality_group);
  46. GHashTable *GSEAL (grabbed_keys);
  47. guint GSEAL (same_app) : 1;
  48. };
  49. struct _GtkPlugClass
  50. {
  51. GtkWindowClass parent_class;
  52. void (*embedded) (GtkPlug *plug);
  53. /* Padding for future expansion */
  54. void (*_gtk_reserved1) (void);
  55. void (*_gtk_reserved2) (void);
  56. void (*_gtk_reserved3) (void);
  57. void (*_gtk_reserved4) (void);
  58. };
  59. GType gtk_plug_get_type (void) G_GNUC_CONST;
  60. #ifndef GDK_MULTIHEAD_SAFE
  61. void gtk_plug_construct (GtkPlug *plug,
  62. GdkNativeWindow socket_id);
  63. GtkWidget* gtk_plug_new (GdkNativeWindow socket_id);
  64. #endif
  65. void gtk_plug_construct_for_display (GtkPlug *plug,
  66. GdkDisplay *display,
  67. GdkNativeWindow socket_id);
  68. GtkWidget* gtk_plug_new_for_display (GdkDisplay *display,
  69. GdkNativeWindow socket_id);
  70. GdkNativeWindow gtk_plug_get_id (GtkPlug *plug);
  71. gboolean gtk_plug_get_embedded (GtkPlug *plug);
  72. GdkWindow *gtk_plug_get_socket_window (GtkPlug *plug);
  73. void _gtk_plug_add_to_socket (GtkPlug *plug,
  74. GtkSocket *socket_);
  75. void _gtk_plug_remove_from_socket (GtkPlug *plug,
  76. GtkSocket *socket_);
  77. G_END_DECLS
  78. #endif /* __GTK_PLUG_H__ */