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

style.h

Go to the documentation of this file.
00001 
00036 #ifndef LIBDXF_SRC_STYLE_H
00037 #define LIBDXF_SRC_STYLE_H
00038 
00039 
00040 #include "global.h"
00041 #include "file.h"
00042 
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047 
00048 
00063 typedef struct
00064 dxf_style
00065 {
00066         int id_code;
00071         char *style_name;
00074         char *primary_font_filename;
00077         char *big_font_filename;
00080         double height;
00083         double width;
00086         double last_height;
00089         double oblique_angle;
00092         int flag;
00113         int text_generation_flag;
00121         char *dictionary_owner_soft;
00124         char *dictionary_owner_hard;
00127         struct DxfStyle *next;
00130 } DxfStyle;
00131 
00132 
00133 DxfStyle *dxf_style_new ();
00134 DxfStyle *dxf_style_init (DxfStyle *style);
00135 DxfStyle *dxf_style_read (DxfFile *fp, DxfStyle *style);
00136 int dxf_style_write (DxfFile *fp, DxfStyle *style);
00137 int dxf_style_free (DxfStyle *style);
00138 void dxf_style_free_chain (DxfStyle *styles);
00139 int dxf_style_is_shape_file (DxfStyle *style);
00140 int dxf_style_is_text_vertical (DxfStyle *style);
00141 int dxf_style_is_xreferenced (DxfStyle *style);
00142 int dxf_style_is_xresolved (DxfStyle *style);
00143 int dxf_style_is_referenced (DxfStyle *style);
00144 
00145 
00146 #ifdef __cplusplus
00147 }
00148 #endif
00149 
00150 
00151 #endif /* LIBDXF_SRC_STYLE_H */
00152 
00153 
00154 /* EOF */