public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
From: Marko Rauhamaa <marko@pacujo.net>
To: guile-gtk@sources.redhat.com
Subject: Added a bunch of GDK routines.
Date: Fri, 02 May 2003 01:25:00 -0000	[thread overview]
Message-ID: <m33cjyxi3p.fsf@lumo.pacujo.net> (raw)

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/

             reply	other threads:[~2003-05-02  1:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-02  1:25 Marko Rauhamaa [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m33cjyxi3p.fsf@lumo.pacujo.net \
    --to=marko@pacujo.net \
    --cc=guile-gtk@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).