Tesseract
3.02
|
00001 /********************************************************************** 00002 * File: callcpp.h 00003 * Description: extern C interface calling C++ from C. 00004 * Author: Ray Smith 00005 * Created: Sun Feb 04 20:39:23 MST 1996 00006 * 00007 * (C) Copyright 1996, Hewlett-Packard Co. 00008 ** Licensed under the Apache License, Version 2.0 (the "License"); 00009 ** you may not use this file except in compliance with the License. 00010 ** You may obtain a copy of the License at 00011 ** http://www.apache.org/licenses/LICENSE-2.0 00012 ** Unless required by applicable law or agreed to in writing, software 00013 ** distributed under the License is distributed on an "AS IS" BASIS, 00014 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 ** See the License for the specific language governing permissions and 00016 ** limitations under the License. 00017 * 00018 **********************************************************************/ 00019 00020 #ifndef CALLCPP_H 00021 #define CALLCPP_H 00022 00023 #ifndef __UNIX__ 00024 #include <assert.h> 00025 #endif 00026 #include "host.h" 00027 #include "params.h" 00028 #include "unichar.h" 00029 00030 class ScrollView; 00031 00032 typedef enum { 00033 Black, 00034 White, 00035 Red, 00036 Yellow, 00037 Green, 00038 Cyan, 00039 Blue, 00040 Magenta, 00041 Aquamarine, 00042 Dark_SLATE_BLUE, 00043 Light_BLUE, 00044 Medium_BLUE, 00045 Midnight_BLUE, 00046 Navy_BLUE, 00047 Sky_BLUE, 00048 Slate_BLUE, 00049 Steel_BLUE, 00050 Coral, 00051 Brown, 00052 Sandy_BROWN, 00053 Gold, 00054 GoldENROD, 00055 Dark_GREEN, 00056 Dark_OLIVE_GREEN, 00057 Forest_GREEN, 00058 Lime_GREEN, 00059 Pale_GREEN, 00060 Yellow_GREEN, 00061 Light_GREY, 00062 Dark_SLATE_GREY, 00063 Dim_GREY, 00064 Grey, 00065 Khaki, 00066 Maroon, 00067 Orange, 00068 Orchid, 00069 Pink, 00070 Plum, 00071 Indian_RED, 00072 Orange_RED, 00073 Violet_RED, 00074 Salmon, 00075 Tan, 00076 Turqoise, 00077 Dark_TURQUOISE, 00078 Violet, 00079 Wheat, 00080 Green_YELLOW 00081 } C_COL; /*starbase colours */ 00082 00083 void cprintf ( //Trace printf 00084 const char *format, ... //special message 00085 ); 00086 ScrollView *c_create_window( /*create a window */ 00087 const char *name, /*name/title of window */ 00088 inT16 xpos, /*coords of window */ 00089 inT16 ypos, /*coords of window */ 00090 inT16 xsize, /*size of window */ 00091 inT16 ysize, /*size of window */ 00092 double xmin, /*scrolling limits */ 00093 double xmax, /*to stop users */ 00094 double ymin, /*getting lost in */ 00095 double ymax /*empty space */ 00096 ); 00097 void c_line_color_index( /*set color */ 00098 void *win, 00099 C_COL index); 00100 void c_move( /*move pen */ 00101 void *win, 00102 double x, 00103 double y); 00104 void c_draw( /*move pen */ 00105 void *win, 00106 double x, 00107 double y); 00108 void c_make_current( /*move pen */ 00109 void *win); 00110 void c_clear_window( /*move pen */ 00111 void *win); 00112 char window_wait(ScrollView* win); 00113 void reverse32(void *ptr); 00114 void reverse16(void *ptr); 00115 00116 #endif