Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

ZincTypes.hpp

Go to the documentation of this file.
00001 
00015 #include <string>
00016 
00017 #ifndef ZINC_TYPES
00018 #define ZINC_TYPES
00019 
00020 typedef std::string String;
00021 
00022 /**********************************
00023    Predeclaration of Zinc types
00024 **********************************/
00025 class Zinc;
00026 class ZincPath;
00027 class ZincItem;
00028 class ZincImage;
00029 class ZincFont;
00030 struct ZincEvent;
00031 
00032 /*******************************************************
00033      Signature to use when binding with a callback
00034 *******************************************************/
00035 typedef void (*ZincItemCallback)
00036              (Zinc *zinc,        // Information about the widget.
00037               ZincItem *item,    // the item being evented
00038               ZincEvent *event,  // event information
00039               void *userData);   // user data provided with bind
00040 
00041 typedef void (*ZincWidgetCallback)
00042              (Zinc *zinc,        // Information about the widget.
00043               ZincEvent *event,  // event information
00044               void *userData);   // user data provided with bind
00045 
00046 
00047 /***********************************
00048        Library constants
00049 ***********************************/
00050 
00051 // Rendering model
00052 const int ZINC_BACKEND_X11 = 0;
00053 const int ZINC_BACKEND_OPENGL = 1;
00054 
00055 
00056 /***********************************
00057        Library enums
00058 ***********************************/
00059 
00060 //Styles for line items
00061 typedef enum
00062 {
00063   lineStyle_simple = 0,  
00064   lineStyle_dashed,
00065   lineStyle_mixed,
00066   lineStyle_dotted
00067 } lineStyle;
00068 
00069 //Styles for line cap
00070 typedef enum
00071 {
00072   capStyle_butt = 0,
00073   capStyle_projecting,
00074   capStyle_round
00075 } capStyle;
00076 
00077 //List of fill rules
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 //list of join style
00088 typedef enum
00089 {
00090   joinStyle_bevel = 0,
00091   joinStyle_miter,
00092   joinStyle_round
00093 } joinStyle;
00094 
00095 //list of reliefs
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 //List of alignments
00112 typedef enum
00113 {
00114   alignment_left = 0,
00115   alignment_right,
00116   alignment_center
00117 } alignment;
00118 
00119 //list of anchors
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 //actions to take when calling contour
00134 typedef enum
00135 {
00136   item_add_clockwise,
00137   item_add_counterclockwise,
00138   item_remove
00139 } itemOperator;
00140 
00141 //list of possible itemtypes
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 //informations contained in an event
00153 struct ZincEvent
00154 {
00155   int x,y;  // pointer position  none -> 0
00156   int k;    // keycode           none -> 0
00157   long t;   // timestamp         none -> 0
00158   String K; // keysym            none -> "??"
00159 };
00160 
00161 
00162 
00163 #endif

Generated on Mon Apr 18 17:40:44 2005 for IntuiKit by doxygen 1.3.3