Given three points forming an angle, computes the coordinates of the inside
and outside points of the mitered corner formed by a line of a given width at
that angle.
x1 :
X coordinate of the first point
y1 :
Y coordinate of the first point
x2 :
X coordinate of the second (angle) point
y2 :
Y coordinate of the second (angle) point
x3 :
X coordinate of the third point
y3 :
Y coordinate of the third point
width :
Width of the line
mx1 :
The X coordinate of the first miter point is returned here.
my1 :
The Y coordinate of the first miter point is returned here.
mx2 :
The X coordinate of the second miter point is returned here.
my2 :
The Y coordinate of the second miter point is returned here.
Returns :
FALSE if the angle is less than 11 degrees (this is the same
threshold as X uses. If this occurs, the return points are not modified.
Otherwise, returns TRUE.
Sets the svp to the new value, clipping if necessary, and requesting repaint
on what's changed. This function takes responsibility for freeing new_svp.
canvas :
the canvas containing the svp that needs updating.
Sets the svp to the new value, requesting repaint on what's changed. This
function takes responsibility for freeing new_svp. This routine also adds the
svp's bbox to the item's.
item :
the canvas item containing the svp that needs updating.
Sets the svp to the new value, clipping if necessary, and requesting repaint
on what's changed. This function takes responsibility for freeing new_svp.
item :
the canvas item containing the svp that needs updating.
This routine loads a PNG file with full alpha transparency and
file :
filename to load
Returns :
a (GdkImlibImage *).
Note that images created by this routine are not intended to be
passed to GdkImlib, we just use this to remain compatible with
the GnomeCanvasImage Canvas item. Use this with GdkImlib at
your own risk.
To release images loaded by gnome_canvas_load_alpha, use
gnome_canvas_destroy_image preferably although it works
with imlib now, in the future this might not be the case.