|
gschem
|
#include <config.h>#include <stdio.h>#include <sys/stat.h>#include <math.h>#include "gschem.h"
Go to the source code of this file.
Defines | |
| #define | MINIMUM_MARK_SMALL_DIST 1 |
| #define | FONT_NAME "Arial" |
| #define | I_OFFSET 10 |
| #define | I_SMALL_DIST 20 |
| #define | X_SMALL_DIST 10 |
Functions | |
| char * | unescape_text_and_overbars (char *text, PangoAttrList *attrs) |
| static void | calculate_position (OBJECT *object, PangoFontMetrics *font_metrics, PangoRectangle logical_rect, PangoRectangle inked_rect, double *x, double *y) |
| static PangoFontMetrics * | setup_pango_return_metrics (GSCHEM_TOPLEVEL *w_current, PangoLayout *layout, double scale_factor, OBJECT *o_current) |
| static void | rotate_vector (double x, double y, double angle, double *rx, double *ry) |
| static void | expand_bounds (int *left, int *top, int *right, int *bottom, int new_x, int new_y) |
| int | o_text_get_rendered_bounds (void *user_data, OBJECT *o_current, int *min_x, int *min_y, int *max_x, int *max_y) |
| static void | o_text_draw_lowlevel (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int dx, int dy, COLOR *color) |
| void | o_text_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current) |
| void | o_text_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current) |
| void | o_text_prepare_place (GSCHEM_TOPLEVEL *w_current, char *text) |
| void | o_text_edit (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current) |
| void | o_text_edit_end (GSCHEM_TOPLEVEL *w_current, char *string, int len, int text_size, int text_alignment) |
| void | o_text_change (GSCHEM_TOPLEVEL *w_current, OBJECT *object, char *string, int visibility, int show) |
| #define I_OFFSET 10 |
| char* unescape_text_and_overbars | ( | char * | text, |
| PangoAttrList * | attrs | ||
| ) |
| static void calculate_position | ( | OBJECT * | object, |
| PangoFontMetrics * | font_metrics, | ||
| PangoRectangle | logical_rect, | ||
| PangoRectangle | inked_rect, | ||
| double * | x, | ||
| double * | y | ||
| ) | [static] |
Lower alignment is at the baseline of the bottom text line, whereas middle and upper alignment is based upon the inked extents of the entire text block.
| static PangoFontMetrics* setup_pango_return_metrics | ( | GSCHEM_TOPLEVEL * | w_current, |
| PangoLayout * | layout, | ||
| double | scale_factor, | ||
| OBJECT * | o_current | ||
| ) | [static] |
| static void rotate_vector | ( | double | x, |
| double | y, | ||
| double | angle, | ||
| double * | rx, | ||
| double * | ry | ||
| ) | [static] |
| static void expand_bounds | ( | int * | left, |
| int * | top, | ||
| int * | right, | ||
| int * | bottom, | ||
| int | new_x, | ||
| int | new_y | ||
| ) | [static] |
| int o_text_get_rendered_bounds | ( | void * | user_data, |
| OBJECT * | o_current, | ||
| int * | min_x, | ||
| int * | min_y, | ||
| int * | max_x, | ||
| int * | max_y | ||
| ) |
| static void o_text_draw_lowlevel | ( | GSCHEM_TOPLEVEL * | w_current, |
| OBJECT * | o_current, | ||
| int | dx, | ||
| int | dy, | ||
| COLOR * | color | ||
| ) | [static] |
| void o_text_draw | ( | GSCHEM_TOPLEVEL * | w_current, |
| OBJECT * | o_current | ||
| ) |
| void o_text_draw_place | ( | GSCHEM_TOPLEVEL * | w_current, |
| int | dx, | ||
| int | dy, | ||
| OBJECT * | o_current | ||
| ) |
| void o_text_prepare_place | ( | GSCHEM_TOPLEVEL * | w_current, |
| char * | text | ||
| ) |
| void o_text_edit | ( | GSCHEM_TOPLEVEL * | w_current, |
| OBJECT * | o_current | ||
| ) |
| void o_text_edit_end | ( | GSCHEM_TOPLEVEL * | w_current, |
| char * | string, | ||
| int | len, | ||
| int | text_size, | ||
| int | text_alignment | ||
| ) |
| void o_text_change | ( | GSCHEM_TOPLEVEL * | w_current, |
| OBJECT * | object, | ||
| char * | string, | ||
| int | visibility, | ||
| int | show | ||
| ) |