mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
2f50232a42
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. |
||
---|---|---|
.. | ||
.cvsignore | ||
gdkcolor-quartz.c | ||
gdkcursor-quartz.c | ||
gdkdisplay-quartz.c | ||
gdkdnd-quartz.c | ||
gdkdrawable-quartz.c | ||
gdkdrawable-quartz.h | ||
gdkevents-quartz.c | ||
gdkfont-quartz.c | ||
gdkgc-quartz.c | ||
gdkgeometry-quartz.c | ||
gdkglobals-quartz.c | ||
gdkim-quartz.c | ||
gdkimage-quartz.c | ||
gdkinput-old.c | ||
gdkinput.c | ||
gdkinputprivate.h | ||
gdkkeys-quartz.c | ||
gdkmain-quartz.c | ||
gdkpixmap-quartz.c | ||
gdkpixmap-quartz.h | ||
gdkprivate-quartz.h | ||
gdkproperty-quartz.c | ||
gdkquartz.h | ||
GdkQuartzView.c | ||
GdkQuartzView.h | ||
GdkQuartzWindow.c | ||
GdkQuartzWindow.h | ||
gdkscreen-quartz.c | ||
gdkselection-quartz.c | ||
gdkspawn-quartz.c | ||
gdkvisual-quartz.c | ||
gdkwindow-quartz.c | ||
gdkwindow-quartz.h | ||
Makefile.am |