diff options
author | Michael Natterer <mitch@imendio.com> | 2006-09-21 17:05:33 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2006-09-21 17:05:33 +0000 |
commit | 2f50232a4258c27e793db55c0ab26ab5009432ad (patch) | |
tree | 0ebe1cd6eca41d236a285c2c51012e5e2d5aefff /gtk/gtkvbox.h | |
parent | 7c867795db0522ce66bb21e43efa4c4a38e2b233 (diff) | |
download | gdk-pixbuf-2f50232a4258c27e793db55c0ab26ab5009432ad.tar.gz |
Implement lots of value setters for GdkGC, based on a heavily modified
2006-09-21 Michael Natterer <mitch@imendio.com>
Implement lots of value setters for GdkGC, based on a heavily
modified patch from Thomas Broyer (bug #328853):
* gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
which simply returns RGBA values from a GdkColor's pixel value.
See gdk_quartz_update_context_from_gc() below.
* gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
of members for the newly suppored GC values. Added enum
GdkQuartzContextValuesMask which is used for setting up the
CGContext for filling and/or stroking.
* gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
(gdk_quartz_gc_set_values)
(_gdk_windowing_gc_copy): support a lot more GC values.
(gdk_quartz_update_context_from_gc): added
GdkQuartzContextValuesMask parameter and set filling/stroking
parameters accordingly. This function also gained full control
over the FG and BG colors (they can't be set separately any more).
The stipple mask part of the patch doesn't work but seems to take
the right approach and doesn't make things worse, so I applied it.
Did *not* apply the clipping part of the patch since I don't
understand it (I don't understand the version in CVS either, but
it at least works :-)
* gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
gdk_quartz_update_context_from_gc() and removed separate color
setting calls. Some minor fixes.
* gdk/quartz/gdkwindow-quartz.c
(gdk_window_impl_quartz_begin_paint_region): set the CGContext's
fill color manually. We don't have/need a GC here.
Diffstat (limited to 'gtk/gtkvbox.h')
0 files changed, 0 insertions, 0 deletions