hid_gc_struct Struct Reference


Detailed Description

Definition of graphic context for the dxf HID.

This graphics context is an opaque pointer defined by the HID.
GCs are HID-specific; attempts to use one HID's GC for a different HID will result in a fatal error.

Todo:
In pcb the cap always extends beyond the coordinates given, by half the width of the line.
With DXF polylines the cap is by default 0, and thus doesn't extend beyond the coordinates.
A round cap could be implemented by drawing a donut (a series of polyline vertices) with an inner radius of zero at the start and endpoint of a line, this doesn't solve the problem for other aperure shapes, and is thus not yet implemented.

Definition at line 695 of file dxf.c.

Data Fields

EndCapStyle cap
int width
int color
int erase
int drill


Field Documentation

EndCapStyle hid_gc_struct::cap
 

end cap style

Definition at line 697 of file dxf.c.

int hid_gc_struct::color
 

color

Definition at line 699 of file dxf.c.

int hid_gc_struct::drill
 

drill

Definition at line 701 of file dxf.c.

int hid_gc_struct::erase
 

erase

Definition at line 700 of file dxf.c.

int hid_gc_struct::width
 

width

Definition at line 698 of file dxf.c.


The documentation for this struct was generated from the following file:
Generated on Sat Nov 10 10:25:26 2007 for PCB-DXF-HID by  doxygen 1.4.6