|
libgeda
|
functions for the bus object More...
#include <config.h>#include <stdio.h>#include <math.h>#include "libgeda_priv.h"
Go to the source code of this file.
Functions | |
| gboolean | o_bus_get_position (TOPLEVEL *toplevel, gint *x, gint *y, OBJECT *object) |
| get the position of the first bus point | |
| 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 | |
| OBJECT * | o_bus_new (TOPLEVEL *toplevel, char type, int color, int x1, int y1, int x2, int y2, int bus_ripper_direction) |
| create a new bus object | |
| void | o_bus_recalc (TOPLEVEL *toplevel, OBJECT *o_current) |
| recalc the visual properties of a bus object | |
| 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_translate_world (TOPLEVEL *toplevel, int dx, int dy, OBJECT *object) |
| move a bus object | |
| OBJECT * | o_bus_copy (TOPLEVEL *toplevel, OBJECT *o_current) |
| create a copy of a bus object | |
| void | o_bus_print (TOPLEVEL *toplevel, FILE *fp, OBJECT *o_current, int origin_x, int origin_y) |
| postscript print command for a bus object | |
| void | o_bus_rotate_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object) |
| rotate a bus object around a centerpoint | |
| void | o_bus_mirror_world (TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object) |
| mirror a bus object horizontaly at a centerpoint | |
| int | o_bus_orientation (OBJECT *object) |
| calculate the orientation of a bus object | |
| static void | o_bus_consolidate_lowlevel (OBJECT *object, OBJECT *del_object, int orient) |
| static int | o_bus_consolidate_segments (TOPLEVEL *toplevel, OBJECT *object) |
| void | o_bus_consolidate (TOPLEVEL *toplevel) |
| void | o_bus_modify (TOPLEVEL *toplevel, OBJECT *object, int x, int y, int whichone) |
| modify one point of a bus object | |
Definition in 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.

| 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.

| OBJECT* o_bus_new | ( | TOPLEVEL * | toplevel, |
| char | type, | ||
| int | color, | ||
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | bus_ripper_direction | ||
| ) |
| [in] | toplevel | The TOPLEVEL object. |
| [in] | type | The OBJECT type (usually OBJ_BUS) |
| [in] | color | The color of the bus |
| [in] | x1 | x-coord of the first point |
| [in] | y1 | y-coord of the first point |
| [in] | x2 | x-coord of the second point |
| [in] | y2 | y-coord of the second point |
| [in] | bus_ripper_direction | direction of the bus rippers |
Definition at line 82 of file o_bus_basic.c.

| [in] | toplevel | The TOPLEVEL object. |
| [in] | o_current | a bus object. |
Definition at line 115 of file o_bus_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] | dx | The x-distance to move the object |
| [in] | dy | The y-distance to move the object |
| [in] | object | The bus OBJECT to be moved |
Definition at line 231 of file o_bus_basic.c.

| [in] | toplevel | The TOPLEVEL object |
| [in] | o_current | The object that is copied |
Definition at line 253 of file o_bus_basic.c.

| [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 o_bus_rotate_world | ( | TOPLEVEL * | toplevel, |
| int | world_centerx, | ||
| int | world_centery, | ||
| int | angle, | ||
| OBJECT * | object | ||
| ) |
| [in] | toplevel | The TOPLEVEL object |
| [in] | world_centerx | x-coord of the rotation center |
| [in] | world_centery | y-coord of the rotation center |
| [in] | angle | The angle to rotat the bus object |
| [in] | object | The bus object |
Definition at line 322 of file o_bus_basic.c.

| void o_bus_mirror_world | ( | TOPLEVEL * | toplevel, |
| int | world_centerx, | ||
| int | world_centery, | ||
| OBJECT * | object | ||
| ) |
| [in] | toplevel | The TOPLEVEL object |
| [in] | world_centerx | x-coord of the mirror position |
| [in] | world_centery | y-coord of the mirror position |
| [in] | object | The bus object |
Definition at line 359 of file o_bus_basic.c.

| int o_bus_orientation | ( | OBJECT * | object | ) |
| [in] | object | The bus object |
Definition at line 379 of file o_bus_basic.c.
| static void o_bus_consolidate_lowlevel | ( | OBJECT * | object, |
| OBJECT * | del_object, | ||
| int | orient | ||
| ) | [static] |
Definition at line 401 of file o_bus_basic.c.
Definition at line 484 of file o_bus_basic.c.
| void o_bus_consolidate | ( | TOPLEVEL * | toplevel | ) |
Definition at line 495 of file o_bus_basic.c.
| toplevel | The TOPLEVEL object |
| object | The bus OBJECT to modify |
| x | new x-coord of the bus point |
| y | new y-coord of the bus point |
| whichone | bus point to modify |
Definition at line 512 of file o_bus_basic.c.
