#include <config.h>
#include <stdio.h>
#include <math.h>
#include "gschem.h"
Go to the source code of this file.
Functions |
void | o_bus_draw (GSCHEM_TOPLEVEL *w_current, OBJECT *o_current) |
void | o_bus_draw_place (GSCHEM_TOPLEVEL *w_current, int dx, int dy, OBJECT *o_current) |
void | o_bus_draw_stretch (GSCHEM_TOPLEVEL *w_current, int dx, int dy, int whichone, OBJECT *o_current) |
void | o_bus_start (GSCHEM_TOPLEVEL *w_current, int w_x, int w_y) |
| set the start point of a new bus
|
int | o_bus_end (GSCHEM_TOPLEVEL *w_current, int w_x, int w_y) |
| finish a bus drawing action
|
void | o_bus_motion (GSCHEM_TOPLEVEL *w_current, int w_x, int w_y) |
| draw the bus rubber when creating a bus
|
void | o_bus_invalidate_rubber (GSCHEM_TOPLEVEL *w_current) |
void | o_bus_draw_rubber (GSCHEM_TOPLEVEL *w_current) |
| draw a rubberbus segment
|
Function Documentation
- Todo:
- Finish function documentation!!!
- Function Description
Definition at line 35 of file o_bus.c.
void o_bus_draw_place |
( |
GSCHEM_TOPLEVEL * |
w_current, |
|
|
int |
dx, |
|
|
int |
dy, |
|
|
OBJECT * |
o_current |
|
) |
| |
- Todo:
- Finish function documentation!!!
- Function Description
Definition at line 74 of file o_bus.c.
void o_bus_draw_stretch |
( |
GSCHEM_TOPLEVEL * |
w_current, |
|
|
int |
dx, |
|
|
int |
dy, |
|
|
int |
whichone, |
|
|
OBJECT * |
o_current |
|
) |
| |
- Todo:
- Finish function documentation!!!
- Function Description
Definition at line 99 of file o_bus.c.
- Function Description
- This function sets the start point (w_x,w_y) of a new bus in the GSCHEM_TOPLEVEL structure.
The start point is stored in first_wx, first_wy.
- Parameters:
-
[in] | w_current | The GSCHEM_TOPLEVEL object. |
[in] | w_x | the x position in world coords |
[in] | w_y | the y position in world coords |
Definition at line 140 of file o_bus.c.
- Function Description
- This function finishes a net drawing action. The function draws a bus from the point (first_wx,first_wy) to (second_wx,second_wy). Both points are taken from the GSCHEM_TOPLEVEL structure.
The function returns TRUE if a bus object has been created and FALSE if no bus object has been created.
- Parameters:
-
[in] | w_current | The GSCHEM_TOPLEVEL object. |
[in] | w_x | (unused) |
[in] | w_y | (unused) |
Definition at line 160 of file o_bus.c.
- Function Description
- This function draws a bus rubber from the point (first_wx,first_wy) from the GSCHEM_TOPLEVEL structure to the input parameter (w_x, w_y).
The function stores creates an non-orthogonal bus segment if the CONTROLKEY is pressed. The coordinates of the second rubberbus point is stored as (second_wx,second_wy) in the GSCHEM_TOPLEVEL structure.
- Parameters:
-
[in] | w_current | The GSCHEM_TOPLEVEL object. |
[in] | w_x | current x position in world units |
[in] | w_y | current y position in world units |
Definition at line 222 of file o_bus.c.
- Todo:
- Finish function documentation!!!
- Function Description
Definition at line 255 of file o_bus.c.
- Function Description
- This function draws a bus segment from the point (first_wx,first_wy) to the point (second_wx,second_wy) from the GSCHEM_TOPLEVEL structure.
The function can be used to draw or erase the rubberbus on the screen.
- Parameters:
-
[in] | w_current | The GSCHEM_TOPLEVEL object |
Definition at line 288 of file o_bus.c.