libgeda
|
Go to the source code of this file.
Functions | |
gchar * | o_save_objects (TOPLEVEL *toplevel, const GList *object_list, gboolean save_attribs) |
void | f_print_set_line_width (FILE *fp, int width) |
Prints the line width in mils to a postscript document. | |
int | f_print_set_color (TOPLEVEL *toplevel, FILE *fp, int color) |
Prints the color to a postscript document. | |
int | f_print_header (TOPLEVEL *toplevel, PAGE *page, FILE *fp, int paper_size_x, int paper_size_y, int eps) |
Prints the header to a postscript document. | |
void | f_print_footer (FILE *fp) |
Prints the footer to a postscript document. | |
void | f_print_objects (TOPLEVEL *toplevel, FILE *fp, const GList *obj_list, int start_x, int start_y, float scale, int unicode_count, gunichar *unicode_table) |
Print all objects from the toplevel TOPLEVEL object. | |
int | f_print_initialize_glyph_table (void) |
Initializes the glyph translation table. | |
int | vstbl_lookup_str (const vstbl_entry *table, int size, const char *str) |
int | vstbl_get_val (const vstbl_entry *table, int index) |
SCM | g_rc_component_library (SCM path, SCM name) |
SCM | g_rc_component_library_command (SCM listcmd, SCM getcmd, SCM name) |
Guile callback for adding library commands. | |
SCM | g_rc_component_library_funcs (SCM listfunc, SCM getfunc, SCM name) |
Guile callback for adding library functions. | |
SCM | g_rc_source_library (SCM path) |
SCM | g_rc_source_library_search (SCM path) |
SCM | g_rc_world_size (SCM width, SCM height, SCM border) |
SCM | g_rc_reset_component_library (void) |
SCM | g_rc_reset_source_library (void) |
SCM | g_rc_untitled_name (SCM name) |
SCM | g_rc_bitmap_directory (SCM path) |
SCM | g_rc_scheme_directory (SCM path) |
Add a directory to the Guile load path. | |
SCM | g_rc_bus_ripper_symname (SCM scmsymname) |
SCM | g_rc_postscript_prolog (SCM scmsymname) |
SCM | g_rc_map_font_character_to_file (SCM character_param, SCM file_param) |
SCM | g_rc_attribute_promotion (SCM mode) |
SCM | g_rc_promote_invisible (SCM mode) |
SCM | g_rc_keep_invisible (SCM mode) |
SCM | g_rc_always_promote_attributes (SCM scmsymname) |
SCM | g_rc_make_backup_files (SCM mode) |
Enable the creation of backup files when saving. | |
SCM | g_rc_print_color_map (SCM scm_map) |
void | g_register_libgeda_funcs (void) |
Register all libgeda functions with scheme. | |
void | g_register_libgeda_dirs (void) |
Register some libgeda directories with Scheme. | |
void | m_bounds_init (BOUNDS *bounds) |
Initialize a bounds by setting it to empty. | |
void | m_bounds_of_points (BOUNDS *bounds, sPOINT points[], gint count) |
Calculate the bounds of a set of points. | |
double | m_box_shortest_distance (BOX *box, int x, int y, int solid) |
Calculates the distance between the given point and the closest point on the perimeter or interior of the box. | |
double | m_circle_shortest_distance (CIRCLE *circle, int x, int y, int solid) |
Calculates the distance between the given point and the closest point on the perimeter or interior of the circle. | |
void | m_hatch_polygon (GArray *points, gint angle, gint pitch, GArray *lines) |
Calculates line segments to hatch an arbitrary polygon. | |
double | m_line_shortest_distance (LINE *circle, int x, int y) |
Calculates the distance between the given point and the closest point on the given line segment. | |
gboolean | m_polygon_interior_point (GArray *points, int x, int y) |
Determines if a point lies inside a polygon. | |
double | m_polygon_shortest_distance (GArray *points, int x, int y, gboolean closed) |
Calculates the distance between the given point and the closest point on the perimeter of the polygon. | |
void | m_transform_combine (TRANSFORM *result, TRANSFORM *a, TRANSFORM *b) |
Combines two transformations. | |
void | m_transform_init (TRANSFORM *transform) |
Initialize a transform with the identity matrix. | |
void | m_transform_invert (TRANSFORM *transform, TRANSFORM *inverse) |
Calculates the inverse transform. | |
void | m_transform_line (TRANSFORM *transform, LINE *line) |
Transforms a line segment. | |
void | m_transform_lines (TRANSFORM *transform, GArray *lines) |
Transforms multiple line segments. | |
void | m_transform_point (TRANSFORM *transform, gint *x, gint *y) |
Transforms a point. | |
void | m_transform_points (TRANSFORM *transform, GArray *points) |
Transforms a polyline or polygon. | |
void | m_transform_rotate (TRANSFORM *transform, gdouble angle) |
Adds a rotation to the transformation. | |
void | m_transform_scale (TRANSFORM *transform, gdouble factor) |
Adds a scaling to the transformation. | |
void | m_transform_translate (TRANSFORM *transform, gdouble dx, gdouble dy) |
Adds a translation to the transformation. | |
OBJECT * | o_arc_read (TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
char * | o_arc_save (TOPLEVEL *toplevel, OBJECT *object) |
create the string representation of an arc object | |
void | o_arc_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y) |
void | o_arc_print_solid (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int angle1, int angle2, int color, int arc_width, int length, int space, int origin_x, int origin_y) |
void | o_arc_print_dotted (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int angle1, int angle2, int color, int arc_width, int length, int space, int origin_x, int origin_y) |
void | o_arc_print_dashed (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int angle1, int angle2, int color, int arc_width, int length, int space, int origin_x, int origin_y) |
void | o_arc_print_center (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int angle1, int angle2, int color, int arc_width, int length, int space, int origin_x, int origin_y) |
void | o_arc_print_phantom (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int angle1, int angle2, int color, int arc_width, int length, int space, int origin_x, int origin_y) |
double | o_arc_shortest_distance (OBJECT *object, int x, int y, int force_soild) |
Calculates the distance between the given point and the closest point on the perimeter of the arc. | |
gboolean | o_arc_within_sweep (ARC *arc, gint x, gint y) |
Determines if a point lies within the sweep of the arc. | |
void | world_get_arc_bounds (TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom) |
gboolean | o_arc_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of the center point | |
void | o_arc_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
GList * | o_read_attribs (TOPLEVEL *toplevel, OBJECT *object_to_get_attribs, TextBuffer *tb, unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
Read attributes from a buffer. | |
OBJECT * | o_attrib_find_attrib_by_name (const GList *list, char *name, int count) |
Find an attribute in a list. | |
void | o_bounds_invalidate (TOPLEVEL *toplevel, OBJECT *object) |
Mark an OBJECT's cached bounds as invalid. | |
double | o_shortest_distance_full (OBJECT *object, int x, int y, int force_solid) |
Calculates the distance between the given point and the closest point on the given object. Allows forcing objects to solid. | |
PAGE * | o_get_page_compat (TOPLEVEL *toplevel, OBJECT *object) G_GNUC_DEPRECATED |
Get an object's parent PAGE, or fall back to global current page. | |
void | o_emit_pre_change_notify (TOPLEVEL *toplevel, OBJECT *object) |
Emit an object pre-change notification. | |
void | o_emit_change_notify (TOPLEVEL *toplevel, OBJECT *object) |
Emit an object change notification. | |
OBJECT * | o_box_read (TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
Create a box from a character string. | |
char * | o_box_save (TOPLEVEL *toplevel, OBJECT *object) |
Create a character string representation of a BOX. | |
void | o_box_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y) |
Print BOX to Postscript document. | |
void | o_box_print_solid (TOPLEVEL *toplevel, FILE *fp, int x, int y, int width, int height, int color, int line_width, int length, int space, int origin_x, int origin_y) |
Print a solid BOX to Postscript document. | |
void | o_box_print_dotted (TOPLEVEL *toplevel, FILE *fp, int x, int y, int width, int height, int color, int line_width, int length, int space, int origin_x, int origin_y) |
Print a dotted BOX to Postscript document. | |
void | o_box_print_dashed (TOPLEVEL *toplevel, FILE *fp, int x, int y, int width, int height, int color, int line_width, int length, int space, int origin_x, int origin_y) |
Print a dashed BOX to Postscript document. | |
void | o_box_print_center (TOPLEVEL *toplevel, FILE *fp, int x, int y, int width, int height, int color, int line_width, int length, int space, int origin_x, int origin_y) |
Print centered line type BOX to Postscript document. | |
void | o_box_print_phantom (TOPLEVEL *toplevel, FILE *fp, int x, int y, int width, int height, int color, int line_width, int length, int space, int origin_x, int origin_y) |
Print phantom line type BOX to Postscript document. | |
void | o_box_print_filled (TOPLEVEL *toplevel, FILE *fp, int x, int y, int width, int height, int color, int fill_width, int angle1, int pitch1, int angle2, int pitch2, int origin_x, int origin_y) |
Print a solid pattern BOX to Postscript document. | |
void | o_box_print_mesh (TOPLEVEL *toplevel, FILE *fp, int x, int y, int width, int height, int color, int fill_width, int angle1, int pitch1, int angle2, int pitch2, int origin_x, int origin_y) |
Print a mesh pattern BOX to Postscript document. | |
void | o_box_print_hatch (TOPLEVEL *toplevel, FILE *fp, int x, int y, int width, int height, int color, int fill_width, int angle1, int pitch1, int angle2, int pitch2, int origin_x, int origin_y) |
Print a hatch pattern BOX to Postscript document. | |
double | o_box_shortest_distance (OBJECT *object, int x, int y, int force_soild) |
Calculates the distance between the given point and the closest point on the perimeter of the box. | |
void | world_get_box_bounds (TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom) |
Get BOX bounding rectangle in WORLD coordinates. | |
gboolean | o_box_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of the left bottom point | |
void | o_box_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
Recalculate BOX coordinates in WORLD units. | |
OBJECT * | o_bus_read (TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
read a bus object from a char buffer | |
char * | o_bus_save (TOPLEVEL *toplevel, OBJECT *object) |
Create a string representation of the bus object. | |
void | o_bus_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y) |
postscript print command for a bus object | |
void | world_get_bus_bounds (TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom) |
calculate and return the boundaries of a bus object | |
gboolean | o_bus_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of the first bus point | |
void | o_bus_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
recalc the visual properties of a bus object | |
OBJECT * | o_circle_read (TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
Create circle OBJECT from character string. | |
char * | o_circle_save (TOPLEVEL *toplevel, OBJECT *object) |
Create a character string representation of a circle OBJECT. | |
void | o_circle_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y) |
Print circle to Postscript document. | |
void | o_circle_print_solid (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int color, int circle_width, int length, int space, int origin_x, int origin_y) |
Print a solid circle to Postscript document. | |
void | o_circle_print_dotted (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int color, int circle_width, int length, int space, int origin_x, int origin_y) |
Print a dotted circle to Postscript document. | |
void | o_circle_print_dashed (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int color, int circle_width, int length, int space, int origin_x, int origin_y) |
Print a dashed circle to Postscript document. | |
void | o_circle_print_center (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int color, int circle_width, int length, int space, int origin_x, int origin_y) |
Print a centered line type circle to Postscript document. | |
void | o_circle_print_phantom (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int color, int circle_width, int length, int space, int origin_x, int origin_y) |
Print a phantom line type circle to Postscript document. | |
void | o_circle_print_filled (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int color, int fill_width, int angle1, int pitch1, int angle2, int pitch2, int origin_x, int origin_y) |
Print a solid pattern circle to Postscript document. | |
void | o_circle_print_mesh (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int color, int fill_width, int angle1, int pitch1, int angle2, int pitch2, int origin_x, int origin_y) |
Print a mesh pattern circle to Postscript document. | |
void | o_circle_print_hatch (TOPLEVEL *toplevel, FILE *fp, int x, int y, int radius, int color, int fill_width, int angle1, int pitch1, int angle2, int pitch2, int origin_x, int origin_y) |
Print a hatch pattern circle to Postscript document. | |
double | o_circle_shortest_distance (OBJECT *object, int x, int y, int force_soild) |
Calculates the distance between the given point and the closest point on the perimeter of the circle. | |
void | world_get_circle_bounds (TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom) |
Get circle bounding rectangle in WORLD coordinates. | |
gboolean | o_circle_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of the center point | |
void | o_circle_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
Recalculate circle coordinates in SCREEN units. | |
OBJECT * | o_complex_read (TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
read a complex object from a char buffer | |
char * | o_complex_save (TOPLEVEL *toplevel, OBJECT *object) |
Create a string representation of the complex object. | |
double | o_complex_shortest_distance (OBJECT *object, int x, int y, int force_soild) |
Calculates the distance between the given point and the closest point on an object within the complex object. | |
void | world_get_complex_bounds (TOPLEVEL *toplevel, OBJECT *complex, int *left, int *top, int *right, int *bottom) |
Queries the bounds of a complex object. | |
gboolean | o_complex_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of the complex base point | |
void | o_complex_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
update the visual boundaries of the complex object | |
GList * | o_complex_get_promotable (TOPLEVEL *toplevel, OBJECT *object, int detach) |
Get attributes eligible for promotion from inside a complex. | |
OBJECT * | o_line_read (TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
Create line OBJECT from character string. | |
char * | o_line_save (TOPLEVEL *toplevel, OBJECT *object) |
Create a character string representation of a line OBJECT. | |
void | o_line_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y) |
Print line to Postscript document. | |
void | o_line_print_solid (TOPLEVEL *toplevel, FILE *fp, int x1, int y1, int x2, int y2, int color, int line_width, int length, int space, int origin_x, int origin_y) |
Print a solid line to Postscript document. | |
void | o_line_print_dotted (TOPLEVEL *toplevel, FILE *fp, int x1, int y1, int x2, int y2, int color, int line_width, int length, int space, int origin_x, int origin_y) |
Print a dotted line to Postscript document. | |
void | o_line_print_dashed (TOPLEVEL *toplevel, FILE *fp, int x1, int y1, int x2, int y2, int color, int line_width, int length, int space, int origin_x, int origin_y) |
Print a dashed line to Postscript document. | |
void | o_line_print_center (TOPLEVEL *toplevel, FILE *fp, int x1, int y1, int x2, int y2, int color, int line_width, int length, int space, int origin_x, int origin_y) |
Print a centered line type line to Postscript document. | |
void | o_line_print_phantom (TOPLEVEL *toplevel, FILE *fp, int x1, int y1, int x2, int y2, int color, int line_width, int length, int space, int origin_x, int origin_y) |
Print a phantom line type line to Postscript document. | |
double | o_line_shortest_distance (OBJECT *object, int x, int y, int force_soild) |
Calculates the distance between the given point and the closest point on the given line segment. | |
void | world_get_line_bounds (TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom) |
Get line bounding rectangle in WORLD coordinates. | |
gboolean | o_line_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of the first line point | |
void | o_line_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
Recalculate line coordinates in SCREEN units. | |
OBJECT * | o_net_read (TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
read a net object from a char buffer | |
char * | o_net_save (TOPLEVEL *toplevel, OBJECT *object) |
Create a string representation of the net object. | |
void | o_net_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y) |
postscript print command for a net object | |
void | world_get_net_bounds (TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom) |
calculate and return the boundaries of a net object | |
gboolean | o_net_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of the first net point | |
void | o_net_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
recalc the visual properties of a net object | |
OBJECT * | o_path_read (TOPLEVEL *toplevel, const char *first_line, TextBuffer *tb, unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
Create path OBJECT from character string. | |
char * | o_path_save (TOPLEVEL *toplevel, OBJECT *object) |
Create a character string representation of a path OBJECT. | |
void | o_path_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y) |
Print PATH to Postscript document. | |
double | o_path_shortest_distance (OBJECT *object, int x, int y, int force_soild) |
Calculates the distance between the given point and the closest point on the given path segment. | |
void | world_get_path_bounds (TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom) |
Get path bounding rectangle in WORLD coordinates. | |
gboolean | o_path_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of the first path point | |
void | o_path_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
Recalculate path coordinates in SCREEN units. | |
OBJECT * | o_picture_read (TOPLEVEL *toplevel, const char *first_line, TextBuffer *tb, unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
Create picture OBJECT from character string. | |
char * | o_picture_save (TOPLEVEL *toplevel, OBJECT *object) |
Create a character string representation of a picture OBJECT. | |
void | o_picture_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y) |
Print picture to Postscript document. | |
double | o_picture_shortest_distance (OBJECT *object, int x, int y, int force_soild) |
Calculates the distance between the given point and the closest point in the picture. | |
void | world_get_picture_bounds (TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom) |
Get picture bounding rectangle in WORLD coordinates. | |
gboolean | o_picture_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of the left bottom point | |
void | o_picture_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
Recalculate picture bounding box. | |
void | o_picture_embed (TOPLEVEL *toplevel, OBJECT *object) |
Embed the image file associated with a picture. | |
void | o_picture_unembed (TOPLEVEL *toplevel, OBJECT *object) |
Unembed a picture, reloading the image from disk. | |
OBJECT * | o_pin_read (TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
read a pin object from a char buffer | |
char * | o_pin_save (TOPLEVEL *toplevel, OBJECT *object) |
Create a string representation of the pin object. | |
void | o_pin_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y) |
postscript print command for a pin object | |
void | world_get_pin_bounds (TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom) |
calculate and return the boundaries of a pin object | |
gboolean | o_pin_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of a whichend of the pin object | |
void | o_pin_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
recalc the visual properties of a pin object | |
OBJECT * | o_text_read (TOPLEVEL *toplevel, const char *first_line, TextBuffer *tb, unsigned int release_ver, unsigned int fileformat_ver, GError **err) |
read a text object from a char buffer | |
char * | o_text_save (TOPLEVEL *toplevel, OBJECT *object) |
Create a string representation of the text object. | |
void | o_text_print_text_string (FILE *fp, char *string, int unicode_count, gunichar *unicode_table) |
write a text string to a postscript file | |
void | o_text_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y, int unicode_count, gunichar *unicode_table) |
print a text object into a postscript file | |
double | o_text_shortest_distance (OBJECT *object, int x, int y, int force_soild) |
Calculates the distance between the given point and the closest point on the text. | |
int | world_get_text_bounds (TOPLEVEL *toplevel, OBJECT *o_current, int *left, int *top, int *right, int *bottom) |
calculate and return the boundaries of a text object | |
gboolean | o_text_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
get the position of a text object | |
void | o_text_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
update the visual boundaries of the text object | |
void | s_clib_init (void) |
Initialise the component library. | |
void | s_color_init (void) |
Initialises the color subsystem. | |
gchar * | s_color_ps_string (gint color) |
CONN * | s_conn_return_new (OBJECT *other_object, int type, int x, int y, int whichone, int other_whichone) |
create a new connection object | |
int | s_conn_uniq (GList *conn_list, CONN *input_conn) |
check if a connection is uniq in a list | |
int | s_conn_remove_other (TOPLEVEL *toplevel, OBJECT *other_object, OBJECT *to_remove) |
remove a object from the connection list of another object | |
OBJECT * | s_conn_check_midpoint (OBJECT *o_current, int x, int y) |
Checks if a point is a midpoint of an OBJECT. | |
void | s_conn_print (GList *conn_list) |
print all connections of a connection list | |
void | s_conn_init (void) |
gchar * | s_encoding_base64_encode (gchar *src, guint srclen, guint *dstlenp, gboolean strict) |
Convert a buffer from binary to base64 representation. | |
gchar * | s_encoding_base64_decode (gchar *src, guint srclen, guint *dstlenp) |
Convert a buffer from base64 to binary representation. | |
int | s_path_to_polygon (PATH *path, GArray *points) |
Converts a path to a polygon. | |
double | s_path_shortest_distance (PATH *path, int x, int y, int solid) |
Calculates the distance between the given point and the closest point on the given path segment. | |
TextBuffer * | s_textbuffer_new (const gchar *data, const gint size) |
Create a new managed text buffer. | |
TextBuffer * | s_textbuffer_free (TextBuffer *tb) |
Clean up a managed text buffer. | |
const gchar * | s_textbuffer_next (TextBuffer *tb, const gssize count) |
Fetch a number of characters from a text buffer. | |
const gchar * | s_textbuffer_next_line (TextBuffer *tb) |
Fetch the next line from a text buffer. | |
void | s_tile_init (TOPLEVEL *toplevel, PAGE *p_current) |
initialize the array of tiles | |
void | s_tile_add_object (TOPLEVEL *toplevel, OBJECT *object) |
add an object to the tile ssytem | |
void | s_tile_remove_object (OBJECT *object) |
remove an object from the tiles | |
void | s_tile_print (TOPLEVEL *toplevel, PAGE *page) |
print all objects for each tile | |
void | s_tile_free_all (PAGE *p_current) |
free all object links from the tiles | |
void | s_weakref_notify (void *dead_ptr, GList *weak_refs) |
Notify weak reference watchers that a structure is dead. | |
GList * | s_weakref_add (GList *weak_refs, void(*notify_func)(void *, void *), void *user_data) |
Add a weak reference watcher to a weak ref list. | |
GList * | s_weakref_remove (GList *weak_refs, void(*notify_func)(void *, void *), void *user_data) |
Remove a weak reference watcher from a weak ref list. | |
GList * | s_weakref_add_ptr (GList *weak_refs, void **weak_pointer_loc) |
Add a weak pointer to a weak ref list. | |
GList * | s_weakref_remove_ptr (GList *weak_refs, void **weak_pointer_loc) |
Remove a weak pointer from a weak ref list. |
gchar* o_save_objects | ( | TOPLEVEL * | toplevel, |
const GList * | object_list, | ||
gboolean | save_attribs | ||
) |
void f_print_set_line_width | ( | FILE * | fp, |
int | width | ||
) |
int f_print_set_color | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | color | ||
) |
[in] | toplevel | The current TOPLEVEL structure. |
[in] | fp | The postscript document to print the color to. |
[in] | color | Integer color to convert and print. |
Definition at line 71 of file f_print.c.
int f_print_header | ( | TOPLEVEL * | toplevel, |
PAGE * | page, | ||
FILE * | fp, | ||
int | paper_size_x, | ||
int | paper_size_y, | ||
int | eps | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | page | The page to create document for. |
[in] | fp | The postscript document to write to. |
[in] | paper_size_x | The width of the document on paper in inches. |
[in] | paper_size_y | The height of the document on paper in inches. |
[in] | eps | whether to create a eps of a ps document |
void f_print_footer | ( | FILE * | fp | ) |
void f_print_objects | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
const GList * | obj_list, | ||
int | start_x, | ||
int | start_y, | ||
float | scale, | ||
int | unicode_count, | ||
gunichar * | unicode_table | ||
) |
[in] | toplevel | The current TOPLEVEL object. |
[in] | fp | The postscript document to print to. |
[in] | obj_list | List of objects to be printed. |
[in] | start_x | X origin on page to start printing objects. |
[in] | start_y | Y origin on page to start printing objects. |
[in] | scale | Scale factor for object output. |
[in] | unicode_count | Number of items in unicode table. |
[in] | unicode_table | Table of unicode items. |
Definition at line 238 of file f_print.c.
int f_print_initialize_glyph_table | ( | void | ) |
int vstbl_lookup_str | ( | const vstbl_entry * | table, |
int | size, | ||
const char * | str | ||
) |
int vstbl_get_val | ( | const vstbl_entry * | table, |
int | index | ||
) |
SCM g_rc_component_library | ( | SCM | path, |
SCM | name | ||
) |
SCM g_rc_component_library_command | ( | SCM | listcmd, |
SCM | getcmd, | ||
SCM | name | ||
) |
[in] | listcmd | command to get a list of symbols |
[in] | getcmd | command to get a symbol from the library |
[in] | name | Optional descriptive name for component source. |
Definition at line 466 of file g_rc.c.
SCM g_rc_component_library_funcs | ( | SCM | listfunc, |
SCM | getfunc, | ||
SCM | name | ||
) |
[in] | listfunc | A Scheme procedure which takes no arguments and returns a Scheme list of component names. |
[in] | getfunc | A Scheme procedure which takes a component name as an argument and returns a symbol encoded in a string in gEDA format, or the #f if the component name is unknown. |
[in] | name | A descriptive name for this component source. |
Definition at line 525 of file g_rc.c.
SCM g_rc_source_library | ( | SCM | path | ) |
SCM g_rc_source_library_search | ( | SCM | path | ) |
SCM g_rc_world_size | ( | SCM | width, |
SCM | height, | ||
SCM | border | ||
) |
SCM g_rc_reset_component_library | ( | void | ) |
SCM g_rc_reset_source_library | ( | void | ) |
SCM g_rc_untitled_name | ( | SCM | name | ) |
SCM g_rc_bitmap_directory | ( | SCM | path | ) |
SCM g_rc_scheme_directory | ( | SCM | s_path | ) |
SCM g_rc_bus_ripper_symname | ( | SCM | scmsymname | ) |
SCM g_rc_postscript_prolog | ( | SCM | scmsymname | ) |
SCM g_rc_map_font_character_to_file | ( | SCM | character_param, |
SCM | file_param | ||
) |
SCM g_rc_attribute_promotion | ( | SCM | mode | ) |
SCM g_rc_promote_invisible | ( | SCM | mode | ) |
SCM g_rc_keep_invisible | ( | SCM | mode | ) |
SCM g_rc_always_promote_attributes | ( | SCM | attrlist | ) |
SCM g_rc_make_backup_files | ( | SCM | mode | ) |
SCM g_rc_print_color_map | ( | SCM | scm_map | ) |
void g_register_libgeda_funcs | ( | void | ) |
Definition at line 83 of file g_register.c.
void g_register_libgeda_dirs | ( | void | ) |
Definition at line 100 of file g_register.c.
void m_bounds_init | ( | BOUNDS * | bounds | ) |
bounds | [in] The bounds to set to empty. This parameter must not be NULL. |
Definition at line 28 of file m_bounds.c.
For an empty set of points, this function returns an empty bounds.
bounds | [out] The bounds of the given set of points. The bounds does not need to be initialized before calling this function, but this parameter must not be NULL. |
points | [in] The given set of points. If the count is greater than zero, this parameter must not be NULL. |
count | [in] The number of points in the set. |
Definition at line 47 of file m_bounds.c.
double m_box_shortest_distance | ( | BOX * | box, |
int | x, | ||
int | y, | ||
int | solid | ||
) |
[in] | box | The box. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | solid | TRUE if the box should be treated as solid, FALSE if the box should be treated as hollow. |
double m_circle_shortest_distance | ( | CIRCLE * | circle, |
int | x, | ||
int | y, | ||
int | solid | ||
) |
[in] | circle | The circle. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | solid | TRUE if the circle should be treated as solid, FALSE if the circle should be treated as hollow. |
Definition at line 49 of file m_circle.c.
void m_hatch_polygon | ( | GArray * | points, |
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.
points | [in] The endpoints of the arbitrary closed polygon to hatch. |
angle | [in] The angle of the hatch lines with respect to the x axis. |
pitch | [in] The distance between hatch lines. This value must be greater than zero. |
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 237 of file m_hatch.c.
double m_line_shortest_distance | ( | LINE * | line, |
int | x, | ||
int | y | ||
) |
If the closest point on the line resides beyond the line segment's end point, this function returns the distance from the given point to the closest end point.
If the line represents a single point (the endpoints are the same), this function calcualtes the distance to that point.
[in] | line | The LINE object. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
gboolean m_polygon_interior_point | ( | GArray * | points, |
int | x, | ||
int | y | ||
) |
TODO Untested
points | [in] The vertices of the polygon. This function assumes the list of points represents a closed polygon. If the first and last point do not match, the line segment between them is implied. This parameter must not be NULL. |
x | [in] The x coordinate of the given point. |
y | [in] The y coordinate of the given point. |
Definition at line 113 of file m_polygon.c.
double m_polygon_shortest_distance | ( | GArray * | points, |
int | x, | ||
int | y, | ||
gboolean | closed | ||
) |
[in] | points | The polygon, where polygon != NULL. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | closed | If TRUE, the function treats the polygon as a closed shape, creating a line between the first and last points, if needed. If the first and last points are equal, or inherintly closed, this parameter does not matter. |
Definition at line 155 of file m_polygon.c.
Combines two matricies using matrix multiplication: a*b.
result | [out] The resulting transformation. If either operand is NULL, the contents of the result remain unaltered. |
a | [in] The second operand. |
b | [in] The second operand. |
Definition at line 33 of file m_transform.c.
void m_transform_init | ( | TRANSFORM * | transform | ) |
transform | [out] The transform to initialize with the identity matrix. |
Definition at line 51 of file m_transform.c.
transform | [in] The given matrix |
inverse | [out] The inverse of the given matrix. |
Definition at line 68 of file m_transform.c.
transform | [in] The transform function. |
line | [inout] The line to transform. |
Definition at line 90 of file m_transform.c.
void m_transform_lines | ( | TRANSFORM * | transform, |
GArray * | lines | ||
) |
transform | [in] The transform function. |
lines | [inout] The GArray of LINE to transform. |
Definition at line 104 of file m_transform.c.
void m_transform_point | ( | TRANSFORM * | transform, |
gint * | x, | ||
gint * | y | ||
) |
x | [inout] The x coordinate to transform. |
y | [inout] The y coordinate to transform. |
transform | [in] The transform function. |
Definition at line 123 of file m_transform.c.
void m_transform_points | ( | TRANSFORM * | transform, |
GArray * | points | ||
) |
transform | [in] The transform function. |
points | [inout] The GArray of sPOINT to transform. |
Definition at line 144 of file m_transform.c.
void m_transform_rotate | ( | TRANSFORM * | transform, |
gdouble | angle | ||
) |
transform | [inout] The given matrix |
angle | [in] The angle to rotate |
Definition at line 162 of file m_transform.c.
void m_transform_scale | ( | TRANSFORM * | transform, |
gdouble | factor | ||
) |
transform | [inout] The given matrix |
factor | [in] The amount to scale the transform. This parameter must not be zero, or the matrix becomes singular. |
Definition at line 185 of file m_transform.c.
void m_transform_translate | ( | TRANSFORM * | transform, |
gdouble | dx, | ||
gdouble | dy | ||
) |
transform | [inout] The given matrix. |
dx | [in] The amount to translate on the x axis. |
dy | [in] The amount to translate on the y axis. |
Definition at line 202 of file m_transform.c.
OBJECT* o_arc_read | ( | TOPLEVEL * | toplevel, |
const char | buf[], | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
Depending on the version of the file format the data extraction is performed differently : currently pre-20000704 and 20000704 on one hand and post-20000704 file format version on the other hand are supported. The version is specified in string pointed by fileformat_ver.
To get information on the various file formats have a look to the fileformats.html document.
The object is initialized with the functions o_set_line_options() and o_set_fill_options(). The second one is only used to put initialize unused values for an arc as an arc can not be filled.
The arc is allocated initialized with the function o_arc_new().
A negative or null radius is not allowed.
[in] | toplevel | The TOPLEVEL object. |
[in] | buf | |
[in] | release_ver | |
[in] | fileformat_ver |
Definition at line 235 of file o_arc_basic.c.
[in] | toplevel | |
[in] | object |
Definition at line 311 of file o_arc_basic.c.
Parameters of the arc are extracted from object pointed by o_current and formatted to suit future calls to specialized arc printing functions.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | The postscript document to print to. |
[in] | o_current | |
[in] | origin_x | |
[in] | origin_y |
The needed parameters for each of these types are extracted from the o_current object. Depending on the type, unused parameters are set to -1.
In the eventuality of a length and/or space null, the arc is printed solid to avoid and endless loop produced by other functions.
Definition at line 607 of file o_arc_basic.c.
void o_arc_print_solid | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | angle1, | ||
int | angle2, | ||
int | color, | ||
int | arc_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
The parameters length and space are ignored whereas arc_width specifies the width of the printed line.
All dimensions are in mils, except angle1 and angle2 in degrees.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to postscript document. |
[in] | x | |
[in] | y | |
[in] | radius | |
[in] | angle1 | |
[in] | angle2 | |
[in] | color | |
[in] | arc_width | |
[in] | length | |
[in] | space | |
[in] | origin_x | |
[in] | origin_y |
Definition at line 727 of file o_arc_basic.c.
void o_arc_print_dotted | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | angle1, | ||
int | angle2, | ||
int | color, | ||
int | arc_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
A negative value for space leads to an endless loop.
All dimensions are in mils, except angle1 and angle2 in degrees.
The function sets the color the line will be printed with.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to postscript document. |
[in] | x | |
[in] | y | |
[in] | radius | |
[in] | angle1 | |
[in] | angle2 | |
[in] | color | |
[in] | arc_width | |
[in] | length | |
[in] | space | |
[in] | origin_x | |
[in] | origin_y |
As da is rounded as an integer, it can take a null value which will make the function enter an endless loop. In such a case, the arc is printed solid. The da variable should never be negative except if space is negative.
Definition at line 778 of file o_arc_basic.c.
void o_arc_print_dashed | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | angle1, | ||
int | angle2, | ||
int | color, | ||
int | arc_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
A negative value for space or length leads to an endless loop.
All dimensions are in mils, except angle1 and angle2 in degrees.
The function sets the color the line will be printed with.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to postscript document. |
[in] | x | |
[in] | y | |
[in] | radius | |
[in] | angle1 | |
[in] | angle2 | |
[in] | color | |
[in] | arc_width | |
[in] | length | |
[in] | space | |
[in] | origin_x | |
[in] | origin_y |
As da (resp. db) is rounded as an integer, it can take a null value which will make the function enter an endless loop. In such a case, the arc is printed solid. The da (resp. db) variable should never be negative except if space (resp. length) is negative.
It prints as many dashes of length length as possible.
Definition at line 862 of file o_arc_basic.c.
void o_arc_print_center | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | angle1, | ||
int | angle2, | ||
int | color, | ||
int | arc_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
A negative value for space or length leads to an endless loop.
All dimensions are in mils, except angle1 and angle2 in degrees.
The function sets the color in which the line will be printed with.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to postscript document. |
[in] | x | |
[in] | y | |
[in] | radius | |
[in] | angle1 | |
[in] | angle2 | |
[in] | color | |
[in] | arc_width | |
[in] | length | |
[in] | space | |
[in] | origin_x | |
[in] | origin_y |
As da (resp. db) is rounded as an integer, it can take a null value which will make the function enter an endless loop. In such a case, the arc is printed solid. The da (resp. db) variable should never be negative except if space (resp. length) is negative.
It prints as many sets of dash-dot as possible.
Definition at line 967 of file o_arc_basic.c.
void o_arc_print_phantom | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | angle1, | ||
int | angle2, | ||
int | color, | ||
int | arc_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
A negative value for space or length leads to an endless loop.
All dimensions are in mils, except angle1 and angle2 in degrees.
The function sets the color in which the line will be printed with.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to postscript document. |
[in] | x | |
[in] | y | |
[in] | radius | |
[in] | angle1 | |
[in] | angle2 | |
[in] | color | |
[in] | arc_width | |
[in] | length | |
[in] | space | |
[in] | origin_x | |
[in] | origin_y |
As da (resp. db) is rounded as an integer, it can take a null value which will make the function enter an endless loop. In such a case, the arc is printed solid. The da (resp. db) variable should never be negative except if space (resp. length) is negative.
It prints as many sets of dash-dot-dot as possible.
Definition at line 1095 of file o_arc_basic.c.
double o_arc_shortest_distance | ( | OBJECT * | object, |
int | x, | ||
int | y, | ||
int | force_solid | ||
) |
[in] | object | The arc OBJECT. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | force_solid | If true, force treating the object as solid. |
Definition at line 1226 of file o_arc_basic.c.
gboolean o_arc_within_sweep | ( | ARC * | arc, |
gint | x, | ||
gint | y | ||
) |
[in] | arc | The arc of object |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
Definition at line 1282 of file o_arc_basic.c.
void world_get_arc_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | object | |
[out] | left | |
[out] | top | |
[out] | right | |
[out] | bottom |
In the mirror mode, the sweep angle is negativ. To get a CCW arc before this calculation we have to move the start angle to the end angle and reverse the sweep angle.
Definition at line 514 of file o_arc_basic.c.
[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 584 of file o_arc_basic.c.
The bounding box - in world units - is recalculated with the world_get_arc_bounds() function.
[in] | toplevel | The TOPLEVEL object. |
[in] | o_current |
Definition at line 478 of file o_arc_basic.c.
GList* o_read_attribs | ( | TOPLEVEL * | toplevel, |
OBJECT * | object_to_get_attribs, | ||
TextBuffer * | tb, | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | object_to_get_attribs | Object which gets these attribs. |
[in] | tb | The text buffer to read from. |
[in] | release_ver | libgeda release version number. |
[in] | fileformat_ver | file format version number. |
Definition at line 247 of file o_attrib.c.
OBJECT* o_attrib_find_attrib_by_name | ( | const GList * | list, |
char * | name, | ||
int | count | ||
) |
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 attributes to search. |
[in] | name | Character string with attribute name to search for. |
[in] | count | Which occurance to return. |
Definition at line 479 of file o_attrib.c.
[in] | toplevel | |
[in] | obj |
double o_shortest_distance_full | ( | OBJECT * | object, |
int | x, | ||
int | y, | ||
int | force_solid | ||
) |
[in] | object | The given object. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | force_solid | If true, force treating the object as solid. |
Definition at line 521 of file o_basic.c.
[in] | toplevel | The TOPLEVEL structure. |
[in] | object | The OBJECT for which to retrieve the parent PAGE. |
Definition at line 635 of file o_basic.c.
OBJECT* o_box_read | ( | TOPLEVEL * | toplevel, |
const char | buf[], | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
Depending on *version, the correct file format is considered. Currently two file format revisions are supported :
[in] | toplevel | The TOPLEVEL object. |
[in] | buf | Character string with box description. |
[in] | release_ver | libgeda release version number. |
[in] | fileformat_ver | libgeda file format version number. |
A new object is allocated, initialized and added to the object list. Its filling and line type are set according to the values of the field on the line.
Definition at line 261 of file o_box_basic.c.
[in] | toplevel | The TOPLEVEL structure. |
[in] | object | The BOX OBJECT to create string from. |
Definition at line 378 of file o_box_basic.c.
The validity of the o_current parameter is verified : a null pointer causes an error message and a return.
The description of the box is extracted from the o_current parameter : the coordinates of the box - upper left corner and width and height of the box -, its line type, its fill type.
The outline and the inside of the box are successively handled by two differend sets of functions.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | o_current | BOX OBJECT to write to document. |
[in] | origin_x | Page x coordinate to place BOX OBJECT. |
[in] | origin_y | Page y coordinate to place BOX OBJECT. |
The needed parameters for each of these type is extracted from the o_current object. Depending on the type, unused parameters are set to -1.
In the eventuality of a length and/or space null, the line is printed solid to avoid and endless loop produced by other functions in such a case.
The case where pitch1 and pitch2 are null or negative is avoided as it leads to an endless loop in most of the called functions. In such a case, the box is printed filled. Unused parameters for each of these functions are set to -1 or any passive value.
Definition at line 668 of file o_box_basic.c.
void o_box_print_solid | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | color, | ||
int | line_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the function o_line_print_solid() to print the outline. It performs four calls to this function, one for each of its side.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Upper x coordinate of BOX. |
[in] | y | Upper y coordinate of BOX. |
[in] | width | Width of BOX. |
[in] | height | Height of BOX. |
[in] | color | BOX color. |
[in] | line_width | BOX Line width. |
[in] | length | Dashed line length. |
[in] | space | Amount of space between dashes. |
[in] | origin_x | Page x coordinate to place BOX OBJECT. |
[in] | origin_y | Page y coordinate to place BOX OBJECT. |
Definition at line 848 of file o_box_basic.c.
void o_box_print_dotted | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | color, | ||
int | line_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the function o_line_print_dotted() to print the outline. It performs four calls to this function, one for each of its side.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Upper x coordinate of BOX. |
[in] | y | Upper y coordinate of BOX. |
[in] | width | Width of BOX. |
[in] | height | Height of BOX. |
[in] | color | BOX color. |
[in] | line_width | BOX Line width. |
[in] | length | Dashed line length. |
[in] | space | Amount of space between dashes. |
[in] | origin_x | Page x coordinate to place BOX OBJECT. |
[in] | origin_y | Page y coordinate to place BOX OBJECT. |
Definition at line 911 of file o_box_basic.c.
void o_box_print_dashed | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | color, | ||
int | line_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the function o_line_print_dashed() to print the outline. It performs four calls to this function, one for each of its side.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Upper x coordinate of BOX. |
[in] | y | Upper y coordinate of BOX. |
[in] | width | Width of BOX. |
[in] | height | Height of BOX. |
[in] | color | BOX color. |
[in] | line_width | BOX Line width. |
[in] | length | Dashed line length. |
[in] | space | Amount of space between dashes. |
[in] | origin_x | Page x coordinate to place BOX OBJECT. |
[in] | origin_y | Page y coordinate to place BOX OBJECT. |
Definition at line 973 of file o_box_basic.c.
void o_box_print_center | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | color, | ||
int | line_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the function o_line_print_center() to print the outline. It performs four calls to this function, one for each of its side.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Upper x coordinate of BOX. |
[in] | y | Upper y coordinate of BOX. |
[in] | width | Width of BOX. |
[in] | height | Height of BOX. |
[in] | color | BOX color. |
[in] | line_width | BOX Line width. |
[in] | length | Dashed line length. |
[in] | space | Amount of space between dashes. |
[in] | origin_x | Page x coordinate to place BOX OBJECT. |
[in] | origin_y | Page y coordinate to place BOX OBJECT. |
Definition at line 1036 of file o_box_basic.c.
void o_box_print_phantom | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | color, | ||
int | line_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the function o_line_print_phantom() to print the outline. It performs four calls to this function, one for each of its side.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Upper x coordinate of BOX. |
[in] | y | Upper y coordinate of BOX. |
[in] | width | Width of BOX. |
[in] | height | Height of BOX. |
[in] | color | BOX color. |
[in] | line_width | BOX Line width. |
[in] | length | Dashed line length. |
[in] | space | Amount of space between dashes. |
[in] | origin_x | Page x coordinate to place BOX OBJECT. |
[in] | origin_y | Page y coordinate to place BOX OBJECT. |
Definition at line 1098 of file o_box_basic.c.
void o_box_print_filled | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | color, | ||
int | fill_width, | ||
int | angle1, | ||
int | pitch1, | ||
int | angle2, | ||
int | pitch2, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the fbox postscript function defined in the prolog to specify a filled box.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Upper x coordinate of BOX. |
[in] | y | Upper y coordinate of BOX. |
[in] | width | Width of BOX. |
[in] | height | Height of BOX. |
[in] | color | BOX color. |
[in] | fill_width | BOX fill width. (unused). |
[in] | angle1 | (unused). |
[in] | pitch1 | (unused). |
[in] | angle2 | (unused). |
[in] | pitch2 | (unused). |
[in] | origin_x | Page x coordinate to place BOX OBJECT. |
[in] | origin_y | Page y coordinate to place BOX OBJECT. |
Definition at line 1166 of file o_box_basic.c.
void o_box_print_mesh | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | color, | ||
int | fill_width, | ||
int | angle1, | ||
int | pitch1, | ||
int | angle2, | ||
int | pitch2, | ||
int | origin_x, | ||
int | origin_y | ||
) |
The inside mesh is achieved by two successive call to the o_box_print_hatch() function, given angle1 and pitch1 the first time and angle2 and pitch2 the second time.
Negative or null values for pitch1 and/or pitch2 are not allowed as it leads to an endless loop in o_box_print_hatch().
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Upper x coordinate of BOX. |
[in] | y | Upper y coordinate of BOX. |
[in] | width | Width of BOX. |
[in] | height | Height of BOX. |
[in] | color | BOX color. |
[in] | fill_width | BOX fill width. |
[in] | angle1 | 1st angle for mesh pattern. |
[in] | pitch1 | 1st pitch for mesh pattern. |
[in] | angle2 | 2nd angle for mesh pattern. |
[in] | pitch2 | 2nd pitch for mesh pattern. |
[in] | origin_x | Page x coordinate to place BOX OBJECT. |
[in] | origin_y | Page y coordinate to place BOX OBJECT. |
Definition at line 1218 of file o_box_basic.c.
void o_box_print_hatch | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | color, | ||
int | fill_width, | ||
int | angle1, | ||
int | pitch1, | ||
int | angle2, | ||
int | pitch2, | ||
int | origin_x, | ||
int | origin_y | ||
) |
Negative or null values for pitch1 are not allowed as it leads to an endless loop.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Upper x coordinate of BOX. |
[in] | y | Upper y coordinate of BOX. |
[in] | width | Width of BOX. |
[in] | height | Height of BOX. |
[in] | color | BOX color. |
[in] | fill_width | BOX fill width. |
[in] | angle1 | Angle of hatch pattern. |
[in] | pitch1 | Pitch of hatch pattern. |
[in] | angle2 | (unused). |
[in] | pitch2 | (unused). |
[in] | origin_x | Page x coordinate to place BOX OBJECT. |
[in] | origin_y | Page y coordinate to place BOX OBJECT. |
Definition at line 1273 of file o_box_basic.c.
double o_box_shortest_distance | ( | OBJECT * | object, |
int | x, | ||
int | y, | ||
int | force_solid | ||
) |
[in] | object | The box OBJECT. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | force_solid | If true, force treating the object as solid. |
Definition at line 1325 of file o_box_basic.c.
void world_get_box_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | object | BOX OBJECT to read coordinates from. |
[out] | left | Left box coordinate in WORLD units. |
[out] | top | Top box coordinate in WORLD units. |
[out] | right | Right box coordinate in WORLD units. |
[out] | bottom | Bottom box coordinate in WORLD units. |
Definition at line 607 of file o_box_basic.c.
[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 636 of file o_box_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | o_current | BOX OBJECT to be recalculated. |
Definition at line 577 of file o_box_basic.c.
OBJECT* o_bus_read | ( | TOPLEVEL * | toplevel, |
const char | buf[], | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | buf | a text buffer (usually a line of a schematic file) |
[in] | release_ver | The release number gEDA |
[in] | fileformat_ver | a integer value of the file format |
Definition at line 148 of file o_bus_basic.c.
[in] | toplevel | a TOPLEVEL structure |
[in] | object | a bus OBJECT |
Definition at line 207 of file o_bus_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | fp | pointer to a FILE structure |
[in] | o_current | The OBJECT to print |
[in] | origin_x | x-coord of the postscript origin |
[in] | origin_y | y-coord of the postscript origin |
Definition at line 280 of file o_bus_basic.c.
void world_get_bus_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | object | a bus object |
[out] | left | the left world coord |
[out] | top | the top world coord |
[out] | right | the right world coord |
[out] | bottom | the bottom world coord |
Definition at line 62 of file o_bus_basic.c.
[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 45 of file o_bus_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | o_current | a bus object. |
Definition at line 115 of file o_bus_basic.c.
OBJECT* o_circle_read | ( | TOPLEVEL * | toplevel, |
const char | buf[], | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
Depending on *version, the right file format is considered. Currently two file format revisions are supported :
[in] | toplevel | The TOPLEVEL object. |
[in] | buf | Character string with circle description. |
[in] | release_ver | libgeda release version number. |
[in] | fileformat_ver | libgeda file format version number. |
Definition at line 225 of file o_circle_basic.c.
[in] | toplevel | a TOPLEVEL structure. |
[in] | object | Circle OBJECT to create string from. |
Definition at line 326 of file o_circle_basic.c.
void o_circle_print | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
OBJECT * | o_current, | ||
int | origin_x, | ||
int | origin_y | ||
) |
The validity of the o_current pointer is checked : a null pointer causes an error message and a return.
The description of the circle is extracted from the o_current parameter : the coordinates of the center of the circle, its radius, its line type, its fill type.
The outline and the inside of the circle are successively handled by two differend sets of functions.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | o_current | Circle OBJECT to write to document. |
[in] | origin_x | Page x coordinate to place circle OBJECT. |
[in] | origin_y | Page y coordinate to place circle OBJECT. |
Definition at line 576 of file o_circle_basic.c.
void o_circle_print_solid | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | color, | ||
int | circle_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the function o_arc_print_solid() to print the outline. Therefore it acts as an interface between the way a circle is defined and the way an arc is defined.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Center x coordinate of circle. |
[in] | y | Center y coordinate of circle. |
[in] | radius | Circle radius. |
[in] | color | Circle color. |
[in] | circle_width | Width of circle. |
[in] | length | (unused). |
[in] | space | (unused). |
[in] | origin_x | Page x coordinate to place circle OBJECT. |
[in] | origin_y | Page y coordinate to place circle OBJECT. |
Definition at line 753 of file o_circle_basic.c.
void o_circle_print_dotted | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | color, | ||
int | circle_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the function o_arc_print_dotted() to print the outline. Therefore it acts as an interface between the way a circle is defined and the way an arc is defined.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Center x coordinate of circle. |
[in] | y | Center y coordinate of circle. |
[in] | radius | Circle radius. |
[in] | color | Circle color. |
[in] | circle_width | Width of circle. |
[in] | length | (unused). |
[in] | space | Space between dots. |
[in] | origin_x | Page x coordinate to place circle OBJECT. |
[in] | origin_y | Page y coordinate to place circle OBJECT. |
Definition at line 796 of file o_circle_basic.c.
void o_circle_print_dashed | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | color, | ||
int | circle_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the function o_arc_print_dashed() to print the outline. Therefore it acts as an interface between the way a circle is defined and the way an arc is defined.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Center x coordinate of circle. |
[in] | y | Center y coordinate of circle. |
[in] | radius | Circle radius. |
[in] | color | Circle color. |
[in] | circle_width | Width of circle. |
[in] | length | Length of dashed lines. |
[in] | space | Space between dashes. |
[in] | origin_x | Page x coordinate to place circle OBJECT. |
[in] | origin_y | Page y coordinate to place circle OBJECT. |
Definition at line 837 of file o_circle_basic.c.
void o_circle_print_center | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | color, | ||
int | circle_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the function o_arc_print_center() to print the outline. Therefore it acts as an interface between the way a circle is defined and the way an arc is defined.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Center x coordinate of circle. |
[in] | y | Center y coordinate of circle. |
[in] | radius | Circle radius. |
[in] | color | Circle color. |
[in] | circle_width | Width of circle. |
[in] | length | Length of dashed lines. |
[in] | space | Space between dashes. |
[in] | origin_x | Page x coordinate to place circle OBJECT. |
[in] | origin_y | Page y coordinate to place circle OBJECT. |
Definition at line 879 of file o_circle_basic.c.
void o_circle_print_phantom | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | color, | ||
int | circle_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
It uses the function o_arc_print_phantom() to print the outline. Therefore it acts as an interface between the way a circle is defined and the way an arc is defined.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Center x coordinate of circle. |
[in] | y | Center y coordinate of circle. |
[in] | radius | Circle radius. |
[in] | color | Circle color. |
[in] | circle_width | Width of circle. |
[in] | length | Length of dashed lines. |
[in] | space | Space between dashes. |
[in] | origin_x | Page x coordinate to place circle OBJECT. |
[in] | origin_y | Page y coordinate to place circle OBJECT. |
Definition at line 921 of file o_circle_basic.c.
void o_circle_print_filled | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | color, | ||
int | fill_width, | ||
int | angle1, | ||
int | pitch1, | ||
int | angle2, | ||
int | pitch2, | ||
int | origin_x, | ||
int | origin_y | ||
) |
All dimensions are in mils (except angle1 and angle2 in degree).
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Center x coordinate of circle. |
[in] | y | Center y coordinate of circle. |
[in] | radius | Radius of circle. |
[in] | color | Circle color. |
[in] | fill_width | Circle fill width. (unused). |
[in] | angle1 | (unused). |
[in] | pitch1 | (unused). |
[in] | angle2 | (unused). |
[in] | pitch2 | (unused). |
[in] | origin_x | Page x coordinate to place circle OBJECT. |
[in] | origin_y | Page y coordinate to place circle OBJECT. |
Definition at line 965 of file o_circle_basic.c.
void o_circle_print_mesh | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | color, | ||
int | fill_width, | ||
int | angle1, | ||
int | pitch1, | ||
int | angle2, | ||
int | pitch2, | ||
int | origin_x, | ||
int | origin_y | ||
) |
The inside mesh is achieved by two successive call to the o_circle_print_hatch() function, given angle1 and pitch1 the first time and angle2 and pitch2 the second time.
Negative or null values for pitch1 and/or pitch2 are not allowed as it leads to an endless loop in o_circle_print_hatch().
All dimensions are in mils (except angle1 and angle2 in degree).
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Center x coordinate of circle. |
[in] | y | Center y coordinate of circle. |
[in] | radius | Radius of circle. |
[in] | color | Circle color. |
[in] | fill_width | Circle fill width. |
[in] | angle1 | 1st angle for mesh pattern. |
[in] | pitch1 | 1st pitch for mesh pattern. |
[in] | angle2 | 2nd angle for mesh pattern. |
[in] | pitch2 | 2nd pitch for mesh pattern. |
[in] | origin_x | Page x coordinate to place circle OBJECT. |
[in] | origin_y | Page y coordinate to place circle OBJECT. |
Definition at line 1011 of file o_circle_basic.c.
void o_circle_print_hatch | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x, | ||
int | y, | ||
int | radius, | ||
int | color, | ||
int | fill_width, | ||
int | angle1, | ||
int | pitch1, | ||
int | angle2, | ||
int | pitch2, | ||
int | origin_x, | ||
int | origin_y | ||
) |
The only attribute of line here is its width from the parameter width.
Negative or null values for pitch1 is not allowed as it leads to an endless loop.
All dimensions are in mils (except angle1 is in degrees).
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x | Center x coordinate of circle. |
[in] | y | Center y coordinate of circle. |
[in] | radius | Radius of circle. |
[in] | color | Circle color. |
[in] | fill_width | Circle fill width. |
[in] | angle1 | Angle for hatch pattern. |
[in] | pitch1 | Pitch for hatch pattern. |
[in] | angle2 | (unused). |
[in] | pitch2 | (unused). |
[in] | origin_x | Page x coordinate to place circle OBJECT. |
[in] | origin_y | Page y coordinate to place circle OBJECT. |
Definition at line 1066 of file o_circle_basic.c.
double o_circle_shortest_distance | ( | OBJECT * | object, |
int | x, | ||
int | y, | ||
int | force_solid | ||
) |
[in] | object | The circle OBJECT. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | force_solid | If true, force treating the object as solid. |
Definition at line 1116 of file o_circle_basic.c.
void world_get_circle_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | object | Circle OBJECT to read coordinates from. |
[out] | left | Left circle coordinate in WORLD units. |
[out] | top | Top circle coordinate in WORLD units. |
[out] | right | Right circle coordinate in WORLD units. |
[out] | bottom | Bottom circle coordinate in WORLD units. |
Definition at line 515 of file o_circle_basic.c.
[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 545 of file o_circle_basic.c.
The circle coordinates and its bounding are recalculated as well as the OBJECT specific (line width, filling ...).
[in] | toplevel | The TOPLEVEL object. |
[in,out] | o_current | Circle OBJECT to be recalculated. |
Definition at line 484 of file o_circle_basic.c.
OBJECT* o_complex_read | ( | TOPLEVEL * | toplevel, |
const char | buf[], | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | buf | a text buffer (usually a line of a schematic file) |
[in] | release_ver | The release number gEDA |
[in] | fileformat_ver | a integer value of the file format |
Definition at line 638 of file o_complex_basic.c.
[in] | toplevel | a TOPLEVEL structure |
[in] | object | a complex OBJECT |
Definition at line 718 of file o_complex_basic.c.
double o_complex_shortest_distance | ( | OBJECT * | object, |
int | x, | ||
int | y, | ||
int | force_solid | ||
) |
[in] | object | The complex OBJECT. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | force_solid | If true, force treating the object as solid. |
Definition at line 1141 of file o_complex_basic.c.
void world_get_complex_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | complex, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The toplevel environment. |
[in] | complex | The complex object. |
[out] | left | The leftmost edge of the bounding box (in world units). |
[out] | top | The upper edge of the bounding box (in world units). |
[out] | right | The rightmost edge of the bounding box (in world units). |
[out] | bottom | The bottom edge of the bounding box (in screen units). |
Definition at line 165 of file o_complex_basic.c.
[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 187 of file o_complex_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current | The OBJECT to update |
Definition at line 604 of file o_complex_basic.c.
If detach is TRUE, the function removes these attribute objects from the prim_objs of the complex. If detach is FALSE, the OBJECTs are left in place.
[in] | toplevel | The toplevel environment. |
[in] | object | The complex object being modified. |
[in] | detach | Should the attributes be detached? |
Definition at line 275 of file o_complex_basic.c.
OBJECT* o_line_read | ( | TOPLEVEL * | toplevel, |
const char | buf[], | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
The function returns a pointer on the new last element, that is the added line object.
Depending on *version, the correct file format is considered. Currently two file format revisions are supported :
[in] | toplevel | The TOPLEVEL object. |
[in] | buf | Character string with line description. |
[in] | release_ver | libgeda release version number. |
[in] | fileformat_ver | libgeda file format version number. |
Definition at line 209 of file o_line_basic.c.
[in] | toplevel | a TOPLEVEL structure. |
[in] | object | Line OBJECT to create string from. |
Definition at line 302 of file o_line_basic.c.
void o_line_print | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
OBJECT * | o_current, | ||
int | origin_x, | ||
int | origin_y | ||
) |
Parameters of the line are extracted from object pointed by o_current.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | o_current | Line OBJECT to write to document. |
[in] | origin_x | Page x coordinate to place line OBJECT. |
[in] | origin_y | Page y coordinate to place line OBJECT. |
Definition at line 528 of file o_line_basic.c.
void o_line_print_solid | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | color, | ||
int | line_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x1 | Upper x coordinate. |
[in] | y1 | Upper y coordinate. |
[in] | x2 | Lower x coordinate. |
[in] | y2 | Lower y coordinate. |
[in] | color | Line color. |
[in] | line_width | Width of line. |
[in] | length | (unused). |
[in] | space | (unused). |
[in] | origin_x | Page x coordinate to place line OBJECT. |
[in] | origin_y | Page y coordinate to place line OBJECT. |
Definition at line 637 of file o_line_basic.c.
void o_line_print_dotted | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | color, | ||
int | line_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
A negative value for space leads to an endless loop.
All dimensions are in mils.
The function sets the color in which the line will be printed with.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x1 | Upper x coordinate. |
[in] | y1 | Upper y coordinate. |
[in] | x2 | Lower x coordinate. |
[in] | y2 | Lower y coordinate. |
[in] | color | Line color. |
[in] | line_width | Width of line. |
[in] | length | (unused). |
[in] | space | Space between dots. |
[in] | origin_x | Page x coordinate to place line OBJECT. |
[in] | origin_y | Page y coordinate to place line OBJECT. |
Definition at line 678 of file o_line_basic.c.
void o_line_print_dashed | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | color, | ||
int | line_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
A negative value for space or length leads to an endless loop.
All dimensions are in mils.
The function sets the color in which the line will be printed and the width of the line - that is the width of the dashes.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x1 | Upper x coordinate. |
[in] | y1 | Upper y coordinate. |
[in] | x2 | Lower x coordinate. |
[in] | y2 | Lower y coordinate. |
[in] | color | Line color. |
[in] | line_width | Width of line. |
[in] | length | Length of a dash. |
[in] | space | Space between dashes. |
[in] | origin_x | Page x coordinate to place line OBJECT. |
[in] | origin_y | Page y coordinate to place line OBJECT. |
Definition at line 759 of file o_line_basic.c.
void o_line_print_center | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | color, | ||
int | line_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
A negative value for space or length leads to an endless loop.
All dimensions are in mils.
The function sets the color in which the line will be printed and the width of the line - that is the width of the dashes and the diameter of the dots.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x1 | Upper x coordinate. |
[in] | y1 | Upper y coordinate. |
[in] | x2 | Lower x coordinate. |
[in] | y2 | Lower y coordinate. |
[in] | color | Line color. |
[in] | line_width | Width of line. |
[in] | length | Length of a dash. |
[in] | space | Space between dashes. |
[in] | origin_x | Page x coordinate to place line OBJECT. |
[in] | origin_y | Page y coordinate to place line OBJECT. |
Definition at line 862 of file o_line_basic.c.
void o_line_print_phantom | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | color, | ||
int | line_width, | ||
int | length, | ||
int | space, | ||
int | origin_x, | ||
int | origin_y | ||
) |
A negative value for space or length leads to an endless loop.
All dimensions are in mils.
The function sets the color in which the line will be printed and the width of the line - that is the width of the dashes and the diameter of the dots.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | x1 | Upper x coordinate. |
[in] | y1 | Upper y coordinate. |
[in] | x2 | Lower x coordinate. |
[in] | y2 | Lower y coordinate. |
[in] | color | Line color. |
[in] | line_width | Width of line. |
[in] | length | Length of a dash. |
[in] | space | Space between dashes. |
[in] | origin_x | Page x coordinate to place line OBJECT. |
[in] | origin_y | Page y coordinate to place line OBJECT. |
Definition at line 994 of file o_line_basic.c.
double o_line_shortest_distance | ( | OBJECT * | object, |
int | x, | ||
int | y, | ||
int | force_solid | ||
) |
If the closest point on the line resides beyond the line segment's end point, this function returns the distance from the given point to the closest end point.
If the line represents a single point (the endpoints are the same), this function calcualtes the distance to that point.
[in] | object | The line OBJECT. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | force_solid | If true, force treating the object as solid. |
Definition at line 1187 of file o_line_basic.c.
void world_get_line_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | object | Line OBJECT to read coordinates from. |
[out] | left | Left line coordinate in WORLD units. |
[out] | top | Top line coordinate in WORLD units. |
[out] | right | Right line coordinate in WORLD units. |
[out] | bottom | Bottom line coordinate in WORLD units. |
Definition at line 475 of file o_line_basic.c.
[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 504 of file o_line_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | o_current | Line OBJECT to be recalculated. |
Definition at line 444 of file o_line_basic.c.
OBJECT* o_net_read | ( | TOPLEVEL * | toplevel, |
const char | buf[], | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | buf | a text buffer (usually a line of a schematic file) |
[in] | release_ver | The release number gEDA |
[in] | fileformat_ver | a integer value of the file format |
Definition at line 146 of file o_net_basic.c.
[in] | toplevel | a TOPLEVEL structure |
[in] | object | a net OBJECT |
Definition at line 190 of file o_net_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | fp | pointer to a FILE structure |
[in] | o_current | The OBJECT to print |
[in] | origin_x | x-coord of the postscript origin |
[in] | origin_y | y-coord of the postscript origin |
Definition at line 263 of file o_net_basic.c.
void world_get_net_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | object | a net object |
[out] | left | the left world coord |
[out] | top | the top world coord |
[out] | right | the right world coord |
[out] | bottom | the bottom world coord |
Definition at line 62 of file o_net_basic.c.
[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 45 of file o_net_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | o_current | a net object. |
Definition at line 111 of file o_net_basic.c.
OBJECT* o_path_read | ( | TOPLEVEL * | toplevel, |
const char * | first_line, | ||
TextBuffer * | tb, | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
Depending on *version, the correct file format is considered. Currently two file format revisions are supported :
[in] | toplevel | The TOPLEVEL object. |
[in] | first_line | Character string with path description. |
[in] | tb | Text buffer containing the path string. |
[in] | release_ver | libgeda release version number. |
[in] | fileformat_ver | libgeda file format version number. |
Definition at line 155 of file o_path_basic.c.
[in] | toplevel | a TOPLEVEL structure |
[in] | object | path OBJECT to create string from. |
Definition at line 246 of file o_path_basic.c.
void o_path_print | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
OBJECT * | o_current, | ||
int | origin_x, | ||
int | origin_y | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | o_current | PATH OBJECT to write to document. |
[in] | origin_x | Page x coordinate to place PATH OBJECT. |
[in] | origin_y | Page y coordinate to place PATH OBJECT. |
The needed parameters for each of these type is extracted from the o_current object. Depending on the type, unused parameters are set to -1.
In the eventuality of a length and/or space null, the line is printed solid to avoid and endless loop produced by other functions in such a case.
The case where pitch1 and pitch2 are null or negative is avoided as it leads to an endless loop in most of the called functions. In such a case, the path is printed filled. Unused parameters for each of these functions are set to -1 or any passive value.
Definition at line 907 of file o_path_basic.c.
double o_path_shortest_distance | ( | OBJECT * | object, |
int | x, | ||
int | y, | ||
int | force_solid | ||
) |
[in] | object | The path OBJECT. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | force_solid | If true, force treating the object as solid. |
Definition at line 1055 of file o_path_basic.c.
void world_get_path_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | object | Line OBJECT to read coordinates from. |
[out] | left | Left path coordinate in WORLD units. |
[out] | top | Top path coordinate in WORLD units. |
[out] | right | Right path coordinate in WORLD units. |
[out] | bottom | Bottom path coordinate in WORLD units. |
Definition at line 518 of file o_path_basic.c.
[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 577 of file o_path_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | o_current | Line OBJECT to be recalculated. |
Definition at line 482 of file o_path_basic.c.
OBJECT* o_picture_read | ( | TOPLEVEL * | toplevel, |
const char * | first_line, | ||
TextBuffer * | tb, | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | first_line | Character string with picture description. |
[in] | tb | Text buffer to load embedded data from. |
[in] | release_ver | libgeda release version number. |
[in] | fileformat_ver | libgeda file format version number. |
Definition at line 50 of file o_picture.c.
[in] | toplevel | a TOPLEVEL structure |
[in] | object | Picture OBJECT to create string from. |
Definition at line 180 of file o_picture.c.
void o_picture_print | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
OBJECT * | o_current, | ||
int | origin_x, | ||
int | origin_y | ||
) |
If the picture object was unable to be loaded, prints a crossed box of the same dimensions.
The Postscript document is defined by the file pointer fp. Function based on the DIA source code (http://www.gnome.org/projects/dia) and licensed under the GNU GPL version 2.
All dimensions are in mils.
[in] | toplevel | The TOPLEVEL object. |
[in] | fp | FILE pointer to Postscript document. |
[in] | o_current | Picture OBJECT to write to document. |
[in] | origin_x | Page x coordinate to place picture OBJECT. |
[in] | origin_y | Page y coordinate to place picture OBJECT. |
Definition at line 856 of file o_picture.c.
double o_picture_shortest_distance | ( | OBJECT * | object, |
int | x, | ||
int | y, | ||
int | force_solid | ||
) |
Interrior points within the picture return a distance of zero.
[in] | object | The picture OBJECT. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | force_solid | If true, force treating the object as solid. |
Definition at line 1016 of file o_picture.c.
void world_get_picture_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | object | Picture OBJECT to read coordinates from. |
[out] | left | Left picture coordinate in WORLD units. |
[out] | top | Top picture coordinate in WORLD units. |
[out] | right | Right picture coordinate in WORLD units. |
[out] | bottom | Bottom picture coordinate in WORLD units. |
Definition at line 372 of file o_picture.c.
[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 392 of file o_picture.c.
[in] | toplevel | The TOPLEVEL object. |
[in,out] | o_current | Picture OBJECT to be recalculated. |
Definition at line 341 of file o_picture.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | object | The picture OBJECT to embed |
Definition at line 949 of file o_picture.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | object | The picture OBJECT to unembed |
Definition at line 979 of file o_picture.c.
OBJECT* o_pin_read | ( | TOPLEVEL * | toplevel, |
const char | buf[], | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | buf | a text buffer (usually a line of a schematic file) |
[in] | release_ver | The release number gEDA |
[in] | fileformat_ver | a integer value of the file format |
Definition at line 147 of file o_pin_basic.c.
[in] | toplevel | a TOPLEVEL structure |
[in] | object | a pin OBJECT |
Definition at line 207 of file o_pin_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | fp | pointer to a FILE structure |
[in] | o_current | The OBJECT to print |
[in] | origin_x | x-coord of the postscript origin |
[in] | origin_y | y-coord of the postscript origin |
Definition at line 280 of file o_pin_basic.c.
void world_get_pin_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | object, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | object | a pin object |
[out] | left | the left world coord |
[out] | top | the top world coord |
[out] | right | the right world coord |
[out] | bottom | the bottom world coord |
Definition at line 46 of file o_pin_basic.c.
[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 62 of file o_pin_basic.c.
[in] | toplevel | The TOPLEVEL object. |
[in] | o_current | a pin object. |
Definition at line 118 of file o_pin_basic.c.
OBJECT* o_text_read | ( | TOPLEVEL * | toplevel, |
const char * | first_line, | ||
TextBuffer * | tb, | ||
unsigned int | release_ver, | ||
unsigned int | fileformat_ver, | ||
GError ** | err | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | first_line | the first line of the text |
[in] | tb | a text buffer (usually a line of a schematic file) |
[in] | release_ver | The release number gEDA |
[in] | fileformat_ver | a integer value of the file format |
Definition at line 330 of file o_text_basic.c.
[in] | toplevel | a TOPLEVEL structure |
[in] | object | a text OBJECT |
Definition at line 485 of file o_text_basic.c.
void o_text_print_text_string | ( | FILE * | fp, |
char * | string, | ||
int | unicode_count, | ||
gunichar * | unicode_table | ||
) |
[in] | fp | pointer to a FILE structure |
[in] | string | The string to print |
[in] | unicode_count | Number of items in the unicode table |
[in] | unicode_table | Table of unicode items |
Definition at line 582 of file o_text_basic.c.
void o_text_print | ( | TOPLEVEL * | toplevel, |
FILE * | fp, | ||
OBJECT * | o_current, | ||
int | origin_x, | ||
int | origin_y, | ||
int | unicode_count, | ||
gunichar * | unicode_table | ||
) |
[in] | toplevel | The TOPLEVEL object |
[in] | fp | pointer to a FILE structure |
[in] | o_current | The OBJECT to print |
[in] | origin_x | x-coord of the postscript origin |
[in] | origin_y | y-coord of the postscript origin |
[in] | unicode_count | Number of items in the unicode table |
[in] | unicode_table | Table of unicode items |
Definition at line 643 of file o_text_basic.c.
double o_text_shortest_distance | ( | OBJECT * | object, |
int | x, | ||
int | y, | ||
int | force_solid | ||
) |
This function will calculate the distance to the text regardless if the text is visible or not.
[in] | object | The text OBJECT. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | force_solid | If true, force treating the object as solid. |
Definition at line 938 of file o_text_basic.c.
int world_get_text_bounds | ( | TOPLEVEL * | toplevel, |
OBJECT * | o_current, | ||
int * | left, | ||
int * | top, | ||
int * | right, | ||
int * | bottom | ||
) |
[in] | toplevel | The TOPLEVEL object. |
[in] | o_current | a text object |
[out] | left | the left world coord |
[out] | top | the top world coord |
[out] | right | the right world coord |
[out] | bottom | the bottom world coord |
Definition at line 166 of file o_text_basic.c.
[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 189 of file o_text_basic.c.
[in] | toplevel | The TOPLEVEL object |
[in] | o_current | The OBJECT to update |
Definition at line 297 of file o_text_basic.c.
void s_clib_init | ( | void | ) |
void s_color_init | ( | void | ) |
gchar* s_color_ps_string | ( | gint | color | ) |
int s_conn_uniq | ( | GList * | conn_list, |
CONN * | input_conn | ||
) |
toplevel | (currently not used) |
other_object | OBJECT from that the to_remove OBJECT needs to be removed |
to_remove | OBJECT to remove |
Definition at line 118 of file s_conn.c.
void s_conn_print | ( | GList * | conn_list | ) |
void s_conn_init | ( | void | ) |
gchar* s_encoding_base64_encode | ( | gchar * | src, |
guint | srclen, | ||
guint * | dstlenp, | ||
gboolean | strict | ||
) |
[in] | src | Source buffer. |
[in] | srclen | Length of source buffer. |
[out] | dstlenp | Length of buffer returned (including the terminating \0). |
[in] | strict | Insert new lines as required by RFC 2045. |
Definition at line 82 of file s_encoding.c.
gchar* s_encoding_base64_decode | ( | gchar * | src, |
guint | srclen, | ||
guint * | dstlenp | ||
) |
[in] | src | Source buffer. |
[in] | srclen | Length of the source buffer. |
[out] | dstlenp | Pointer to length of the destination buffer |
Definition at line 191 of file s_encoding.c.
int s_path_to_polygon | ( | PATH * | path, |
GArray * | points | ||
) |
path | [in] The path to convert to a polygon. This parameter must not be NULL. |
points | [out] An array of the polygon's vertices. This parameter must not be NULL. |
Definition at line 708 of file s_path.c.
double s_path_shortest_distance | ( | PATH * | path, |
int | x, | ||
int | y, | ||
int | solid | ||
) |
[in] | path | The path. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | solid | TRUE if the path should be treated as solid, FALSE if the path should be treated as hollow. |
Definition at line 768 of file s_path.c.
TextBuffer* s_textbuffer_new | ( | const gchar * | data, |
const gint | size | ||
) |
If the size argument is negative, assumes that data is null-terminated.
data | The address of the buffer to be managed. |
size | The length of the buffer. |
Pointer | to a new TextBuffer struct. |
Definition at line 62 of file s_textbuffer.c.
TextBuffer* s_textbuffer_free | ( | TextBuffer * | tb | ) |
Should be called thus:
tb = s_textbuffer_free (tb);
Definition at line 97 of file s_textbuffer.c.
const gchar* s_textbuffer_next | ( | TextBuffer * | tb, |
const gssize | count | ||
) |
A newline is detected as '
', or '' together with its immediately following '
', or '', in that order. All newlines are collapsed into a single '
'.
The returned character array should be considered highly volatile, and is only valid until the next call to s_textbuffer_next() or s_textbuffer_next_line().
tb | TextBuffer to read from. |
count | Maximum number of characters to read. |
Character | array, or NULL if no characters left. |
Definition at line 128 of file s_textbuffer.c.
const gchar* s_textbuffer_next_line | ( | TextBuffer * | tb | ) |
The returned character array should be considered highly volatile, and is only valid until the next call to s_textbuffer_next() or s_textbuffer_next_line().
tb | TextBuffer to read from. |
Character | array, or NULL if no characters left. |
Definition at line 193 of file s_textbuffer.c.
void s_tile_remove_object | ( | OBJECT * | object | ) |
void s_tile_free_all | ( | PAGE * | p_current | ) |
[in] | p_current | The PAGE to clean up the tiles |
void s_weakref_notify | ( | void * | dead_ptr, |
GList * | weak_refs | ||
) |
[in] | dead_ptr | Pointer to structure being destroyed. |
[in,out] | weak_refs | List of registered weak references. |
Definition at line 48 of file s_weakref.c.
GList* s_weakref_add | ( | GList * | weak_refs, |
void(*)(void *, void *) | notify_func, | ||
void * | user_data | ||
) |
[in,out] | weak_refs | List of registered weak references. |
[in] | notify_func | Weak reference notify function. |
[in] | user_data | Data to be passed to notify_func. |
Definition at line 76 of file s_weakref.c.
GList* s_weakref_remove | ( | GList * | weak_refs, |
void(*)(void *, void *) | notify_func, | ||
void * | user_data | ||
) |
[in,out] | weak_refs | List of registered weak references. |
[in] | notify_func | Notify function to search for. |
[in] | user_data | User data to search for. |
Definition at line 97 of file s_weakref.c.
GList* s_weakref_add_ptr | ( | GList * | weak_refs, |
void ** | weak_pointer_loc | ||
) |
[in,out] | weak_refs | List of registered weak references. |
[in] | weak_pointer_loc | Memory address of a pointer. |
Definition at line 133 of file s_weakref.c.
GList* s_weakref_remove_ptr | ( | GList * | weak_refs, |
void ** | weak_pointer_loc | ||
) |
[in,out] | weak_refs | List of registered weak references. |
[in] | weak_pointer_loc | Memory address of a pointer. |
Definition at line 150 of file s_weakref.c.