libgeda
|
00001 /* a_basic.c */ 00002 gchar *o_save_objects(TOPLEVEL *toplevel, const GList *object_list, gboolean save_attribs); 00003 00004 /* f_print.c */ 00005 void f_print_set_line_width(FILE *fp, int width); 00006 int f_print_set_color(TOPLEVEL *toplevel, FILE *fp, int color); 00007 int f_print_header(TOPLEVEL *toplevel, PAGE *page, FILE *fp, int paper_size_x, int paper_size_y, int eps); 00008 void f_print_footer(FILE *fp); 00009 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); 00010 int f_print_initialize_glyph_table(void); 00011 00012 /* g_rc.c */ 00013 int vstbl_lookup_str(const vstbl_entry *table, int size, const char *str); 00014 int vstbl_get_val(const vstbl_entry *table, int index); 00015 SCM g_rc_component_library(SCM path, SCM name); 00016 SCM g_rc_component_library_command (SCM listcmd, SCM getcmd, SCM name); 00017 SCM g_rc_component_library_funcs (SCM listfunc, SCM getfunc, SCM name); 00018 SCM g_rc_source_library(SCM path); 00019 SCM g_rc_source_library_search(SCM path); 00020 SCM g_rc_world_size(SCM width, SCM height, SCM border); 00021 SCM g_rc_reset_component_library(void); 00022 SCM g_rc_reset_source_library(void); 00023 SCM g_rc_untitled_name(SCM name); 00024 SCM g_rc_bitmap_directory(SCM path); 00025 SCM g_rc_scheme_directory(SCM path); 00026 SCM g_rc_bus_ripper_symname(SCM scmsymname); 00027 SCM g_rc_postscript_prolog(SCM scmsymname); 00028 SCM g_rc_map_font_character_to_file(SCM character_param, SCM file_param); 00029 SCM g_rc_attribute_promotion(SCM mode); 00030 SCM g_rc_promote_invisible(SCM mode); 00031 SCM g_rc_keep_invisible(SCM mode); 00032 SCM g_rc_always_promote_attributes(SCM scmsymname); 00033 SCM g_rc_make_backup_files(SCM mode); 00034 SCM g_rc_print_color_map (SCM scm_map); 00035 00036 /* g_register.c */ 00037 void g_register_libgeda_funcs(void); 00038 void g_register_libgeda_dirs (void); 00039 00040 /* m_bounds.c */ 00041 void m_bounds_init(BOUNDS *bounds); 00042 void m_bounds_of_points(BOUNDS *bounds, sPOINT points[], gint count); 00043 00044 /* m_box.c */ 00045 double m_box_shortest_distance (BOX *box, int x, int y, int solid); 00046 00047 /* m_circle.c */ 00048 double m_circle_shortest_distance (CIRCLE *circle, int x, int y, int solid); 00049 00050 /* m_hatch.c */ 00051 void m_hatch_polygon(GArray *points, gint angle, gint pitch, GArray *lines); 00052 00053 /* m_line.c */ 00054 double m_line_shortest_distance (LINE *circle, int x, int y); 00055 00056 /* m_polygon.c */ 00057 gboolean m_polygon_interior_point(GArray *points, int x, int y); 00058 double m_polygon_shortest_distance(GArray *points, int x, int y, gboolean closed); 00059 00060 /* m_transform.c */ 00061 void m_transform_combine(TRANSFORM *result, TRANSFORM *a, TRANSFORM *b ); 00062 void m_transform_init(TRANSFORM *transform); 00063 void m_transform_invert(TRANSFORM *transform, TRANSFORM *inverse); 00064 void m_transform_line(TRANSFORM *transform, LINE *line ); 00065 void m_transform_lines(TRANSFORM *transform, GArray *lines); 00066 void m_transform_point(TRANSFORM *transform, gint *x, gint *y); 00067 void m_transform_points(TRANSFORM *transform, GArray *points); 00068 void m_transform_rotate(TRANSFORM *transform, gdouble angle); 00069 void m_transform_scale(TRANSFORM *transform, gdouble factor); 00070 void m_transform_translate(TRANSFORM *transform, gdouble dx, gdouble dy); 00071 00072 /* o_arc_basic.c */ 00073 OBJECT *o_arc_read(TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00074 char *o_arc_save(TOPLEVEL *toplevel, OBJECT *object); 00075 void o_arc_print(TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y); 00076 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); 00077 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); 00078 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); 00079 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); 00080 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); 00081 double o_arc_shortest_distance(OBJECT *object, int x, int y, int force_soild); 00082 gboolean o_arc_within_sweep(ARC *arc, gint x, gint y); 00083 void world_get_arc_bounds(TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom); 00084 gboolean o_arc_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00085 void o_arc_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00086 00087 /* o_attrib.c */ 00088 GList *o_read_attribs(TOPLEVEL *toplevel, 00089 OBJECT *object_to_get_attribs, 00090 TextBuffer *tb, 00091 unsigned int release_ver, 00092 unsigned int fileformat_ver, GError **err); 00093 OBJECT *o_attrib_find_attrib_by_name(const GList *list, char *name, int count); 00094 00095 /* o_basic.c */ 00096 void o_bounds_invalidate(TOPLEVEL *toplevel, OBJECT *object); 00097 double o_shortest_distance_full(OBJECT *object, int x, int y, int force_solid); 00098 PAGE *o_get_page_compat (TOPLEVEL *toplevel, OBJECT *object) G_GNUC_DEPRECATED; 00099 void o_emit_pre_change_notify(TOPLEVEL *toplevel, OBJECT *object); 00100 void o_emit_change_notify(TOPLEVEL *toplevel, OBJECT *object); 00101 00102 /* o_box_basic.c */ 00103 OBJECT *o_box_read(TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00104 char *o_box_save(TOPLEVEL *toplevel, OBJECT *object); 00105 void o_box_print(TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y); 00106 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); 00107 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); 00108 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); 00109 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); 00110 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); 00111 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); 00112 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); 00113 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); 00114 double o_box_shortest_distance(OBJECT *object, int x, int y, int force_soild); 00115 void world_get_box_bounds(TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom); 00116 gboolean o_box_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00117 void o_box_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00118 00119 /* o_bus_basic.c */ 00120 OBJECT *o_bus_read(TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00121 char *o_bus_save(TOPLEVEL *toplevel, OBJECT *object); 00122 void o_bus_print(TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y); 00123 void world_get_bus_bounds(TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom); 00124 gboolean o_bus_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00125 void o_bus_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00126 00127 /* o_circle_basic.c */ 00128 OBJECT *o_circle_read(TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00129 char *o_circle_save(TOPLEVEL *toplevel, OBJECT *object); 00130 void o_circle_print(TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y); 00131 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); 00132 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); 00133 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); 00134 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); 00135 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); 00136 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); 00137 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); 00138 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); 00139 double o_circle_shortest_distance(OBJECT *object, int x, int y, int force_soild); 00140 void world_get_circle_bounds(TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom); 00141 gboolean o_circle_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00142 void o_circle_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00143 00144 /* o_complex_basic.c */ 00145 OBJECT *o_complex_read(TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00146 char *o_complex_save(TOPLEVEL *toplevel, OBJECT *object); 00147 double o_complex_shortest_distance(OBJECT *object, int x, int y, int force_soild); 00148 void world_get_complex_bounds(TOPLEVEL *toplevel, OBJECT *complex, int *left, int *top, int *right, int *bottom); 00149 gboolean o_complex_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00150 void o_complex_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00151 GList *o_complex_get_promotable (TOPLEVEL *toplevel, OBJECT *object, int detach); 00152 00153 /* o_line_basic.c */ 00154 OBJECT *o_line_read(TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00155 char *o_line_save(TOPLEVEL *toplevel, OBJECT *object); 00156 void o_line_print(TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y); 00157 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); 00158 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); 00159 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); 00160 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); 00161 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); 00162 double o_line_shortest_distance(OBJECT *object, int x, int y, int force_soild); 00163 void world_get_line_bounds(TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom); 00164 gboolean o_line_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00165 void o_line_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00166 00167 /* o_net_basic.c */ 00168 OBJECT *o_net_read(TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00169 char *o_net_save(TOPLEVEL *toplevel, OBJECT *object); 00170 void o_net_print(TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y); 00171 void world_get_net_bounds(TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom); 00172 gboolean o_net_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00173 void o_net_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00174 00175 /* o_path_basic.c */ 00176 OBJECT *o_path_read(TOPLEVEL *toplevel, const char *first_line, TextBuffer *tb, unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00177 char *o_path_save(TOPLEVEL *toplevel, OBJECT *object); 00178 void o_path_print(TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y); 00179 double o_path_shortest_distance(OBJECT *object, int x, int y, int force_soild); 00180 void world_get_path_bounds(TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom); 00181 gboolean o_path_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00182 void o_path_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00183 00184 00185 /* o_picture.c */ 00186 OBJECT *o_picture_read(TOPLEVEL *toplevel, const char *first_line, TextBuffer *tb, unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00187 char *o_picture_save(TOPLEVEL *toplevel, OBJECT *object); 00188 void o_picture_print(TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, 00189 int origin_x, int origin_y); 00190 double o_picture_shortest_distance(OBJECT *object, int x, int y, int force_soild); 00191 void world_get_picture_bounds(TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom); 00192 gboolean o_picture_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00193 void o_picture_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00194 void o_picture_embed(TOPLEVEL *toplevel, OBJECT *object); 00195 void o_picture_unembed(TOPLEVEL *toplevel, OBJECT *object); 00196 00197 /* o_pin_basic.c */ 00198 OBJECT *o_pin_read(TOPLEVEL *toplevel, const char buf[], unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00199 char *o_pin_save(TOPLEVEL *toplevel, OBJECT *object); 00200 void o_pin_print(TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y); 00201 void world_get_pin_bounds(TOPLEVEL *toplevel, OBJECT *object, int *left, int *top, int *right, int *bottom); 00202 gboolean o_pin_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00203 void o_pin_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00204 00205 /* o_text_basic.c */ 00206 OBJECT *o_text_read(TOPLEVEL *toplevel, const char *first_line, TextBuffer *tb, unsigned int release_ver, unsigned int fileformat_ver, GError **err); 00207 char *o_text_save(TOPLEVEL *toplevel, OBJECT *object); 00208 void o_text_print_text_string(FILE *fp, char *string, int unicode_count, gunichar *unicode_table); 00209 void o_text_print(TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y, int unicode_count, gunichar *unicode_table); 00210 double o_text_shortest_distance(OBJECT *object, int x, int y, int force_soild); 00211 int world_get_text_bounds(TOPLEVEL *toplevel, OBJECT *o_current, int *left, int *top, int *right, int *bottom); 00212 gboolean o_text_get_position(TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object); 00213 void o_text_recalc(TOPLEVEL *toplevel, OBJECT *o_current); 00214 00215 /* s_clib.c */ 00216 void s_clib_init (void); 00217 00218 /* s_color.c */ 00219 void s_color_init(void); 00220 gchar *s_color_ps_string(gint color); 00221 00222 /* s_conn.c */ 00223 CONN *s_conn_return_new(OBJECT *other_object, int type, int x, int y, int whichone, int other_whichone); 00224 int s_conn_uniq(GList *conn_list, CONN *input_conn); 00225 int s_conn_remove_other(TOPLEVEL *toplevel, OBJECT *other_object, OBJECT *to_remove); 00226 OBJECT *s_conn_check_midpoint(OBJECT *o_current, int x, int y); 00227 void s_conn_print(GList *conn_list); 00228 void s_conn_init(void); 00229 00230 /* s_encoding.c */ 00231 gchar* s_encoding_base64_encode (gchar* src, guint srclen, guint* dstlenp, gboolean strict); 00232 gchar* s_encoding_base64_decode (gchar* src, guint srclen, guint* dstlenp); 00233 00234 /* s_path.c */ 00235 int s_path_to_polygon(PATH *path, GArray *points); 00236 double s_path_shortest_distance (PATH *path, int x, int y, int solid); 00237 00238 /* s_textbuffer.c */ 00239 TextBuffer *s_textbuffer_new (const gchar *data, const gint size); 00240 TextBuffer *s_textbuffer_free (TextBuffer *tb); 00241 const gchar *s_textbuffer_next (TextBuffer *tb, const gssize count); 00242 const gchar *s_textbuffer_next_line (TextBuffer *tb); 00243 00244 /* s_tile.c */ 00245 void s_tile_init(TOPLEVEL *toplevel, PAGE *p_current); 00246 void s_tile_add_object(TOPLEVEL *toplevel, OBJECT *object); 00247 void s_tile_remove_object(OBJECT *object); 00248 void s_tile_print(TOPLEVEL *toplevel, PAGE *page); 00249 void s_tile_free_all(PAGE *p_current); 00250 00251 /* s_weakref.c */ 00252 void s_weakref_notify (void *dead_ptr, GList *weak_refs); 00253 GList *s_weakref_add (GList *weak_refs, void (*notify_func)(void *, void *), void *user_data); 00254 GList *s_weakref_remove (GList *weak_refs, void (*notify_func)(void *, void *), void *user_data); 00255 GList *s_weakref_add_ptr (GList *weak_refs, void **weak_pointer_loc); 00256 GList *s_weakref_remove_ptr (GList *weak_refs, void **weak_pointer_loc);