Component grchip
Component index
Section index

Component grchip


Search

Type

Function

Summary

Draw a IC (integrated circuit) with various items connected to it

Description

Draw something with potentially many pins/items on every side. We assume the object is rectangular. Its size will be computed based on the items around it.

void bottom (int pin, GRAPH_MODE mode, GR_NODE &node)
void drawbody (GRAPH_MODE mode, GR_NODE &node)
void drawbpin (int x, int y, GRAPH_MODE mode, GR_NODE &node)
void drawlpin (int x, int y, GRAPH_MODE mode, GR_NODE &node)
void drawrpin (int x, int y, GRAPH_MODE mode, GR_NODE &node)
void drawtpin (int x, int y, GRAPH_MODE mode, GR_NODE &node)
void left (int pin, GRAPH_MODE mode, GR_NODE &node)
void right (int pin, GRAPH_MODE mode, GR_NODE &node)
void top (int pin, GRAPH_MODE mode, GR_NODE &node)

Functags

void bottom (int pin, GRAPH_MODE mode, GR_NODE &node) Optional

Draw an item on the left

This functag is called for pin 0, 1 and so on, until it fails to define a component. This way, the CHIP may have any number of items connected to it.

void drawbody (GRAPH_MODE mode, GR_NODE &node) Mandatory

Draw the IC itself. Generally a rectangular shape

void drawbpin (int x, int y, GRAPH_MODE mode, GR_NODE &node) Optional

Draw a pin (connector ?) on the bottom

By default, draws a line connecting the IC to the graphical item.

void drawlpin (int x, int y, GRAPH_MODE mode, GR_NODE &node) Optional

Draw a pin (connector ?) on the left

By default, draws a line connecting the IC to the graphical item.

void drawrpin (int x, int y, GRAPH_MODE mode, GR_NODE &node) Optional

Draw a pin (connector ?) on the right

By default, draws a line connecting the IC to the graphical item.

void drawtpin (int x, int y, GRAPH_MODE mode, GR_NODE &node) Optional

Draw a pin (connector ?) on the top

By default, draws a line connecting the IC to the graphical item.

void left (int pin, GRAPH_MODE mode, GR_NODE &node) Optional

Draw an item on the left

This functag is called for pin 0, 1 and so on, until it fails to define a component. This way, the CHIP may have any number of items connected to it.

void right (int pin, GRAPH_MODE mode, GR_NODE &node) Optional

Draw an item on the right

This functag is called for pin 0, 1 and so on, until it fails to define a component. This way, the CHIP may have any number of items connected to it.

void top (int pin, GRAPH_MODE mode, GR_NODE &node) Optional

Draw an item on the top

This functag is called for pin 0, 1 and so on, until it fails to define a component. This way, the CHIP may have any number of items connected to it.