gnomemm r1197 - in cluttermm/trunk: . clutter/src examples
- From: jjongsma svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1197 - in cluttermm/trunk: . clutter/src examples
- Date: Thu, 8 Nov 2007 17:42:18 +0000 (GMT)
Author: jjongsma
Date: 2007-11-08 17:42:17 +0000 (Thu, 08 Nov 2007)
New Revision: 1197
ViewCVS link: http://svn.gnome.org/viewcvs/gnomemm?rev=1197&view=rev
Modified:
cluttermm/trunk/ChangeLog
cluttermm/trunk/clutter/src/color.ccg
cluttermm/trunk/clutter/src/color.hg
cluttermm/trunk/examples/test-boxes.cc
Log:
2007-11-08 Jonathon Jongsma <jjongsma gnome org>
* clutter/src/color.ccg:
* clutter/src/color.hg: I had forgotten to add an rgb constructor, which is
the most common case and corresponds to the C use:
ClutterColor color = { 0, 0, 0, 255};
This means that we can't have a constructor for hls, because they would be
the same signature. So I removed the hls and hlsx constructors. If you
want to set a color via hls, you'll need to construct it and then call
Color::set_from_hls() instead. I also added getters/setters for all of the
individual red/green/blue/alpha values and one setter for all of them at
once. This API might still need a bit more thought to make it more natural
* examples/test-boxes.cc: updated for the new color API
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]