libgeda
|
Scheme API object manipulation procedures. More...
#include <config.h>
#include "libgeda_priv.h"
#include "libgedaguile_priv.h"
#include "scheme_object.x"
Go to the source code of this file.
Functions | |
SCM_SYMBOL (wrong_type_arg_sym,"wrong-type-arg") | |
SCM_SYMBOL (line_sym,"line") | |
SCM_SYMBOL (net_sym,"net") | |
SCM_SYMBOL (bus_sym,"bus") | |
SCM_SYMBOL (box_sym,"box") | |
SCM_SYMBOL (picture_sym,"picture") | |
SCM_SYMBOL (circle_sym,"circle") | |
SCM_SYMBOL (complex_sym,"complex") | |
SCM_SYMBOL (text_sym,"text") | |
SCM_SYMBOL (path_sym,"path") | |
SCM_SYMBOL (pin_sym,"pin") | |
SCM_SYMBOL (arc_sym,"arc") | |
SCM_SYMBOL (lower_left_sym,"lower-left") | |
SCM_SYMBOL (middle_left_sym,"middle-left") | |
SCM_SYMBOL (upper_left_sym,"upper-left") | |
SCM_SYMBOL (lower_center_sym,"lower-center") | |
SCM_SYMBOL (middle_center_sym,"middle-center") | |
SCM_SYMBOL (upper_center_sym,"upper-center") | |
SCM_SYMBOL (lower_right_sym,"lower-right") | |
SCM_SYMBOL (middle_right_sym,"middle-right") | |
SCM_SYMBOL (upper_right_sym,"upper-right") | |
SCM_SYMBOL (name_sym,"name") | |
SCM_SYMBOL (value_sym,"value") | |
SCM_SYMBOL (both_sym,"both") | |
SCM_SYMBOL (none_sym,"none") | |
SCM_SYMBOL (square_sym,"square") | |
SCM_SYMBOL (round_sym,"round") | |
SCM_SYMBOL (solid_sym,"solid") | |
SCM_SYMBOL (dotted_sym,"dotted") | |
SCM_SYMBOL (dashed_sym,"dashed") | |
SCM_SYMBOL (center_sym,"center") | |
SCM_SYMBOL (phantom_sym,"phantom") | |
SCM_SYMBOL (hollow_sym,"hollow") | |
SCM_SYMBOL (mesh_sym,"mesh") | |
SCM_SYMBOL (hatch_sym,"hatch") | |
SCM_SYMBOL (moveto_sym,"moveto") | |
SCM_SYMBOL (lineto_sym,"lineto") | |
SCM_SYMBOL (curveto_sym,"curveto") | |
SCM_SYMBOL (closepath_sym,"closepath") | |
void | o_page_changed (TOPLEVEL *t, OBJECT *o) |
Flag an object's page as having been changed. | |
GList * | edascm_to_object_glist (SCM objs, const char *subr) |
Convert a Scheme object list to a GList. | |
SCM | edascm_from_object_glist (const GList *objs) |
Convert a GList of objects into a Scheme list. | |
int | edascm_is_object_type (SCM smob, int type) |
Test if an object smob is of a particular type. | |
SCM_DEFINE (copy_object,"%copy-object", 1, 0, 0,(SCM obj_s),"Copy an object.") | |
Copy an object. | |
SCM_DEFINE (object_type,"%object-type", 1, 0, 0,(SCM obj_s),"Get an object smob's type") | |
Get the type of an object. | |
SCM_DEFINE (object_bounds,"%object-bounds", 0, 0, 1,(SCM rst_s),"Get the bounds of a list of objects") | |
Get the bounds of a list of objects. | |
SCM_DEFINE (object_stroke,"%object-stroke", 1, 0, 0,(SCM obj_s),"Get the stroke properties of an object.") | |
Get the stroke properties of an object. | |
SCM_DEFINE (set_object_stroke_x,"%set-object-stroke!", 4, 2, 0,(SCM obj_s, SCM width_s, SCM cap_s, SCM dash_s, SCM space_s, SCM length_s),"Set the stroke properties of an object.") | |
Set the stroke properties of an object. | |
SCM_DEFINE (object_fill,"%object-fill", 1, 0, 0,(SCM obj_s),"Get the fill properties of an object.") | |
Get the fill properties of an object. | |
SCM_DEFINE (set_object_fill_x,"%set-object-fill!", 2, 5, 0,(SCM obj_s, SCM type_s, SCM width_s, SCM space1_s, SCM angle1_s, SCM space2_s, SCM angle2_s),"Set the fill properties of an object.") | |
Set the fill properties of an object. | |
SCM_DEFINE (object_color,"%object-color", 1, 0, 0,(SCM obj_s),"Get the color of an object.") | |
Get the color of an object. | |
SCM_DEFINE (set_object_color_x,"%set-object-color!", 2, 0, 0,(SCM obj_s, SCM color_s),"Set the color of an object.") | |
Set the color of an object. | |
SCM_DEFINE (make_line,"%make-line", 0, 0, 0,(),"Create a new line object.") | |
Create a new line. | |
SCM_DEFINE (set_line_x,"%set-line!", 6, 0, 0,(SCM line_s, SCM x1_s, SCM y1_s, SCM x2_s, SCM y2_s, SCM color_s),"Set line parameters.") | |
Set line parameters. | |
SCM_DEFINE (line_info,"%line-info", 1, 0, 0,(SCM line_s),"Get line parameters.") | |
Get line parameters. | |
SCM_DEFINE (make_net,"%make-net", 0, 0, 0,(),"Create a new net object.") | |
Create a new net. | |
SCM_DEFINE (make_bus,"%make-bus", 0, 0, 0,(),"Create a new bus object.") | |
Create a new bus. | |
SCM_DEFINE (make_pin,"%make-pin", 1, 0, 0,(SCM type_s),"Create a new pin object.") | |
Create a new pin. | |
SCM_DEFINE (pin_type,"%pin-type", 1, 0, 0,(SCM pin_s),"Get the type of a pin object.") | |
Get the type of a pin object. | |
SCM_DEFINE (make_box,"%make-box", 0, 0, 0,(),"Create a new box object.") | |
Create a new box. | |
SCM_DEFINE (set_box_x,"%set-box!", 6, 0, 0,(SCM box_s, SCM x1_s, SCM y1_s, SCM x2_s, SCM y2_s, SCM color_s),"Set box parameters.") | |
Set box parameters. | |
SCM_DEFINE (box_info,"%box-info", 1, 0, 0,(SCM box_s),"Get box parameters.") | |
Get box parameters. | |
SCM_DEFINE (make_circle,"%make-circle", 0, 0, 0,(),"Create a new circle object.") | |
Create a new circle. | |
SCM_DEFINE (set_circle_x,"%set-circle!", 5, 0, 0,(SCM circle_s, SCM x_s, SCM y_s, SCM r_s, SCM color_s),"Set circle parameters") | |
Set circle parameters. | |
SCM_DEFINE (circle_info,"%circle-info", 1, 0, 0,(SCM circle_s),"Get circle parameters.") | |
Get circle parameters. | |
SCM_DEFINE (make_arc,"%make-arc", 0, 0, 0,(),"Create a new arc object.") | |
Create a new arc. | |
SCM_DEFINE (set_arc_x,"%set-arc!", 7, 0, 0,(SCM arc_s, SCM x_s, SCM y_s, SCM r_s, SCM start_angle_s, SCM end_angle_s, SCM color_s),"Set arc parameters") | |
Set arc parameters. | |
SCM_DEFINE (arc_info,"%arc-info", 1, 0, 0,(SCM arc_s),"Get arc parameters.") | |
Get arc parameters. | |
SCM_DEFINE (make_text,"%make-text", 0, 0, 0,(),"Create a new text object.") | |
Create a new text item. | |
SCM_DEFINE (set_text_x,"%set-text!", 10, 0, 0,(SCM text_s, SCM x_s, SCM y_s, SCM align_s, SCM angle_s, SCM string_s, SCM size_s, SCM visible_s, SCM show_s, SCM color_s),"Set text parameters") | |
Set text parameters. | |
SCM_DEFINE (text_info,"%text-info", 1, 0, 0,(SCM text_s),"Get text parameters.") | |
Get text parameters. | |
SCM_DEFINE (object_connections,"%object-connections", 1, 0, 0,(SCM obj_s),"Get objects that are connected to an object.") | |
Get objects that are connected to an object. | |
SCM_DEFINE (object_complex,"%object-complex", 1, 0, 0,(SCM obj_s),"Get containing complex object of an object.") | |
Get the complex object that contains an object. | |
SCM_DEFINE (make_path,"%make-path", 0, 0, 0,(),"Create a new path object") | |
Make a new, empty path object. | |
SCM_DEFINE (path_length,"%path-length", 1, 0, 0,(SCM obj_s),"Get number of elements in a path object.") | |
Get the number of elements in a path. | |
SCM_DEFINE (path_ref,"%path-ref", 2, 0, 0,(SCM obj_s, SCM index_s),"Get a path element from a path object.") | |
Get one of the elements from a path. | |
SCM_DEFINE (path_remove_x,"%path-remove!", 2, 0, 0,(SCM obj_s, SCM index_s),"Remove a path element from a path object.") | |
Remove an element from a path. | |
SCM_DEFINE (path_insert_x,"%path-insert", 3, 6, 0,(SCM obj_s, SCM index_s, SCM type_s, SCM x1_s, SCM y1_s, SCM x2_s, SCM y2_s, SCM x3_s, SCM y3_s),"Insert a path element into a path object.") | |
Insert an element into a path. | |
SCM_DEFINE (make_picture,"%make-picture", 0, 0, 0,(),"Create a new picture object") | |
Create a new, empty picture object. | |
SCM_DEFINE (picture_info,"%picture-info", 1, 0, 0,(SCM obj_s),"Get picture object parameters") | |
Get picture object parameters. | |
SCM_DEFINE (set_picture_x,"%set-picture!", 7, 0, 0,(SCM obj_s, SCM x1_s, SCM y1_s, SCM x2_s, SCM y2_s, SCM angle_s, SCM mirror_s),"Set picture object parameters") | |
SCM_DEFINE (set_picture_data_vector_x,"%set-picture-data/vector!", 3, 0, 0,(SCM obj_s, SCM data_s, SCM filename_s),"Set a picture object's data from a vector.") | |
Set a picture object's data from a vector. | |
SCM_DEFINE (translate_object_x,"%translate-object!", 3, 0, 0,(SCM obj_s, SCM dx_s, SCM dy_s),"Translate an object.") | |
Translate an object. | |
SCM_DEFINE (rotate_object_x,"%rotate-object!", 4, 0, 0,(SCM obj_s, SCM x_s, SCM y_s, SCM angle_s),"Rotate an object.") | |
Rotate an object. | |
SCM_DEFINE (mirror_object_x,"%mirror-object!", 2, 0, 0,(SCM obj_s, SCM x_s),"Mirror an object.") | |
Mirror an object. | |
static void | init_module_geda_core_object () |
Create the (geda core object) Scheme module. | |
void | edascm_init_object () |
Initialise the basic gEDA object manipulation procedures. |
Definition in file scheme_object.c.
SCM_SYMBOL | ( | wrong_type_arg_sym | , |
"wrong-type-arg" | |||
) |
SCM_SYMBOL | ( | line_sym | , |
"line" | |||
) |
SCM_SYMBOL | ( | net_sym | , |
"net" | |||
) |
SCM_SYMBOL | ( | bus_sym | , |
"bus" | |||
) |
SCM_SYMBOL | ( | box_sym | , |
"box" | |||
) |
SCM_SYMBOL | ( | picture_sym | , |
"picture" | |||
) |
SCM_SYMBOL | ( | circle_sym | , |
"circle" | |||
) |
SCM_SYMBOL | ( | complex_sym | , |
"complex" | |||
) |
SCM_SYMBOL | ( | text_sym | , |
"text" | |||
) |
SCM_SYMBOL | ( | path_sym | , |
"path" | |||
) |
SCM_SYMBOL | ( | pin_sym | , |
"pin" | |||
) |
SCM_SYMBOL | ( | arc_sym | , |
"arc" | |||
) |
SCM_SYMBOL | ( | lower_left_sym | , |
"lower-left" | |||
) |
SCM_SYMBOL | ( | middle_left_sym | , |
"middle-left" | |||
) |
SCM_SYMBOL | ( | upper_left_sym | , |
"upper-left" | |||
) |
SCM_SYMBOL | ( | lower_center_sym | , |
"lower-center" | |||
) |
SCM_SYMBOL | ( | middle_center_sym | , |
"middle-center" | |||
) |
SCM_SYMBOL | ( | upper_center_sym | , |
"upper-center" | |||
) |
SCM_SYMBOL | ( | lower_right_sym | , |
"lower-right" | |||
) |
SCM_SYMBOL | ( | middle_right_sym | , |
"middle-right" | |||
) |
SCM_SYMBOL | ( | upper_right_sym | , |
"upper-right" | |||
) |
SCM_SYMBOL | ( | name_sym | , |
"name" | |||
) |
SCM_SYMBOL | ( | value_sym | , |
"value" | |||
) |
SCM_SYMBOL | ( | both_sym | , |
"both" | |||
) |
SCM_SYMBOL | ( | none_sym | , |
"none" | |||
) |
SCM_SYMBOL | ( | square_sym | , |
"square" | |||
) |
SCM_SYMBOL | ( | round_sym | , |
"round" | |||
) |
SCM_SYMBOL | ( | solid_sym | , |
"solid" | |||
) |
SCM_SYMBOL | ( | dotted_sym | , |
"dotted" | |||
) |
SCM_SYMBOL | ( | dashed_sym | , |
"dashed" | |||
) |
SCM_SYMBOL | ( | center_sym | , |
"center" | |||
) |
SCM_SYMBOL | ( | phantom_sym | , |
"phantom" | |||
) |
SCM_SYMBOL | ( | hollow_sym | , |
"hollow" | |||
) |
SCM_SYMBOL | ( | mesh_sym | , |
"mesh" | |||
) |
SCM_SYMBOL | ( | hatch_sym | , |
"hatch" | |||
) |
SCM_SYMBOL | ( | moveto_sym | , |
"moveto" | |||
) |
SCM_SYMBOL | ( | lineto_sym | , |
"lineto" | |||
) |
SCM_SYMBOL | ( | curveto_sym | , |
"curveto" | |||
) |
SCM_SYMBOL | ( | closepath_sym | , |
"closepath" | |||
) |
GList* edascm_to_object_glist | ( | SCM | objs, |
const char * | subr | ||
) |
[in] | objs | a Scheme list of OBJECT smobs. |
[in] | subr | the name of the Scheme subroutine (used for error messages). |
Definition at line 98 of file scheme_object.c.
SCM edascm_from_object_glist | ( | const GList * | objs | ) |
[in] | objs | a #GList of OBJECT instances. |
Definition at line 133 of file scheme_object.c.
int edascm_is_object_type | ( | SCM | smob, |
int | type | ||
) |
[in] | smob | Scheme value to check type for. |
[in] | type | Type to check against (e.g. OBJ_LINE). |
Definition at line 161 of file scheme_object.c.
SCM_DEFINE | ( | copy_object | , |
"%copy-object" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s) | , | ||
"Copy an object." | |||
) |
[in] | obj_s | an OBJECT smob. |
Definition at line 180 of file scheme_object.c.
SCM_DEFINE | ( | object_type | , |
"%object-type" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s) | , | ||
"Get an object smob's type" | |||
) |
[in] | obj_s | an OBJECT smob. |
Definition at line 209 of file scheme_object.c.
SCM_DEFINE | ( | object_bounds | , |
"%object-bounds" | , | ||
0 | , | ||
0 | , | ||
1 | , | ||
(SCM rst_s) | , | ||
"Get the bounds of a list of objects" | |||
) |
((left . top) . (right . bottom))
If rst_s is empty, or none of the objects has any bounds (e.g. because they are all empty components and/or text strings), returns SCM_BOOL_F.
[in] | rst_s | Variable-length list of OBJECT arguments. |
Definition at line 264 of file scheme_object.c.
SCM_DEFINE | ( | object_stroke | , |
"%object-stroke" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s) | , | ||
"Get the stroke properties of an object." | |||
) |
obj_s | object to get stroke settings for. |
Definition at line 319 of file scheme_object.c.
SCM_DEFINE | ( | set_object_stroke_x | , |
"%set-object-stroke!" | , | ||
4 | , | ||
2 | , | ||
0 | , | ||
(SCM obj_s, SCM width_s, SCM cap_s, SCM dash_s, SCM space_s,SCM length_s) | , | ||
"Set the stroke properties of an object." | |||
) |
obj_s | object to set stroke settings for. |
width_s | new stroke width for obj_s. |
cap_s | new stroke cap style for obj_s. |
dash_s | new dash style for obj_s. |
space_s | dot/dash spacing for dash styles other than solid. |
length_s | dash length for dash styles other than solid or dotted. |
Definition at line 394 of file scheme_object.c.
SCM_DEFINE | ( | object_fill | , |
"%object-fill" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s) | , | ||
"Get the fill properties of an object." | |||
) |
obj_s | object to get fill settings for. |
Definition at line 488 of file scheme_object.c.
SCM_DEFINE | ( | set_object_fill_x | , |
"%set-object-fill!" | , | ||
2 | , | ||
5 | , | ||
0 | , | ||
(SCM obj_s, SCM type_s, SCM width_s, SCM space1_s, SCM angle1_s,SCM space2_s, SCM angle2_s) | , | ||
"Set the fill properties of an object." | |||
) |
Updates the fill settings of the object obj_s. If obj_s is not a box, circle, or path, throws a Scheme error. The optional parameters width_s, angle1_s, space1_s, angle2_s and space2_s
obj_s | object to set fill settings for. |
Definition at line 545 of file scheme_object.c.
SCM_DEFINE | ( | object_color | , |
"%object-color" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s) | , | ||
"Get the color of an object." | |||
) |
[in] | obj_s | OBJECT smob to inspect. |
Definition at line 638 of file scheme_object.c.
SCM_DEFINE | ( | set_object_color_x | , |
"%set-object-color!" | , | ||
2 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s, SCM color_s) | , | ||
"Set the color of an object." | |||
) |
obj_s | OBJECT smob to modify. |
color_s | new colormap index to use for obj_s. |
Definition at line 661 of file scheme_object.c.
SCM_DEFINE | ( | make_line | , |
"%make-line" | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
() | , | ||
"Create a new line object." | |||
) |
Definition at line 688 of file scheme_object.c.
SCM_DEFINE | ( | set_line_x | , |
"%set-line!" | , | ||
6 | , | ||
0 | , | ||
0 | , | ||
(SCM line_s, SCM x1_s, SCM y1_s, SCM x2_s, SCM y2_s, SCM color_s) | , | ||
"Set line parameters." | |||
) |
This function also works on net, bus and pin objects. For pins, the start is the connectable point on the pin.
line_s | the line object to modify. |
x1_s | the new x-coordinate of the start of the line. |
y1_s | the new y-coordinate of the start of the line. |
x2_s | the new x-coordinate of the end of the line. |
y2_s | the new y-coordinate of the end of the line. |
color | the colormap index of the color to be used for drawing the line. |
Definition at line 724 of file scheme_object.c.
SCM_DEFINE | ( | line_info | , |
"%line-info" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM line_s) | , | ||
"Get line parameters." | |||
) |
This function also works on net, bus and pin objects. For pins, the start is the connectable point on the pin.
line_s | the line object to inspect. |
Definition at line 799 of file scheme_object.c.
SCM_DEFINE | ( | make_net | , |
"%make-net" | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
() | , | ||
"Create a new net object." | |||
) |
Definition at line 835 of file scheme_object.c.
SCM_DEFINE | ( | make_bus | , |
"%make-bus" | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
() | , | ||
"Create a new bus object." | |||
) |
Definition at line 866 of file scheme_object.c.
SCM_DEFINE | ( | make_pin | , |
"%make-pin" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM type_s) | , | ||
"Create a new pin object." | |||
) |
Definition at line 896 of file scheme_object.c.
SCM_DEFINE | ( | pin_type | , |
"%pin-type" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM pin_s) | , | ||
"Get the type of a pin object." | |||
) |
Definition at line 934 of file scheme_object.c.
SCM_DEFINE | ( | make_box | , |
"%make-box" | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
() | , | ||
"Create a new box object." | |||
) |
Definition at line 969 of file scheme_object.c.
SCM_DEFINE | ( | set_box_x | , |
"%set-box!" | , | ||
6 | , | ||
0 | , | ||
0 | , | ||
(SCM box_s, SCM x1_s, SCM y1_s, SCM x2_s, SCM y2_s, SCM color_s) | , | ||
"Set box parameters." | |||
) |
box_s | the box object to modify. |
x1_s | the new x-coordinate of the top left of the box. |
y1_s | the new y-coordinate of the top left of the box. |
x2_s | the new x-coordinate of the bottom right of the box. |
y2_s | the new y-coordinate of the bottom right of the box. |
color | the colormap index of the color to be used for drawing the box. |
Definition at line 1002 of file scheme_object.c.
SCM_DEFINE | ( | box_info | , |
"%box-info" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM box_s) | , | ||
"Get box parameters." | |||
) |
box_s | the box object to inspect. |
Definition at line 1040 of file scheme_object.c.
SCM_DEFINE | ( | make_circle | , |
"%make-circle" | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
() | , | ||
"Create a new circle object." | |||
) |
Creates a new circle object, with all its parameters set to default values.
Definition at line 1067 of file scheme_object.c.
SCM_DEFINE | ( | set_circle_x | , |
"%set-circle!" | , | ||
5 | , | ||
0 | , | ||
0 | , | ||
(SCM circle_s, SCM x_s, SCM y_s, SCM r_s, SCM color_s) | , | ||
"Set circle parameters" | |||
) |
circle_s | the circle object to modify. |
x_s | the new x-coordinate of the center of the circle. |
y_s | the new y-coordinate of the center of the circle. |
r_s | the new radius of the circle. |
color | the colormap index of the color to be used for drawing the circle. |
Definition at line 1099 of file scheme_object.c.
SCM_DEFINE | ( | circle_info | , |
"%circle-info" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM circle_s) | , | ||
"Get circle parameters." | |||
) |
Retrieves the parameters of a circle object. The return value is a list of parameters:
circle_s | the circle object to inspect. |
Definition at line 1136 of file scheme_object.c.
SCM_DEFINE | ( | make_arc | , |
"%make-arc" | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
() | , | ||
"Create a new arc object." | |||
) |
Definition at line 1161 of file scheme_object.c.
SCM_DEFINE | ( | set_arc_x | , |
"%set-arc!" | , | ||
7 | , | ||
0 | , | ||
0 | , | ||
(SCM arc_s, SCM x_s, SCM y_s, SCM r_s, SCM start_angle_s,SCM end_angle_s, SCM color_s) | , | ||
"Set arc parameters" | |||
) |
arc_s | the arc object to modify. |
x_s | the new x-coordinate of the center of the arc. |
y_s | the new y-coordinate of the center of the arc. |
r_s | the new radius of the arc. |
start_angle_s | the start angle of the arc. |
end_angle_s | the start angle of the arc. |
color_s | the colormap index of the color to be used for drawing the arc. |
Definition at line 1195 of file scheme_object.c.
SCM_DEFINE | ( | arc_info | , |
"%arc-info" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM arc_s) | , | ||
"Get arc parameters." | |||
) |
arc_s | the arc object to inspect. |
Definition at line 1243 of file scheme_object.c.
SCM_DEFINE | ( | make_text | , |
"%make-text" | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
() | , | ||
"Create a new text object." | |||
) |
Definition at line 1270 of file scheme_object.c.
SCM_DEFINE | ( | set_text_x | , |
"%set-text!" | , | ||
10 | , | ||
0 | , | ||
0 | , | ||
(SCM text_s, SCM x_s, SCM y_s, SCM align_s, SCM angle_s,SCM string_s, SCM size_s, SCM visible_s, SCM show_s, SCM color_s) | , | ||
"Set text parameters" | |||
) |
The alignment align_s should be a symbol of the form "x-y" where x can be one of "lower", "middle", or "upper", and y can be one of "left", "center" or "right". show_s determines which parts of an attribute-formatted string should be shown, and should be one of the symbols "name", "value" or "both".
text_s | the text object to modify. |
x_s | the new x-coordinate of the anchor of the text. |
y_s | the new y-coordinate of the anchor of the text. |
align_s | the new alignment of the text on the anchor. |
angle_s | the angle the text in degrees (0, 90, 180 or 270). |
string_s | the new string to display. |
size_s | the new text size. |
visible_s | the new text visibility (SCM_BOOL_T or SCM_BOOL_F). |
show_s | the new attribute part visibility setting. |
color_s | the colormap index of the color to be used for drawing the text. |
Definition at line 1314 of file scheme_object.c.
SCM_DEFINE | ( | text_info | , |
"%text-info" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM text_s) | , | ||
"Get text parameters." | |||
) |
text_s | the text object to inspect. |
Definition at line 1435 of file scheme_object.c.
SCM_DEFINE | ( | object_connections | , |
"%object-connections" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s) | , | ||
"Get objects that are connected to an object." | |||
) |
obj_s | OBJECT smob for object to get connections for. |
Definition at line 1505 of file scheme_object.c.
SCM_DEFINE | ( | object_complex | , |
"%object-complex" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s) | , | ||
"Get containing complex object of an object." | |||
) |
obj_s | OBJECT smob for object to get component of. |
Definition at line 1538 of file scheme_object.c.
SCM_DEFINE | ( | make_path | , |
"%make-path" | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
() | , | ||
"Create a new path object" | |||
) |
Definition at line 1564 of file scheme_object.c.
SCM_DEFINE | ( | path_length | , |
"%path-length" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s) | , | ||
"Get number of elements in a path object." | |||
) |
obj_s | OBJECT smob for path object to inspect. |
Definition at line 1589 of file scheme_object.c.
SCM_DEFINE | ( | path_ref | , |
"%path-ref" | , | ||
2 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s, SCM index_s) | , | ||
"Get a path element from a path object." | |||
) |
The return value is a list. The first element in the list is a symbol indicating the type of path element ("moveto", "lineto", "curveto" or "closepath"), and the remainder of the list contains zero or more control point coordinates, depending on the type of path element. Each element is evaluated relative to the current path position.
All coordinates are absolute.
obj_s | OBJECT smob of path object to get element from. |
index_s | Index of element to retrieve from obj_s |
Definition at line 1628 of file scheme_object.c.
SCM_DEFINE | ( | path_remove_x | , |
"%path-remove!" | , | ||
2 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s, SCM index_s) | , | ||
"Remove a path element from a path object." | |||
) |
obj_s | OBJECT smob of path object to remove element from. |
index_s | Index of element to remove from obj_s. |
Definition at line 1689 of file scheme_object.c.
SCM_DEFINE | ( | path_insert_x | , |
"%path-insert" | , | ||
3 | , | ||
6 | , | ||
0 | , | ||
(SCM obj_s, SCM index_s, SCM type_s,SCM x1_s, SCM y1_s, SCM x2_s, SCM y2_s, SCM x3_s, SCM y3_s) | , | ||
"Insert a path element into a path object." | |||
) |
If the index is negative, or is greater than or equal to the number of elements currently in the path, the new element will be appended to the path.
obj_s | OBJECT smob for the path object to modify. |
index_s | Index at which to insert new element. |
type_s | Symbol indicating what type of element to insert. |
x1_s | X-coordinate of first coordinate pair. |
y1_s | Y-coordinate of first coordinate pair. |
x2_s | X-coordinate of second coordinate pair. |
y2_s | Y-coordinate of second coordinate pair. |
x3_s | X-coordinate of third coordinate pair. |
y3_s | Y-coordinate of third coordinate pair. |
Definition at line 1762 of file scheme_object.c.
SCM_DEFINE | ( | make_picture | , |
"%make-picture" | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
() | , | ||
"Create a new picture object" | |||
) |
Definition at line 1855 of file scheme_object.c.
SCM_DEFINE | ( | picture_info | , |
"%picture-info" | , | ||
1 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s) | , | ||
"Get picture object parameters" | |||
) |
obj_s | the picture object to inspect. |
Definition at line 1889 of file scheme_object.c.
SCM_DEFINE | ( | set_picture_x | , |
"%set-picture!" | , | ||
7 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s, SCM x1_s, SCM y1_s, SCM x2_s, SCM y2_s, SCM angle_s,SCM mirror_s) | , | ||
"Set picture object parameters" | |||
) |
SCM_DEFINE | ( | set_picture_data_vector_x | , |
"%set-picture-data/vector!" | , | ||
3 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s, SCM data_s, SCM filename_s) | , | ||
"Set a picture object's data from a vector." | |||
) |
obj_s | The picture object to modify. |
data_s | Vector containing encoded image data. |
filename_s | New filename for obj_s. |
Definition at line 1989 of file scheme_object.c.
SCM_DEFINE | ( | translate_object_x | , |
"%translate-object!" | , | ||
3 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s, SCM dx_s, SCM dy_s) | , | ||
"Translate an object." | |||
) |
obj_s | OBJECT smob for object to translate. |
dx_s | Integer distance to translate along x-axis. |
dy_s | Integer distance to translate along y-axis. |
Definition at line 2057 of file scheme_object.c.
SCM_DEFINE | ( | rotate_object_x | , |
"%rotate-object!" | , | ||
4 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s, SCM x_s, SCM y_s, SCM angle_s) | , | ||
"Rotate an object." | |||
) |
obj_s | OBJECT smob for object to translate. |
x_s | x-coordinate of centre of rotation. |
y_s | y-coordinate of centre of rotation. |
angle_s | Angle to rotate by. |
Definition at line 2096 of file scheme_object.c.
SCM_DEFINE | ( | mirror_object_x | , |
"%mirror-object!" | , | ||
2 | , | ||
0 | , | ||
0 | , | ||
(SCM obj_s, SCM x_s) | , | ||
"Mirror an object." | |||
) |
obj_s | OBJECT smob for object to translate. |
x_s | x-coordinate of centre of rotation. |
Definition at line 2143 of file scheme_object.c.
static void init_module_geda_core_object | ( | ) | [static] |
Definition at line 2172 of file scheme_object.c.
void edascm_init_object | ( | ) |
Definition at line 2206 of file scheme_object.c.