Ardour  9.0-pre0-582-g084a23a80d
gtkwidget.h
Go to the documentation of this file.
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 /*
21  * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
22  * file for a list of people on the GTK+ Team. See the ChangeLog
23  * files for a list of changes. These files are distributed with
24  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
25  */
26 
27 #ifndef __GTK_WIDGET_H__
28 #define __GTK_WIDGET_H__
29 
30 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
31 #error "Only <gtk/gtk.h> can be included directly."
32 #endif
33 
34 #include <gdk/gdk.h>
35 #include <gtk/gtkaccelgroup.h>
36 #include <gtk/gtkobject.h>
37 #include <gtk/gtkadjustment.h>
38 #include <gtk/gtkstyle.h>
39 #include <gtk/gtksettings.h>
40 #include <atk/atk.h>
41 
42 G_BEGIN_DECLS
43 
101 typedef enum
102 {
103  GTK_TOPLEVEL = 1 << 4,
104  GTK_NO_WINDOW = 1 << 5,
105  GTK_REALIZED = 1 << 6,
106  GTK_MAPPED = 1 << 7,
107  GTK_VISIBLE = 1 << 8,
108  GTK_SENSITIVE = 1 << 9,
110  GTK_CAN_FOCUS = 1 << 11,
111  GTK_HAS_FOCUS = 1 << 12,
112  GTK_CAN_DEFAULT = 1 << 13,
113  GTK_HAS_DEFAULT = 1 << 14,
114  GTK_HAS_GRAB = 1 << 15,
115  GTK_RC_STYLE = 1 << 16,
117 #ifndef GTK_DISABLE_DEPRECATED
118  GTK_NO_REPARENT = 1 << 18,
119 #endif
120  GTK_APP_PAINTABLE = 1 << 19,
123  GTK_NO_SHOW_ALL = 1 << 22
125 
126 /* Kinds of widget-specific help */
127 typedef enum
128 {
132 
133 /* Macro for casting a pointer to a GtkWidget or GtkWidgetClass pointer.
134  * Macros for testing whether `widget' or `klass' are of type GTK_TYPE_WIDGET.
135  */
136 #define GTK_TYPE_WIDGET (gtk_widget_get_type ())
137 #define GTK_WIDGET(widget) (G_TYPE_CHECK_INSTANCE_CAST ((widget), GTK_TYPE_WIDGET, GtkWidget))
138 #define GTK_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_WIDGET, GtkWidgetClass))
139 #define GTK_IS_WIDGET(widget) (G_TYPE_CHECK_INSTANCE_TYPE ((widget), GTK_TYPE_WIDGET))
140 #define GTK_IS_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WIDGET))
141 #define GTK_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_WIDGET, GtkWidgetClass))
142 
143 /* Macros for extracting various fields from GtkWidget and GtkWidgetClass.
144  */
145 #ifndef GTK_DISABLE_DEPRECATED
154 #define GTK_WIDGET_TYPE(wid) (GTK_OBJECT_TYPE (wid))
155 #endif
156 
157 #ifndef GTK_DISABLE_DEPRECATED
166 #define GTK_WIDGET_STATE(wid) (GTK_WIDGET (wid)->state)
167 #endif
168 
169 #ifndef GTK_DISABLE_DEPRECATED
182 #define GTK_WIDGET_SAVED_STATE(wid) (GTK_WIDGET (wid)->saved_state)
183 #endif
184 
185 
186 /* Macros for extracting the widget flags from GtkWidget.
187  */
204 #define GTK_WIDGET_FLAGS(wid) (GTK_OBJECT_FLAGS (wid))
205 /* FIXME: Deprecating GTK_WIDGET_FLAGS requires fixing GTK internals. */
206 
207 #ifndef GTK_DISABLE_DEPRECATED
216 #define GTK_WIDGET_TOPLEVEL(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_TOPLEVEL) != 0)
217 #endif
218 
219 #ifndef GTK_DISABLE_DEPRECATED
228 #define GTK_WIDGET_NO_WINDOW(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_NO_WINDOW) != 0)
229 #endif
230 
231 #ifndef GTK_DISABLE_DEPRECATED
240 #define GTK_WIDGET_REALIZED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_REALIZED) != 0)
241 #endif
242 
243 #ifndef GTK_DISABLE_DEPRECATED
252 #define GTK_WIDGET_MAPPED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_MAPPED) != 0)
253 #endif
254 
255 #ifndef GTK_DISABLE_DEPRECATED
264 #define GTK_WIDGET_VISIBLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_VISIBLE) != 0)
265 #endif
266 
267 #ifndef GTK_DISABLE_DEPRECATED
276 #define GTK_WIDGET_DRAWABLE(wid) (GTK_WIDGET_VISIBLE (wid) && GTK_WIDGET_MAPPED (wid))
277 #endif
278 
279 #ifndef GTK_DISABLE_DEPRECATED
288 #define GTK_WIDGET_SENSITIVE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_SENSITIVE) != 0)
289 #endif
290 
291 #ifndef GTK_DISABLE_DEPRECATED
300 #define GTK_WIDGET_PARENT_SENSITIVE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_PARENT_SENSITIVE) != 0)
301 #endif
302 
303 #ifndef GTK_DISABLE_DEPRECATED
312 #define GTK_WIDGET_IS_SENSITIVE(wid) (GTK_WIDGET_SENSITIVE (wid) && \
313  GTK_WIDGET_PARENT_SENSITIVE (wid))
314 #endif
315 
316 #ifndef GTK_DISABLE_DEPRECATED
325 #define GTK_WIDGET_CAN_FOCUS(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_CAN_FOCUS) != 0)
326 #endif
327 
328 #ifndef GTK_DISABLE_DEPRECATED
338 #define GTK_WIDGET_HAS_FOCUS(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_FOCUS) != 0)
339 #endif
340 
341 #ifndef GTK_DISABLE_DEPRECATED
351 #define GTK_WIDGET_CAN_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_CAN_DEFAULT) != 0)
352 #endif
353 
354 #ifndef GTK_DISABLE_DEPRECATED
363 #define GTK_WIDGET_HAS_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_DEFAULT) != 0)
364 #endif
365 
366 #ifndef GTK_DISABLE_DEPRECATED
376 #define GTK_WIDGET_HAS_GRAB(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_GRAB) != 0)
377 #endif
378 
379 #ifndef GTK_DISABLE_DEPRECATED
389 #define GTK_WIDGET_RC_STYLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_RC_STYLE) != 0)
390 #endif
391 
392 #ifndef GTK_DISABLE_DEPRECATED
401 #define GTK_WIDGET_COMPOSITE_CHILD(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_COMPOSITE_CHILD) != 0)
402 #endif
403 
404 #ifndef GTK_DISABLE_DEPRECATED
413 #define GTK_WIDGET_APP_PAINTABLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_APP_PAINTABLE) != 0)
414 #endif
415 
416 #ifndef GTK_DISABLE_DEPRECATED
426 #define GTK_WIDGET_RECEIVES_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_RECEIVES_DEFAULT) != 0)
427 #endif
428 
429 #ifndef GTK_DISABLE_DEPRECATED
438 #define GTK_WIDGET_DOUBLE_BUFFERED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_DOUBLE_BUFFERED) != 0)
439 #endif
440 
441 
442 /* Macros for setting and clearing widget flags.
443  */
459 #define GTK_WIDGET_SET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) |= (flag)); }G_STMT_END
460 /* FIXME: Deprecating GTK_WIDGET_SET_FLAGS requires fixing GTK internals. */
461 
471 #define GTK_WIDGET_UNSET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) &= ~(flag)); }G_STMT_END
472 /* FIXME: Deprecating GTK_WIDGET_UNSET_FLAGS requires fixing GTK internals. */
473 
474 #define GTK_TYPE_REQUISITION (gtk_requisition_get_type ())
475 
476 /* forward declaration to avoid excessive includes (and concurrent includes)
477  */
478 typedef struct _GtkRequisition GtkRequisition;
479 typedef struct _GtkSelectionData GtkSelectionData;
480 typedef struct _GtkWidgetClass GtkWidgetClass;
481 typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo;
483 typedef struct _GtkClipboard GtkClipboard;
484 typedef struct _GtkTooltip GtkTooltip;
485 typedef struct _GtkWindow GtkWindow;
486 
499 
508 typedef void (*GtkCallback) (GtkWidget *widget,
509  gpointer data);
510 
520 {
521  gint width;
522  gint height;
523 };
524 
525 /* The widget is the base of the tree for displayable objects.
526  * (A displayable object is one which takes up some amount
527  * of screen real estate). It provides a common base and interface
528  * which actual widgets must adhere to.
529  */
531 {
532  /* The object structure needs to be the first
533  * element in the widget structure in order for
534  * the object mechanism to work correctly. This
535  * allows a GtkWidget pointer to be cast to a
536  * GtkObject pointer.
537  */
539 
540  /* 16 bits of internally used private flags.
541  * this will be packed into the same 4 byte alignment frame that
542  * state and saved_state go. we therefore don't waste any new
543  * space on this.
544  */
545  guint16 GSEAL (private_flags);
546 
547  /* The state of the widget. There are actually only
548  * 5 widget states (defined in "gtkenums.h").
549  */
550  guint8 GSEAL (state);
551 
552  /* The saved state of the widget. When a widget's state
553  * is changed to GTK_STATE_INSENSITIVE via
554  * "gtk_widget_set_state" or "gtk_widget_set_sensitive"
555  * the old state is kept around in this field. The state
556  * will be restored once the widget gets sensitive again.
557  */
558  guint8 GSEAL (saved_state);
559 
560  /* The widget's name. If the widget does not have a name
561  * (the name is NULL), then its name (as returned by
562  * "gtk_widget_get_name") is its class's name.
563  * Among other things, the widget name is used to determine
564  * the style to use for a widget.
565  */
566  gchar *GSEAL (name);
567 
568  /*< public >*/
569 
570  /* The style for the widget. The style contains the
571  * colors the widget should be drawn in for each state
572  * along with graphics contexts used to draw with and
573  * the font to use for text.
574  */
575  GtkStyle *GSEAL (style);
576 
577  /* The widget's desired size.
578  */
579  GtkRequisition GSEAL (requisition);
580 
581  /* The widget's allocated size.
582  */
583  GtkAllocation GSEAL (allocation);
584 
585  /* The widget's window or its parent window if it does
586  * not have a window. (Which will be indicated by the
587  * GTK_NO_WINDOW flag being set).
588  */
589  GdkWindow *GSEAL (window);
590 
591  /* The widget's parent.
592  */
593  GtkWidget *GSEAL (parent);
594 };
595 
615 {
616  /* The object class structure needs to be the first
617  * element in the widget class structure in order for
618  * the class mechanism to work correctly. This allows a
619  * GtkWidgetClass pointer to be cast to a GtkObjectClass
620  * pointer.
621  */
623 
624  /*< public >*/
625 
627 
629 
630  /*< private >*/
631 
632  /* seldomly overidden */
634  guint n_pspecs,
635  GParamSpec **pspecs);
636 
637  /* basics */
638  void (* show) (GtkWidget *widget);
639  void (* show_all) (GtkWidget *widget);
640  void (* hide) (GtkWidget *widget);
641  void (* hide_all) (GtkWidget *widget);
642  void (* map) (GtkWidget *widget);
643  void (* unmap) (GtkWidget *widget);
644  void (* realize) (GtkWidget *widget);
645  void (* unrealize) (GtkWidget *widget);
646  void (* size_request) (GtkWidget *widget,
647  GtkRequisition *requisition);
648  void (* size_allocate) (GtkWidget *widget,
649  GtkAllocation *allocation);
650  void (* state_changed) (GtkWidget *widget,
651  GtkStateType previous_state);
652  void (* parent_set) (GtkWidget *widget,
653  GtkWidget *previous_parent);
654  void (* hierarchy_changed) (GtkWidget *widget,
655  GtkWidget *previous_toplevel);
656  void (* style_set) (GtkWidget *widget,
657  GtkStyle *previous_style);
658  void (* direction_changed) (GtkWidget *widget,
659  GtkTextDirection previous_direction);
660  void (* grab_notify) (GtkWidget *widget,
661  gboolean was_grabbed);
662  void (* child_notify) (GtkWidget *widget,
663  GParamSpec *pspec);
664 
665  /* Mnemonics */
666  gboolean (* mnemonic_activate) (GtkWidget *widget,
667  gboolean group_cycling);
668 
669  /* explicit focus */
670  void (* grab_focus) (GtkWidget *widget);
671  gboolean (* focus) (GtkWidget *widget,
672  GtkDirectionType direction);
673 
674  /* events */
675  gboolean (* event) (GtkWidget *widget,
676  GdkEvent *event);
677  gboolean (* button_press_event) (GtkWidget *widget,
679  gboolean (* button_release_event) (GtkWidget *widget,
681  gboolean (* scroll_event) (GtkWidget *widget,
683  gboolean (* motion_notify_event) (GtkWidget *widget,
685  gboolean (* delete_event) (GtkWidget *widget,
686  GdkEventAny *event);
687  gboolean (* destroy_event) (GtkWidget *widget,
688  GdkEventAny *event);
689  gboolean (* expose_event) (GtkWidget *widget,
691  gboolean (* key_press_event) (GtkWidget *widget,
692  GdkEventKey *event);
693  gboolean (* key_release_event) (GtkWidget *widget,
694  GdkEventKey *event);
695  gboolean (* enter_notify_event) (GtkWidget *widget,
697  gboolean (* leave_notify_event) (GtkWidget *widget,
699  gboolean (* configure_event) (GtkWidget *widget,
701  gboolean (* focus_in_event) (GtkWidget *widget,
703  gboolean (* focus_out_event) (GtkWidget *widget,
705  gboolean (* map_event) (GtkWidget *widget,
706  GdkEventAny *event);
707  gboolean (* unmap_event) (GtkWidget *widget,
708  GdkEventAny *event);
709  gboolean (* property_notify_event) (GtkWidget *widget,
711  gboolean (* selection_clear_event) (GtkWidget *widget,
713  gboolean (* selection_request_event) (GtkWidget *widget,
715  gboolean (* selection_notify_event) (GtkWidget *widget,
717  gboolean (* proximity_in_event) (GtkWidget *widget,
719  gboolean (* proximity_out_event) (GtkWidget *widget,
721  gboolean (* visibility_notify_event) (GtkWidget *widget,
723  gboolean (* client_event) (GtkWidget *widget,
725  gboolean (* no_expose_event) (GtkWidget *widget,
726  GdkEventAny *event);
727  gboolean (* window_state_event) (GtkWidget *widget,
729  gboolean (* touch_begin_event) (GtkWidget *widget,
731  gboolean (* touch_update_event) (GtkWidget *widget,
733  gboolean (* touch_end_event) (GtkWidget *widget,
735 
736  /* selection */
737  void (* selection_get) (GtkWidget *widget,
738  GtkSelectionData *selection_data,
739  guint info,
740  guint time_);
741  void (* selection_received) (GtkWidget *widget,
742  GtkSelectionData *selection_data,
743  guint time_);
744 
745  /* Source side drag signals */
746  void (* drag_begin) (GtkWidget *widget,
747  GdkDragContext *context);
748  void (* drag_end) (GtkWidget *widget,
749  GdkDragContext *context);
750  void (* drag_data_get) (GtkWidget *widget,
751  GdkDragContext *context,
752  GtkSelectionData *selection_data,
753  guint info,
754  guint time_);
755  void (* drag_data_delete) (GtkWidget *widget,
756  GdkDragContext *context);
757 
758  /* Target side drag signals */
759  void (* drag_leave) (GtkWidget *widget,
760  GdkDragContext *context,
761  guint time_);
762  gboolean (* drag_motion) (GtkWidget *widget,
763  GdkDragContext *context,
764  gint x,
765  gint y,
766  guint time_);
767  gboolean (* drag_drop) (GtkWidget *widget,
768  GdkDragContext *context,
769  gint x,
770  gint y,
771  guint time_);
772  void (* drag_data_received) (GtkWidget *widget,
773  GdkDragContext *context,
774  gint x,
775  gint y,
776  GtkSelectionData *selection_data,
777  guint info,
778  guint time_);
779 
780  /* Signals used only for keybindings */
781  gboolean (* popup_menu) (GtkWidget *widget);
782 
783  /* If a widget has multiple tooltips/whatsthis, it should show the
784  * one for the current focus location, or if that doesn't make
785  * sense, should cycle through them showing each tip alongside
786  * whatever piece of the widget it applies to.
787  */
788  gboolean (* show_help) (GtkWidget *widget,
789  GtkWidgetHelpType help_type);
790 
791  /* accessibility support
792  */
793  AtkObject* (*get_accessible) (GtkWidget *widget);
794 
795  void (*screen_changed) (GtkWidget *widget,
796  GdkScreen *previous_screen);
797  gboolean (*can_activate_accel) (GtkWidget *widget,
798  guint signal_id);
799 
800  /* Sent when a grab is broken. */
801  gboolean (*grab_broken_event) (GtkWidget *widget,
803 
804  void (* composited_changed) (GtkWidget *widget);
805 
806  gboolean (* query_tooltip) (GtkWidget *widget,
807  gint x,
808  gint y,
809  gboolean keyboard_tooltip,
810  GtkTooltip *tooltip);
811  /* Signals without a C default handler class slot:
812  * gboolean (*damage_event) (GtkWidget *widget,
813  * GdkEventExpose *event);
814  */
815 
816  /* Padding for future expansion */
817  void (*_gtk_reserved5) (void);
818  void (*_gtk_reserved6) (void);
819  void (*_gtk_reserved7) (void);
820 };
821 
823 {
824  gint x;
825  gint y;
826  gint width;
827  gint height;
828  guint x_set : 1;
829  guint y_set : 1;
830 };
831 
833 {
834  gint16 offset_x;
835  gint16 offset_y;
837 };
838 
839 GType gtk_widget_get_type (void) G_GNUC_CONST;
841  const gchar *first_property_name,
842  ...);
845  GtkWidget **widget_pointer);
846 #ifndef GTK_DISABLE_DEPRECATED
849 void gtk_widget_set (GtkWidget *widget,
850  const gchar *first_property_name,
851  ...) G_GNUC_NULL_TERMINATED;
852 #endif /* GTK_DISABLE_DEPRECATED */
853 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
855 #endif
857 void gtk_widget_show (GtkWidget *widget);
859 void gtk_widget_hide (GtkWidget *widget);
862  gboolean no_show_all);
864 void gtk_widget_map (GtkWidget *widget);
868 
869 /* Queuing draws */
872  gint x,
873  gint y,
874  gint width,
875  gint height);
876 #ifndef GTK_DISABLE_DEPRECATED
879  gint x,
880  gint y,
881  gint width,
882  gint height);
883 #endif /* GTK_DISABLE_DEPRECATED */
884 
885 
888 #ifndef GTK_DISABLE_DEPRECATED
890  const GdkRectangle *area);
891 #endif /* GTK_DISABLE_DEPRECATED */
893  GtkRequisition *requisition);
895  GtkAllocation *allocation);
897  GtkRequisition *requisition);
899  const gchar *accel_signal,
900  GtkAccelGroup *accel_group,
901  guint accel_key,
902  GdkModifierType accel_mods,
903  GtkAccelFlags accel_flags);
905  GtkAccelGroup *accel_group,
906  guint accel_key,
907  GdkModifierType accel_mods);
909  const gchar *accel_path,
910  GtkAccelGroup *accel_group);
911 const gchar* _gtk_widget_get_accel_path (GtkWidget *widget,
912  gboolean *locked);
915  guint signal_id);
917  gboolean group_cycling);
918 gboolean gtk_widget_event (GtkWidget *widget,
919  GdkEvent *event);
921  GdkEvent *event);
923  GdkEvent *event);
924 
925 gboolean gtk_widget_activate (GtkWidget *widget);
927  GtkAdjustment *hadjustment,
928  GtkAdjustment *vadjustment);
929 
931  GtkWidget *new_parent);
932 gboolean gtk_widget_intersect (GtkWidget *widget,
933  const GdkRectangle *area,
934  GdkRectangle *intersection);
936  const GdkRegion *region);
937 
940  const gchar *child_property);
942 
944  gboolean can_focus);
946 gboolean gtk_widget_has_focus (GtkWidget *widget);
947 gboolean gtk_widget_is_focus (GtkWidget *widget);
949 
951  gboolean can_default);
955 
957  gboolean receives_default);
959 
960 gboolean gtk_widget_has_grab (GtkWidget *widget);
961 
963  const gchar *name);
964 const gchar* gtk_widget_get_name (GtkWidget *widget);
965 
967  GtkStateType state);
969 
971  gboolean sensitive);
974 
976  gboolean visible);
978 
980  gboolean has_window);
982 
986  gboolean realized);
989  gboolean mapped);
990 gboolean gtk_widget_get_mapped (GtkWidget *widget);
991 
993  gboolean app_paintable);
995 
997  gboolean double_buffered);
999 
1001  gboolean redraw_on_allocate);
1002 
1004  GtkWidget *parent);
1006 
1008  GdkWindow *parent_window);
1010 
1012  gboolean is_visible);
1014 
1016  GdkWindow *window);
1018 
1020  GtkAllocation *allocation);
1022  const GtkAllocation *allocation);
1023 
1025  GtkRequisition *requisition);
1026 
1028  GtkDirectionType direction);
1030  GtkDirectionType direction);
1032 
1034  gint width,
1035  gint height);
1037  gint *width,
1038  gint *height);
1039 #ifndef GTK_DISABLE_DEPRECATED
1041  gint x,
1042  gint y);
1044  gint width,
1045  gint height);
1046 #endif
1047 
1049  gint events);
1051  gint events);
1053  GdkExtensionMode mode);
1054 
1058  GType widget_type);
1061 
1068  GdkAtom selection);
1070  GdkRectangle *clip_rect);
1071 
1072 #ifndef GTK_DISABLE_DEPRECATED
1073 
1081 #define gtk_widget_set_visual(widget,visual) ((void) 0)
1082 
1089 #define gtk_widget_push_visual(visual) ((void) 0)
1090 
1096 #define gtk_widget_pop_visual() ((void) 0)
1097 
1104 #define gtk_widget_set_default_visual(visual) ((void) 0)
1105 
1106 #endif /* GTK_DISABLE_DEPRECATED */
1107 
1108 /* Accessibility support */
1110 
1111 /* The following functions must not be called on an already
1112  * realized widget. Because it is possible that somebody
1113  * can call get_colormap() or get_visual() and save the
1114  * result, these functions are probably only safe to
1115  * call in a widget's init() function.
1116  */
1118  GdkColormap *colormap);
1119 
1122  gint *x,
1123  gint *y);
1124 
1126  GtkWidget *ancestor);
1127 
1129  GtkWidget *dest_widget,
1130  gint src_x,
1131  gint src_y,
1132  gint *dest_x,
1133  gint *dest_y);
1134 
1135 /* Hide widget and return TRUE.
1136  */
1138 
1139 /* Widget styles.
1140  */
1142 
1145  GtkStyle *style);
1148 
1150  GtkRcStyle *style);
1153  GtkStateType state,
1154  const GdkColor *color);
1156  GtkStateType state,
1157  const GdkColor *color);
1159  GtkStateType state,
1160  const GdkColor *color);
1162  GtkStateType state,
1163  const GdkColor *color);
1165  const GdkColor *primary,
1166  const GdkColor *secondary);
1168  PangoFontDescription *font_desc);
1169 
1170 #ifndef GTK_DISABLE_DEPRECATED
1171 
1180 #define gtk_widget_set_rc_style(widget) (gtk_widget_set_style (widget, NULL))
1181 
1190 #define gtk_widget_restore_default_style(widget) (gtk_widget_set_style (widget, NULL))
1191 #endif
1192 
1194 PangoContext *gtk_widget_get_pango_context (GtkWidget *widget);
1196  const gchar *text);
1197 
1198 GdkPixbuf *gtk_widget_render_icon (GtkWidget *widget,
1199  const gchar *stock_id,
1200  GtkIconSize size,
1201  const gchar *detail);
1202 
1203 /* handle composite names for GTK_COMPOSITE_CHILD widgets,
1204  * the returned name is newly allocated.
1205  */
1207  const gchar *name);
1209 
1210 /* Descend recursively and set rc-style on all widgets without user styles */
1212 
1213 /* Push/pop pairs, to change default values upon a widget's creation.
1214  * This will override the values that got set by the
1215  * gtk_widget_set_default_* () functions.
1216  */
1221 
1222 /* widget style properties
1223  */
1225  GParamSpec *pspec);
1227  GParamSpec *pspec,
1228  GtkRcPropertyParser parser);
1230  const gchar *property_name);
1232  guint *n_properties);
1234  const gchar *property_name,
1235  GValue *value);
1237  const gchar *first_property_name,
1238  va_list var_args);
1240  const gchar *first_property_name,
1241  ...) G_GNUC_NULL_TERMINATED;
1242 
1243 
1244 /* Set certain default values to be used at widget creation time.
1245  */
1248 #ifndef GDK_MULTIHEAD_SAFE
1251 #endif
1252 
1253 /* Functions for setting directionality for widgets
1254  */
1255 
1257  GtkTextDirection dir);
1259 
1262 
1263 /* Compositing manager functionality */
1265 
1266 /* Counterpart to gdk_window_shape_combine_mask.
1267  */
1269  GdkBitmap *shape_mask,
1270  gint offset_x,
1271  gint offset_y);
1273  GdkBitmap *shape_mask,
1274  gint offset_x,
1275  gint offset_y);
1276 
1277 #if !defined(GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
1278 /* internal function */
1280 #endif
1281 
1282 /* Compute a widget's path in the form "GtkWindow.MyLabel", and
1283  * return newly alocated strings.
1284  */
1286  guint *path_length,
1287  gchar **path,
1288  gchar **path_reversed);
1290  guint *path_length,
1291  gchar **path,
1292  gchar **path_reversed);
1293 
1296  GtkWidget *label);
1298  GtkWidget *label);
1299 
1301  GtkWindow *custom_window);
1305  const gchar *text);
1308  const gchar *markup);
1311  gboolean has_tooltip);
1313 
1314 GType gtk_requisition_get_type (void) G_GNUC_CONST;
1317 
1318 #if defined (GTK_TRACE_OBJECTS) && defined (__GNUC__)
1319 # define gtk_widget_ref g_object_ref
1320 # define gtk_widget_unref g_object_unref
1321 #endif /* GTK_TRACE_OBJECTS && __GNUC__ */
1322 
1324  gboolean has_default);
1326  gboolean has_grab);
1328  gboolean is_toplevel);
1329 
1331  gboolean was_grabbed);
1332 
1334  gboolean create);
1336  GtkWidget *previous_toplevel);
1338  GdkScreen *previous_screen);
1340 
1342  GdkWindow *pointer_window);
1346  GtkWidget *to,
1347  GdkCrossingMode mode);
1348 
1350 
1352  GtkWidget *toplevel,
1353  gpointer user_data);
1354 
1355 G_END_DECLS
1356 
1357 #endif /* __GTK_WIDGET_H__ */
typedefG_BEGIN_DECLS struct _GdkDragContext GdkDragContext
Definition: gdkdnd.h:38
GdkCrossingMode
Definition: gdkevents.h:233
GdkExtensionMode
Definition: gdkinput.h:52
struct _GdkAtom * GdkAtom
Definition: gdktypes.h:80
GdkModifierType
Definition: gdktypes.h:127
GtkAccelFlags
Definition: gtkaccelgroup.h:52
GtkStateType
Definition: gtkenums.h:400
GtkDirectionType
Definition: gtkenums.h:123
GtkTextDirection
Definition: gtkenums.h:174
GtkIconSize
Definition: gtkenums.h:143
GtkImageIconNameData name
Definition: gtkimage.h:6
gboolean(* GtkRcPropertyParser)(const GParamSpec *pspec, const GString *rc_string, GValue *property_value)
Definition: gtkstyle.h:62
void gtk_widget_set_visible(GtkWidget *widget, gboolean visible)
void gtk_widget_grab_focus(GtkWidget *widget)
GtkWidget * gtk_widget_ref(GtkWidget *widget)
void gtk_widget_set_default_direction(GtkTextDirection dir)
void gtk_widget_set_can_default(GtkWidget *widget, gboolean can_default)
void gtk_widget_reset_shapes(GtkWidget *widget)
void(* GtkCallback)(GtkWidget *widget, gpointer data)
Definition: gtkwidget.h:508
void gtk_widget_set_extension_events(GtkWidget *widget, GdkExtensionMode mode)
void _gtk_widget_synthesize_crossing(GtkWidget *from, GtkWidget *to, GdkCrossingMode mode)
GtkTextDirection gtk_widget_get_direction(GtkWidget *widget)
void gtk_widget_destroy(GtkWidget *widget)
gboolean gtk_widget_is_toplevel(GtkWidget *widget)
gboolean gtk_widget_get_app_paintable(GtkWidget *widget)
gboolean gtk_widget_send_focus_change(GtkWidget *widget, GdkEvent *event)
void gtk_widget_child_notify(GtkWidget *widget, const gchar *child_property)
void gtk_widget_modify_bg(GtkWidget *widget, GtkStateType state, const GdkColor *color)
void gtk_widget_set_parent(GtkWidget *widget, GtkWidget *parent)
void gtk_widget_modify_font(GtkWidget *widget, PangoFontDescription *font_desc)
void gtk_widget_set_accel_path(GtkWidget *widget, const gchar *accel_path, GtkAccelGroup *accel_group)
void gtk_widget_get_size_request(GtkWidget *widget, gint *width, gint *height)
GtkWidgetFlags
Definition: gtkwidget.h:102
@ GTK_VISIBLE
Definition: gtkwidget.h:107
@ GTK_APP_PAINTABLE
Definition: gtkwidget.h:120
@ GTK_PARENT_SENSITIVE
Definition: gtkwidget.h:109
@ GTK_HAS_GRAB
Definition: gtkwidget.h:114
@ GTK_TOPLEVEL
Definition: gtkwidget.h:103
@ GTK_CAN_FOCUS
Definition: gtkwidget.h:110
@ GTK_NO_WINDOW
Definition: gtkwidget.h:104
@ GTK_DOUBLE_BUFFERED
Definition: gtkwidget.h:122
@ GTK_HAS_DEFAULT
Definition: gtkwidget.h:113
@ GTK_MAPPED
Definition: gtkwidget.h:106
@ GTK_RECEIVES_DEFAULT
Definition: gtkwidget.h:121
@ GTK_CAN_DEFAULT
Definition: gtkwidget.h:112
@ GTK_RC_STYLE
Definition: gtkwidget.h:115
@ GTK_HAS_FOCUS
Definition: gtkwidget.h:111
@ GTK_SENSITIVE
Definition: gtkwidget.h:108
@ GTK_COMPOSITE_CHILD
Definition: gtkwidget.h:116
@ GTK_REALIZED
Definition: gtkwidget.h:105
@ GTK_NO_SHOW_ALL
Definition: gtkwidget.h:123
@ GTK_NO_REPARENT
Definition: gtkwidget.h:118
gboolean gtk_widget_get_receives_default(GtkWidget *widget)
gboolean gtk_widget_keynav_failed(GtkWidget *widget, GtkDirectionType direction)
void gtk_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
GtkRcStyle * gtk_widget_get_modifier_style(GtkWidget *widget)
void gtk_widget_get_child_requisition(GtkWidget *widget, GtkRequisition *requisition)
void gtk_widget_remove_mnemonic_label(GtkWidget *widget, GtkWidget *label)
GList * gtk_widget_list_mnemonic_labels(GtkWidget *widget)
const gchar * _gtk_widget_get_accel_path(GtkWidget *widget, gboolean *locked)
GtkTextDirection gtk_widget_get_default_direction(void)
void gtk_widget_queue_draw(GtkWidget *widget)
void gtk_widget_pop_composite_child(void)
void _gtk_widget_propagate_composited_changed(GtkWidget *widget)
GtkWindow * gtk_widget_get_tooltip_window(GtkWidget *widget)
void gtk_widget_class_install_style_property(GtkWidgetClass *klass, GParamSpec *pspec)
void gtk_widget_set_app_paintable(GtkWidget *widget, gboolean app_paintable)
void gtk_widget_freeze_child_notify(GtkWidget *widget)
GtkWidgetAuxInfo * _gtk_widget_get_aux_info(GtkWidget *widget, gboolean create)
GtkWidget * gtk_widget_get_parent(GtkWidget *widget)
void _gtk_widget_set_pointer_window(GtkWidget *widget, GdkWindow *pointer_window)
gboolean gtk_widget_set_scroll_adjustments(GtkWidget *widget, GtkAdjustment *hadjustment, GtkAdjustment *vadjustment)
GtkRequisition * gtk_requisition_copy(const GtkRequisition *requisition)
gchar * gtk_widget_get_composite_name(GtkWidget *widget)
void gtk_widget_set_receives_default(GtkWidget *widget, gboolean receives_default)
struct _GtkClipboard GtkClipboard
Definition: gtkwidget.h:483
GParamSpec ** gtk_widget_class_list_style_properties(GtkWidgetClass *klass, guint *n_properties)
void gtk_widget_set_usize(GtkWidget *widget, gint width, gint height)
GdkPixmap * gtk_widget_get_snapshot(GtkWidget *widget, GdkRectangle *clip_rect)
gboolean gtk_widget_get_sensitive(GtkWidget *widget)
void gtk_widget_shape_combine_mask(GtkWidget *widget, GdkBitmap *shape_mask, gint offset_x, gint offset_y)
GdkColormap * gtk_widget_get_default_colormap(void)
void gtk_widget_set(GtkWidget *widget, const gchar *first_property_name,...) G_GNUC_NULL_TERMINATED
gboolean gtk_widget_get_double_buffered(GtkWidget *widget)
gboolean gtk_widget_intersect(GtkWidget *widget, const GdkRectangle *area, GdkRectangle *intersection)
void gtk_widget_show(GtkWidget *widget)
void gtk_widget_modify_fg(GtkWidget *widget, GtkStateType state, const GdkColor *color)
void _gtk_widget_propagate_screen_changed(GtkWidget *widget, GdkScreen *previous_screen)
gchar * gtk_widget_get_tooltip_text(GtkWidget *widget)
gboolean gtk_widget_has_default(GtkWidget *widget)
gboolean gtk_widget_get_can_default(GtkWidget *widget)
void gtk_widget_hide_all(GtkWidget *widget)
void gtk_widget_style_attach(GtkWidget *style)
GtkStyle * gtk_widget_get_default_style(void)
gboolean gtk_widget_has_grab(GtkWidget *widget)
struct _GtkTooltip GtkTooltip
Definition: gtkwidget.h:484
gboolean gtk_widget_get_has_tooltip(GtkWidget *widget)
void gtk_widget_class_install_style_property_parser(GtkWidgetClass *klass, GParamSpec *pspec, GtkRcPropertyParser parser)
void gtk_widget_queue_resize_no_redraw(GtkWidget *widget)
gboolean gtk_widget_is_composited(GtkWidget *widget)
void gtk_widget_unparent(GtkWidget *widget)
void gtk_widget_set_uposition(GtkWidget *widget, gint x, gint y)
void gtk_widget_set_allocation(GtkWidget *widget, const GtkAllocation *allocation)
PangoContext * gtk_widget_create_pango_context(GtkWidget *widget)
void gtk_widget_set_parent_window(GtkWidget *widget, GdkWindow *parent_window)
GtkWidget * gtk_widget_new(GType type, const gchar *first_property_name,...)
void gtk_widget_set_tooltip_text(GtkWidget *widget, const gchar *text)
GType gtk_widget_get_type(void) G_GNUC_CONST
GType gtk_requisition_get_type(void) G_GNUC_CONST
GdkDisplay * gtk_widget_get_display(GtkWidget *widget)
void gtk_widget_queue_clear(GtkWidget *widget)
GtkSettings * gtk_widget_get_settings(GtkWidget *widget)
void _gtk_widget_buildable_finish_accelerator(GtkWidget *widget, GtkWidget *toplevel, gpointer user_data)
gboolean gtk_widget_get_can_focus(GtkWidget *widget)
void gtk_widget_set_window(GtkWidget *widget, GdkWindow *window)
void gtk_widget_set_tooltip_window(GtkWidget *widget, GtkWindow *custom_window)
GdkWindow * gtk_widget_get_parent_window(GtkWidget *widget)
GtkStateType gtk_widget_get_state(GtkWidget *widget)
void gtk_widget_destroyed(GtkWidget *widget, GtkWidget **widget_pointer)
GdkWindow * gtk_widget_get_window(GtkWidget *widget)
void gtk_widget_ensure_style(GtkWidget *widget)
void gtk_widget_get_allocation(GtkWidget *widget, GtkAllocation *allocation)
GtkWidget * gtk_widget_get_toplevel(GtkWidget *widget)
void gtk_widget_set_name(GtkWidget *widget, const gchar *name)
void gtk_widget_add_events(GtkWidget *widget, gint events)
void gtk_widget_set_double_buffered(GtkWidget *widget, gboolean double_buffered)
void gtk_widget_set_realized(GtkWidget *widget, gboolean realized)
void gtk_widget_add_accelerator(GtkWidget *widget, const gchar *accel_signal, GtkAccelGroup *accel_group, guint accel_key, GdkModifierType accel_mods, GtkAccelFlags accel_flags)
void gtk_widget_set_default_colormap(GdkColormap *colormap)
gboolean gtk_widget_has_screen(GtkWidget *widget)
GdkRegion * gtk_widget_region_intersect(GtkWidget *widget, const GdkRegion *region)
GdkVisual * gtk_widget_get_visual(GtkWidget *widget)
gboolean gtk_widget_hide_on_delete(GtkWidget *widget)
gboolean gtk_widget_is_drawable(GtkWidget *widget)
void gtk_widget_hide(GtkWidget *widget)
const gchar * gtk_widget_get_name(GtkWidget *widget)
void gtk_widget_set_no_show_all(GtkWidget *widget, gboolean no_show_all)
void gtk_widget_show_now(GtkWidget *widget)
GtkClipboard * gtk_widget_get_clipboard(GtkWidget *widget, GdkAtom selection)
gchar * gtk_widget_get_tooltip_markup(GtkWidget *widget)
void gtk_widget_set_style(GtkWidget *widget, GtkStyle *style)
void gtk_widget_set_tooltip_markup(GtkWidget *widget, const gchar *markup)
void gtk_widget_modify_text(GtkWidget *widget, GtkStateType state, const GdkColor *color)
void gtk_widget_set_can_focus(GtkWidget *widget, gboolean can_focus)
void _gtk_widget_set_is_toplevel(GtkWidget *widget, gboolean is_toplevel)
gboolean gtk_widget_is_sensitive(GtkWidget *widget)
void gtk_widget_set_events(GtkWidget *widget, gint events)
void gtk_widget_pop_colormap(void)
void gtk_widget_get_requisition(GtkWidget *widget, GtkRequisition *requisition)
void gtk_widget_style_get_property(GtkWidget *widget, const gchar *property_name, GValue *value)
gboolean gtk_widget_remove_accelerator(GtkWidget *widget, GtkAccelGroup *accel_group, guint accel_key, GdkModifierType accel_mods)
GtkStyle * gtk_widget_get_style(GtkWidget *widget)
gboolean gtk_widget_get_has_window(GtkWidget *widget)
PangoLayout * gtk_widget_create_pango_layout(GtkWidget *widget, const gchar *text)
void gtk_widget_modify_base(GtkWidget *widget, GtkStateType state, const GdkColor *color)
void gtk_widget_draw(GtkWidget *widget, const GdkRectangle *area)
gboolean gtk_widget_get_realized(GtkWidget *widget)
void gtk_widget_set_has_tooltip(GtkWidget *widget, gboolean has_tooltip)
void gtk_widget_push_colormap(GdkColormap *cmap)
void gtk_widget_input_shape_combine_mask(GtkWidget *widget, GdkBitmap *shape_mask, gint offset_x, gint offset_y)
GdkWindow * _gtk_widget_get_pointer_window(GtkWidget *widget)
void gtk_widget_set_sensitive(GtkWidget *widget, gboolean sensitive)
void gtk_widget_set_mapped(GtkWidget *widget, gboolean mapped)
gboolean gtk_widget_is_ancestor(GtkWidget *widget, GtkWidget *ancestor)
void gtk_widget_map(GtkWidget *widget)
void gtk_widget_set_child_visible(GtkWidget *widget, gboolean is_visible)
GList * gtk_widget_list_accel_closures(GtkWidget *widget)
gint gtk_widget_get_events(GtkWidget *widget)
void gtk_widget_class_path(GtkWidget *widget, guint *path_length, gchar **path, gchar **path_reversed)
gboolean gtk_widget_can_activate_accel(GtkWidget *widget, guint signal_id)
void gtk_widget_set_colormap(GtkWidget *widget, GdkColormap *colormap)
gboolean gtk_widget_get_no_show_all(GtkWidget *widget)
void _gtk_widget_set_has_grab(GtkWidget *widget, gboolean has_grab)
void gtk_widget_modify_cursor(GtkWidget *widget, const GdkColor *primary, const GdkColor *secondary)
void gtk_widget_thaw_child_notify(GtkWidget *widget)
void gtk_widget_trigger_tooltip_query(GtkWidget *widget)
GdkPixbuf * gtk_widget_render_icon(GtkWidget *widget, const gchar *stock_id, GtkIconSize size, const gchar *detail)
void gtk_widget_modify_style(GtkWidget *widget, GtkRcStyle *style)
void gtk_requisition_free(GtkRequisition *requisition)
void gtk_widget_get_pointer(GtkWidget *widget, gint *x, gint *y)
void gtk_widget_set_state(GtkWidget *widget, GtkStateType state)
void gtk_widget_path(GtkWidget *widget, guint *path_length, gchar **path, gchar **path_reversed)
gboolean gtk_widget_get_visible(GtkWidget *widget)
gboolean gtk_widget_is_focus(GtkWidget *widget)
GdkScreen * gtk_widget_get_screen(GtkWidget *widget)
gboolean gtk_widget_activate(GtkWidget *widget)
void gtk_widget_set_size_request(GtkWidget *widget, gint width, gint height)
void gtk_widget_size_request(GtkWidget *widget, GtkRequisition *requisition)
gboolean gtk_widget_get_mapped(GtkWidget *widget)
void gtk_widget_unmap(GtkWidget *widget)
void gtk_widget_reset_rc_styles(GtkWidget *widget)
gboolean _gtk_widget_is_pointer_widget(GtkWidget *widget)
gboolean gtk_widget_has_rc_style(GtkWidget *widget)
gboolean gtk_widget_child_focus(GtkWidget *widget, GtkDirectionType direction)
void gtk_widget_reparent(GtkWidget *widget, GtkWidget *new_parent)
GdkWindow * gtk_widget_get_root_window(GtkWidget *widget)
void gtk_widget_queue_resize(GtkWidget *widget)
void gtk_widget_set_composite_name(GtkWidget *widget, const gchar *name)
gint gtk_widget_send_expose(GtkWidget *widget, GdkEvent *event)
GdkColormap * gtk_widget_get_colormap(GtkWidget *widget)
void gtk_widget_push_composite_child(void)
void gtk_widget_style_get(GtkWidget *widget, const gchar *first_property_name,...) G_GNUC_NULL_TERMINATED
GtkWidgetHelpType
Definition: gtkwidget.h:128
@ GTK_WIDGET_HELP_TOOLTIP
Definition: gtkwidget.h:129
@ GTK_WIDGET_HELP_WHATS_THIS
Definition: gtkwidget.h:130
void gtk_widget_set_direction(GtkWidget *widget, GtkTextDirection dir)
GParamSpec * gtk_widget_class_find_style_property(GtkWidgetClass *klass, const gchar *property_name)
void gtk_widget_error_bell(GtkWidget *widget)
gboolean gtk_widget_mnemonic_activate(GtkWidget *widget, gboolean group_cycling)
void gtk_widget_unref(GtkWidget *widget)
void gtk_widget_unrealize(GtkWidget *widget)
void gtk_widget_show_all(GtkWidget *widget)
void gtk_widget_set_redraw_on_allocate(GtkWidget *widget, gboolean redraw_on_allocate)
gboolean gtk_widget_event(GtkWidget *widget, GdkEvent *event)
void gtk_widget_set_has_window(GtkWidget *widget, gboolean has_window)
void gtk_widget_style_get_valist(GtkWidget *widget, const gchar *first_property_name, va_list var_args)
AtkObject * gtk_widget_get_accessible(GtkWidget *widget)
gboolean gtk_widget_get_child_visible(GtkWidget *widget)
gboolean gtk_widget_has_focus(GtkWidget *widget)
GtkWidget * gtk_widget_get_ancestor(GtkWidget *widget, GType widget_type)
void gtk_widget_add_mnemonic_label(GtkWidget *widget, GtkWidget *label)
GdkExtensionMode gtk_widget_get_extension_events(GtkWidget *widget)
void gtk_widget_grab_default(GtkWidget *widget)
GdkColormap * _gtk_widget_peek_colormap(void)
void _gtk_widget_propagate_hierarchy_changed(GtkWidget *widget, GtkWidget *previous_toplevel)
void gtk_widget_queue_draw_area(GtkWidget *widget, gint x, gint y, gint width, gint height)
GdkRectangle GtkAllocation
Definition: gtkwidget.h:498
PangoContext * gtk_widget_get_pango_context(GtkWidget *widget)
void _gtk_widget_set_has_default(GtkWidget *widget, gboolean has_default)
GdkVisual * gtk_widget_get_default_visual(void)
void gtk_widget_queue_clear_area(GtkWidget *widget, gint x, gint y, gint width, gint height)
void _gtk_widget_grab_notify(GtkWidget *widget, gboolean was_grabbed)
void gtk_widget_realize(GtkWidget *widget)
gboolean gtk_widget_translate_coordinates(GtkWidget *src_widget, GtkWidget *dest_widget, gint src_x, gint src_y, gint *dest_x, gint *dest_y)
PBD::PropertyDescriptor< uint32_t > color
PBD::PropertyDescriptor< bool > region
PBD::PropertyDescriptor< bool > locked
Transmitter info
gboolean(* focus_out_event)(GtkWidget *widget, GdkEventFocus *event)
Definition: gtkwidget.h:703
void(* selection_received)(GtkWidget *widget, GtkSelectionData *selection_data, guint time_)
Definition: gtkwidget.h:741
gboolean(* no_expose_event)(GtkWidget *widget, GdkEventAny *event)
Definition: gtkwidget.h:725
void(* hide_all)(GtkWidget *widget)
Definition: gtkwidget.h:641
gboolean(* scroll_event)(GtkWidget *widget, GdkEventScroll *event)
Definition: gtkwidget.h:681
void(* drag_leave)(GtkWidget *widget, GdkDragContext *context, guint time_)
Definition: gtkwidget.h:759
gboolean(* grab_broken_event)(GtkWidget *widget, GdkEventGrabBroken *event)
Definition: gtkwidget.h:801
void(* show_all)(GtkWidget *widget)
Definition: gtkwidget.h:639
gboolean(* can_activate_accel)(GtkWidget *widget, guint signal_id)
Definition: gtkwidget.h:797
void(* size_request)(GtkWidget *widget, GtkRequisition *requisition)
Definition: gtkwidget.h:646
gboolean(* selection_notify_event)(GtkWidget *widget, GdkEventSelection *event)
Definition: gtkwidget.h:715
gboolean(* proximity_in_event)(GtkWidget *widget, GdkEventProximity *event)
Definition: gtkwidget.h:717
void(* drag_data_delete)(GtkWidget *widget, GdkDragContext *context)
Definition: gtkwidget.h:755
void(* show)(GtkWidget *widget)
Definition: gtkwidget.h:638
void(* hide)(GtkWidget *widget)
Definition: gtkwidget.h:640
void(* screen_changed)(GtkWidget *widget, GdkScreen *previous_screen)
Definition: gtkwidget.h:795
gboolean(* touch_begin_event)(GtkWidget *widget, GdkEventTouch *event)
Definition: gtkwidget.h:729
gboolean(* focus_in_event)(GtkWidget *widget, GdkEventFocus *event)
Definition: gtkwidget.h:701
void(* unrealize)(GtkWidget *widget)
Definition: gtkwidget.h:645
gboolean(* property_notify_event)(GtkWidget *widget, GdkEventProperty *event)
Definition: gtkwidget.h:709
gboolean(* key_press_event)(GtkWidget *widget, GdkEventKey *event)
Definition: gtkwidget.h:691
void(* unmap)(GtkWidget *widget)
Definition: gtkwidget.h:643
gboolean(* show_help)(GtkWidget *widget, GtkWidgetHelpType help_type)
Definition: gtkwidget.h:788
void(* drag_begin)(GtkWidget *widget, GdkDragContext *context)
Definition: gtkwidget.h:746
gboolean(* focus)(GtkWidget *widget, GtkDirectionType direction)
Definition: gtkwidget.h:671
gboolean(* selection_clear_event)(GtkWidget *widget, GdkEventSelection *event)
Definition: gtkwidget.h:711
void(* _gtk_reserved7)(void)
Definition: gtkwidget.h:819
void(* drag_data_received)(GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint info, guint time_)
Definition: gtkwidget.h:772
gboolean(* mnemonic_activate)(GtkWidget *widget, gboolean group_cycling)
Definition: gtkwidget.h:666
void(* grab_focus)(GtkWidget *widget)
Definition: gtkwidget.h:670
void(* child_notify)(GtkWidget *widget, GParamSpec *pspec)
Definition: gtkwidget.h:662
gboolean(* popup_menu)(GtkWidget *widget)
Definition: gtkwidget.h:781
gboolean(* configure_event)(GtkWidget *widget, GdkEventConfigure *event)
Definition: gtkwidget.h:699
GtkObjectClass parent_class
Definition: gtkwidget.h:622
gboolean(* window_state_event)(GtkWidget *widget, GdkEventWindowState *event)
Definition: gtkwidget.h:727
gboolean(* client_event)(GtkWidget *widget, GdkEventClient *event)
Definition: gtkwidget.h:723
gboolean(* map_event)(GtkWidget *widget, GdkEventAny *event)
Definition: gtkwidget.h:705
guint activate_signal
Definition: gtkwidget.h:626
gboolean(* touch_update_event)(GtkWidget *widget, GdkEventTouch *event)
Definition: gtkwidget.h:731
gboolean(* expose_event)(GtkWidget *widget, GdkEventExpose *event)
Definition: gtkwidget.h:689
void(* state_changed)(GtkWidget *widget, GtkStateType previous_state)
Definition: gtkwidget.h:650
gboolean(* event)(GtkWidget *widget, GdkEvent *event)
Definition: gtkwidget.h:675
gboolean(* drag_motion)(GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time_)
Definition: gtkwidget.h:762
void(* parent_set)(GtkWidget *widget, GtkWidget *previous_parent)
Definition: gtkwidget.h:652
void(* composited_changed)(GtkWidget *widget)
Definition: gtkwidget.h:804
gboolean(* touch_end_event)(GtkWidget *widget, GdkEventTouch *event)
Definition: gtkwidget.h:733
void(* size_allocate)(GtkWidget *widget, GtkAllocation *allocation)
Definition: gtkwidget.h:648
void(* direction_changed)(GtkWidget *widget, GtkTextDirection previous_direction)
Definition: gtkwidget.h:658
gboolean(* enter_notify_event)(GtkWidget *widget, GdkEventCrossing *event)
Definition: gtkwidget.h:695
gboolean(* motion_notify_event)(GtkWidget *widget, GdkEventMotion *event)
Definition: gtkwidget.h:683
gboolean(* proximity_out_event)(GtkWidget *widget, GdkEventProximity *event)
Definition: gtkwidget.h:719
void(* realize)(GtkWidget *widget)
Definition: gtkwidget.h:644
void(* dispatch_child_properties_changed)(GtkWidget *widget, guint n_pspecs, GParamSpec **pspecs)
Definition: gtkwidget.h:633
gboolean(* drag_drop)(GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time_)
Definition: gtkwidget.h:767
gboolean(* button_release_event)(GtkWidget *widget, GdkEventButton *event)
Definition: gtkwidget.h:679
void(* style_set)(GtkWidget *widget, GtkStyle *previous_style)
Definition: gtkwidget.h:656
gboolean(* leave_notify_event)(GtkWidget *widget, GdkEventCrossing *event)
Definition: gtkwidget.h:697
void(* map)(GtkWidget *widget)
Definition: gtkwidget.h:642
void(* _gtk_reserved5)(void)
Definition: gtkwidget.h:817
void(* selection_get)(GtkWidget *widget, GtkSelectionData *selection_data, guint info, guint time_)
Definition: gtkwidget.h:737
gboolean(* button_press_event)(GtkWidget *widget, GdkEventButton *event)
Definition: gtkwidget.h:677
void(* hierarchy_changed)(GtkWidget *widget, GtkWidget *previous_toplevel)
Definition: gtkwidget.h:654
gboolean(* selection_request_event)(GtkWidget *widget, GdkEventSelection *event)
Definition: gtkwidget.h:713
gboolean(* visibility_notify_event)(GtkWidget *widget, GdkEventVisibility *event)
Definition: gtkwidget.h:721
gboolean(* destroy_event)(GtkWidget *widget, GdkEventAny *event)
Definition: gtkwidget.h:687
void(* _gtk_reserved6)(void)
Definition: gtkwidget.h:818
void(* drag_data_get)(GtkWidget *widget, GdkDragContext *context, GtkSelectionData *selection_data, guint info, guint time_)
Definition: gtkwidget.h:750
void(* grab_notify)(GtkWidget *widget, gboolean was_grabbed)
Definition: gtkwidget.h:660
gboolean(* key_release_event)(GtkWidget *widget, GdkEventKey *event)
Definition: gtkwidget.h:693
gboolean(* delete_event)(GtkWidget *widget, GdkEventAny *event)
Definition: gtkwidget.h:685
guint set_scroll_adjustments_signal
Definition: gtkwidget.h:628
gboolean(* query_tooltip)(GtkWidget *widget, gint x, gint y, gboolean keyboard_tooltip, GtkTooltip *tooltip)
Definition: gtkwidget.h:806
gboolean(* unmap_event)(GtkWidget *widget, GdkEventAny *event)
Definition: gtkwidget.h:707
void(* drag_end)(GtkWidget *widget, GdkDragContext *context)
Definition: gtkwidget.h:748
GdkBitmap * shape_mask
Definition: gtkwidget.h:836
guint16 GSEAL(private_flags)
GtkAllocation GSEAL(allocation)
GtkRequisition GSEAL(requisition)
guint8 GSEAL(saved_state)
GtkObject object
Definition: gtkwidget.h:538
GdkWindow * GSEAL(window)
GtkStyle * GSEAL(style)
gchar * GSEAL(name)
GtkWidget * GSEAL(parent)
guint8 GSEAL(state)
link region and track selection
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1