Xorn
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Attributes | List of all members
xornsch_net Struct Reference

Schematic net segment, bus segment, or pin. More...

#include <xornstorage.h>

Public Attributes

struct xorn_double2d pos
 Coordinate of first end in mils. More...
 
struct xorn_double2d size
 Coordinate of second end minus coordinate of first end in mils. More...
 
int color
 Color index. More...
 
bool is_bus
 Does the object describe a bus or bus pin? More...
 
bool is_pin
 Does the object describe a pin? More...
 
bool is_inverted
 Invert the pin when writing to a gEDA symbol file. More...
 

Detailed Description

Schematic net segment, bus segment, or pin.

If is_pin is false, valid in schematic files only. if is_pin is true, valid in symbol files only.

Unimplemented fields:

Definition at line 217 of file xornstorage.h.

Member Data Documentation

xornsch_net::color

Color index.

See also
gEDA colors

Definition at line 220 of file xornstorage.h.

xornsch_net::is_bus

Does the object describe a bus or bus pin?

If false, this object is a net segment or normal pin. If true, it is a bus segment or bus pin.

Bus pins are not used by gEDA.

Definition at line 221 of file xornstorage.h.

xornsch_net::is_inverted

Invert the pin when writing to a gEDA symbol file.

In Xorn, the end point indicated by pos is the active connection port of a pin. Only this end point can have other pins or nets connected to it.

In a gEDA symbol files, however, there is a separate field called whichend that specifies which end point of the pin is the active connection port. If whichend is 0, the first end point is active; if it is 1, the other end is active.

When a pin with whichend = 1 is read from a symbol file, the end points are swapped, and is_inverted is set to true. This field is then completely ignored unless the file is written to a gEDA symbol file again, in which case the points are written swapped and whichend is set to 1.

Note
Unless you are writing a gEDA import/export filter, you can safely ignore this field.

Definition at line 223 of file xornstorage.h.

xornsch_net::is_pin

Does the object describe a pin?

If false, this object is a net segment or bus segment. If true, it is a regular pin or bus pin.

Bus pins are not used by gEDA.

Definition at line 222 of file xornstorage.h.

xornsch_net::pos

Coordinate of first end in mils.

Definition at line 218 of file xornstorage.h.

xornsch_net::size

Coordinate of second end minus coordinate of first end in mils.

Definition at line 219 of file xornstorage.h.


The documentation for this struct was generated from the following files: