libgeda
|
Go to the source code of this file.
Functions | |
G_BEGIN_DECLS const gchar * | o_file_format_header () |
Get the file header string. | |
gchar * | o_save_buffer (TOPLEVEL *toplevel, const GList *object_list) |
int | o_save (TOPLEVEL *toplevel, const GList *object_list, const char *filename, GError **err) |
GList * | o_read_buffer (TOPLEVEL *toplevel, GList *object_list, char *buffer, const int size, const char *name, GError **err) |
GList * | o_read (TOPLEVEL *toplevel, GList *object_list, char *filename, GError **err) |
Read a file. | |
void | o_scale (TOPLEVEL *toplevel, GList *list, int x_scale, int y_scale) |
Scale a set of lines. | |
gchar * | f_get_autosave_filename (const gchar *filename) |
Get the autosave filename for a file. | |
gboolean | f_has_active_autosave (const gchar *filename, GError **err) |
Check if a file has an active autosave file. | |
int | f_open (TOPLEVEL *toplevel, PAGE *page, const gchar *filename, GError **err) |
Opens the schematic file. | |
int | f_open_flags (TOPLEVEL *toplevel, PAGE *page, const gchar *filename, const gint flags, GError **err) |
Opens the schematic file with fine-grained control over behaviour. | |
void | f_close (TOPLEVEL *toplevel) |
Closes the schematic file. | |
int | f_save (TOPLEVEL *toplevel, PAGE *page, const char *filename, GError **error) |
Save the schematic file. | |
gchar * | f_normalize_filename (const gchar *filename, GError **error) |
Builds an absolute pathname. | |
char * | follow_symlinks (const gchar *filename, GError **error) |
Follow symlinks until a real file is found. | |
int | f_print_file (TOPLEVEL *toplevel, PAGE *page, const char *filename) |
Print the current TOPLEVEL object to a file as a postscript document. | |
int | f_print_command (TOPLEVEL *toplevel, PAGE *page, const char *command) |
Opens a pipe to the specified command and prints the current TOPLEVEL object to the pipe as a postscript document. | |
int | f_print_stream (TOPLEVEL *toplevel, PAGE *page, FILE *fp) |
Print the current TOPLEVEL object to a stream as a postscript document. | |
void | f_print_set_type (TOPLEVEL *toplevel, int type) |
Sets the current TOPLEVEL object output type. | |
SCM | g_scm_eval_protected (SCM exp, SCM module_or_state) |
Evaluate a Scheme expression safely. | |
SCM | g_scm_eval_string_protected (SCM str) |
Evaluate a string as a Scheme expression safely. | |
SCM | g_scm_c_eval_string_protected (const gchar *str) |
Evaluate a C string as a Scheme expression safely. | |
gboolean | g_read_file (TOPLEVEL *toplevel, const gchar *filename, GError **err) |
Load a Scheme file, catching and logging errors. | |
SCM | g_rc_mode_general (SCM scmmode, const char *rc_name, int *mode_var, const vstbl_entry *table, int table_size) |
gboolean | g_rc_parse_system (TOPLEVEL *toplevel, const gchar *rcname, GError **err) |
Load a system configuration file. | |
gboolean | g_rc_parse_user (TOPLEVEL *toplevel, const gchar *rcname, GError **err) |
Load a user configuration file. | |
gboolean | g_rc_parse_local (TOPLEVEL *toplevel, const gchar *rcname, const gchar *path, GError **err) |
Load a local configuration file. | |
gboolean | g_rc_parse_file (TOPLEVEL *toplevel, const gchar *rcfile, GError **err) |
Load a configuration file. | |
void | g_rc_parse (TOPLEVEL *toplevel, const gchar *pname, const gchar *rcname, const gchar *rcfile) |
General RC file parsing function. | |
void | g_rc_parse_handler (TOPLEVEL *toplevel, const gchar *rcname, const gchar *rcfile, ConfigParseErrorFunc handler, void *user_data) |
General RC file parsing function. | |
SCM | g_rc_rc_filename () |
Get the name of the RC filename being evaluated. | |
void | i_vars_libgeda_set (TOPLEVEL *toplevel) |
Initialize variables in TOPLEVEL object. | |
void | i_vars_libgeda_freenames () |
Free default names. | |
void | libgeda_init (void) |
Perform runtime initialization of libgeda library. | |
void | set_window (TOPLEVEL *toplevel, PAGE *page, int xmin, int xmax, int ymin, int ymax) |
Set the contraints for the current page. | |
void | rotate_point (int x, int y, int angle, int *newx, int *newy) |
Rotate a point by an arbitrary angle. | |
void | rotate_point_90 (int x, int y, int angle, int *newx, int *newy) |
Rotate point in 90 degree increments only. | |
void | PAPERSIZEtoWORLD (int width, int height, int border, int *right, int *bottom) |
Convert Paper size to World coordinates. | |
void | m_hatch_box (BOX *box, gint angle, gint pitch, GArray *lines) |
Calculates line segments to hatch a box shape. | |
void | m_hatch_circle (CIRCLE *circle, gint angle, gint pitch, GArray *lines) |
Calculates line segments to hatch a circle. | |
void | m_hatch_path (PATH *path, gint angle, gint pitch, GArray *lines) |
Calculates line segments to hatch a path. | |
void | m_polygon_append_bezier (GArray *points, BEZIER *bezier, int segments) |
Appends a bezier curve to the polygon. | |
void | m_polygon_append_point (GArray *points, int x, int y) |
Appends a point to the list of vertices in a polygon. | |
OBJECT * | o_arc_new (TOPLEVEL *toplevel, char type, int color, int x, int y, int radius, int start_angle, int end_angle) |
OBJECT * | o_arc_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
void | o_arc_modify (TOPLEVEL *toplevel, OBJECT *object, int x, int y, int whichone) |
void | o_arc_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *object) |
void | o_arc_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
void | o_arc_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
Mirror the WORLD coordinates of an ARC. | |
void | o_attrib_add (TOPLEVEL *toplevel, OBJECT *object, OBJECT *item) |
Add an attribute to an existing attribute list. | |
gboolean | o_attrib_is_attached (TOPLEVEL *toplevel, OBJECT *attrib, OBJECT *object) |
Check whether a attrib is attached to another object. | |
void | o_attrib_attach (TOPLEVEL *toplevel, OBJECT *attrib, OBJECT *object, int set_color) |
Attach existing attribute to an object. | |
void | o_attrib_attach_list (TOPLEVEL *toplevel, GList *attr_list, OBJECT *object, int set_color) |
Attach list of existing attributes to an object. | |
void | o_attrib_detach_all (TOPLEVEL *toplevel, OBJECT *object) |
Detach all attribute items in a list. | |
void | o_attrib_print (GList *attributes) |
Print all attributes to a Postscript document. | |
void | o_attrib_remove (TOPLEVEL *toplevel, GList **list, OBJECT *remove) |
Remove an attribute item from an attribute list. | |
gboolean | o_attrib_string_get_name_value (const gchar *string, gchar **name_ptr, gchar **value_ptr) |
Get name and value from an attribute 'name=value' string. | |
gboolean | o_attrib_get_name_value (OBJECT *attrib, gchar **name_ptr, gchar **value_ptr) |
Get name and value from an attribute OBJECT. | |
GList * | o_attrib_find_floating_attribs (const GList *list) |
Find all floating attributes in the given object list. | |
char * | o_attrib_search_floating_attribs_by_name (const GList *list, char *name, int counter) |
Search floating attribute by name. | |
char * | o_attrib_search_attached_attribs_by_name (OBJECT *object, char *name, int counter) |
Search attached attributes by name. | |
char * | o_attrib_search_inherited_attribs_by_name (OBJECT *object, char *name, int counter) |
Search inherited attribute by name. | |
char * | o_attrib_search_object_attribs_by_name (OBJECT *object, char *name, int counter) |
Search attributes of object by name. | |
GList * | o_attrib_return_attribs (OBJECT *object) |
Get all attached attributes of the specified OBJECT. | |
int | o_attrib_is_inherited (OBJECT *attrib) |
Query whether a given attribute OBJECT is "inherited". | |
void | o_attrib_append_attribs_changed_hook (TOPLEVEL *toplevel, AttribsChangedFunc func, void *data) |
void | o_attrib_emit_attribs_changed (TOPLEVEL *toplevel, OBJECT *object) |
void | o_attrib_freeze_hooks (TOPLEVEL *toplevel, OBJECT *object) |
void | o_attrib_thaw_hooks (TOPLEVEL *toplevel, OBJECT *object) |
int | inside_region (int xmin, int ymin, int xmax, int ymax, int x, int y) |
Check if point is inside a region. | |
void | o_recalc_single_object (TOPLEVEL *toplevel, OBJECT *o_current) |
Recalculate position of the given object. | |
void | o_recalc_object_glist (TOPLEVEL *toplevel, GList *object_glist) |
Recalculate position of a list (GList) of objects. | |
void | o_set_line_options (TOPLEVEL *toplevel, OBJECT *o_current, OBJECT_END end, OBJECT_TYPE type, int width, int length, int space) |
Set an OBJECT's line options. | |
gboolean | o_get_line_options (OBJECT *object, OBJECT_END *end, OBJECT_TYPE *type, int *width, int *length, int *space) |
get OBJECT's line properties. | |
void | o_set_fill_options (TOPLEVEL *toplevel, OBJECT *o_current, OBJECT_FILLING type, int width, int pitch1, int angle1, int pitch2, int angle2) |
Set OBJECT's fill options. | |
gboolean | o_get_fill_options (OBJECT *object, OBJECT_FILLING *type, int *width, int *pitch1, int *angle1, int *pitch2, int *angle2) |
get OBJECT's fill properties. | |
gboolean | o_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the base position of an object | |
void | o_translate_world (TOPLEVEL *toplevel, gint dx, gint dy, OBJECT *object) |
Translates an object in world coordinates. | |
void | o_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
Rotates an object in world coordinates. | |
void | o_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
Mirrors an object in world coordinates. | |
double | o_shortest_distance (OBJECT *object, int x, int y) |
Calculates the distance between the given point and the closest point on the given object. | |
void | o_set_color (TOPLEVEL *toplevel, OBJECT *object, int color) |
Change the color of an object. | |
PAGE * | o_get_page (TOPLEVEL *toplevel, OBJECT *object) |
Get an object's parent PAGE. | |
OBJECT * | o_get_parent (TOPLEVEL *toplevel, OBJECT *object) |
Get an object's containing complex object. | |
void | o_add_change_notify (TOPLEVEL *toplevel, ChangeNotifyFunc pre_change_func, ChangeNotifyFunc change_func, void *user_data) |
Add change notification handlers to a TOPLEVEL. | |
void | o_remove_change_notify (TOPLEVEL *toplevel, ChangeNotifyFunc pre_change_func, ChangeNotifyFunc change_func, void *user_data) |
Remove change notification handlers from a TOPLEVEL. | |
gboolean | o_is_visible (TOPLEVEL *toplevel, OBJECT *object) |
Query visibility of the object. | |
void | o_set_visibility (TOPLEVEL *toplevel, OBJECT *object, int visibility) |
Set visibility of the object. | |
OBJECT * | o_box_new (TOPLEVEL *toplevel, char type, int color, int x1, int y1, int x2, int y2) |
Create a BOX OBJECT. | |
OBJECT * | o_box_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
Copy a box to a list. | |
void | o_box_modify_all (TOPLEVEL *toplevel, OBJECT *object, int x1, int y1, int x2, int y2) |
Modify a BOX OBJECT's coordinates. | |
void | o_box_modify (TOPLEVEL *toplevel, OBJECT *object, int x, int y, int whichone) |
Modify a BOX OBJECT's coordinates. | |
void | o_box_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *object) |
Translate a BOX position in WORLD coordinates by a delta. | |
void | o_box_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
Rotate BOX OBJECT using WORLD coordinates. | |
void | o_box_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
Mirror BOX using WORLD coordinates. | |
OBJECT * | o_bus_new (TOPLEVEL *toplevel, char type, int color, int x1, int y1, int x2, int y2, int bus_ripper_direction) |
create a new bus object | |
void | o_bus_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *object) |
move a bus object | |
OBJECT * | o_bus_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
create a copy of a bus object | |
void | o_bus_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
rotate a bus object around a centerpoint | |
void | o_bus_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
mirror a bus object horizontaly at a centerpoint | |
int | o_bus_orientation (OBJECT *object) |
calculate the orientation of a bus object | |
void | o_bus_consolidate (TOPLEVEL *toplevel) |
void | o_bus_modify (TOPLEVEL *toplevel, OBJECT *object, int x, int y, int whichone) |
modify one point of a bus object | |
int | dist (int x1, int y1, int x2, int y2) |
calculate the distance between two points | |
OBJECT * | o_circle_new (TOPLEVEL *toplevel, char type, int color, int x, int y, int radius) |
Create and add circle OBJECT to list. | |
OBJECT * | o_circle_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
Create a copy of a circle. | |
void | o_circle_modify (TOPLEVEL *toplevel, OBJECT *object, int x, int y, int whichone) |
Modify the description of a circle OBJECT. | |
void | o_circle_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *object) |
Translate a circle position in WORLD coordinates by a delta. | |
void | o_circle_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
Rotate Circle OBJECT using WORLD coordinates. | |
void | o_circle_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
Mirror circle using WORLD coordinates. | |
int | world_get_single_object_bounds (TOPLEVEL *toplevel, OBJECT *o_current, int *rleft, int *rtop, int *rright, int *rbottom) |
Return the bounds of the given object. | |
int | world_get_object_glist_bounds (TOPLEVEL *toplevel, const GList *o_list, int *left, int *top, int *right, int *bottom) |
Return the bounds of the given GList of objects. | |
int | o_complex_is_embedded (OBJECT *o_current) |
get the embedded state of an complex object | |
GList * | o_complex_promote_attribs (TOPLEVEL *toplevel, OBJECT *object) |
Promote attributes from a complex OBJECT. | |
OBJECT * | o_complex_new (TOPLEVEL *toplevel, char type, int color, int x, int y, int angle, int mirror, const CLibSymbol *clib_sym, const gchar *basename, int selectable) |
OBJECT * | o_complex_new_embedded (TOPLEVEL *toplevel, char type, int color, int x, int y, int angle, int mirror, const gchar *basename, int selectable) |
create a new embedded object | |
void | o_complex_set_filename (TOPLEVEL *toplevel, const char *basename) |
void | o_complex_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *object) |
move a complex object | |
OBJECT * | o_complex_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
Create a copy of a COMPLEX object. | |
void | o_complex_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
void | o_complex_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
OBJECT * | o_complex_find_pin_by_attribute (OBJECT *object, char *name, char *wanted_value) |
Find a pin with a particular attribute. | |
void | o_complex_check_symversion (TOPLEVEL *toplevel, OBJECT *object) |
check the symversion of a complex object | |
void | o_embed (TOPLEVEL *toplevel, OBJECT *o_current) |
embed an object into a schematic | |
void | o_unembed (TOPLEVEL *toplevel, OBJECT *o_current) |
unembed an object from a schematic | |
OBJECT * | o_line_new (TOPLEVEL *toplevel, char type, int color, int x1, int y1, int x2, int y2) |
Create and add line OBJECT to list. | |
OBJECT * | o_line_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
Create a copy of a line. | |
void | o_line_modify (TOPLEVEL *toplevel, OBJECT *object, int x, int y, int whichone) |
Modify the description of a line OBJECT. | |
void | o_line_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *object) |
Translate a line position in WORLD coordinates by a delta. | |
void | o_line_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
Rotate Line OBJECT using WORLD coordinates. | |
void | o_line_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
Mirror a line using WORLD coordinates. | |
void | o_line_scale_world (TOPLEVEL *toplevel, int x_scale, int y_scale, OBJECT *object) |
double | o_line_length (OBJECT *object) |
calculate the lenght of a line object | |
OBJECT * | o_object_copy (TOPLEVEL *toplevel, OBJECT *selected) |
GList * | o_glist_copy_all (TOPLEVEL *toplevel, const GList *src_list, GList *dest_list) |
void | o_glist_translate_world (TOPLEVEL *toplevel, int dx, int dy, const GList *list) |
void | o_glist_rotate_world (TOPLEVEL *toplevel, int x, int y, int angle, const GList *list) |
void | o_glist_mirror_world (TOPLEVEL *toplevel, int x, int y, const GList *list) |
void | o_glist_set_color (TOPLEVEL *toplevel, const GList *list, int color) |
Change the color of a list of objects. | |
OBJECT * | o_net_new (TOPLEVEL *toplevel, char type, int color, int x1, int y1, int x2, int y2) |
create a new net object | |
void | o_net_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *object) |
move a net object | |
OBJECT * | o_net_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
create a copy of a net object | |
void | o_net_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
rotate a net object around a centerpoint | |
void | o_net_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
mirror a net object horizontaly at a centerpoint | |
int | o_net_orientation (OBJECT *object) |
calculate the orientation of a net object | |
void | o_net_consolidate (TOPLEVEL *toplevel, PAGE *page) |
consolidate all net objects | |
void | o_net_modify (TOPLEVEL *toplevel, OBJECT *object, int x, int y, int whichone) |
modify one point of a net object | |
void | o_net_refresh_conn_cache (TOPLEVEL *toplevel, OBJECT *object) |
Refresh & cache number of connected entities. | |
gboolean | o_net_is_fully_connected (TOPLEVEL *toplevel, OBJECT *object) |
Check if net is fully connected. | |
OBJECT * | o_path_new (TOPLEVEL *toplevel, char type, int color, const char *path_string) |
Create and add path OBJECT to list. | |
OBJECT * | o_path_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
Create a copy of a path. | |
void | o_path_modify (TOPLEVEL *toplevel, OBJECT *object, int x, int y, int whichone) |
Modify controol point location. | |
void | o_path_translate_world (TOPLEVEL *toplevel, int x, int y, OBJECT *object) |
Translate a path position in WORLD coordinates by a delta. | |
void | o_path_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
Rotate Line OBJECT using WORLD coordinates. | |
void | o_path_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
Mirror a path using WORLD coordinates. | |
OBJECT * | o_picture_new (TOPLEVEL *toplevel, const gchar *file_content, gsize file_length, const gchar *filename, char type, int x1, int y1, int x2, int y2, int angle, int mirrored, int embedded) G_GNUC_WARN_UNUSED_RESULT |
Create a picture object. | |
double | o_picture_get_ratio (TOPLEVEL *toplevel, OBJECT *object) |
Get the width/height ratio of an image. | |
void | o_picture_modify (TOPLEVEL *toplevel, OBJECT *object, int x, int y, int whichone) |
Modify the description of a picture OBJECT. | |
void | o_picture_modify_all (TOPLEVEL *toplevel, OBJECT *object, int x1, int y1, int x2, int y2) |
Modify a picture object's coordinates. | |
void | o_picture_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
Rotate picture OBJECT using WORLD coordinates. | |
void | o_picture_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
Mirror a picture using WORLD coordinates. | |
void | o_picture_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *object) |
Translate a picture position in WORLD coordinates by a delta. | |
OBJECT * | o_picture_copy (TOPLEVEL *toplevel, OBJECT *o_current) G_GNUC_WARN_UNUSED_RESULT |
Create a copy of a picture. | |
gboolean | o_picture_is_embedded (TOPLEVEL *toplevel, OBJECT *object) |
Test whether a picture object is embedded. | |
GdkPixbuf * | o_picture_get_pixbuf (TOPLEVEL *toplevel, OBJECT *object) G_GNUC_WARN_UNUSED_RESULT |
Get a pixel buffer for a picture object. | |
const char * | o_picture_get_data (TOPLEVEL *toplevel, OBJECT *object, size_t *len) |
Get the raw image data from a picture object. | |
gboolean | o_picture_set_from_buffer (TOPLEVEL *toplevel, OBJECT *object, const gchar *filename, const gchar *data, size_t len, GError **error) |
Set a picture object's contents from a buffer. | |
gboolean | o_picture_set_from_file (TOPLEVEL *toplevel, OBJECT *object, const gchar *filename, GError **error) |
Set a picture object's contents from a file. | |
const gchar * | o_picture_get_filename (TOPLEVEL *toplevel, OBJECT *object) |
Get a picture's corresponding filename. | |
GdkPixbuf * | o_picture_get_fallback_pixbuf (TOPLEVEL *toplevel) G_GNUC_WARN_UNUSED_RESULT |
Get fallback pixbuf for displaying pictures. | |
OBJECT * | o_pin_new (TOPLEVEL *toplevel, char type, int color, int x1, int y1, int x2, int y2, int pin_type, int whichend) |
create a new pin object | |
void | o_pin_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *object) |
move a pin object | |
OBJECT * | o_pin_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
create a copy of a pin object | |
void | o_pin_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
rotate a pin object around a centerpoint | |
void | o_pin_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
mirror a pin object horizontaly at a centerpoint | |
void | o_pin_modify (TOPLEVEL *toplevel, OBJECT *object, int x, int y, int whichone) |
modify one point of a pin object | |
void | o_pin_update_whichend (TOPLEVEL *toplevel, GList *object_list, int num_pins) |
guess the whichend of pins of object list | |
void | o_pin_set_type (TOPLEVEL *toplevel, OBJECT *o_current, int pin_type) |
Sets the type, and corresponding width of a pin. | |
SELECTION * | o_selection_new (void) |
Returns a pointer to a new SELECTION object. | |
void | o_selection_add (TOPLEVEL *toplevel, SELECTION *selection, OBJECT *o_selected) |
Selects the given object and adds it to the selection list. | |
void | o_selection_print_all (const SELECTION *selection) |
Prints the given selection list. | |
void | o_selection_remove (TOPLEVEL *toplevel, SELECTION *selection, OBJECT *o_selected) |
Removes the given object from the selection list. | |
void | o_selection_select (TOPLEVEL *toplevel, OBJECT *object) G_GNUC_DEPRECATED |
Selects the given object. | |
void | o_selection_unselect (TOPLEVEL *toplevel, OBJECT *object) G_GNUC_DEPRECATED |
Unselects the given object. | |
int | o_text_num_lines (const char *string) |
count the lines of a text string | |
OBJECT * | o_text_new (TOPLEVEL *toplevel, char type, int color, int x, int y, int alignment, int angle, const char *string, int size, int visibility, int show_name_value) |
Creates a text OBJECT and the graphical objects representing it. | |
void | o_text_recreate (TOPLEVEL *toplevel, OBJECT *o_current) |
recreate the graphics of a text object | |
void | o_text_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *o_current) |
move a text object | |
OBJECT * | o_text_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
create a copy of a text object | |
void | o_text_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
rotate a text object around a centerpoint | |
void | o_text_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
mirror a text object horizontaly at a centerpoint | |
void | o_text_set_string (TOPLEVEL *toplevel, OBJECT *obj, const gchar *new_string) |
Set the string displayed by a text object. | |
const gchar * | o_text_get_string (TOPLEVEL *toplevel, OBJECT *obj) |
Get the string displayed by a text object. | |
void | o_text_set_rendered_bounds_func (TOPLEVEL *toplevel, RenderedBoundsFunc func, void *user_data) |
Set the font-renderer-specific bounds function. | |
double | o_text_get_font_size_in_points (TOPLEVEL *toplevel, OBJECT *object) |
Return font size of a text object in postscript points. | |
int | s_attrib_add_entry (char *new_attrib) |
void | s_attrib_print (void) |
int | s_attrib_uniq (char *name) |
void | s_attrib_free (void) |
void | s_attrib_init (void) |
char * | s_attrib_get (int counter) |
OBJECT * | s_basic_init_object (OBJECT *new_node, int type, char const *name) |
Initialize an already-allocated object. | |
OBJECT * | s_basic_new_object (int type, char const *prefix) |
Helper to allocate and initialise an object. | |
void | print_struct_forw (GList *list) |
void | print_struct (OBJECT *ptr) |
void | s_delete_object (TOPLEVEL *toplevel, OBJECT *o_current) |
void | s_delete_object_glist (TOPLEVEL *toplevel, GList *list) |
void | s_object_weak_ref (OBJECT *object, void(*notify_func)(void *, void *), void *user_data) |
Add a weak reference watcher to an OBJECT. | |
void | s_object_weak_unref (OBJECT *object, void(*notify_func)(void *, void *), void *user_data) |
Remove a weak reference watcher from an OBJECT. | |
void | s_object_add_weak_ptr (OBJECT *object, void *weak_pointer_loc) |
Add a weak pointer to an OBJECT. | |
void | s_object_remove_weak_ptr (OBJECT *object, void *weak_pointer_loc) |
Remove a weak pointer from an OBJECT. | |
char * | remove_nl (char *string) |
char * | remove_last_nl (char *string) |
gchar * | s_expand_env_variables (const gchar *string) |
Expand environment variables in string. | |
const char * | s_path_sys_data () |
Get the directory with the gEDA system data. | |
const char * | s_path_sys_config () |
Get the directory with the gEDA system configuration. | |
const char * | s_path_user_config () |
Get the directory with the gEDA user configuration. | |
void | s_clib_free (void) |
Free all memory used by the component library. | |
GList * | s_clib_get_sources (const gboolean sorted) |
Get a list of available component sources. | |
const CLibSource * | s_clib_get_source_by_name (const gchar *name) |
Get a named component source. | |
void | s_clib_refresh () |
Rescan all available component libraries. | |
const CLibSource * | s_clib_add_directory (const gchar *directory, const gchar *name) |
Add a directory of symbol files to the library. | |
const CLibSource * | s_clib_add_command (const gchar *list_cmd, const gchar *get_cmd, const gchar *name) |
Add symbol-generating commands to the library. | |
const CLibSource * | s_clib_add_scm (SCM listfunc, SCM getfunc, const gchar *name) |
Add symbol-generating Scheme procedures to the library. | |
const gchar * | s_clib_source_get_name (const CLibSource *source) |
Get the name of a source. | |
GList * | s_clib_source_get_symbols (const CLibSource *source) |
Get a list of symbols available from a given source. | |
const gchar * | s_clib_symbol_get_name (const CLibSymbol *symbol) |
Get the name of a symbol. | |
gchar * | s_clib_symbol_get_filename (const CLibSymbol *symbol) |
Get a filename for editing a symbol. | |
const CLibSource * | s_clib_symbol_get_source (const CLibSymbol *symbol) |
Get the source to which a symbol belongs. | |
gchar * | s_clib_symbol_get_data (const CLibSymbol *symbol) |
Get symbol data. | |
GList * | s_clib_search (const gchar *pattern, const CLibSearchMode mode) |
Find all symbols matching a pattern. | |
void | s_clib_flush_search_cache () |
Flush the symbol name lookup cache. | |
void | s_clib_flush_symbol_cache () |
Flush the symbol data cache. | |
void | s_clib_symbol_invalidate_data (const CLibSymbol *symbol) |
Invalidate all cached data about a symbol. | |
const CLibSymbol * | s_clib_get_symbol_by_name (const gchar *name) |
Get symbol structure for a given symbol name. | |
gchar * | s_clib_symbol_get_data_by_name (const gchar *name) |
Get symbol data for a given symbol name. | |
GList * | s_toplevel_get_symbols (const TOPLEVEL *toplevel) |
Get a list of symbols used. | |
void | s_color_map_defaults (COLOR *map) |
Initialise a color map to B&W. | |
gboolean | s_color_rgba_decode (const gchar *rgba, guchar *r, guchar *g, guchar *b, guchar *a) |
gchar * | s_color_rgba_encode (guint8 r, guint8 g, guint8 b, guint8 a) |
SCM | s_color_map_to_scm (const COLOR *map) |
void | s_color_map_from_scm (COLOR *map, SCM lst, const char *scheme_proc_name) |
void | s_conn_remove_object (TOPLEVEL *toplevel, OBJECT *to_remove) |
remove an OBJECT from the connection system | |
void | s_conn_update_object (TOPLEVEL *toplevel, OBJECT *object) |
add an OBJECT to the connection system | |
int | s_conn_net_search (OBJECT *new_net, int whichone, GList *conn_list) |
Search for net in existing connections. | |
GList * | s_conn_return_others (GList *input_list, OBJECT *object) |
get a list of all objects connected to this one | |
void | s_conn_append_conns_changed_hook (TOPLEVEL *toplevel, ConnsChangedFunc func, void *data) |
void | s_conn_emit_conns_changed (TOPLEVEL *toplevel, OBJECT *object) |
void | s_conn_freeze_hooks (TOPLEVEL *toplevel, OBJECT *object) |
void | s_conn_thaw_hooks (TOPLEVEL *toplevel, OBJECT *object) |
void | s_cue_postscript_fillbox (TOPLEVEL *toplevel, FILE *fp, int x, int y) |
void | s_cue_postscript_junction (TOPLEVEL *toplevel, FILE *fp, int x, int y, int bus_involved) |
void | s_cue_output_all (TOPLEVEL *toplevel, const GList *obj_list, FILE *fp, int type) |
void | s_cue_output_lowlevel (TOPLEVEL *toplevel, OBJECT *object, int whichone, FILE *fp, int output_type) |
void | s_cue_output_lowlevel_midpoints (TOPLEVEL *toplevel, OBJECT *object, FILE *fp, int output_type) |
void | s_cue_output_single (TOPLEVEL *toplevel, OBJECT *object, FILE *fp, int type) |
Output cues for a single object. | |
PAGE * | s_hierarchy_down_schematic_single (TOPLEVEL *toplevel, const gchar *filename, PAGE *parent, int page_control, int flag) |
Search for schematic associated source files and load them. | |
void | s_hierarchy_down_symbol (TOPLEVEL *toplevel, const CLibSymbol *symbol, PAGE *parent) |
PAGE * | s_hierarchy_find_up_page (GedaPageList *page_list, PAGE *current_page) |
Search for the parent page of a page in hierarchy. | |
GList * | s_hierarchy_traversepages (TOPLEVEL *toplevel, PAGE *p_current, gint flags) |
Find page hierarchy below a page. | |
gint | s_hierarchy_print_page (PAGE *p_current, void *data) |
PAGE * | s_hierarchy_find_prev_page (GedaPageList *page_list, PAGE *current_page) |
Search for a page preceding a given page in hierarchy. | |
PAGE * | s_hierarchy_find_next_page (GedaPageList *page_list, PAGE *current_page) |
Search for a page following a given page in hierarchy. | |
void | s_log_init (const gchar *filename) |
Initialize libgeda logging feature. | |
void | s_log_close (void) |
Terminates the logging of messages. | |
gchar * | s_log_read (void) |
Reads the current log file and returns its contents. | |
int | s_menu_return_num (void) |
SCM | s_menu_return_entry (int index, char **menu_name) |
int | s_menu_add_entry (char *new_menu, SCM menu_items) |
void | s_menu_print (void) |
void | s_menu_free (void) |
void | s_menu_init (void) |
PAGE * | s_page_new (TOPLEVEL *toplevel, const gchar *filename) |
create a new page object | |
void | s_page_delete (TOPLEVEL *toplevel, PAGE *page) |
delete a page and it's contents | |
void | s_page_delete_list (TOPLEVEL *toplevel) |
Deletes the list of pages of toplevel. | |
void | s_page_weak_ref (PAGE *page, void(*notify_func)(void *, void *), void *user_data) |
Add a weak reference watcher to an PAGE. | |
void | s_page_weak_unref (PAGE *page, void(*notify_func)(void *, void *), void *user_data) |
Remove a weak reference watcher from an PAGE. | |
void | s_page_add_weak_ptr (PAGE *page, void *weak_pointer_loc) |
Add a weak pointer to an PAGE. | |
void | s_page_remove_weak_ptr (PAGE *page, void *weak_pointer_loc) |
Remove a weak pointer from an PAGE. | |
void | s_page_goto (TOPLEVEL *toplevel, PAGE *p_new) |
changes the current page in toplevel | |
PAGE * | s_page_search (TOPLEVEL *toplevel, const gchar *filename) |
Search for pages by filename. | |
PAGE * | s_page_search_by_page_id (GedaPageList *list, int pid) |
Search for a page given its page id in a page list. | |
void | s_page_print_all (TOPLEVEL *toplevel) |
Print full TOPLEVEL structure. | |
gint | s_page_save_all (TOPLEVEL *toplevel) |
Saves all the pages of a TOPLEVEL object. | |
gboolean | s_page_check_changed (GedaPageList *list) |
Check if CHANGED flag is set for any page in list. | |
void | s_page_clear_changed (GedaPageList *list) |
Reset the CHANGED flag of all pages. | |
void | s_page_autosave_init (TOPLEVEL *toplevel) |
Autosave initialization function. | |
gint | s_page_autosave (TOPLEVEL *toplevel) |
Autosave callback function. | |
void | s_page_append (TOPLEVEL *toplevel, PAGE *page, OBJECT *object) |
Append an OBJECT to the PAGE. | |
void | s_page_append_list (TOPLEVEL *toplevel, PAGE *page, GList *obj_list) |
Append a GList of OBJECTs to the PAGE. | |
void | s_page_remove (TOPLEVEL *toplevel, PAGE *page, OBJECT *object) |
Remove an OBJECT from the PAGE. | |
void | s_page_replace (TOPLEVEL *toplevel, PAGE *page, OBJECT *object1, OBJECT *object2) |
Replace an OBJECT in a PAGE, in the same list position. | |
void | s_page_delete_objects (TOPLEVEL *toplevel, PAGE *page) |
Remove and free all OBJECTs from the PAGE. | |
const GList * | s_page_objects (PAGE *page) |
Return a GList of OBJECTs on the PAGE. | |
GList * | s_page_objects_in_region (TOPLEVEL *toplevel, PAGE *page, int min_x, int min_y, int max_x, int max_y) |
Find the objects in a given region. | |
GList * | s_page_objects_in_regions (TOPLEVEL *toplevel, PAGE *page, BOX *rects, int n_rects) |
Find the objects in a given region. | |
int | s_papersizes_add_entry (char *new_papersize, int width, int height) |
void | s_papersizes_print (void) |
int | s_papersizes_uniq (char *name) |
void | s_papersizes_free (void) |
void | s_papersizes_init (void) |
char * | s_papersizes_get (int counter) |
void | s_papersizes_get_size (char *string, int *width, int *height) |
PATH * | s_path_parse (const char *path_str) |
char * | s_path_string_from_path (const PATH *path) |
void | s_toplevel_append_new_hook (NewToplevelFunc func, void *user_data) |
TOPLEVEL * | s_toplevel_new (void) |
Create a TOPLEVEL object. | |
void | s_toplevel_delete (TOPLEVEL *toplevel) |
void | s_toplevel_weak_ref (TOPLEVEL *toplevel, void(*notify_func)(void *, void *), void *user_data) |
Add a weak reference watcher to an TOPLEVEL. | |
void | s_toplevel_weak_unref (TOPLEVEL *toplevel, void(*notify_func)(void *, void *), void *user_data) |
Remove a weak reference watcher from an TOPLEVEL. | |
void | s_toplevel_add_weak_ptr (TOPLEVEL *toplevel, void *weak_pointer_loc) |
Add a weak pointer to an TOPLEVEL. | |
void | s_toplevel_remove_weak_ptr (TOPLEVEL *toplevel, void *weak_pointer_loc) |
Remove a weak pointer from an TOPLEVEL. | |
int | s_slib_add_entry (char *new_path) |
int | s_slib_search_for_dirname (char *dir_name) |
char * | s_slib_search_dirs (const char *basename) |
char * | s_slib_search_lowlevel (const char *basename) |
char * | s_slib_getbasename (const char *rawname) |
Get the base file name from a raw file name string. | |
char * | s_slib_search (const char *filename, int flag) |
Search SLIB for a particular file name. | |
char * | s_slib_search_single (const char *filename) |
Search SLIB for a particular file name. | |
void | s_slib_free (void) |
void | s_slib_init (void) |
char * | s_slib_getdir (int index) |
char * | s_slib_getfiles (char *directory, int flag) |
void | s_slib_print (void) |
int | s_slib_uniq (char *path) |
void | s_slib_print_dirs (void) |
char * | s_slot_search_slot (OBJECT *object, OBJECT **return_found) |
Search for slot attribute. | |
void | s_slot_update_object (TOPLEVEL *toplevel, OBJECT *object) |
Update all slot attributes in an object. | |
void | s_tile_update_object (TOPLEVEL *toplevel, OBJECT *object) |
update the tile informations of an object | |
GList * | s_tile_get_objectlists (TOPLEVEL *toplevel, PAGE *p_current, int world_x1, int world_y1, int world_x2, int world_y2) |
get a list of object lists of all tiles inside a region | |
UNDO * | s_undo_return_tail (UNDO *head) |
UNDO * | s_undo_return_head (UNDO *tail) |
UNDO * | s_undo_new_head (void) |
void | s_undo_destroy_head (UNDO *u_head) |
UNDO * | s_undo_add (UNDO *head, int type, char *filename, GList *object_list, int left, int top, int right, int bottom, int page_control, int up) |
void | s_undo_print_all (UNDO *head) |
void | s_undo_destroy_all (TOPLEVEL *toplevel, UNDO *head) |
void | s_undo_remove (TOPLEVEL *toplevel, UNDO *head, UNDO *u_tos) |
void | s_undo_remove_rest (TOPLEVEL *toplevel, UNDO *head) |
int | s_undo_levels (UNDO *head) |
void | s_undo_init (PAGE *p_current) |
void | s_undo_free_all (TOPLEVEL *toplevel, PAGE *p_current) |
char * | u_basic_breakup_string (char *string, char delimiter, int count) |
G_BEGIN_DECLS const gchar* o_file_format_header | ( | ) |
gchar* o_save_buffer | ( | TOPLEVEL * | toplevel, |
const GList * | object_list | ||
) |
int o_save | ( | TOPLEVEL * | toplevel, |
const GList * | object_list, | ||
const char * | filename, | ||
GError ** | err | ||
) |
GList* o_read_buffer | ( | TOPLEVEL * | toplevel, |
GList * | object_list, | ||
char * | buffer, | ||
const int | size, | ||
const char * | name, | ||
GError ** | err | ||
) |
GList* o_read | ( | TOPLEVEL * | toplevel, |
GList * | object_list, | ||
char * | filename, | ||
GError ** | err | ||
) |
[in,out] | toplevel | The current TOPLEVEL structure. |
[in] | object_list | The object_list to read data to. |
[in] | filename | The filename to read from. |
[in,out] | err | #GError structure for error reporting, or NULL to disable error reporting |
Definition at line 556 of file a_basic.c.
void o_scale | ( | TOPLEVEL * | toplevel, |
GList * | list, | ||
int | x_scale, | ||
int | y_scale | ||
) |
[in] | toplevel | The current TOPLEVEL object. |
[in,out] | list | The list with lines to scale. |
[in] | x_scale | The x scale value for the lines. |
[in] | y_scale | The y scale value for the lines. |
Definition at line 592 of file a_basic.c.
gchar* f_get_autosave_filename | ( | const gchar * | filename | ) |
gboolean f_has_active_autosave | ( | const gchar * | filename, |
GError ** | err | ||
) |
[in] | filename | File to check |
[in,out] | err | #GError structure for error reporting, or NULL to disable error reporting |
Definition at line 97 of file f_basic.c.
[in,out] | toplevel | The TOPLEVEL object to load the schematic into. |
[in] | filename | A character string containing the file name to open. |
[in,out] | err | #GError structure for error reporting, or NULL to disable error reporting |
Definition at line 165 of file f_basic.c.
int f_open_flags | ( | TOPLEVEL * | toplevel, |
PAGE * | page, | ||
const gchar * | filename, | ||
const gint | flags, | ||
GError ** | err | ||
) |
[in,out] | toplevel | The TOPLEVEL object to load the schematic into. |
[in] | filename | A character string containing the file name to open. |
[in] | flags | Combination of FOpenFlags values. |
[in,out] | err | #GError structure for error reporting, or NULL to disable error reporting |
Definition at line 191 of file f_basic.c.
void f_close | ( | TOPLEVEL * | toplevel | ) |
[in,out] | toplevel | The TOPLEVEL object containing the schematic. |
[in] | filename | The file name to save the schematic to. |
[in,out] | err | #GError structure for error reporting, or NULL to disable error reporting |
Definition at line 359 of file f_basic.c.
gchar* f_normalize_filename | ( | const gchar * | name, |
GError ** | error | ||
) |
It returns NULL and sets the error (if not NULL) if it failed to build the pathname or the pathname does not exists.
The part for the resolution of symbolic links has been discarded and it has been adapted for glib and for use on Windows.
[in] | name | A character string containing the pathname to resolve. |
[in,out] | error | Return location for a GError, or NULL. |
char* follow_symlinks | ( | const gchar * | filename, |
GError ** | err | ||
) |
[in] | filename | The filename to search for. |
[in,out] | err | #GError structure for error reporting, or NULL to disable error reporting. |
void f_print_set_type | ( | TOPLEVEL * | toplevel, |
int | type | ||
) |
SCM g_scm_eval_protected | ( | SCM | exp, |
SCM | module_or_state | ||
) |
Often a libgeda program (or libgeda itself) will need to call out to Scheme code, for example to load a Scheme configuration file. If an error or exception caused by such code goes uncaught, it locks up the Scheme interpreter, stopping any further Scheme code from being run until the program is restarted.
This function is equivalent to scm_eval (), with the important difference that any errors or exceptions caused by the evaluated expression exp are caught and reported via the libgeda logging mechanism. If an error occurs during evaluation, this function returns SCM_BOOL_F. If module_or_state is undefined, uses the current interaction environment.
exp | Expression to evaluate |
module_or_state | Environment in which to evaluate exp |
Definition at line 97 of file g_basic.c.
SCM g_scm_eval_string_protected | ( | SCM | str | ) |
Evaluates a string similarly to scm_eval_string(), but catching any errors or exceptions and reporting them via the libgeda logging mechanism.
See also g_scm_eval_protected() and g_scm_c_eval_string_protected().
str | String to evaluate. |
Definition at line 153 of file g_basic.c.
SCM g_scm_c_eval_string_protected | ( | const gchar * | str | ) |
Evaluates a C string like scm_c_eval_string(). Simple wrapper for g_scm_eval_string_protected().
str | String to evaluate. |
Definition at line 133 of file g_basic.c.
gboolean g_read_file | ( | TOPLEVEL * | toplevel, |
const gchar * | filename, | ||
GError ** | err | ||
) |
toplevel | The TOPLEVEL structure. |
filename | The file name of the Scheme file to load. |
err | Return location for errors, or NULL. |
Definition at line 208 of file g_basic.c.
SCM g_rc_mode_general | ( | SCM | scmmode, |
const char * | rc_name, | ||
int * | mode_var, | ||
const vstbl_entry * | table, | ||
int | table_size | ||
) |
gboolean g_rc_parse_system | ( | TOPLEVEL * | toplevel, |
const gchar * | rcname, | ||
GError ** | err | ||
) |
toplevel | The current TOPLEVEL structure. |
rcfile | The basename of the configuration file to load, or NULL. |
err | Return location for errors, or NULL. |
Definition at line 128 of file g_rc.c.
gboolean g_rc_parse_user | ( | TOPLEVEL * | toplevel, |
const gchar * | rcname, | ||
GError ** | err | ||
) |
toplevel | The current TOPLEVEL structure. |
rcfile | The basename of the configuration file to load, or NULL. |
err | Return location for errors, or NULL. |
Definition at line 154 of file g_rc.c.
gboolean g_rc_parse_local | ( | TOPLEVEL * | toplevel, |
const gchar * | rcname, | ||
const gchar * | path, | ||
GError ** | err | ||
) |
toplevel | The current TOPLEVEL structure. |
rcname | The basename of the configuration file to load, or NULL. |
path | The path to load a configuration file for, or NULL. |
err | Return location for errors, or NULL. |
Definition at line 179 of file g_rc.c.
gboolean g_rc_parse_file | ( | TOPLEVEL * | toplevel, |
const gchar * | rcfile, | ||
GError ** | err | ||
) |
toplevel | The current TOPLEVEL structure. |
rcfile | The filename of the configuration file to load. |
err | Return location for errors, or NULL; |
Definition at line 252 of file g_rc.c.
void g_rc_parse | ( | TOPLEVEL * | toplevel, |
const gchar * | pname, | ||
const gchar * | rcname, | ||
const gchar * | rcfile | ||
) |
[in] | toplevel | The current TOPLEVEL structure. |
[in] | pname | The name of the application (usually argv[0]). |
[in] | rcname | Config file basename, or NULL. |
[in] | rcfile | Specific config file path, or NULL. |
Definition at line 341 of file g_rc.c.
void g_rc_parse_handler | ( | TOPLEVEL * | toplevel, |
const gchar * | rcname, | ||
const gchar * | rcfile, | ||
ConfigParseErrorFunc | handler, | ||
void * | user_data | ||
) |
If an error occurs, calls handler with the provided user_data and a GError.
toplevel | The current TOPLEVEL structure. |
rcname | Config file basename, or NULL. |
rcfile | Specific config file path, or NULL. |
handler | Handler function for config parse errors. |
user_data | Data to be passed to handler. |
Definition at line 369 of file g_rc.c.
SCM g_rc_rc_filename | ( | ) |
void i_vars_libgeda_set | ( | TOPLEVEL * | toplevel | ) |
void i_vars_libgeda_freenames | ( | ) |
void libgeda_init | ( | void | ) |
[in] | toplevel | The TOPLEVEL object. |
[in,out] | page | The PAGE object to set constraints on. |
[in] | xmin | The minimum x coordinate for the page. |
[in] | xmax | The maximum x coordinate for the page. |
[in] | ymin | The minimum y coordinate for the page. |
[in] | ymax | The maximum y coordinate for the page. |
void rotate_point | ( | int | x, |
int | y, | ||
int | angle, | ||
int * | newx, | ||
int * | newy | ||
) |
[in] | x | Input point x coordinate. |
[in] | y | Input point y coordinate. |
[in] | angle | Angle to rotate in degrees. |
[out] | newx | Output point x coordinate. |
[out] | newy | Output point y coordinate. |
void rotate_point_90 | ( | int | x, |
int | y, | ||
int | angle, | ||
int * | newx, | ||
int * | newy | ||
) |
[in] | x | Input point x coordinate. |
[in] | y | Input point y coordinate. |
[in] | angle | Angle to rotate by (90 degree increments only). |
[out] | newx | Output point x coordinate. |
[out] | newy | Output point y coordinate. |
void PAPERSIZEtoWORLD | ( | int | width, |
int | height, | ||
int | border, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | width | Paper width. (units?) |
[in] | height | Paper height. (units?) |
[in] | border | Paper border size. (units?) |
[out] | right | Right world coordinate. (units?) |
[out] | bottom | Bottom world coordinate. (units?) |
void m_hatch_box | ( | BOX * | box, |
gint | angle, | ||
gint | pitch, | ||
GArray * | lines | ||
) |
This function appends new line segments to the lines GArray. For creating a hatch pattern, the GArray must be cleared before calling this function. For creating cross hatch patterns, this function can be called multiple times with a different angle or pitch while passing the same lines GArray.
box | [in] The box shape to hatch. |
angle | [in] The angle of the hatch lines with respect to the x axis. |
pitch | [in] The distance between hatch lines |
lines | [inout] A GArray of LINE to contain the new hatch line segments. This function appends new line segments to the GArray and leaves existing GArray contents unchanged. |
Definition at line 115 of file m_hatch.c.
void m_hatch_circle | ( | CIRCLE * | circle, |
gint | angle, | ||
gint | pitch, | ||
GArray * | lines | ||
) |
This function appends new line segments to the lines GArray. For creating a hatch pattern, the GArray must be cleared before calling this function. For creating cross hatch patterns, this function can be called multiple times with a different angle or pitch while passing the same lines GArray.
circle | [in] The circle shape to hatch. |
angle | [in] The angle of the hatch lines with respect to the x axis. |
pitch | [in] The distance between hatch lines |
lines | [inout] A GArray of LINE to contain the new hatch line segments. This function appends new line segments to the GArray and leaves existing GArray contents unchanged. |
Definition at line 160 of file m_hatch.c.
void m_hatch_path | ( | PATH * | path, |
gint | angle, | ||
gint | pitch, | ||
GArray * | lines | ||
) |
This function appends new line segments to the lines GArray. For creating a hatch pattern, the GArray must be cleared before calling this function. For creating cross hatch patterns, this function can be called multiple times with a different angle or pitch while passing the same lines GArray.
path | [in] The path shape to hatch. |
angle | [in] The angle of the hatch lines with respect to the x axis. |
pitch | [in] The distance between hatch lines |
lines | [inout] A GArray of LINE to contain the new hatch line segments. This function appends new line segments to the GArray and leaves existing GArray contents unchanged. |
Definition at line 207 of file m_hatch.c.
void m_polygon_append_bezier | ( | GArray * | points, |
BEZIER * | bezier, | ||
int | segments | ||
) |
points | [inout] The vertices of the polygon. This parameter must not be NULL. |
bezier | [in] The bezier curve to append. |
segments | [in] The number of segments to subdivide the bezier curve into. |
Definition at line 32 of file m_polygon.c.
void m_polygon_append_point | ( | GArray * | points, |
int | x, | ||
int | y | ||
) |
points | [inout] The vertices of the polygon. This parameter must not be NULL. |
x | [in] The x coordinate of the point to append. |
y | [in] The y coordinate of the point to append. |
Definition at line 86 of file m_polygon.c.
OBJECT* o_arc_new | ( | TOPLEVEL * | toplevel, |
char | type, | ||
int | color, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | start_angle, | ||
int | end_angle | ||
) |
The arc is defined by its center in parameters x and y. The radius parameter specifies the radius of the arc. The start angle is given by start_angle and the end angle by end_angle. The line and fill type of the created arc are set to default.
All dimensions are in world unit, except start_angle and end_angle in degrees.
A new object of type OBJECT is allocated. Its type and color are initilized. The description of the arc characteristics are stored in a new ARC structure.
Now fixed for world coordinates.
[in] | toplevel | The TOPLEVEL object. |
[in] | type | |
[in] | color | |
[in] | x | |
[in] | y | |
[in] | radius | |
[in] | start_angle | |
[in] | end_angle |
The functions relative to the use of the object are sets.
Definition at line 64 of file o_arc_basic.c.
The values of the o_current pointed OBJECT are then copied to the new object.
The arc, the line options are initialized whereas the fill options are initialized to passive values - as an arc can not be filled.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current |
Definition at line 127 of file o_arc_basic.c.
The new values are given by x and/or y. Their meaning depends on the value of whichone.
If whichone is equal to ARC_CENTER, the (x,y) point is taken as the new center of the arc in world unit.
If whichone is equal to ARC_RADIUS, the x parameter is taken to be the radius of the arc in world unit. The y parameter is ignored.
If whichone is equal to ARC_START_ANGLE, the x parameter is the starting angle of the arc. x is in degrees. y is ignored.
If whichone is equal to ARC_END_ANGLE, the x parameter is the ending angle of the arc. x is in degrees. y is ignored.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | object | |
[in] | x | |
[in] | y | |
[in] | whichone |
Definition at line 171 of file o_arc_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | dx | |
[in] | dy | |
[in] | object |
Definition at line 351 of file o_arc_basic.c.
void o_arc_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
The arc is translated in order to put the center of the rotation on the origin. The center of the arc is then rotated of the angle specified by angle. The start angle of the arc is incremented by angle.
The arc is finally back translated to its previous location on the page.
world_centerx and world_centery are in world units, angle is in degrees.
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | |
[in] | world_centery | |
[in] | angle | |
[in] | object |
Definition at line 387 of file o_arc_basic.c.
void o_arc_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
The arc is translated in order to put the point (world_centerx,world_centery) on the origin. The center of the arc is then mirrored. The start angle of the arc and the sweep of the arc are also mirrored.
The arc is finally back translated to its previous location on the page.
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | |
[in] | world_centery | |
[in] | object |
Definition at line 438 of file o_arc_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | object | The OBJECT we're adding the attribute to. |
[in] | item | The item you want to add as an attribute. |
Definition at line 68 of file o_attrib.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | attrib | The attribute to be checket. |
[in] | object | The object where you want to add item as an attribute. |
Definition at line 88 of file o_attrib.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | attrib | The attribute to be added. |
[out] | object | The object where you want to add item as an attribute. |
[in] | set_color | Whether or not we should set the new attribute's color. |
Definition at line 110 of file o_attrib.c.
void o_attrib_attach_list | ( | TOPLEVEL * | toplevel, |
GList * | attr_list, | ||
OBJECT * | object, | ||
int | set_color | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | attr_list | The list of attributes to be added. |
[out] | object | The object where you want to add item as an attribute. |
[in] | set_color | Whether or not we should set the new attribute's color. |
Definition at line 149 of file o_attrib.c.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | object | The object whos attributes to detach. |
Definition at line 166 of file o_attrib.c.
void o_attrib_print | ( | GList * | attributes | ) |
[in] | attributes | List of attributes to print. |
Definition at line 194 of file o_attrib.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | list | The attribute list to remove attribute from. |
[in] | remove | The OBJECT to remove from list. |
Definition at line 222 of file o_attrib.c.
gboolean o_attrib_string_get_name_value | ( | const gchar * | string, |
gchar ** | name_ptr, | ||
gchar ** | value_ptr | ||
) |
It returns TRUE if it has been able to parse the string into the name and value parts of an attribute. Otherwise it returns FALSE, in that case *name_ptr and *value_ptr are set to NULL.
name_ptr and/or value_ptr can be NULL. If not NULL, the caller must g_free these returned strings.
[in] | string | String to split into name/value pair. |
[out] | name_ptr | The return location for the name, or NULL. |
[out] | value_ptr | The return location for the value, or NULL. |
Definition at line 379 of file o_attrib.c.
gboolean o_attrib_get_name_value | ( | OBJECT * | attrib, |
gchar ** | name_ptr, | ||
gchar ** | value_ptr | ||
) |
[in] | attrib | The attribute OBJECT whos name/value to return. |
[out] | name_ptr | The return location for the name, or NULL. |
[out] | value_ptr | The return location for the value, or NULL. |
Definition at line 424 of file o_attrib.c.
GList* o_attrib_find_floating_attribs | ( | const GList * | list | ) |
[in] | list | GList of OBJECTs to search for floating attributes. |
Definition at line 443 of file o_attrib.c.
char* o_attrib_search_floating_attribs_by_name | ( | const GList * | list, |
char * | name, | ||
int | counter | ||
) |
Counter is the n'th occurance of the attribute, and starts searching from zero. Zero is the first occurance of an attribute.
[in] | list | GList of OBJECTs to search for floating attributes. |
[in] | name | Character string with attribute name to search for. |
[in] | counter | Which occurance to return. |
Definition at line 550 of file o_attrib.c.
char* o_attrib_search_attached_attribs_by_name | ( | OBJECT * | object, |
char * | name, | ||
int | counter | ||
) |
Counter is the n'th occurance of the attribute, and starts searching from zero. Zero is the first occurance of an attribute.
[in] | object | The OBJECT whos attached attributes to search. |
[in] | name | Character string with attribute name to search for. |
[in] | counter | Which occurance to return. |
Definition at line 578 of file o_attrib.c.
char* o_attrib_search_inherited_attribs_by_name | ( | OBJECT * | object, |
char * | name, | ||
int | counter | ||
) |
Counter is the n'th occurance of the attribute, and starts searching from zero. Zero is the first occurance of an attribute.
[in] | object | The OBJECT whos inherited attributes to search. |
[in] | name | Character string with attribute name to search for. |
[in] | counter | Which occurance to return. |
Definition at line 599 of file o_attrib.c.
char* o_attrib_search_object_attribs_by_name | ( | OBJECT * | object, |
char * | name, | ||
int | counter | ||
) |
Counter is the n'th occurance of the attribute, and starts searching from zero. Zero is the first occurance of an attribute.
[in] | object | OBJECT who's attributes to search. |
[in] | name | Character string with attribute name to search for. |
[in] | counter | Which occurance to return. |
Definition at line 623 of file o_attrib.c.
GList* o_attrib_return_attribs | ( | OBJECT * | object | ) |
The returned GList should be freed using the #g_list_free().
This function aggregates the attached and inherited attributes belonging to a given OBJECT. (inherited attributes are those which live as toplevel un-attached attributes inside in a complex OBJECT's prim_objs).
[in] | object | OBJECT whos attributes to return. |
Definition at line 650 of file o_attrib.c.
int o_attrib_is_inherited | ( | OBJECT * | attrib | ) |
[in] | attrib | OBJECT who's status to query. |
Definition at line 698 of file o_attrib.c.
void o_attrib_append_attribs_changed_hook | ( | TOPLEVEL * | toplevel, |
AttribsChangedFunc | func, | ||
void * | data | ||
) |
Definition at line 711 of file o_attrib.c.
Definition at line 750 of file o_attrib.c.
int inside_region | ( | int | xmin, |
int | ymin, | ||
int | xmax, | ||
int | ymax, | ||
int | x, | ||
int | y | ||
) |
[in] | xmin | Smaller x coordinate of the region. |
[in] | ymin | Smaller y coordinate of the region. |
[in] | xmax | Larger x coordinate of the region. |
[in] | ymax | Larger y coordinate of the region. |
[in] | x | x coordinate of the point to check. |
[in] | y | y coordinate of the point to check. |
void o_recalc_object_glist | ( | TOPLEVEL * | toplevel, |
GList * | object_glist | ||
) |
void o_set_line_options | ( | TOPLEVEL * | toplevel, |
OBJECT * | o_current, | ||
OBJECT_END | end, | ||
OBJECT_TYPE | type, | ||
int | width, | ||
int | length, | ||
int | space | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in,out] | o_current | OBJECT to set line options on. |
[in] | end | An OBJECT_END. |
[in] | type | An OBJECT_TYPE. |
[in] | width | Line width. |
[in] | length | Line length. |
[in] | space | Spacing between dashes/dots. Cannot be negative. |
Definition at line 183 of file o_basic.c.
gboolean o_get_line_options | ( | OBJECT * | object, |
OBJECT_END * | end, | ||
OBJECT_TYPE * | type, | ||
int * | width, | ||
int * | length, | ||
int * | space | ||
) |
[in] | object | OBJECT to read the properties |
[out] | end | An OBJECT_END. |
[out] | type | An OBJECT_TYPE. |
[out] | width | Line width. |
[out] | length | Line length. |
[out] | space | Spacing between dashes/dots. |
void o_set_fill_options | ( | TOPLEVEL * | toplevel, |
OBJECT * | o_current, | ||
OBJECT_FILLING | type, | ||
int | width, | ||
int | pitch1, | ||
int | angle1, | ||
int | pitch2, | ||
int | angle2 | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in,out] | o_current | OBJECT to be updated. |
[in] | type | OBJECT_FILLING type. |
[in] | width | fill width. |
[in] | pitch1 | cross hatch line distance |
[in] | angle1 | cross hatch angle |
[in] | pitch2 | cross hatch line distance |
[in] | angle2 | cross hatch angle |
Definition at line 281 of file o_basic.c.
gboolean o_get_fill_options | ( | OBJECT * | object, |
OBJECT_FILLING * | type, | ||
int * | width, | ||
int * | pitch1, | ||
int * | angle1, | ||
int * | pitch2, | ||
int * | angle2 | ||
) |
[in] | object | OBJECT to read the properties |
[out] | type | OBJECT_FILLING type |
[out] | width | fill width. |
[out] | pitch1 | cross hatch line distance |
[out] | angle1 | cross hatch angle |
[out] | pitch2 | cross hatch line distance |
[out] | angle2 | cross hatch angle |
[in] | toplevel | The toplevel environment. |
[out] | x | pointer to the x-position |
[out] | y | pointer to the y-position |
[in] | object | The object to get the position. |
Definition at line 349 of file o_basic.c.
[in] | toplevel | The toplevel environment. |
[in] | dx | Amount to horizontally translate object |
[in] | dy | Amount to vertically translate object |
[in] | object | The object to translate. |
Definition at line 388 of file o_basic.c.
void o_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The toplevel environment. |
[in] | world_centerx | X coordinate of rotation center (world coords) |
[in] | world_centery | Y coordinate of rotation center (world coords) |
[in] | angle | Angle of rotation (degrees) |
[in] | object | The object to rotate. |
Definition at line 427 of file o_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Origin x coordinate in WORLD units. |
[in] | world_centery | Origin y coordinate in WORLD units. |
[in,out] | object | The OBJECT to mirror. |
Definition at line 465 of file o_basic.c.
double o_shortest_distance | ( | OBJECT * | object, |
int | x, | ||
int | y | ||
) |
[in] | object | The given object. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
Definition at line 504 of file o_basic.c.
[in] | toplevel | The TOPLEVEL structure. |
[in] | object | The OBJECT for which to retrieve the parent PAGE. |
Definition at line 607 of file o_basic.c.
void o_add_change_notify | ( | TOPLEVEL * | toplevel, |
ChangeNotifyFunc | pre_change_func, | ||
ChangeNotifyFunc | change_func, | ||
void * | user_data | ||
) |
toplevel | TOPLEVEL structure to add handlers to. |
pre_change_func | Function to be called just before changes. |
change_func | Function to be called just after changes. |
user_data | User data to be passed to callback functions. |
void o_remove_change_notify | ( | TOPLEVEL * | toplevel, |
ChangeNotifyFunc | pre_change_func, | ||
ChangeNotifyFunc | change_func, | ||
void * | user_data | ||
) |
toplevel | TOPLEVEL structure to remove handlers from. |
pre_change_func | Function called just before changes. |
change_func | Function called just after changes. |
user_data | User data passed to callback functions. |
The box is described by its upper left corner - x1, y1 - and its lower right corner - x2, y2. The type parameter must be equal to OBJ_BOX. The color corresponds to the color the box will be drawn with. The OBJECT structure is allocated with the s_basic_new_object() function. The structure describing the box is allocated and initialized with the parameters given to the function.
Both the line type and the filling type are set to default values : solid line type with a width of 0, and no filling. It can be changed after with the o_set_line_options() and o_set_fill_options().
[in] | toplevel | The TOPLEVEL object. |
[in] | type | Box type. |
[in] | color | Box border color. |
[in] | x1 | Upper x coordinate. |
[in] | y1 | Upper y coordinate. |
[in] | x2 | Lower x coordinate. |
[in] | y2 | Lower y coordinate. |
Definition at line 60 of file o_box_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | o_current | BOX OBJECT to copy. |
Definition at line 101 of file o_box_basic.c.
[in] | toplevel | current TOPLEVEL. |
[in,out] | object | box OBJECT to be modified. |
[in] | x1 | x coordinate of first corner of box. |
[in] | y1 | y coordinate of first corner of box. |
[in] | x2 | x coordinate of second corner of box. |
[in] | y2 | y coordinate of second corner of box, |
Definition at line 151 of file o_box_basic.c.
The coordinates of the corner is modified in the world coordinate system. Screen coordinates and boundings are then updated.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | object | BOX OBJECT to be modified. |
[in] | x | x coordinate. |
[in] | y | y coordinate. |
[in] | whichone | coordinate to change. |
Definition at line 191 of file o_box_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | dx | x distance to move. |
[in] | dy | y distance to move. |
[in,out] | object | BOX OBJECT to translate. |
Definition at line 442 of file o_box_basic.c.
void o_box_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Rotation center x coordinate in WORLD units. |
[in] | world_centery | Rotation center y coordinate in WORLD units. |
[in] | angle | Rotation angle in degrees (See note below). |
[in,out] | object | BOX OBJECT to rotate. |
Definition at line 468 of file o_box_basic.c.
void o_box_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
The box is first translated to the origin, then mirrored and finally translated back at its previous position.
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Origin x coordinate in WORLD units. |
[in] | world_centery | Origin y coordinate in WORLD units. |
[in,out] | object | BOX OBJECT to mirror. |
Definition at line 533 of file o_box_basic.c.
OBJECT* o_bus_new | ( | TOPLEVEL * | toplevel, |
char | type, | ||
int | color, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | bus_ripper_direction | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | type | The OBJECT type (usually OBJ_BUS) |
[in] | color | The color of the bus |
[in] | x1 | x-coord of the first point |
[in] | y1 | y-coord of the first point |
[in] | x2 | x-coord of the second point |
[in] | y2 | y-coord of the second point |
[in] | bus_ripper_direction | direction of the bus rippers |
Definition at line 82 of file o_bus_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | dx | The x-distance to move the object |
[in] | dy | The y-distance to move the object |
[in] | object | The bus OBJECT to be moved |
Definition at line 231 of file o_bus_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current | The object that is copied |
Definition at line 253 of file o_bus_basic.c.
void o_bus_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | world_centerx | x-coord of the rotation center |
[in] | world_centery | y-coord of the rotation center |
[in] | angle | The angle to rotat the bus object |
[in] | object | The bus object |
Definition at line 322 of file o_bus_basic.c.
void o_bus_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | world_centerx | x-coord of the mirror position |
[in] | world_centery | y-coord of the mirror position |
[in] | object | The bus object |
Definition at line 359 of file o_bus_basic.c.
int o_bus_orientation | ( | OBJECT * | object | ) |
[in] | object | The bus object |
Definition at line 379 of file o_bus_basic.c.
void o_bus_consolidate | ( | TOPLEVEL * | toplevel | ) |
Definition at line 495 of file o_bus_basic.c.
toplevel | The TOPLEVEL object |
object | The bus OBJECT to modify |
x | new x-coord of the bus point |
y | new y-coord of the bus point |
whichone | bus point to modify |
Definition at line 512 of file o_bus_basic.c.
int dist | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
[in] | x1 | x-value of the first point |
[in] | y1 | y-value of the first point |
[in] | x2 | x-value of the second point |
[in] | y2 | y-value of the second point |
Definition at line 47 of file o_circle_basic.c.
The circle is described by its center (x,y) and its radius radius. The type parameter must be equal to OBJ_CIRCLE. The color corresponds to the color the box will be drawn with.
The OBJECT structure is allocated with the s_basic_new_object() function. The structure describing the circle is allocated and initialized with the parameters given to the function.
Both the line type and the filling type are set to default values : solid line type with a width of 0, and no filling. It can be changed after with o_set_line_options() and o_set_fill_options().
[in] | toplevel | The TOPLEVEL object. |
[in] | type | Must be OBJ_CIRCLE. |
[in] | color | Circle line color. |
[in] | x | Center x coordinate. |
[in] | y | Center y coordinate. |
[in] | radius | Radius of new circle. |
Definition at line 77 of file o_circle_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | o_current | Circle OBJECT to copy. |
Definition at line 115 of file o_circle_basic.c.
If whichone is equal to CIRCLE_CENTER, the new center of the circle is given by (x,y) where x and y are in world units.
If whichone is equal to CIRCLE_RADIUS, the radius is given by x - in world units. y is ignored.
The bounding box of the circle object is updated after the modification of its parameters.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | object | Circle OBJECT to modify. |
[in] | x | New center x coordinate, or radius value. |
[in] | y | New center y coordinate. Unused if radius is being modified. |
[in] | whichone | Which circle parameter to modify. |
whichone can have the following values:
Definition at line 179 of file o_circle_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | dx | x distance to move. |
[in] | dy | y distance to move. |
[in,out] | object | Circle OBJECT to translate. |
Definition at line 375 of file o_circle_basic.c.
void o_circle_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Rotation center x coordinate in WORLD units. |
[in] | world_centery | Rotation center y coordinate in WORLD units. |
[in] | angle | Rotation angle in degrees (See note below). |
[in,out] | object | Circle OBJECT to rotate. |
Definition at line 400 of file o_circle_basic.c.
void o_circle_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
The circle coordinates and its bounding are recalculated as well as the OBJECT specific (line width, filling ...).
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Origin x coordinate in WORLD units. |
[in] | world_centery | Origin y coordinate in WORLD units. |
[in,out] | object | Circle OBJECT to mirror. |
Definition at line 452 of file o_circle_basic.c.
int world_get_single_object_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | o_current, | ||
int * | rleft, | ||
int * | rtop, | ||
int * | rright, | ||
int * | rbottom | ||
) |
[in] | toplevel | The toplevel structure. |
[in] | o_current | The object to look the bounds for. |
[out] | rleft | pointer to the left coordinate of the object. |
[out] | rtop | pointer to the top coordinate of the object. |
[out] | rright | pointer to the right coordinate of the object. |
[out] | rbottom | pointer to the bottom coordinate of the object. |
0 | No bound was found |
1 | Bound was found |
Definition at line 57 of file o_complex_basic.c.
int world_get_object_glist_bounds | ( | TOPLEVEL * | toplevel, |
const GList * | head, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL structure. |
[in] | head | The list of objects to look the bounds for. |
[out] | left | pointer to the left coordinate of the object. |
[out] | top | pointer to the top coordinate of the object. |
[out] | right | pointer to the right coordinate of the object. |
[out] | bottom | pointer to the bottom coordinate of the object. |
0 | No bounds were found |
1 | Bound was found |
Definition at line 113 of file o_complex_basic.c.
int o_complex_is_embedded | ( | OBJECT * | o_current | ) |
o_current | The object to check |
Definition at line 245 of file o_complex_basic.c.
Definition at line 319 of file o_complex_basic.c.
OBJECT* o_complex_new | ( | TOPLEVEL * | toplevel, |
char | type, | ||
int | color, | ||
int | x, | ||
int | y, | ||
int | angle, | ||
int | mirror, | ||
const CLibSymbol * | clib, | ||
const gchar * | basename, | ||
int | selectable | ||
) |
Definition at line 481 of file o_complex_basic.c.
OBJECT* o_complex_new_embedded | ( | TOPLEVEL * | toplevel, |
char | type, | ||
int | color, | ||
int | x, | ||
int | y, | ||
int | angle, | ||
int | mirror, | ||
const gchar * | basename, | ||
int | selectable | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | type | The type of the object (usually OBJ_COMLEX) |
[in] | color | The color of the object |
[in] | x | The x location of the complex object |
[in] | y | The y location of the complex object |
[in] | angle | The rotation angle |
[in] | mirror | The mirror status |
[in] | basename | The basic name the embedded was created of |
[in] | selectable | whether the object can be selected with the mouse |
Definition at line 568 of file o_complex_basic.c.
void o_complex_set_filename | ( | TOPLEVEL * | toplevel, |
const char * | basename | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | dx | The x-distance to move the object |
[in] | dy | The y-distance to move the object |
[in] | object | The complex OBJECT to be moved |
Definition at line 753 of file o_complex_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current | The object that is copied |
Definition at line 776 of file o_complex_basic.c.
void o_complex_rotate_world | ( | TOPLEVEL * | toplevel, |
int | centerx, | ||
int | centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
Definition at line 829 of file o_complex_basic.c.
void o_complex_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
Definition at line 867 of file o_complex_basic.c.
[in] | object | complex OBJECT whos pins to search. |
[in] | name | the attribute name to search for. |
[in] | wanted_value | the attribute value to search for. |
Definition at line 914 of file o_complex_basic.c.
toplevel | The TOPLEVEL object |
object | The complex OBJECT |
Definition at line 956 of file o_complex_basic.c.
toplevel | The TOPLEVEL object |
o_current | The OBJECT to embed |
Definition at line 45 of file o_embed.c.
toplevel | The TOPLEVEL object |
o_current | The OBJECT to unembed |
Definition at line 86 of file o_embed.c.
The line is described by its two ends - x1,y1 and x2,y2. The type parameter must be equal to OBJ_LINE. The color parameter corresponds to the color the box will be drawn with.
The OBJECT structure is allocated with the s_basic_new_object() function. The structure describing the line is allocated and initialized with the parameters given to the function.
Both the line type and the filling type are set to default values : solid line type with a width of 0, and no filling. It can be changed after with the o_set_line_options() and o_set_fill_options().
[in] | toplevel | The TOPLEVEL object. |
[in] | type | Must be OBJ_LINE. |
[in] | color | Circle line color. |
[in] | x1 | Upper x coordinate. |
[in] | y1 | Upper y coordinate. |
[in] | x2 | Lower x coordinate. |
[in] | y2 | Lower y coordinate. |
Definition at line 64 of file o_line_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | o_current | Line OBJECT to copy. |
Definition at line 103 of file o_line_basic.c.
The coordinates of the end of line is modified in the world coordinate system. Screen coordinates and boundings are then updated.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | object | Line OBJECT to modify. |
[in] | x | New x coordinate. |
[in] | y | New y coordinate. |
[in] | whichone | Which line parameter to modify. |
whichone can have the following values:
Definition at line 162 of file o_line_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | dx | x distance to move. |
[in] | dy | y distance to move. |
[in,out] | object | Line OBJECT to translate. |
Definition at line 341 of file o_line_basic.c.
void o_line_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Rotation center x coordinate in WORLD units. |
[in] | world_centery | Rotation center y coordinate in WORLD units. |
[in] | angle | Rotation angle in degrees (See note below). |
[in,out] | object | Line OBJECT to rotate. |
Definition at line 367 of file o_line_basic.c.
void o_line_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
The line if first translated to the origin, then mirrored and finally translated back at its previous position.
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Origin x coordinate in WORLD units. |
[in] | world_centery | Origin y coordinate in WORLD units. |
[in,out] | object | Line OBJECT to mirror. |
Definition at line 422 of file o_line_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | x_scale | |
[in] | y_scale | |
[in] | object |
Definition at line 1131 of file o_line_basic.c.
double o_line_length | ( | OBJECT * | object | ) |
[in] | object | a line OBJECT |
Definition at line 1153 of file o_line_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | selected |
Definition at line 47 of file o_list.c.
GList* o_glist_copy_all | ( | TOPLEVEL * | toplevel, |
const GList * | src_list, | ||
GList * | dest_list | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | src_list | The GList to copy from. |
[in] | dest_list | The GList to copy to. |
Definition at line 137 of file o_list.c.
void o_glist_translate_world | ( | TOPLEVEL * | toplevel, |
int | dx, | ||
int | dy, | ||
const GList * | list | ||
) |
void o_glist_rotate_world | ( | TOPLEVEL * | toplevel, |
int | x, | ||
int | y, | ||
int | angle, | ||
const GList * | list | ||
) |
void o_glist_mirror_world | ( | TOPLEVEL * | toplevel, |
int | x, | ||
int | y, | ||
const GList * | list | ||
) |
void o_glist_set_color | ( | TOPLEVEL * | toplevel, |
const GList * | list, | ||
int | color | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | type | The OBJECT type (usually OBJ_NET) |
[in] | color | The color of the net |
[in] | x1 | x-coord of the first point |
[in] | y1 | y-coord of the first point |
[in] | x2 | x-coord of the second point |
[in] | y2 | y-coord of the second point |
Definition at line 81 of file o_net_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | dx | The x-distance to move the object |
[in] | dy | The y-distance to move the object |
[in] | object | The net OBJECT to be moved |
Definition at line 214 of file o_net_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current | The object that is copied |
Definition at line 237 of file o_net_basic.c.
void o_net_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | world_centerx | x-coord of the rotation center |
[in] | world_centery | y-coord of the rotation center |
[in] | angle | The angle to rotat the net object |
[in] | object | The net object |
Definition at line 303 of file o_net_basic.c.
void o_net_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | world_centerx | x-coord of the mirror position |
[in] | world_centery | y-coord of the mirror position |
[in] | object | The net object |
Definition at line 341 of file o_net_basic.c.
int o_net_orientation | ( | OBJECT * | object | ) |
[in] | object | The net object |
Definition at line 362 of file o_net_basic.c.
toplevel | The TOPLEVEL object. |
page | The PAGE to consolidate nets in. |
Definition at line 590 of file o_net_basic.c.
toplevel | The TOPLEVEL object |
object | The net OBJECT to modify |
x | new x-coord of the net point |
y | new y-coord of the net point |
whichone | net point to modify |
Definition at line 630 of file o_net_basic.c.
For the purpose of this function, an entity is:
Computed number of entities is afterwards stored in all traversed net segments.
The algorithm does not handle corner cases, ie two bus segments belonging to the same bus will be counted twice.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current | The NET OBJECT to check connectivity of |
Definition at line 661 of file o_net_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current | The OBJECT to check connectivity of |
Definition at line 779 of file o_net_basic.c.
The OBJECT structure is allocated with the s_basic_init_object() function. The structure describing the path is allocated and initialized with the parameters given to the function.
Both the path type and the filling type are set to default values : solid path type with a width of 0, and no filling. It can be changed after with the o_set_line_options() and o_set_fill_options().
The object is added to the end of the list described by the object_list parameter by the #s_basic_link_object().
[in] | toplevel | The TOPLEVEL object. |
[in] | type | Must be OBJ_PATH. |
[in] | color | The path color. |
[in] | path_string | The string representation of the path |
Definition at line 74 of file o_path_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | o_current | Line OBJECT to copy. |
Definition at line 109 of file o_path_basic.c.
The new position is given by x and y.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | object | The path OBJECT |
[in] | x | New x coordinate for the control point |
[in] | y | New y coordinate for the control point |
[in] | whichone | Which control point is being modified |
Definition at line 300 of file o_path_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | dx | x distance to move. |
[in] | dy | y distance to move. |
[in,out] | object | Line OBJECT to translate. |
Definition at line 354 of file o_path_basic.c.
void o_path_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Rotation center x coordinate in WORLD units. |
[in] | world_centery | Rotation center y coordinate in WORLD units. |
[in] | angle | Rotation angle in degrees (See note below). |
[in,out] | object | Line OBJECT to rotate. |
Definition at line 399 of file o_path_basic.c.
void o_path_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Origin x coordinate in WORLD units. |
[in] | world_centery | Origin y coordinate in WORLD units. |
[in,out] | object | Line OBJECT to mirror. |
Definition at line 445 of file o_path_basic.c.
OBJECT* o_picture_new | ( | TOPLEVEL * | toplevel, |
const gchar * | file_content, | ||
gsize | file_length, | ||
const gchar * | filename, | ||
char | type, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | angle, | ||
int | mirrored, | ||
int | embedded | ||
) |
The picture is described by its upper left corner (x1, y1) and its lower right corner (x2, ). The type parameter must be equal to OBJ_PICTURE.
If file_content is non-NULL, it must be a pointer to a buffer containing raw image data. If loading data from file_content is unsuccessful, and filename is non-NULL, an image will attempt to be loaded from filename. Otherwise, the picture object will be initially empty.
[in] | toplevel | The TOPLEVEL object. |
[in] | file_content | Raw data of the image file, or NULL. |
[in] | file_length | Length of raw data buffer |
[in] | filename | File name backing this picture, or NULL. |
[in] | type | Must be OBJ_PICTURE. |
[in] | x1 | Upper x coordinate. |
[in] | y1 | Upper y coordinate. |
[in] | x2 | Lower x coordinate. |
[in] | y2 | Lower y coordinate. |
[in] | angle | Picture rotation angle. |
[in] | mirrored | Whether the image should be mirrored or not. |
[in] | embedded | Whether the embedded flag should be set or not. |
Definition at line 273 of file o_picture.c.
Returns the width/height ratio of picture object, taking the image rotation into account.
Definition at line 412 of file o_picture.c.
The coordinates of the corner is modified in the world coordinate system. Screen coordinates and boundings are then updated.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | object | Picture OBJECT to modify. |
[in] | x | New x coordinate. |
[in] | y | New y coordinate. |
[in] | whichone | Which picture parameter to modify. |
whichone can have the following values:
Definition at line 456 of file o_picture.c.
[in] | toplevel | current TOPLEVEL. |
[in,out] | object | picture OBJECT to be modified. |
[in] | x1 | x coordinate of first corner of box. |
[in] | y1 | y coordinate of first corner of box. |
[in] | x2 | x coordinate of second corner of box. |
[in] | y2 | y coordinate of second corner of box. |
Definition at line 539 of file o_picture.c.
void o_picture_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Rotation center x coordinate in WORLD units. |
[in] | world_centery | Rotation center y coordinate in WORLD units. |
[in] | angle | Rotation angle in degrees (See note below). |
[in,out] | object | Picture OBJECT to rotate. |
Definition at line 570 of file o_picture.c.
void o_picture_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
The picture is first translated to the origin, then mirrored and finally translated back at its previous position.
[in] | toplevel | The TOPLEVEL object. |
[in] | world_centerx | Origin x coordinate in WORLD units. |
[in] | world_centery | Origin y coordinate in WORLD units. |
[in,out] | object | Picture OBJECT to mirror. |
Definition at line 634 of file o_picture.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | dx | x distance to move. |
[in] | dy | y distance to move. |
[in,out] | object | Picture OBJECT to translate. |
Definition at line 692 of file o_picture.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | object | Picture OBJECT to copy. |
Definition at line 714 of file o_picture.c.
Definition at line 1049 of file o_picture.c.
The returned value should have its reference count decremented with g_object_unref() when no longer needed.
Definition at line 1070 of file o_picture.c.
toplevel | The current TOPLEVEL. |
object | The picture OBJECT to inspect. |
len | Location to store buffer length. |
Definition at line 1093 of file o_picture.c.
gboolean o_picture_set_from_buffer | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
const gchar * | filename, | ||
const gchar * | data, | ||
size_t | len, | ||
GError ** | error | ||
) |
toplevel | The current TOPLEVEL. |
object | The picture OBJECT to modify. |
filename | The new filename for the picture. |
data | The new image data buffer. |
len | The size of the data buffer. |
error | Location to return error information. |
Definition at line 1117 of file o_picture.c.
gboolean o_picture_set_from_file | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
const gchar * | filename, | ||
GError ** | error | ||
) |
toplevel | The current TOPLEVEL. |
object | The picture OBJECT to modify. |
filename | The filename to load image data from. |
error | Location to return error information. |
Definition at line 1176 of file o_picture.c.
Definition at line 1205 of file o_picture.c.
GdkPixbuf* o_picture_get_fallback_pixbuf | ( | TOPLEVEL * | toplevel | ) |
Definition at line 1222 of file o_picture.c.
OBJECT* o_pin_new | ( | TOPLEVEL * | toplevel, |
char | type, | ||
int | color, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | pin_type, | ||
int | whichend | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | type | The OBJECT type (usually OBJ_PIN) |
[in] | color | The color of the pin |
[in] | x1 | x-coord of the first point |
[in] | y1 | y-coord of the first point |
[in] | x2 | x-coord of the second point |
[in] | y2 | y-coord of the second point |
[in] | pin_type | type of pin (PIN_TYPE_NET or PIN_TYPE_BUS) |
[in] | whichend | The connectable end of the pin |
Definition at line 85 of file o_pin_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | dx | The x-distance to move the object |
[in] | dy | The y-distance to move the object |
[in] | object | The pin OBJECT to be moved |
Definition at line 235 of file o_pin_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current | The object that is copied |
Definition at line 257 of file o_pin_basic.c.
void o_pin_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | world_centerx | x-coord of the rotation center |
[in] | world_centery | y-coord of the rotation center |
[in] | angle | The angle to rotat the pin object |
[in] | object | The pin object |
Definition at line 319 of file o_pin_basic.c.
void o_pin_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | world_centerx | x-coord of the mirror position |
[in] | world_centery | y-coord of the mirror position |
[in] | object | The pin object |
Definition at line 356 of file o_pin_basic.c.
toplevel | The TOPLEVEL object |
object | The pin OBJECT to modify |
x | new x-coord of the pin point |
y | new y-coord of the pin point |
whichone | pin point to modify |
Definition at line 382 of file o_pin_basic.c.
void o_pin_update_whichend | ( | TOPLEVEL * | toplevel, |
GList * | object_list, | ||
int | num_pins | ||
) |
toplevel | The TOPLEVEL object |
object_list | list of OBJECTs |
num_pins | pin count in the object list |
Definition at line 407 of file o_pin_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current | The pin OBJECT being modified |
[in] | pin_type | The new type of this pin |
Definition at line 560 of file o_pin_basic.c.
SELECTION* o_selection_new | ( | void | ) |
Definition at line 38 of file o_selection.c.
[in] | toplevel | The TOPLEVEL object |
[in] | selection | Pointer to the selection list |
[in] | o_selected | Object to select. |
Definition at line 52 of file o_selection.c.
void o_selection_print_all | ( | const SELECTION * | selection | ) |
[in] | selection | Pointer to selection list to print. |
Definition at line 90 of file o_selection.c.
[in] | toplevel | The TOPLEVEL object |
[in] | selection | Pointer to the selection list |
[in] | o_selected | Object to unselect and remove from the list. |
Definition at line 71 of file o_selection.c.
[in] | toplevel | The TOPLEVEL object |
[in] | object | Object to select. |
Definition at line 114 of file o_selection.c.
[in] | toplevel | The TOPLEVEL object |
[in] | object | Object to unselect. |
Definition at line 132 of file o_selection.c.
int o_text_num_lines | ( | const char * | string | ) |
[in] | string | text string to count the lines |
Definition at line 206 of file o_text_basic.c.
OBJECT* o_text_new | ( | TOPLEVEL * | toplevel, |
char | type, | ||
int | color, | ||
int | x, | ||
int | y, | ||
int | alignment, | ||
int | angle, | ||
const char * | string, | ||
int | size, | ||
int | visibility, | ||
int | show_name_value | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | type | OBJ_TEXT (TODO: why bother) |
[in] | color | The color of the text. |
[in] | x | World x coord of text. |
[in] | y | World y coord of text. |
[in] | alignment | How text bounding box aligns on (x, y). |
[in] | angle | Angle at which text will appear. |
[in] | string | The text (TODO: can be char const *)! |
[in] | size | Text size. |
[in] | visibility | VISIBLE or INVISIBLE. |
[in] | show_name_value | SHOW_NAME_VALUE or friends. |
Definition at line 251 of file o_text_basic.c.
toplevel | The TOPLEVEL object |
o_current | The text object to update |
Definition at line 519 of file o_text_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | dx | The x-distance to move the object |
[in] | dy | The y-distance to move the object |
[in] | o_current | The text OBJECT to be moved |
Definition at line 536 of file o_text_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current | The object that is copied |
Definition at line 554 of file o_text_basic.c.
void o_text_rotate_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
int | angle, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | world_centerx | x-coord of the rotation center |
[in] | world_centery | y-coord of the rotation center |
[in] | angle | The angle to rotate the text object |
[in] | object | The text object |
Definition at line 808 of file o_text_basic.c.
void o_text_mirror_world | ( | TOPLEVEL * | toplevel, |
int | world_centerx, | ||
int | world_centery, | ||
OBJECT * | object | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | world_centerx | x-coord of the mirror position |
[in] | world_centery | y-coord of the mirror position |
[in] | object | The text object |
Definition at line 844 of file o_text_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | obj | The text object. |
[in] | new_string | The new value. |
Definition at line 961 of file o_text_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | obj | The text object. |
Definition at line 990 of file o_text_basic.c.
void o_text_set_rendered_bounds_func | ( | TOPLEVEL * | toplevel, |
RenderedBoundsFunc | func, | ||
void * | user_data | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | func | Function to use. |
[in] | user_data | User data to be passed to the function. |
Definition at line 1009 of file o_text_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | object | The text OBJECT whos font size to return |
Definition at line 1028 of file o_text_basic.c.
int s_attrib_add_entry | ( | char * | new_attrib | ) |
Definition at line 57 of file s_attrib.c.
void s_attrib_print | ( | void | ) |
Definition at line 78 of file s_attrib.c.
int s_attrib_uniq | ( | char * | name | ) |
Definition at line 93 of file s_attrib.c.
void s_attrib_free | ( | void | ) |
Definition at line 111 of file s_attrib.c.
void s_attrib_init | ( | void | ) |
Definition at line 127 of file s_attrib.c.
char* s_attrib_get | ( | int | counter | ) |
Definition at line 140 of file s_attrib.c.
[in] | new_node | A pointer to an allocated OBJECT |
[in] | type | The object type; one of the OBJ_* constants. |
[in] | name | A prefix for the object's session-unique name. |
OBJECT* s_basic_new_object | ( | int | type, |
char const * | prefix | ||
) |
[in] | type | The sub-type of the object to create; one of the OBJ_* constants. |
[in] | prefix | The name prefix for the session-unique object name. |
Definition at line 148 of file s_basic.c.
void print_struct_forw | ( | GList * | list | ) |
void print_struct | ( | OBJECT * | ptr | ) |
void s_delete_object_glist | ( | TOPLEVEL * | toplevel, |
GList * | list | ||
) |
void s_object_weak_ref | ( | OBJECT * | object, |
void(*)(void *, void *) | notify_func, | ||
void * | user_data | ||
) |
[in,out] | object | Object to weak-reference. |
[in] | notify_func | Weak reference notify function. |
[in] | user_data | Data to be passed to notify_func. |
Definition at line 348 of file s_basic.c.
void s_object_weak_unref | ( | OBJECT * | object, |
void(*)(void *, void *) | notify_func, | ||
void * | user_data | ||
) |
[in,out] | object | Object to weak-reference. |
[in] | notify_func | Notify function to search for. |
[in] | user_data | Data to to search for. |
Definition at line 367 of file s_basic.c.
void s_object_add_weak_ptr | ( | OBJECT * | object, |
void * | weak_pointer_loc | ||
) |
[in,out] | object | Object to weak-reference. |
[in] | weak_pointer_loc | Memory address of a pointer. |
Definition at line 388 of file s_basic.c.
void s_object_remove_weak_ptr | ( | OBJECT * | object, |
void * | weak_pointer_loc | ||
) |
[in,out] | object | Object to weak-reference. |
[in] | weak_pointer_loc | Memory address of a pointer. |
Definition at line 405 of file s_basic.c.
char* remove_nl | ( | char * | string | ) |
char* remove_last_nl | ( | char * | string | ) |
gchar* s_expand_env_variables | ( | const gchar * | string | ) |
The invocations of environment variable MUST be in the form '${variable_name}', '$variable_name' is not valid here. Environment variable names consists solely of letters, digits and '_'. It is possible to escape a '$' character in the string by repeating it twice.
It outputs error messages to console and leaves the malformed and bad variable names in the returned string.
[in] | string | The string with variables to expand. |
const char* s_path_sys_data | ( | ) |
On Windows, the compiled in path is *not* used, as it might not match the path where the user has installed gEDA.
const char* s_path_sys_config | ( | ) |
Definition at line 647 of file s_basic.c.
const char* s_path_user_config | ( | ) |
void s_clib_free | ( | void | ) |
GList* s_clib_get_sources | ( | const gboolean | sorted | ) |
Definition at line 501 of file s_clib.c.
const CLibSource* s_clib_get_source_by_name | ( | const gchar * | name | ) |
void s_clib_refresh | ( | ) |
Definition at line 779 of file s_clib.c.
const CLibSource* s_clib_add_directory | ( | const gchar * | directory, |
const gchar * | name | ||
) |
directory | The path of the directory to add. |
name | A descriptive name for the directory. |
Definition at line 847 of file s_clib.c.
const CLibSource* s_clib_add_command | ( | const gchar * | list_cmd, |
const gchar * | get_cmd, | ||
const gchar * | name | ||
) |
list_cmd | The executable & arguments used to list available symbols. |
get_cmd | The executable & arguments used to retrieve symbol data. |
name | A descriptive name for the component source. |
Definition at line 893 of file s_clib.c.
const CLibSource* s_clib_add_scm | ( | SCM | listfunc, |
SCM | getfunc, | ||
const gchar * | name | ||
) |
listfunc | A Scheme function returning a list of symbols. |
getfunc | A Scheme function returning symbol data. |
name | A descriptive name for the component source. |
Definition at line 942 of file s_clib.c.
const gchar* s_clib_source_get_name | ( | const CLibSource * | source | ) |
GList* s_clib_source_get_symbols | ( | const CLibSource * | source | ) |
source | Source to be examined. |
const gchar* s_clib_symbol_get_name | ( | const CLibSymbol * | symbol | ) |
gchar* s_clib_symbol_get_filename | ( | const CLibSymbol * | symbol | ) |
symbol | Symbol to be examined. |
const CLibSource* s_clib_symbol_get_source | ( | const CLibSymbol * | symbol | ) |
gchar* s_clib_symbol_get_data | ( | const CLibSymbol * | symbol | ) |
On failure, returns NULL (the error will be logged).
symbol | Symbol to get data for. |
Definition at line 1168 of file s_clib.c.
GList* s_clib_search | ( | const gchar * | pattern, |
const CLibSearchMode | mode | ||
) |
Two search modes are available: CLIB_EXACT, where pattern is compared to the symbol name using strcmp(), and CLIB_GLOB, where pattern is assumed to be a glob pattern (see the GLib documentation for details of the glob syntax applicable).
pattern | The pattern to match against. |
mode | The search mode to use. |
void s_clib_flush_search_cache | ( | ) |
void s_clib_flush_symbol_cache | ( | ) |
void s_clib_symbol_invalidate_data | ( | const CLibSymbol * | symbol | ) |
const CLibSymbol* s_clib_get_symbol_by_name | ( | const gchar * | name | ) |
name | The symbol name to match against. |
Definition at line 1377 of file s_clib.c.
gchar* s_clib_symbol_get_data_by_name | ( | const gchar * | name | ) |
On failure, returns NULL (the error will be logged).
name | The symbol name to match against. |
Definition at line 1412 of file s_clib.c.
GList* s_toplevel_get_symbols | ( | const TOPLEVEL * | toplevel | ) |
Scan a TOPLEVEL structure's object list looking for symbols, and return them in a list.
toplevel | TOPLEVEL structure to scan. |
Definition at line 1440 of file s_clib.c.
void s_color_map_defaults | ( | COLOR * | map | ) |
map | Color map to initialise. |
gboolean s_color_rgba_decode | ( | const gchar * | rgba, |
guchar * | r, | ||
guchar * | g, | ||
guchar * | b, | ||
guchar * | a | ||
) |
gchar* s_color_rgba_encode | ( | guint8 | r, |
guint8 | g, | ||
guint8 | b, | ||
guint8 | a | ||
) |
SCM s_color_map_to_scm | ( | const COLOR * | map | ) |
void s_color_map_from_scm | ( | COLOR * | map, |
SCM | lst, | ||
const char * | scheme_proc_name | ||
) |
toplevel | (currently not used) |
object | OBJECT to add into the connection system |
Definition at line 505 of file s_conn.c.
int s_conn_net_search | ( | OBJECT * | new_net, |
int | whichone, | ||
GList * | conn_list | ||
) |
[in] | new_net | Net OBJECT to compare to. |
[in] | whichone | The connection number to check. |
[in] | conn_list | List of existing connections to compare new_net to. |
GList* s_conn_return_others | ( | GList * | input_list, |
OBJECT * | object | ||
) |
[in] | input_list | GList of OBJECT's |
[in] | object | OBJECT to get other OBJECTs from |
Definition at line 627 of file s_conn.c.
void s_conn_append_conns_changed_hook | ( | TOPLEVEL * | toplevel, |
ConnsChangedFunc | func, | ||
void * | data | ||
) |
void s_cue_postscript_fillbox | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y | ||
) |
void s_cue_postscript_junction | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | bus_involved | ||
) |
void s_cue_output_all | ( | TOPLEVEL * | toplevel, |
const GList * | obj_list, | ||
FILE * | fp, | ||
int | type | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | object | The OBJECT to output cues for |
[in] | fp | The file handle to output to |
[in] | type | The type of output being produced |
Definition at line 290 of file s_cue.c.
PAGE* s_hierarchy_down_schematic_single | ( | TOPLEVEL * | toplevel, |
const gchar * | filename, | ||
PAGE * | parent, | ||
int | page_control, | ||
int | flag | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | filename | Schematic file name. |
[in] | parent | The parent page of the schematic. |
[in] | page_control | |
[in] | flag |
Definition at line 63 of file s_hierarchy.c.
void s_hierarchy_down_symbol | ( | TOPLEVEL * | toplevel, |
const CLibSymbol * | symbol, | ||
PAGE * | parent | ||
) |
Definition at line 144 of file s_hierarchy.c.
PAGE* s_hierarchy_find_up_page | ( | GedaPageList * | page_list, |
PAGE * | current_page | ||
) |
It returns a pointer on the page if found, NULL otherwise.
[in] | page_list | The list of pages in which to search. |
[in] | current_page | The reference page for the search. |
Definition at line 191 of file s_hierarchy.c.
toplevel | The TOPLEVEL structure. |
p_current | The PAGE to traverse hierarchy for. |
flags | Flags controlling form of return value. |
Definition at line 219 of file s_hierarchy.c.
gint s_hierarchy_print_page | ( | PAGE * | p_current, |
void * | data | ||
) |
Definition at line 304 of file s_hierarchy.c.
PAGE* s_hierarchy_find_prev_page | ( | GedaPageList * | page_list, |
PAGE * | current_page | ||
) |
It returns a pointer on the page if found, NULL otherwise.
[in] | page_list | The list of pages in which to search. |
[in] | current_page | The reference page for the search. |
Definition at line 327 of file s_hierarchy.c.
PAGE* s_hierarchy_find_next_page | ( | GedaPageList * | page_list, |
PAGE * | current_page | ||
) |
It returns a pointer on the page if found, NULL otherwise.
[in] | page_list | The list of pages in which to search. |
[in] | current_page | The reference page for the search. |
Definition at line 361 of file s_hierarchy.c.
void s_log_init | ( | const gchar * | prefix | ) |
void s_log_close | ( | void | ) |
gchar* s_log_read | ( | void | ) |
int s_menu_return_num | ( | void | ) |
SCM s_menu_return_entry | ( | int | index, |
char ** | menu_name | ||
) |
int s_menu_add_entry | ( | char * | new_menu, |
SCM | menu_items | ||
) |
void s_menu_print | ( | void | ) |
void s_menu_free | ( | void | ) |
void s_menu_init | ( | void | ) |
See s_page_delete_list() to delete all pages of a toplevel
If the current page of toplevel is given as parameter page, the function sets the field page_current of the TOPLEVEL struct to NULL.
Definition at line 187 of file s_page.c.
void s_page_delete_list | ( | TOPLEVEL * | toplevel | ) |
void s_page_weak_ref | ( | PAGE * | page, |
void(*)(void *, void *) | notify_func, | ||
void * | user_data | ||
) |
[in,out] | page | Page to weak-reference. |
[in] | notify_func | Weak reference notify function. |
[in] | user_data | Data to be passed to notify_func. |
Definition at line 317 of file s_page.c.
void s_page_weak_unref | ( | PAGE * | page, |
void(*)(void *, void *) | notify_func, | ||
void * | user_data | ||
) |
[in,out] | page | Page to weak-reference. |
[in] | notify_func | Notify function to search for. |
[in] | user_data | Data to to search for. |
Definition at line 336 of file s_page.c.
void s_page_add_weak_ptr | ( | PAGE * | page, |
void * | weak_pointer_loc | ||
) |
[in,out] | page | Page to weak-reference. |
[in] | weak_pointer_loc | Memory address of a pointer. |
Definition at line 357 of file s_page.c.
void s_page_remove_weak_ptr | ( | PAGE * | page, |
void * | weak_pointer_loc | ||
) |
[in,out] | page | Page to weak-reference. |
[in] | weak_pointer_loc | Memory address of a pointer. |
Definition at line 374 of file s_page.c.
PAGE* s_page_search_by_page_id | ( | GedaPageList * | list, |
int | pid | ||
) |
[in] | list | The list of page to search the page in. |
[in] | pid | The ID of the page to find. |
void s_page_print_all | ( | TOPLEVEL * | toplevel | ) |
gint s_page_save_all | ( | TOPLEVEL * | toplevel | ) |
gboolean s_page_check_changed | ( | GedaPageList * | list | ) |
void s_page_clear_changed | ( | GedaPageList * | list | ) |
void s_page_autosave_init | ( | TOPLEVEL * | toplevel | ) |
gint s_page_autosave | ( | TOPLEVEL * | toplevel | ) |
[in] | toplevel | The TOPLEVEL object. |
[in] | toplevel | The TOPLEVEL object. |
[in] | page | The PAGE the object is being added to. |
[in] | object | The OBJECT being added to the page. |
Definition at line 633 of file s_page.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | page | The PAGE the objects are being added to. |
[in] | obj_list | The OBJECT list being added to the page. |
Definition at line 649 of file s_page.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | page | The PAGE the object is being removed from. |
[in] | object | The OBJECT being removed from the page. |
Definition at line 668 of file s_page.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | page | The PAGE to be modified. |
[in] | object1 | The OBJECT being removed from the page. |
[in] | object2 | The OBJECT being added to the page. |
Definition at line 687 of file s_page.c.
const GList* s_page_objects | ( | PAGE * | page | ) |
GList* s_page_objects_in_region | ( | TOPLEVEL * | toplevel, |
PAGE * | page, | ||
int | min_x, | ||
int | min_y, | ||
int | max_x, | ||
int | max_y | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | page | The PAGE to find objects on. |
[in] | min_x | The smaller X coordinate of the region. |
[in] | min_y | The smaller Y coordinate of the region. |
[in] | max_x | The larger X coordinate of the region. |
[in] | max_y | The larger Y coordinate of the region. |
Definition at line 754 of file s_page.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | page | The PAGE to find objects on. |
[in] | rects | The BOX regions to check. |
[in] | n_rects | The number of regions. |
Definition at line 779 of file s_page.c.
int s_papersizes_add_entry | ( | char * | new_papersize, |
int | width, | ||
int | height | ||
) |
Definition at line 60 of file s_papersizes.c.
void s_papersizes_print | ( | void | ) |
Definition at line 84 of file s_papersizes.c.
int s_papersizes_uniq | ( | char * | name | ) |
Definition at line 98 of file s_papersizes.c.
void s_papersizes_free | ( | void | ) |
Definition at line 116 of file s_papersizes.c.
void s_papersizes_init | ( | void | ) |
Definition at line 132 of file s_papersizes.c.
char* s_papersizes_get | ( | int | counter | ) |
Definition at line 145 of file s_papersizes.c.
void s_papersizes_get_size | ( | char * | string, |
int * | width, | ||
int * | height | ||
) |
Definition at line 159 of file s_papersizes.c.
PATH* s_path_parse | ( | const char * | path_str | ) |
void s_toplevel_append_new_hook | ( | NewToplevelFunc | func, |
void * | user_data | ||
) |
Definition at line 45 of file s_toplevel.c.
TOPLEVEL* s_toplevel_new | ( | void | ) |
Definition at line 75 of file s_toplevel.c.
void s_toplevel_delete | ( | TOPLEVEL * | toplevel | ) |
Definition at line 195 of file s_toplevel.c.
void s_toplevel_weak_ref | ( | TOPLEVEL * | toplevel, |
void(*)(void *, void *) | notify_func, | ||
void * | user_data | ||
) |
[in,out] | toplevel | Toplevel to weak-reference. |
[in] | notify_func | Weak reference notify function. |
[in] | user_data | Data to be passed to notify_func. |
Definition at line 246 of file s_toplevel.c.
void s_toplevel_weak_unref | ( | TOPLEVEL * | toplevel, |
void(*)(void *, void *) | notify_func, | ||
void * | user_data | ||
) |
[in,out] | toplevel | Toplevel to weak-reference. |
[in] | notify_func | Notify function to search for. |
[in] | user_data | Data to to search for. |
Definition at line 266 of file s_toplevel.c.
void s_toplevel_add_weak_ptr | ( | TOPLEVEL * | toplevel, |
void * | weak_pointer_loc | ||
) |
[in,out] | toplevel | Toplevel to weak-reference. |
[in] | weak_pointer_loc | Memory address of a pointer. |
Definition at line 287 of file s_toplevel.c.
void s_toplevel_remove_weak_ptr | ( | TOPLEVEL * | toplevel, |
void * | weak_pointer_loc | ||
) |
[in,out] | toplevel | Toplevel to weak-reference. |
[in] | weak_pointer_loc | Memory address of a pointer. |
Definition at line 305 of file s_toplevel.c.
int s_slib_add_entry | ( | char * | new_path | ) |
int s_slib_search_for_dirname | ( | char * | dir_name | ) |
char* s_slib_search_dirs | ( | const char * | basename | ) |
char* s_slib_search_lowlevel | ( | const char * | basename | ) |
char* s_slib_getbasename | ( | const char * | rawname | ) |
[in] | rawname | Character string with the raw file name to parse. |
char* s_slib_search | ( | const char * | filename, |
int | flag | ||
) |
[in] | filename | Character string with file name to search for. |
[in] | flag | Specifies search start location. (See below...) |
The flag parameter can be one of the following values:
Filename is the raw symbol/whatever file name. This function does all the required stripping (up to the first period).
Definition at line 293 of file s_slib.c.
char* s_slib_search_single | ( | const char * | filename | ) |
[in] | filename | Character string with file name to search for. |
Filename is the raw symbol/whatever file name. This function only looks for the file name as is and does no other changes to it.
Definition at line 352 of file s_slib.c.
void s_slib_free | ( | void | ) |
void s_slib_init | ( | void | ) |
char* s_slib_getdir | ( | int | index | ) |
char* s_slib_getfiles | ( | char * | directory, |
int | flag | ||
) |
[in] | directory | Character string with directory to get files from. |
[in] | flag | Search control flag. (See below...) |
The flag parameter can be one of the following values:
void s_slib_print | ( | void | ) |
int s_slib_uniq | ( | char * | path | ) |
void s_slib_print_dirs | ( | void | ) |
The returned value will only come from an attached attribute.
[in] | object | OBJECT list to search. |
[in] | return_found | attached slot attribute if found, NULL otherwise. |
Definition at line 56 of file s_slot.c.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | object | The OBJECT to update. |
Definition at line 124 of file s_slot.c.
UNDO* s_undo_new_head | ( | void | ) |
void s_undo_destroy_head | ( | UNDO * | u_head | ) |
void s_undo_print_all | ( | UNDO * | head | ) |
int s_undo_levels | ( | UNDO * | head | ) |
void s_undo_init | ( | PAGE * | p_current | ) |