gschem

o_bus.c File Reference

#include <config.h>
#include <stdio.h>
#include <math.h>
#include "gschem.h"
Include dependency graph for o_bus.c:

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

void o_bus_draw ( GSCHEM_TOPLEVEL w_current,
OBJECT *  o_current 
)
Todo:
Finish function documentation!!!
Function Description

Definition at line 35 of file o_bus.c.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

void o_bus_start ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
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_currentThe GSCHEM_TOPLEVEL object.
[in]w_xthe x position in world coords
[in]w_ythe y position in world coords

Definition at line 140 of file o_bus.c.

int o_bus_end ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
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_currentThe GSCHEM_TOPLEVEL object.
[in]w_x(unused)
[in]w_y(unused)

Definition at line 160 of file o_bus.c.

Here is the call graph for this function:

void o_bus_motion ( GSCHEM_TOPLEVEL w_current,
int  w_x,
int  w_y 
)
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_currentThe GSCHEM_TOPLEVEL object.
[in]w_xcurrent x position in world units
[in]w_ycurrent y position in world units

Definition at line 222 of file o_bus.c.

Here is the call graph for this function:

void o_bus_invalidate_rubber ( GSCHEM_TOPLEVEL w_current)
Todo:
Finish function documentation!!!
Function Description

Definition at line 255 of file o_bus.c.

Here is the call graph for this function:

void o_bus_draw_rubber ( GSCHEM_TOPLEVEL w_current)
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_currentThe GSCHEM_TOPLEVEL object

Definition at line 288 of file o_bus.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines