2016-08-02 17:00:08 +03:00
|
|
|
/*
|
2016-08-18 03:15:44 +03:00
|
|
|
* kicad/dwg.h - Complex drawing functions for KiCad items
|
2016-08-02 17:00:08 +03:00
|
|
|
*
|
|
|
|
* Written 2016 by Werner Almesberger
|
|
|
|
* Copyright 2016 by Werner Almesberger
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2016-08-18 03:15:44 +03:00
|
|
|
#ifndef KICAD_DWG_H
|
|
|
|
#define KICAD_DWG_H
|
2016-08-02 17:00:08 +03:00
|
|
|
|
|
|
|
enum dwg_shape {
|
|
|
|
dwg_unspec, // UnSpc
|
|
|
|
dwg_in, // Input
|
|
|
|
dwg_out, // Output
|
|
|
|
dwg_tri, // 3State
|
|
|
|
dwg_bidir, // Bidirectional
|
|
|
|
};
|
|
|
|
|
2016-08-11 03:50:07 +03:00
|
|
|
struct dwg_bbox {
|
|
|
|
int x, y;
|
|
|
|
int w, h;
|
|
|
|
};
|
|
|
|
|
2016-08-02 17:00:08 +03:00
|
|
|
|
|
|
|
void dwg_label(int x, int y, const char *s, int dir, int dim,
|
2016-08-11 03:50:07 +03:00
|
|
|
enum dwg_shape shape, struct dwg_bbox *bbox);
|
2016-08-02 17:00:08 +03:00
|
|
|
void dwg_hlabel(int x, int y, const char *s, int dir, int dim,
|
2016-08-11 03:50:07 +03:00
|
|
|
enum dwg_shape shape, struct dwg_bbox *bbox);
|
2016-08-02 17:00:08 +03:00
|
|
|
void dwg_glabel(int x, int y, const char *s, int dir, int dim,
|
2016-08-11 03:50:07 +03:00
|
|
|
enum dwg_shape shape, struct dwg_bbox *bbox);
|
2016-08-02 17:00:08 +03:00
|
|
|
void dwg_text(int x, int y, const char *s, int dir, int dim,
|
2016-08-11 03:50:07 +03:00
|
|
|
enum dwg_shape shape, struct dwg_bbox *bbox);
|
2016-08-02 17:00:08 +03:00
|
|
|
|
|
|
|
void dwg_junction(int x, int y);
|
|
|
|
void dwg_noconn(int x, int y);
|
|
|
|
|
|
|
|
void dwg_line(int sx, int sy, int ex, int ey);
|
|
|
|
|
|
|
|
void dwg_wire(int sx, int sy, int ex, int ey);
|
|
|
|
void dwg_bus(int sx, int sy, int ex, int ey);
|
|
|
|
|
2016-08-18 03:15:44 +03:00
|
|
|
#endif /* !KICAD_DWG_H */
|