00001
00015 #include <string>
00016
00017 #ifndef ZINC_TYPES
00018 #define ZINC_TYPES
00019
00020 typedef std::string String;
00021
00022
00023
00024
00025 class Zinc;
00026 class ZincPath;
00027 class ZincItem;
00028 class ZincImage;
00029 class ZincFont;
00030 struct ZincEvent;
00031
00032
00033
00034
00035 typedef void (*ZincItemCallback)
00036 (Zinc *zinc,
00037 ZincItem *item,
00038 ZincEvent *event,
00039 void *userData);
00040
00041 typedef void (*ZincWidgetCallback)
00042 (Zinc *zinc,
00043 ZincEvent *event,
00044 void *userData);
00045
00046
00047
00048
00049
00050
00051
00052 const int ZINC_BACKEND_X11 = 0;
00053 const int ZINC_BACKEND_OPENGL = 1;
00054
00055
00056
00057
00058
00059
00060
00061 typedef enum
00062 {
00063 lineStyle_simple = 0,
00064 lineStyle_dashed,
00065 lineStyle_mixed,
00066 lineStyle_dotted
00067 } lineStyle;
00068
00069
00070 typedef enum
00071 {
00072 capStyle_butt = 0,
00073 capStyle_projecting,
00074 capStyle_round
00075 } capStyle;
00076
00077
00078 typedef enum
00079 {
00080 fillRule_odd = 0 ,
00081 fillRule_nonzero,
00082 fillRule_positive,
00083 fillRule_negative,
00084 fillRule_abs_geq_2
00085 } fillRule;
00086
00087
00088 typedef enum
00089 {
00090 joinStyle_bevel = 0,
00091 joinStyle_miter,
00092 joinStyle_round
00093 } joinStyle;
00094
00095
00096 typedef enum
00097 {
00098 relief_flat = 0,
00099 relief_raised,
00100 relief_sunken,
00101 relief_ridge,
00102 relief_groove,
00103 relief_roundraised,
00104 relief_roundsunken,
00105 relief_roundridge,
00106 relief_roundgroove,
00107 relief_raisedrule,
00108 relief_sunkenrule
00109 } relief;
00110
00111
00112 typedef enum
00113 {
00114 alignment_left = 0,
00115 alignment_right,
00116 alignment_center
00117 } alignment;
00118
00119
00120 typedef enum
00121 {
00122 anchor_nw = 0,
00123 anchor_n,
00124 anchor_ne,
00125 anchor_e,
00126 anchor_se,
00127 anchor_s,
00128 anchor_sw,
00129 anchor_w,
00130 anchor_center
00131 } anchor;
00132
00133
00134 typedef enum
00135 {
00136 item_add_clockwise,
00137 item_add_counterclockwise,
00138 item_remove
00139 } itemOperator;
00140
00141
00142 typedef enum
00143 {
00144 item_group,
00145 item_arc,
00146 item_text,
00147 item_rectangle,
00148 item_curve,
00149 item_icon
00150 } itemType;
00151
00152
00153 struct ZincEvent
00154 {
00155 int x,y;
00156 int k;
00157 long t;
00158 String K;
00159 };
00160
00161
00162
00163 #endif