27 #ifndef __GTK_PRIVATE_H__
28 #define __GTK_PRIVATE_H__
55 #define GTK_PRIVATE_FLAGS(wid) (GTK_WIDGET (wid)->private_flags)
56 #define GTK_WIDGET_USER_STYLE(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_USER_STYLE) != 0)
57 #define GTK_CONTAINER_RESIZE_PENDING(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_RESIZE_PENDING) != 0)
58 #define GTK_WIDGET_HAS_POINTER(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_HAS_POINTER) != 0)
59 #define GTK_WIDGET_SHADOWED(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_SHADOWED) != 0)
60 #define GTK_WIDGET_HAS_SHAPE_MASK(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_HAS_SHAPE_MASK) != 0)
61 #define GTK_WIDGET_IN_REPARENT(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_IN_REPARENT) != 0)
62 #define GTK_WIDGET_DIRECTION_SET(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_DIRECTION_SET) != 0)
63 #define GTK_WIDGET_DIRECTION_LTR(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_DIRECTION_LTR) != 0)
64 #define GTK_WIDGET_ANCHORED(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_ANCHORED) != 0)
65 #define GTK_WIDGET_CHILD_VISIBLE(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_CHILD_VISIBLE) != 0)
66 #define GTK_WIDGET_REDRAW_ON_ALLOC(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_REDRAW_ON_ALLOC) != 0)
67 #define GTK_WIDGET_ALLOC_NEEDED(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_ALLOC_NEEDED) != 0)
68 #define GTK_WIDGET_REQUEST_NEEDED(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_REQUEST_NEEDED) != 0)
74 #define GTK_PRIVATE_SET_FLAG(wid,flag) G_STMT_START{ (GTK_PRIVATE_FLAGS (wid) |= (PRIVATE_ ## flag)); }G_STMT_END
75 #define GTK_PRIVATE_UNSET_FLAG(wid,flag) G_STMT_START{ (GTK_PRIVATE_FLAGS (wid) &= ~(PRIVATE_ ## flag)); }G_STMT_END
77 #if defined G_OS_WIN32
79 const gchar *_gtk_get_datadir ();
80 const gchar *_gtk_get_libdir ();
81 const gchar *_gtk_get_sysconfdir ();
82 const gchar *_gtk_get_localedir ();
83 const gchar *_gtk_get_data_prefix ();
86 #define GTK_LIBDIR _gtk_get_libdir ()
88 #define GTK_LOCALEDIR _gtk_get_localedir ()
94 gboolean no_leading_period);
96 #define GTK_PARAM_READABLE G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
97 #define GTK_PARAM_WRITABLE G_PARAM_WRITABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
98 #define GTK_PARAM_READWRITE G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
103 #ifndef GDK_WINDOWING_QUARTZ
104 #define GTK_DEFAULT_ACCEL_MOD_MASK GDK_CONTROL_MASK
105 #define GTK_DEFAULT_ACCEL_MOD_MASK_VIRTUAL GDK_CONTROL_MASK
107 #define GTK_DEFAULT_ACCEL_MOD_MASK GDK_MOD2_MASK
108 #define GTK_DEFAULT_ACCEL_MOD_MASK_VIRTUAL GDK_MOD2_MASK
115 #ifndef GDK_WINDOWING_QUARTZ
116 #define GTK_NO_TEXT_INPUT_MOD_MASK (GDK_MOD1_MASK | GDK_CONTROL_MASK)
118 #define GTK_NO_TEXT_INPUT_MOD_MASK (GDK_MOD2_MASK | GDK_CONTROL_MASK)
121 #ifndef GDK_WINDOWING_QUARTZ
122 #define GTK_EXTEND_SELECTION_MOD_MASK GDK_SHIFT_MASK
123 #define GTK_MODIFY_SELECTION_MOD_MASK GDK_CONTROL_MASK
125 #define GTK_EXTEND_SELECTION_MOD_MASK GDK_SHIFT_MASK
126 #define GTK_MODIFY_SELECTION_MOD_MASK GDK_MOD2_MASK
129 #ifndef GDK_WINDOWING_QUARTZ
130 #define GTK_TOGGLE_GROUP_MOD_MASK 0
132 #define GTK_TOGGLE_GROUP_MOD_MASK GDK_MOD1_MASK
138 guint hardware_keycode,
143 gint *effective_group,
gboolean _gtk_fnmatch(const char *pattern, const char *string, gboolean no_leading_period)
gboolean _gtk_button_event_triggers_context_menu(GdkEventButton *event)
@ PRIVATE_GTK_HAS_SHAPE_MASK
@ PRIVATE_GTK_DIRECTION_LTR
@ PRIVATE_GTK_RESIZE_PENDING
@ PRIVATE_GTK_DIRECTION_SET
@ PRIVATE_GTK_ALLOC_NEEDED
@ PRIVATE_GTK_CHILD_VISIBLE
@ PRIVATE_GTK_IN_REPARENT
@ PRIVATE_GTK_REDRAW_ON_ALLOC
@ PRIVATE_GTK_HAS_POINTER
@ PRIVATE_GTK_REQUEST_NEEDED
gboolean _gtk_translate_keyboard_accel_state(GdkKeymap *keymap, guint hardware_keycode, GdkModifierType state, GdkModifierType accel_mask, gint group, guint *keyval, gint *effective_group, gint *level, GdkModifierType *consumed_modifiers)
link region and track false waveform clip level