Root/
| 1 | /* |
| 2 | * kicad/dwg.h - Complex drawing functions for KiCad items |
| 3 | * |
| 4 | * Written 2016 by Werner Almesberger |
| 5 | * Copyright 2016 by Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | #ifndef KICAD_DWG_H |
| 15 | #define KICAD_DWG_H |
| 16 | |
| 17 | enum dwg_shape { |
| 18 | dwg_unspec, // UnSpc |
| 19 | dwg_in, // Input |
| 20 | dwg_out, // Output |
| 21 | dwg_tri, // 3State |
| 22 | dwg_bidir, // Bidirectional |
| 23 | }; |
| 24 | |
| 25 | struct dwg_bbox { |
| 26 | int x, y; |
| 27 | int w, h; |
| 28 | }; |
| 29 | |
| 30 | |
| 31 | void dwg_label(int x, int y, const char *s, int dir, int dim, |
| 32 | enum dwg_shape shape, struct dwg_bbox *bbox); |
| 33 | void dwg_hlabel(int x, int y, const char *s, int dir, int dim, |
| 34 | enum dwg_shape shape, struct dwg_bbox *bbox); |
| 35 | void dwg_glabel(int x, int y, const char *s, int dir, int dim, |
| 36 | enum dwg_shape shape, struct dwg_bbox *bbox); |
| 37 | void dwg_text(int x, int y, const char *s, int dir, int dim, |
| 38 | enum dwg_shape shape, struct dwg_bbox *bbox); |
| 39 | |
| 40 | void dwg_junction(int x, int y); |
| 41 | void dwg_noconn(int x, int y); |
| 42 | |
| 43 | void dwg_line(int sx, int sy, int ex, int ey); |
| 44 | |
| 45 | void dwg_wire(int sx, int sy, int ex, int ey); |
| 46 | void dwg_bus(int sx, int sy, int ex, int ey); |
| 47 | |
| 48 | #endif /* !KICAD_DWG_H */ |
| 49 |
Branches:
master
