Geda3.Schematic – Gschem3 Reference Manual
Packages
Gschem3
Geda3
Schematic
items
version
Schematic
add
calculate_bounds
closest_item
draw
intersected_items
read
read_async
read_from_file
read_from_file_async
write
attribute_changed
invalidate
Schematic
Object Hierarchy:
Description:
public
class
Schematic
Namespace:
Geda3
Package:
Gschem3
Content:
Properties:
public
Collection
<
SchematicItem
>
items
{
owned
get
; }
public
FileVersion
version
{
get
; }
Creation methods:
public
Schematic
()
Create an empty schematic
Methods:
public
bool
add
(
SchematicItem
item)
Add an item to the schematic
public
Bounds
calculate_bounds
(
SchematicPainter
painter,
bool
reveal)
Calculate the bounds of this schematic
public
SchematicItem
?
closest_item
(
SchematicPainter
painter,
int
x,
int
y,
double
max_distance)
Find the closest item the the given coordinates
public
void
draw
(
SchematicPainter
painter,
Set
<
SchematicItem
> selected,
bool
reveal)
Draw the schematic
public
Set
<
SchematicItem
>
intersected_items
(
SchematicPainter
painter,
Bounds
box)
Get all the items that intersect the box
public
void
read_from_file
(
File
file)
throws
Error
Read a schematic from an input file
public
async
void
read_from_file_async
(
File
file,
Cancellable
? cancel =
null
)
throws
Error
Read a schematic from an input file asynchronously
public
void
read
(
DataInputStream
stream)
throws
Error
Read a schematic from an input stream
public
async
void
read_async
(
DataInputStream
stream,
Cancellable
? cancel =
null
)
throws
Error
Read a schematic from an input stream asyncronously
public
void
write
(
DataOutputStream
stream)
throws
IOError
Write schematic to an output stream
Signals:
public
signal
void
attribute_changed
(
AttributeChild
child,
AttributeParent
parent)
A signal inicating an attriubte has changed
public
signal
void
invalidate
(
SchematicItem
item)
A signal requesting an item be redrawn