need some pointers
markus hammer <[email protected]> Wed, 03 Mar 2004 16:54:05 +0100
| Newsgroups | gmane.comp.graphics.sodipodi |
|---|---|
| Message-ID | <[email protected]> |
ok i got the source now here and looked up where the select tool has its
mouse_over. i now want to hang in a visual feedback of the path under
the select tool at GDK_ENTER_NOTIFY and GDK_LEAVE_NOTIFY in the file
select_context.c
the only show stopper i am now at is how to display specified path as an
XOR'ed overlay to the whole canvas. i found some functions in the gdk
library that seem usefull.
######
void gdk_region_xor (GdkRegion *source1,
GdkRegion *source2);
Sets the area of source1 to the exclusive-OR of the areas of source1 and
source2. The resulting area is the set of pixels contained in one or the
other of the two sources but not in both.
###### and ######
GdkRegion* gdk_region_polygon (GdkPoint *points,
gint npoints,
GdkFillRule fill_rule);
Creates a new GdkRegion using the polygon defined by a number of points.
points :an array of GdkPoint structs. npoints : the number of elements
in the points array. fill_rule :specifies which pixels are included in
the region when the polygon overlaps itself. Returns :a new GdkRegion
based on the given polygon.
######
ok and now my plan is to somehow get this to be able to be used by
sodipodi, i am sure an own function is appropriate here. i just dont
know how to get the ArtBpath converted into a gdk_region. maybe someone
can help me on this one.
markus
--
there is no fork() [email protected]
jabber: [email protected]
ICQ: 89617808
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click