Tesseract 3.02

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
callcpp.h
Go to the documentation of this file.
1 /**********************************************************************
2 * File: callcpp.h
3 * Description: extern C interface calling C++ from C.
4 * Author: Ray Smith
5 * Created: Sun Feb 04 20:39:23 MST 1996
6 *
7 * (C) Copyright 1996, Hewlett-Packard Co.
8 ** Licensed under the Apache License, Version 2.0 (the "License");
9 ** you may not use this file except in compliance with the License.
10 ** You may obtain a copy of the License at
11 ** http://www.apache.org/licenses/LICENSE-2.0
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
17 *
18 **********************************************************************/
19
20 #ifndef CALLCPP_H
21 #define CALLCPP_H
22
23 #ifndef __UNIX__
24 #include <assert.h>
25 #endif
26 #include "host.h"
27 #include "params.h"
28 #include "unichar.h"
29
30 class ScrollView;
31
32 typedef enum {
33 Black,
34 White,
35 Red,
36 Yellow,
37 Green,
38 Cyan,
39 Blue,
40 Magenta,
41 Aquamarine,
42 Dark_SLATE_BLUE,
43 Light_BLUE,
44 Medium_BLUE,
45 Midnight_BLUE,
46 Navy_BLUE,
47 Sky_BLUE,
48 Slate_BLUE,
49 Steel_BLUE,
50 Coral,
51 Brown,
52 Sandy_BROWN,
53 Gold,
54 GoldENROD,
55 Dark_GREEN,
56 Dark_OLIVE_GREEN,
57 Forest_GREEN,
58 Lime_GREEN,
59 Pale_GREEN,
60 Yellow_GREEN,
61 Light_GREY,
62 Dark_SLATE_GREY,
63 Dim_GREY,
64 Grey,
65 Khaki,
66 Maroon,
67 Orange,
68 Orchid,
69 Pink,
70 Plum,
71 Indian_RED,
72 Orange_RED,
73 Violet_RED,
74 Salmon,
75 Tan,
76 Turqoise,
77 Dark_TURQUOISE,
78 Violet,
79 Wheat,
80 Green_YELLOW
81 } C_COL; /*starbase colours */
82
83 void cprintf ( //Trace printf
84 const char *format, ... //special message
85 );
86 ScrollView *c_create_window( /*create a window */
87 const char *name, /*name/title of window */
88 inT16 xpos, /*coords of window */
89 inT16 ypos, /*coords of window */
90 inT16 xsize, /*size of window */
91 inT16 ysize, /*size of window */
92 double xmin, /*scrolling limits */
93 double xmax, /*to stop users */
94 double ymin, /*getting lost in */
95 double ymax /*empty space */
96 );
97 void c_line_color_index( /*set color */
98 void *win,
99 C_COL index);
100 void c_move( /*move pen */
101 void *win,
102 double x,
103 double y);
104 void c_draw( /*move pen */
105 void *win,
106 double x,
107 double y);
108 void c_make_current( /*move pen */
109 void *win);
110 void c_clear_window( /*move pen */
111 void *win);
112 char window_wait(ScrollView* win);
113 void reverse32(void *ptr);
114 void reverse16(void *ptr);
115
116 #endif