00001
00002
00003
00004
00005
00006
00007 #ifndef V_VImageVieP_h
00008 #define V_VImageVieP_h 1
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <X11/IntrinsicP.h>
00027
00028
00029 #include "viaio/VImageView.h"
00030
00031
00032 #include <X11/Xaw/SimpleP.h>
00033
00034
00035 #include "viaio/VImage.h"
00036 #include "viaio/colormap.h"
00037
00038
00039 #include <X11/Xfuncproto.h>
00040
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044
00045
00046
00047
00048
00049
00050 typedef struct {
00051 int empty;
00052 } VImageViewClassPart;
00053
00054 typedef struct V_ImageViewClassRec {
00055 CoreClassPart core_class;
00056 VImageViewClassPart v_image_view_class;
00057 } VImageViewClassRec;
00058
00059 extern VImageViewClassRec vImageViewClassRec;
00060
00061
00062
00063
00064
00065
00066 typedef struct {
00067
00068
00069 Boolean absolute;
00070 int band;
00071 int column_center;
00072 Cursor cursor;
00073 XtCallbackList expose_callback;
00074 VImage image;
00075 XtCallbackList input_callback;
00076 XtCallbackList move_zoom_center_callback;
00077
00078 Boolean proportion;
00079 Boolean resize;
00080 int row_center;
00081 Boolean use_pixmap;
00082 VColormap v_colormap;
00083 XtCallbackList zoom_in_callback;
00084 int zoom_level;
00085 XtCallbackList zoom_out_callback;
00086
00087
00088 VBoolean render_needed;
00089 VFloat pixel_aspect_ratio;
00090 VBoolean is_color;
00091 XImage *ximage;
00092 Pixmap pixmap;
00093 unsigned int alloced_height;
00094 unsigned int alloced_width;
00095 GC gc;
00096 struct V_Port {
00097 int first_row;
00098 int first_column;
00099 int nrows;
00100 int ncolumns;
00101 unsigned int height;
00102 unsigned int width;
00103 } port;
00104 VBoolean free_vcolormap;
00105 Window busy_window;
00106 } VImageViewPart;
00107
00108 typedef struct V_ImageViewRec {
00109 CorePart core;
00110 VImageViewPart viv;
00111 } VImageViewRec;
00112
00113
00114
00115
00116 extern XImage *V_RenderVToX (
00117 #if NeedFunctionPrototypes
00118 VImageViewWidget
00119 #endif
00120 );
00121
00122 #ifdef __cplusplus
00123 }
00124 #endif
00125
00126 #endif