29 #ifndef __GDK_INTERNALS_H__
30 #define __GDK_INTERNALS_H__
98 #ifndef GDK_DISABLE_DEPRECATED
118 #ifdef G_ENABLE_DEBUG
120 #define GDK_NOTE(type,action) G_STMT_START { \
121 if (_gdk_debug_flags & GDK_DEBUG_##type) \
122 { action; }; } G_STMT_END
126 #define GDK_NOTE(type,action)
287 #define GDK_WINDOW_TYPE(d) (((GdkWindowObject*)(GDK_WINDOW (d)))->window_type)
288 #define GDK_WINDOW_DESTROYED(d) (((GdkWindowObject*)(GDK_WINDOW (d)))->destroyed)
329 #define GDK_SCRATCH_IMAGE_WIDTH 256
330 #define GDK_SCRATCH_IMAGE_HEIGHT 64
363 gboolean graphics_exposures);
368 const GdkColor *override_foreground,
399 gint attributes_mask);
401 gboolean foreign_destroy);
434 gboolean reset_origin);
484 gboolean get_toplevel);
487 gboolean owner_events,
507 #define GDK_WINDOW_IS_MAPPED(window) ((((GdkWindowObject*)window)->state & GDK_WINDOW_STATE_WITHDRAWN) == 0)
518 const gchar *sm_client_id);
521 gboolean composited);
523 #define GDK_TYPE_PAINTABLE (_gdk_paintable_get_type ())
524 #define GDK_PAINTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_PAINTABLE, GdkPaintable))
525 #define GDK_IS_PAINTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_PAINTABLE))
526 #define GDK_PAINTABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GDK_TYPE_PAINTABLE, GdkPaintableIface))
565 gboolean reset_origin);
600 const char *startup_notify_id);
604 gulong current_serial);
609 gboolean owner_events,
611 unsigned long serial_start,
623 gboolean owner_events,
624 unsigned long serial,
654 gboolean before_event);
668 gboolean non_linear);
677 gboolean do_children,
679 gint *base_y_offset);
693 #define GDK_TYPE_OFFSCREEN_WINDOW (gdk_offscreen_window_get_type())
694 #define GDK_OFFSCREEN_WINDOW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_OFFSCREEN_WINDOW, GdkOffscreenWindow))
695 #define GDK_IS_OFFSCREEN_WINDOW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_OFFSCREEN_WINDOW))
702 gint attributes_mask);
GdkFilterReturn(* GdkFilterFunc)(GdkXEvent *xevent, GdkEvent *event, gpointer data)
void(* GdkEventFunc)(GdkEvent *event, gpointer data)
typedefG_BEGIN_DECLS struct _GdkGCValues GdkGCValues
GDestroyNotify _gdk_event_notify
GList * _gdk_event_queue_insert_before(GdkDisplay *display, GdkEvent *after_event, GdkEvent *event)
void _gdk_windowing_gc_copy(GdkGC *dst_gc, GdkGC *src_gc)
void _gdk_synthesize_crossing_events_for_geometry_change(GdkWindow *changed_window)
GdkRegion * _gdk_windowing_get_shape_for_mask(GdkBitmap *mask)
void _gdk_windowing_set_default_display(GdkDisplay *display)
@ GDK_EVENT_FILTER_REMOVED
gulong _gdk_windowing_window_get_next_serial(GdkDisplay *display)
gboolean _gdk_window_update_viewable(GdkWindow *window)
GdkDrawable * _gdk_drawable_begin_direct_draw(GdkDrawable *drawable, GdkGC *gc, gpointer *priv_data, gint *x_offset_out, gint *y_offset_out)
gint _gdk_windowing_get_bits_for_depth(GdkDisplay *display, gint depth)
GdkPixmap * _gdk_bitmap_create_from_data(GdkDrawable *drawable, const gchar *data, gint width, gint height)
gchar * _gdk_windowing_substitute_screen_number(const gchar *display_name, gint screen_number)
void(* GdkArgFunc)(const char *name, const char *arg, gpointer data)
void _gdk_windowing_get_pointer(GdkDisplay *display, GdkScreen **screen, gint *x, gint *y, GdkModifierType *mask)
void _gdk_event_button_generate(GdkDisplay *display, GdkEvent *event)
GList * _gdk_event_queue_append(GdkDisplay *display, GdkEvent *event)
gboolean _gdk_gc_get_exposures(GdkGC *gc)
GdkSubwindowMode _gdk_gc_get_subwindow(GdkGC *gc)
void gdk_synthesize_window_state(GdkWindow *window, GdkWindowState unset_flags, GdkWindowState set_flags)
GdkPointerGrabInfo * _gdk_display_get_last_pointer_grab(GdkDisplay *display)
GdkPixmap * _gdk_gc_get_tile(GdkGC *gc)
void _gdk_windowing_before_process_all_updates(void)
void _gdk_windowing_after_process_all_updates(void)
GdkWindow * _gdk_window_get_impl_window(GdkWindow *window)
void _gdk_windowing_display_set_sm_client_id(GdkDisplay *display, const gchar *sm_client_id)
char * _gdk_windowing_get_startup_notify_id(GAppLaunchContext *context, GAppInfo *info, GList *files)
void _gdk_offscreen_window_new(GdkWindow *window, GdkScreen *screen, GdkVisual *visual, GdkWindowAttr *attributes, gint attributes_mask)
void _gdk_windowing_window_beep(GdkWindow *window)
GdkRegion * _gdk_windowing_window_get_input_shape(GdkWindow *window)
void _gdk_display_unset_has_keyboard_grab(GdkDisplay *display, gboolean implicit)
guint32 _gdk_gc_get_bg_pixel(GdkGC *gc)
GdkRegion * _gdk_windowing_window_get_shape(GdkWindow *window)
gboolean _gdk_native_windows
GdkRegion * _gdk_window_calculate_full_clip_region(GdkWindow *window, GdkWindow *base_window, gboolean do_children, gint *base_x_offset, gint *base_y_offset)
void _gdk_cursor_destroy(GdkCursor *cursor)
void _gdk_window_destroy(GdkWindow *window, gboolean foreign_destroy)
GList * _gdk_default_filters
GdkImage * _gdk_drawable_copy_to_image(GdkDrawable *drawable, GdkImage *image, gint src_x, gint src_y, gint dest_x, gint dest_y, gint width, gint height)
void _gdk_windowing_gc_set_clip_region(GdkGC *gc, const GdkRegion *region, gboolean reset_origin)
GdkWindow * _gdk_window_get_input_window_for_event(GdkWindow *native_window, GdkEventType event_type, GdkModifierType mask, int x, int y, gulong serial)
cairo_surface_t * _gdk_drawable_ref_cairo_surface(GdkDrawable *drawable)
typedefG_BEGIN_DECLS struct _GdkColorInfo GdkColorInfo
GdkRegion * _gdk_region_new_from_yxbanded_rects(GdkRectangle *rects, int n_rects)
gchar * _gdk_display_arg_name
GdkEvent * _gdk_event_unqueue(GdkDisplay *display)
gchar * _gdk_display_name
struct _GdkOffscreenWindow GdkOffscreenWindow
void _gdk_window_process_updates_recurse(GdkWindow *window, GdkRegion *expose_region)
void _gdk_windowing_gc_get_background(GdkGC *gc, GdkColor *color)
const GOptionEntry _gdk_windowing_args[]
GdkEvent * _gdk_make_event(GdkWindow *window, GdkEventType type, GdkEvent *event_in_queue, gboolean before_event)
GdkWindow * _gdk_parent_root
cairo_surface_t * _gdk_windowing_create_cairo_surface(GdkDrawable *drawable, int width, int height)
const char * _gdk_get_sm_client_id(void)
void _gdk_window_clear_update_area(GdkWindow *window)
GdkWindow * _gdk_windowing_window_at_pointer(GdkDisplay *display, gint *win_x, gint *win_y, GdkModifierType *mask, gboolean get_toplevel)
GdkBitmap * _gdk_gc_get_clip_mask(GdkGC *gc)
void _gdk_window_invalidate_for_expose(GdkWindow *window, GdkRegion *region)
GdkGrabStatus _gdk_windowing_pointer_grab(GdkWindow *window, GdkWindow *native, gboolean owner_events, GdkEventMask event_mask, GdkWindow *confine_to, GdkCursor *cursor, guint32 time)
gint _gdk_font_strlen(GdkFont *font, const char *str)
GdkGC * _gdk_drawable_get_scratch_gc(GdkDrawable *drawable, gboolean graphics_exposures)
gboolean _gdk_window_has_impl(GdkWindow *window)
GdkPointerGrabInfo * _gdk_display_get_active_pointer_grab(GdkDisplay *display)
void _gdk_window_add_damage(GdkWindow *toplevel, GdkRegion *damaged_region)
void _gdk_gc_remove_drawable_clip(GdkGC *gc)
void _gdk_windowing_launch_failed(GAppLaunchContext *context, const char *startup_notify_id)
void _gdk_event_queue_remove_link(GdkDisplay *display, GList *node)
void _gdk_display_set_has_keyboard_grab(GdkDisplay *display, GdkWindow *window, GdkWindow *native_window, gboolean owner_events, unsigned long serial, guint32 time)
GList * _gdk_event_queue_prepend(GdkDisplay *display, GdkEvent *event)
GdkRegion * _gdk_gc_get_clip_region(GdkGC *gc)
void _gdk_window_impl_new(GdkWindow *window, GdkWindow *real_parent, GdkScreen *screen, GdkVisual *visual, GdkEventMask event_mask, GdkWindowAttr *attributes, gint attributes_mask)
GdkDrawable * _gdk_drawable_get_source_drawable(GdkDrawable *drawable)
void _gdk_image_exit(void)
GdkFill _gdk_gc_get_fill(GdkGC *gc)
void _gdk_gc_add_drawable_clip(GdkGC *gc, guint32 region_tag, GdkRegion *region, int offset_x, int offset_y)
GdkPixmap * _gdk_pixmap_create_from_data(GdkDrawable *drawable, const gchar *data, gint width, gint height, gint depth, const GdkColor *fg, const GdkColor *bg)
void _gdk_colormap_real_destroy(GdkColormap *colormap)
GdkBitmap * _gdk_gc_get_stipple(GdkGC *gc)
void _gdk_display_set_window_under_pointer(GdkDisplay *display, GdkWindow *window)
void _gdk_windowing_set_cairo_surface_size(cairo_surface_t *surface, int width, int height)
GdkGC * _gdk_drawable_get_subwindow_scratch_gc(GdkDrawable *drawable)
void _gdk_synthesize_crossing_events(GdkDisplay *display, GdkWindow *src, GdkWindow *dest, GdkCrossingMode mode, gint toplevel_x, gint toplevel_y, GdkModifierType mask, guint32 time_, GdkEvent *event_in_queue, gulong serial, gboolean non_linear)
GType _gdk_pixmap_impl_get_type(void) G_GNUC_CONST
struct _GdkPaintable GdkPaintable
void _gdk_font_destroy(GdkFont *font)
void _gdk_display_pointer_grab_update(GdkDisplay *display, gulong current_serial)
GdkImage * _gdk_image_get_scratch(GdkScreen *screen, gint width, gint height, gint depth, gint *x, gint *y)
void _gdk_drawable_end_direct_draw(gpointer priv_data)
GdkWindow * _gdk_window_find_child_at(GdkWindow *window, int x, int y)
GType _gdk_paintable_get_type(void) G_GNUC_CONST
void _gdk_windowing_init(void)
gboolean _gdk_display_end_pointer_grab(GdkDisplay *display, gulong serial, GdkWindow *if_child, gboolean implicit)
void _gdk_events_queue(GdkDisplay *display)
void _gdk_event_filter_unref(GdkWindow *window, GdkEventFilter *filter)
void _gdk_windowing_window_get_offsets(GdkWindow *window, gint *x_offset, gint *y_offset)
GdkDrawable * _gdk_offscreen_window_get_real_drawable(GdkOffscreenWindow *window)
GdkImage * _gdk_image_new_for_depth(GdkScreen *screen, GdkImageType type, GdkVisual *visual, gint width, gint height, gint depth)
void _gdk_window_update_size(GdkWindow *window)
gboolean _gdk_window_event_parent_of(GdkWindow *parent, GdkWindow *child)
GdkPointerGrabInfo * _gdk_display_has_pointer_grab(GdkDisplay *display, gulong serial)
void _gdk_gc_update_context(GdkGC *gc, cairo_t *cr, const GdkColor *override_foreground, GdkBitmap *override_stipple, gboolean gc_changed, GdkDrawable *target_drawable)
void _gdk_gc_set_clip_region_internal(GdkGC *gc, GdkRegion *region, gboolean reset_origin)
GType _gdk_window_impl_get_type(void) G_GNUC_CONST
GType gdk_offscreen_window_get_type(void)
void _gdk_screen_close(GdkScreen *screen)
void _gdk_gc_init(GdkGC *gc, GdkDrawable *drawable, GdkGCValues *values, GdkGCValuesMask values_mask)
void _gdk_windowing_event_data_free(GdkEvent *event)
void _gdk_windowing_got_event(GdkDisplay *display, GList *event_link, GdkEvent *event, gulong serial)
void _gdk_display_enable_motion_hints(GdkDisplay *display)
guint32 _gdk_gc_get_fg_pixel(GdkGC *gc)
GdkPixmap * _gdk_pixmap_new(GdkDrawable *drawable, gint width, gint height, gint depth)
void _gdk_windowing_window_process_updates_recurse(GdkWindow *window, GdkRegion *expose_region)
void _gdk_windowing_gc_get_foreground(GdkGC *gc, GdkColor *color)
GdkPointerGrabInfo * _gdk_display_add_pointer_grab(GdkDisplay *display, GdkWindow *window, GdkWindow *native_window, gboolean owner_events, GdkEventMask event_mask, unsigned long serial_start, guint32 time, gboolean implicit)
struct _GdkWindowPaint GdkWindowPaint
void _gdk_windowing_exit(void)
GdkWindow * _gdk_window_find_descendant_at(GdkWindow *toplevel, double x, double y, double *found_x, double *found_y)
void _gdk_windowing_window_set_composited(GdkWindow *window, gboolean composited)
cairo_surface_t * _gdk_drawable_create_cairo_surface(GdkDrawable *drawable, int width, int height)
void(* _gdk_modal_notify)(GdkWindow *, gboolean)
GList * _gdk_event_queue_find_first(GdkDisplay *display)
GdkEventFunc _gdk_event_func
void _gdk_windowing_window_destroy_foreign(GdkWindow *window)
void _gdk_windowing_event_data_copy(const GdkEvent *src, GdkEvent *dst)
GList * _gdk_event_queue_insert_after(GdkDisplay *display, GdkEvent *after_event, GdkEvent *event)
struct _GdkAtom * GdkAtom
GtkImageIconNameData name
PBD::PropertyDescriptor< uint32_t > color
PBD::PropertyDescriptor< bool > region
GdkWindow * native_window
GdkEventFilterFlags flags
void(* end_paint)(GdkPaintable *paintable)
void(* begin_paint_region)(GdkPaintable *paintable, GdkWindow *window, const GdkRegion *region)
cairo_surface_t * cairo_surface
guint update_and_descendants_freeze_count
gint8 toplevel_window_type
guint update_freeze_count
guint num_offscreen_children
GdkDrawable parent_instance
guint outstanding_surfaces
guint synthesize_crossing_event_queued
GdkWindowPaint * implicit_paint
GdkInputWindow * input_window
GdkWindowObject * impl_window
GList * outstanding_moves
GdkWindowRedirect * redirect
guint effective_visibility
cairo_pattern_t * background
GdkRegion * clip_region_with_children