Next: , Up: General object functions   [Contents][Index]


2.2.1.1 Object sub-types

Schematic element objects come in several subtypes.

Function: object-type object

Returns the sub-type of object as a symbol. The subtype will be one of the following symbols:

  • arc
  • box
  • bus
  • circle
  • complex’ (indicates a component object)
  • line
  • net
  • path
  • picture
  • pin
  • text

Note: The word ‘complex’ is only used in Scheme API to define component type for historical reasons, since before it was used in the gEDA C source code. As Guile Scheme supports complex numbers, and the procedures related to working with complex numbers use the word ‘complex’ to describe them, any other code of both Lepton C and Scheme API uses the word ‘component’ instead to avoid ambiguity.

Function: object-type? object type

Returns ‘#t’ if and only if object is an object and that its subtype is type, which should be a symbol.