From: Kevin Ryde <user42@zip.com.au>
To: Marko Rauhamaa <marko@pacujo.net>
Cc: guile-gtk@sources.redhat.com
Subject: Re: Completed RGB functionality
Date: Thu, 15 May 2003 23:00:00 -0000 [thread overview]
Message-ID: <87bry3iznh.fsf@zip.com.au> (raw)
In-Reply-To: <m38ytjs8a0.fsf@lumo.pacujo.net>
Marko Rauhamaa <marko@pacujo.net> writes:
>
> - gdk-1.2.defs: Decided not to implement the function
> gdk_rgb_xpixel_from_rgb since it would have no use in scheme code.
> Instead, I implemented (gdk-color-new rgb), which calls
> gdk_rgb_xpixel_from_rgb to create a new GdkColor. Gdk-color-new has
> no C equivalent.
I don't think this should be called gdk-color-new, a name like that
gives no hint that GdkRGB is being run.
I'd suggest gdk-color-new should just create a GdkColor object with
zero fields. Field setter functions can be introduced to manipulate
them.
I think field setters would be good anyway (for gdk_colormap_alloc and
friends for instance), and in this case they'd mean a direct
gdk_rgb_xpixel_from_rgb was useful.
Another thing field setters would do is mean that gdk-color-change can
take the same parameters as the C gdk_color_change, ie. a GdkColor
containing a pixel value. Unnecessary variations between the C and
Scheme functions are not good.
next prev parent reply other threads:[~2003-05-15 23:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-07 4:22 Marko Rauhamaa
2003-05-15 23:00 ` Kevin Ryde [this message]
2003-05-16 5:42 ` Marko Rauhamaa
2003-06-14 23:46 ` GdkColor field setters (was: Completed RGB functionality) Kevin Ryde
2003-06-15 0:11 ` gdk-color-change params " Kevin Ryde
2003-06-15 2:38 ` Marko Rauhamaa
2003-08-09 0:47 ` gdk-color-new " 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=87bry3iznh.fsf@zip.com.au \
--to=user42@zip.com.au \
--cc=guile-gtk@sources.redhat.com \
--cc=marko@pacujo.net \
/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).