This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Added a bunch of GDK routines.
- From: Marko Rauhamaa <marko at pacujo dot net>
- To: guile-gtk at sources dot redhat dot com
- Date: 01 May 2003 18:17:14 -0700
- Subject: Added a bunch of GDK routines.
Summary: Added a bunch of GDK routines.
Detailed Notes:
- The new code is mainly additional functionality. It compiles but I
haven't run any of the code yet.
- build-guile-gtk-1.2: Added a new predefined type 'char for
gdk_gc_set_dashes.
- build-guile-gtk-1.2 and guile-gtk.[ch]: Added a new predefined type
'segment for gdk_draw_segments.
- gdk-1.2.defs: Chose not to implement these functions:
* gdk_init, gdk_init_check, gdk_exit (because gtk+ calls them
automatically)
* gdk_set_sm_client_id (because I don't understand it yet)
* gdk_get_use_xshm, gdk_set_use_xshm (because they are unlikely to be
of concern to guile applications)
* gdk_gc_new_with_values (because the individual field setters and
gdk_gc_new are fully sufficient and convenient).
- gdk-1.2.defs and guile-gtk.h: Added a new auxiliary data type
sgtk_timestamp, which is typedef'ed from guint32; that way
'current-time can be specified symbolically in scheme code.
- gdk-1.2.defs: Removed GdkGCValuesMask. It was never used and, I
think, will not be needed (see also gdk_gc_get_values below).
- gdk-1.2.defs: Defined an alias GdkWChar for uint for
gdk_draw_text_wc. (I trust uint to correspond to guint32 because
currently there is no alternative.)
- gdk-1.2.defs: Added the types GdkFillRule and GdkRegion for GDK's
region routines.
- gdk-1.2.defs: Added the functions gdk_gc_copy, gdk_gc_set_dashes,
gdk_rectangle_intersect, gdk_rectangle_union, gdk_region_new,
gdk_region_polygon, gdk_region_destroy, gdk_regions_intersect,
gdk_regions_union, gdk_regions_subtract, gdk_regions_xor,
gdk_region_union_with_rect, gdk_region_offset, gdk_region_shrink,
gdk_region_empty, gdk_region_equal, gdk_region_point_in,
gdk_region_rect_in, gdk_region_get_clipbox, gdk_draw_segments,
gdk_draw_text_wc, gdk_wcstombs, gdk_mbstowcs, gdk_get_display,
gdk_pointer_grab, gdk_pointer_ungrab, gdk_pointer_is_grabbed,
gdk_keyboard_grab, gdk_keyboard_ungrab, gdk_key_repeat_disable,
gdk_key_repeat_restore, gdk_error_trap_push, gdk_error_trap_pop.
- gdk-1.2.defs: Added the function gdk_gc_get_values. Instead of
GdkGCValuesMask, it returns a list with the GC values as elements.
(See also gdk_gc_get_values_scm below.)
- gdk-support.c and guile-gtk.h: Added extra glue code for
gdk_wcstombs_scm, gdk_mbstowcs_scm, gdk_rectangle_intersect_scm,
gdk_rectangle_union_scm, gdk_region_union_with_rect_scm,
gdk_region_rect_in_scm, gdk_region_get_clipbox_scm. (Note how much
manual coding is still necessary!)
- gdk-support.c and guile-gtk.h: Added also the extra glue function
gdk_gc_get_values_scm. Had to resort to direct extern references to
gdk-glue.c:
extern sgtk_boxed_info sgtk_gdk_color_info, sgtk_gdk_font_info,
sgtk_gdk_window_info;
extern sgtk_enum_info sgtk_gdk_function_info, sgtk_gdk_fill_info,
sgtk_gdk_subwindow_mode_info, sgtk_gdk_line_style_info,
sgtk_gdk_cap_style_info, sgtk_gdk_join_style_info;
There should maybe be a cleaner way to refer to entities defined in
gdk-1.2.defs.
- guile-gtk.[ch]: Made xmalloc and xrealloc non-static so I could use
xmalloc in gdk_wcstombs_scm and gdk_mbstowcs_scm.
- guile-gtk.h: Removed duplicate declarations of gtk_style_fg_gc and
gtk_style_bg_gc.
--
Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/