gtk2/gdk/quartz
Michael Natterer 2f50232a42 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.
2006-09-21 17:05:33 +00:00
..
.cvsignore Shutup CVS 2006-08-08 22:47:57 +00:00
gdkcolor-quartz.c Implement lots of value setters for GdkGC, based on a heavily modified 2006-09-21 17:05:33 +00:00
gdkcursor-quartz.c Fix comment. (gdk_window_set_title): Surround by release pool macros. 2006-07-17 08:07:55 +00:00
gdkdisplay-quartz.c return the hostname instead of NULL. 2006-08-24 19:41:40 +00:00
gdkdnd-quartz.c Add more stubs. 2006-03-27 10:47:29 +00:00
gdkdrawable-quartz.c Implement lots of value setters for GdkGC, based on a heavily modified 2006-09-21 17:05:33 +00:00
gdkdrawable-quartz.h Always set success to TRUE. (gdk_color_change): Implement. 2006-07-29 11:05:15 +00:00
gdkevents-quartz.c Add GDK button mask for NS dragging events. (create_scroll_event): Remove 2006-08-15 20:13:13 +00:00
gdkfont-quartz.c Add more stubs. 2006-03-27 10:47:29 +00:00
gdkgc-quartz.c Implement lots of value setters for GdkGC, based on a heavily modified 2006-09-21 17:05:33 +00:00
gdkgeometry-quartz.c Implement some more stubs for pygtk, bug #346713. 2006-07-09 18:09:09 +00:00
gdkglobals-quartz.c Add quartz backend. 2005-11-22 10:03:32 +00:00
gdkim-quartz.c Add quartz backend. 2005-11-22 10:03:32 +00:00
gdkimage-quartz.c Add quartz backend. 2005-11-22 10:03:32 +00:00
gdkinput-old.c Add quartz backend. 2005-11-22 10:03:32 +00:00
gdkinput.c Add quartz backend. 2005-11-22 10:03:32 +00:00
gdkinputprivate.h Add quartz backend. 2005-11-22 10:03:32 +00:00
gdkkeys-quartz.c Special-case shift-tab and map it to GDK_ISO_Left_Tab, fixes bug #350806. 2006-09-06 17:29:28 +00:00
gdkmain-quartz.c Always set success to TRUE. (gdk_color_change): Implement. 2006-07-29 11:05:15 +00:00
gdkpixmap-quartz.c ]): Remove unused variables to fix compiler warnings. 2006-07-19 09:15:58 +00:00
gdkpixmap-quartz.h Add quartz backend. 2005-11-22 10:03:32 +00:00
gdkprivate-quartz.h Implement lots of value setters for GdkGC, based on a heavily modified 2006-09-21 17:05:33 +00:00
gdkproperty-quartz.c Add missing CLIPBOARD atom. 2006-03-29 20:34:33 +00:00
gdkquartz.h Add the GDK part of the DND implementation. 2006-03-21 08:02:17 +00:00
GdkQuartzView.c Don't do anything if exposure isn't in the event mask, plug a leak, and 2006-09-03 10:46:32 +00:00
GdkQuartzView.h Add quartz backend. 2005-11-22 10:03:32 +00:00
GdkQuartzWindow.c Always set success to TRUE. (gdk_color_change): Implement. 2006-07-29 11:05:15 +00:00
GdkQuartzWindow.h Add quartz backend. 2005-11-22 10:03:32 +00:00
gdkscreen-quartz.c Create 'composited' label. 2006-04-25 14:27:32 +00:00
gdkselection-quartz.c Set the window level depending on the type hint. 2006-07-24 10:46:21 +00:00
gdkspawn-quartz.c Add spawn functions, copied from the win32 backend. 2006-06-03 17:51:34 +00:00
gdkvisual-quartz.c Add quartz backend. 2005-11-22 10:03:32 +00:00
gdkwindow-quartz.c Implement lots of value setters for GdkGC, based on a heavily modified 2006-09-21 17:05:33 +00:00
gdkwindow-quartz.h Implement type hints and use them to determine which windows should be 2006-07-19 09:13:24 +00:00
Makefile.am /tmp/cvsX7MHVx 2006-09-14 02:56:20 +00:00