public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
* Added a bunch of GDK routines.
@ 2003-05-02  1:25 Marko Rauhamaa
  2003-05-11 23:28 ` Kevin Ryde
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Marko Rauhamaa @ 2003-05-02  1:25 UTC (permalink / raw)
  To: guile-gtk

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/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-06-20 23:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-02  1:25 Added a bunch of GDK routines Marko Rauhamaa
2003-05-11 23:28 ` Kevin Ryde
2003-05-12 18:06   ` Marko Rauhamaa
2003-05-12 18:56     ` Marko Rauhamaa
2003-06-06 22:23 ` GdkWChar (was: Added a bunch of GDK routines.) Kevin Ryde
2003-06-14 23:58 ` gdk-gc-copy comments " Kevin Ryde
2003-06-20 23:54 ` sgtk_timestamp returns " Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).