00001
00021 #ifndef INC_MI32_MXDCOGO_H
00022 #define INC_MI32_MXDCOGO_H
00023
00024 #ifndef INC_MI32_MXDIALOG_H
00025 #include <mi32/mxdialog.h>
00026 #endif
00027
00028
00029
00030
00031
00032
00033
00034
00035 #define MxdCOGO_NewInstrument 0x00000001
00036 #define MxdCOGO_Rotate 0x00000002
00037 #define MxdCOGO_Shift 0x00000004
00038 #define MxdCOGO_AddLine 0x00000008
00039 #define MxdCOGO_AddPoint 0x00000010
00040 #define MxdCOGO_AddCircle 0x00000020
00041 #define MxdCOGO_AddArc 0x00000040
00042 #define MxdCOGO_AddPolygon 0x00000080
00043 #define MxdCOGO_AddElement 0x000000F8
00044
00045
00046 struct MxdCOGOCallbackStruct {
00047 UINT32 reason;
00048 MXDHANDLE dhandle;
00049 DOUBLE param;
00050 DOUBLE radius;
00051 DPOINT2D center;
00052 DOUBLE startangle;
00053 DOUBLE endangle;
00054 DPOINT3D *Line;
00055 INT32 NumPoints;
00056 int ElemType;
00057 };
00058
00059 #if defined(__cplusplus)
00060 extern "C" {
00061 #endif
00062
00064 int MxdCOGOAddCallback (
00065 MXDHANDLE handle,
00066 void (*func)(MxdCOGOCallbackStruct*, void*),
00067 void *udata,
00068 UINT32 reason
00069 );
00070
00072 int MxdCOGOClose (
00073 MXDHANDLE dhandle
00074 );
00075
00077 int MxdCOGOCreate (
00078 Widget pwidget,
00079 MXDHANDLE *dhandle,
00080 char *dialogname,
00081 int relposn,
00082 int dialogflags
00083 );
00084
00086 int MxdCOGODestroy (
00087 MXDHANDLE dhandle
00088 );
00089
00091 int MxdCOGOIsOpen (
00092 MXDHANDLE dhandle
00093 );
00094
00096 int MxdCOGOOpen (
00097 MXDHANDLE dhandle
00098 );
00099
00101 void MxdCOGORemoveCallback (
00102 MXDHANDLE handle,
00103 void (*func)(MxdCOGOCallbackStruct*, void*),
00104 void *udata,
00105 UINT32 reason
00106 );
00107
00108 #if defined(__cplusplus)
00109 }
00110 #endif
00111
00112 #endif
00113