To use the functions described in this section, you will need to load
the (geda page)
module.
See Pages.
Every page
is associated with a filename. The filename
does not necessarily have to be a file which exists and/or is
accessible in the filesystem.
Creates and returns a new, empty
page
, with the given string filename.
Destroys page. The returned value is undefined.
Warning: This function closes and destroys page immediately, regardless of whether the page has been modified since loading or saving, and without asking the user.
Pages can be converted to and from strings in the gEDA schematic file format.
Parses string, which should be in the gEDA file format, to create a new
page
. The initial filename for the newpage
is filename.If the string is not in gEDA format, raises an
string-format
error.
A schematic or symbol page
is composed of a set of
object
s which determine both its graphical appearance and its
electrical meaning.
Returns a list of the
object
s which make up page. The list can be freely modified without changing the contents of page.
Appends zero or more objects to the contents of page in the order given. Returns page.
If any of the objects is already part of a
page
other than page, or is part of a componentobject
, raises anobject-state
error. Any of the objects that are already in the page are ignored.
Removes zero or more objects from the contents of page. Returns page.
Any objects that are not part of a
page
or componentobject
are ignored.An ‘object-state’ error will be thrown if any of the objects satisfies any of the following conditions:
- part of a
page
other than page;- part of component
object
;- has attached attributes (see Attributes);
- is attached as an attribute.
Returns the
page
which contains object (either directly or indirectly), or ‘#f’ if object is not part of apage
.Note: If the object argument to
object-page
is part of a componentobject
which is itself part of apage
, thatpage
will be returned.
A page
has a dirty flag that is used to indicate to
applications that the page
has been modified since it was last
loaded or saved.