libDXF 0.0.1
A library with DXF related functions written in C.

text.h

Go to the documentation of this file.
00001 
00038 #ifndef LIBDXF_SRC_TEXT_H
00039 #define LIBDXF_SRC_TEXT_H
00040 
00041 
00042 #include "global.h"
00043 
00044 
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048 
00049 
00066 typedef struct
00067 dxf_text
00068 {
00069         /* Members common for all DXF drawable entities. */
00070         int id_code;
00075         char *linetype;
00079         char *layer;
00083         double elevation;
00088         double thickness;
00092         double linetype_scale;
00095         int16_t visibility;
00102         int color;
00109         int paperspace;
00114         char *dictionary_owner_soft;
00117         char *dictionary_owner_hard;
00120         /* Specific members for a DXF text. */
00121         char *text_value;
00124         char *text_style;
00127         double x0;
00130         double y0;
00133         double z0;
00136         double x1;
00142         double y1;
00148         double z1;
00154         double height;
00157         double rel_x_scale;
00163         double rot_angle;
00166         double obl_angle;
00169         int text_flags;
00177         int hor_align;
00189         int vert_align;
00199         double extr_x0;
00203         double extr_y0;
00207         double extr_z0;
00211         struct DxfText *next;
00214 } DxfText;
00215 
00216 
00217 DxfText *dxf_text_new ();
00218 DxfText *dxf_text_init (DxfText *text);
00219 DxfText *dxf_text_read (DxfFile *fp, DxfText *text);
00220 int dxf_text_write (DxfFile *fp, DxfText *text);
00221 int dxf_text_free (DxfText *text);
00222 void dxf_text_free_chain (DxfText *texts);
00223 
00224 
00225 #ifdef __cplusplus
00226 }
00227 #endif
00228 
00229 
00230 #endif /* LIBDXF_SRC_TEXT_H */
00231 
00232 
00233 /* EOF */