00001
00002
00003
00004
00005
00006
00007 #ifndef V_VImageView_h
00008 #define V_VImageView_h 1
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "viaio/Vlib.h"
00027 #include "viaio/VImage.h"
00028
00029
00030 #include <X11/Intrinsic.h>
00031
00032
00033 #include <X11/Xfuncproto.h>
00034
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086 #define VxNabsolute "absolute"
00087 #define VxNband "band"
00088 #define VxNcolumnCenter "columnCenter"
00089 #define VxNcursor "cursor"
00090 #define VxNexposeCallback "exposeCallback"
00091 #define VxNforeground "foreground"
00092 #define VxNimage "image"
00093 #define VxNinputCallback "inputCallback"
00094 #define VxNmoveZoomCenterCallback "moveZoomCenterCallback"
00095 #define VxNproportion "proportion"
00096 #define VxNresize "resize"
00097 #define VxNrowCenter "rowCenter"
00098 #define VxNusePixmap "usePixmap"
00099 #define VxNvColormap "vColormap"
00100 #define VxNzoomInCallback "zoomInCallback"
00101 #define VxNzoomOutCallback "zoomOutCallback"
00102 #define VxNzoomLevel "zoomLevel"
00103
00104
00105 #define VxCAbsolute "Absolute"
00106 #define VxCBand "Band"
00107 #define VxCCallback "Callback"
00108 #define VxCColumnCenter "ColumnCenter"
00109 #define VxCCursor "Cursor"
00110 #define VxCImage "Image"
00111 #define VxCProportion "Proportion"
00112 #define VxCResize "Resize"
00113 #define VxCRowCenter "RowCenter"
00114 #define VxCUsePixmap "UsePixmap"
00115 #define VxCVColormap "VColormap"
00116 #define VxCZoomLevel "ZoomLevel"
00117
00118
00119 typedef struct V_ImageViewClassRec *VImageViewWidgetClass;
00120 typedef struct V_ImageViewRec *VImageViewWidget;
00121
00122
00123 extern WidgetClass vImageViewWidgetClass;
00124
00125
00126 extern VBoolean VImageViewWindowToImage (
00127 #if NeedFunctionPrototypes
00128 Widget ,
00129 int ,
00130 int ,
00131 double * ,
00132 double *
00133 #endif
00134 );
00135
00136 extern VBoolean VImageViewClipToImage (
00137 #if NeedFunctionPrototypes
00138 Widget ,
00139 int ,
00140 int ,
00141 double * ,
00142 double *
00143 #endif
00144 );
00145
00146 extern VBoolean VImageViewImageToWindow (
00147 #if NeedFunctionPrototypes
00148 Widget ,
00149 double ,
00150 double ,
00151 int * ,
00152 int *
00153 #endif
00154 );
00155
00156 extern VBoolean VImageViewPixelSize (
00157 #if NeedFunctionPrototypes
00158 Widget ,
00159 double * ,
00160 double *
00161 #endif
00162 );
00163
00164 extern void VImageViewRedraw (
00165 #if NeedFunctionPrototypes
00166 Widget
00167 #endif
00168 );
00169
00170 #ifdef __cplusplus
00171 }
00172 #endif
00173
00174 #endif