2018-05-22 16:18:28 +02:00
|
|
|
#ifndef __GDS_TYPES_H__
|
|
|
|
#define __GDS_TYPES_H__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#define CELL_NAME_MAX (100)
|
|
|
|
|
|
|
|
enum graphics_type {GRAPHIC_PATH = 0, GRAPHIC_POLYGON = 1};
|
2018-06-02 02:19:36 +02:00
|
|
|
enum path_type {PATH_FLUSH = 0, PATH_ROUNDED = 1, PATH_SQUARED = 2};
|
2018-05-22 16:18:28 +02:00
|
|
|
|
|
|
|
struct gds_time_field {
|
2018-06-02 02:19:36 +02:00
|
|
|
uint16_t year;
|
|
|
|
uint16_t month;
|
|
|
|
uint16_t day;
|
|
|
|
uint16_t hour;
|
|
|
|
uint16_t minute;
|
|
|
|
uint16_t second;
|
2018-05-22 16:18:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct gds_point {
|
2018-06-02 02:19:36 +02:00
|
|
|
int x;
|
|
|
|
int y;
|
2018-05-22 16:18:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct gds_graphics {
|
2018-06-02 02:19:36 +02:00
|
|
|
enum graphics_type gfx_type;
|
|
|
|
GList *vertices;
|
|
|
|
enum path_type path_render_type;
|
|
|
|
int width_absolute;
|
|
|
|
int16_t layer;
|
|
|
|
uint16_t datatype;
|
2018-05-22 16:18:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct gds_cell_instance {
|
2018-06-02 02:19:36 +02:00
|
|
|
char ref_name[CELL_NAME_MAX];
|
|
|
|
struct gds_cell *cell_ref;
|
|
|
|
struct gds_point origin;
|
|
|
|
int flipped;
|
|
|
|
double angle;
|
|
|
|
double magnification;
|
2018-05-22 16:18:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct gds_cell {
|
2018-06-02 02:19:36 +02:00
|
|
|
char name[CELL_NAME_MAX];
|
|
|
|
struct gds_time_field mod_time;
|
|
|
|
struct gds_time_field access_time;
|
|
|
|
GList *child_cells;
|
|
|
|
GList *graphic_objs;
|
2018-05-22 16:18:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct gds_library {
|
2018-06-02 02:19:36 +02:00
|
|
|
char name[CELL_NAME_MAX];
|
|
|
|
struct gds_time_field mod_time;
|
|
|
|
struct gds_time_field access_time;
|
|
|
|
double unit_to_meters;
|
|
|
|
GList *cells;
|
|
|
|
GList *cell_names;
|
2018-05-22 16:18:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __GDS_TYPES_H__ */
|