Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

145 Zeilen
5.1 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
  16. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. * Boston, MA 02111-1307, USA.
  18. */
  19. /*
  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/.
  24. */
  25. #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
  26. #error "Only <gtk/gtk.h> can be included directly."
  27. #endif
  28. #ifndef __GTK_PANED_H__
  29. #define __GTK_PANED_H__
  30. #include <gtk/gtkcontainer.h>
  31. G_BEGIN_DECLS
  32. #define GTK_TYPE_PANED (gtk_paned_get_type ())
  33. #define GTK_PANED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PANED, GtkPaned))
  34. #define GTK_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PANED, GtkPanedClass))
  35. #define GTK_IS_PANED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PANED))
  36. #define GTK_IS_PANED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PANED))
  37. #define GTK_PANED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PANED, GtkPanedClass))
  38. typedef struct _GtkPaned GtkPaned;
  39. typedef struct _GtkPanedClass GtkPanedClass;
  40. typedef struct _GtkPanedPrivate GtkPanedPrivate;
  41. struct _GtkPaned
  42. {
  43. GtkContainer container;
  44. GtkWidget *GSEAL (child1);
  45. GtkWidget *GSEAL (child2);
  46. GdkWindow *GSEAL (handle);
  47. GdkGC *GSEAL (xor_gc);
  48. GdkCursorType GSEAL (cursor_type);
  49. /*< private >*/
  50. GdkRectangle GSEAL (handle_pos);
  51. gint GSEAL (child1_size);
  52. gint GSEAL (last_allocation);
  53. gint GSEAL (min_position);
  54. gint GSEAL (max_position);
  55. guint GSEAL (position_set) : 1;
  56. guint GSEAL (in_drag) : 1;
  57. guint GSEAL (child1_shrink) : 1;
  58. guint GSEAL (child1_resize) : 1;
  59. guint GSEAL (child2_shrink) : 1;
  60. guint GSEAL (child2_resize) : 1;
  61. guint GSEAL (orientation) : 1;
  62. guint GSEAL (in_recursion) : 1;
  63. guint GSEAL (handle_prelit) : 1;
  64. GtkWidget *GSEAL (last_child1_focus);
  65. GtkWidget *GSEAL (last_child2_focus);
  66. GtkPanedPrivate *GSEAL (priv);
  67. gint GSEAL (drag_pos);
  68. gint GSEAL (original_position);
  69. };
  70. struct _GtkPanedClass
  71. {
  72. GtkContainerClass parent_class;
  73. gboolean (* cycle_child_focus) (GtkPaned *paned,
  74. gboolean reverse);
  75. gboolean (* toggle_handle_focus) (GtkPaned *paned);
  76. gboolean (* move_handle) (GtkPaned *paned,
  77. GtkScrollType scroll);
  78. gboolean (* cycle_handle_focus) (GtkPaned *paned,
  79. gboolean reverse);
  80. gboolean (* accept_position) (GtkPaned *paned);
  81. gboolean (* cancel_position) (GtkPaned *paned);
  82. /* Padding for future expansion */
  83. void (*_gtk_reserved1) (void);
  84. void (*_gtk_reserved2) (void);
  85. void (*_gtk_reserved3) (void);
  86. void (*_gtk_reserved4) (void);
  87. };
  88. GType gtk_paned_get_type (void) G_GNUC_CONST;
  89. void gtk_paned_add1 (GtkPaned *paned,
  90. GtkWidget *child);
  91. void gtk_paned_add2 (GtkPaned *paned,
  92. GtkWidget *child);
  93. void gtk_paned_pack1 (GtkPaned *paned,
  94. GtkWidget *child,
  95. gboolean resize,
  96. gboolean shrink);
  97. void gtk_paned_pack2 (GtkPaned *paned,
  98. GtkWidget *child,
  99. gboolean resize,
  100. gboolean shrink);
  101. gint gtk_paned_get_position (GtkPaned *paned);
  102. void gtk_paned_set_position (GtkPaned *paned,
  103. gint position);
  104. GtkWidget * gtk_paned_get_child1 (GtkPaned *paned);
  105. GtkWidget * gtk_paned_get_child2 (GtkPaned *paned);
  106. GdkWindow * gtk_paned_get_handle_window (GtkPaned *paned);
  107. #ifndef GTK_DISABLE_DEPRECATED
  108. /* Internal function */
  109. void gtk_paned_compute_position (GtkPaned *paned,
  110. gint allocation,
  111. gint child1_req,
  112. gint child2_req);
  113. #define gtk_paned_gutter_size(p,s) (void) 0
  114. #define gtk_paned_set_gutter_size(p,s) (void) 0
  115. #endif /* GTK_DISABLE_DEPRECATED */
  116. G_END_DECLS
  117. #endif /* __GTK_PANED_H__ */