tesseract
v4.0.0-17-g361f3264
Open Source OCR Engine
callcpp.h
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
#include "host.h"
24
#include "params.h"
25
#include "unichar.h"
26
27
class
ScrollView
;
28
29
typedef
enum
{
30
Black,
31
White,
32
Red,
33
Yellow,
34
Green,
35
Cyan,
36
Blue,
37
Magenta,
38
Aquamarine,
39
Dark_SLATE_BLUE,
40
Light_BLUE,
41
Medium_BLUE,
42
Midnight_BLUE,
43
Navy_BLUE,
44
Sky_BLUE,
45
Slate_BLUE,
46
Steel_BLUE,
47
Coral,
48
Brown,
49
Sandy_BROWN,
50
Gold,
51
GoldENROD,
52
Dark_GREEN,
53
Dark_OLIVE_GREEN,
54
Forest_GREEN,
55
Lime_GREEN,
56
Pale_GREEN,
57
Yellow_GREEN,
58
Light_GREY,
59
Dark_SLATE_GREY,
60
Dim_GREY,
61
Grey,
62
Khaki,
63
Maroon,
64
Orange,
65
Orchid,
66
Pink,
67
Plum,
68
Indian_RED,
69
Orange_RED,
70
Violet_RED,
71
Salmon,
72
Tan,
73
Turqoise,
74
Dark_TURQUOISE,
75
Violet,
76
Wheat,
77
Green_YELLOW
78
} C_COL;
/*starbase colours */
79
80
void
cprintf (
//Trace printf
81
const
char
*format, ...
//special message
82
);
83
ScrollView
*c_create_window(
/*create a window */
84
const
char
*name,
/*name/title of window */
85
int16_t xpos,
/*coords of window */
86
int16_t ypos,
/*coords of window */
87
int16_t xsize,
/*size of window */
88
int16_t ysize,
/*size of window */
89
double
xmin,
/*scrolling limits */
90
double
xmax,
/*to stop users */
91
double
ymin,
/*getting lost in */
92
double
ymax
/*empty space */
93
);
94
void
c_line_color_index(
/*set color */
95
void
*win,
96
C_COL index);
97
void
c_move(
/*move pen */
98
void
*win,
99
double
x,
100
double
y);
101
void
c_draw(
/*move pen */
102
void
*win,
103
double
x,
104
double
y);
105
void
c_make_current(
/*move pen */
106
void
*win);
107
void
c_clear_window(
/*move pen */
108
void
*win);
109
char
window_wait(
ScrollView
* win);
110
void
reverse32(
void
*ptr);
111
void
reverse16(
void
*ptr);
112
113
#endif
ScrollView
Definition:
scrollview.h:102
src
tesseract
src
cutil
callcpp.h
Generated on Wed Nov 7 2018 13:45:54 for tesseract by
1.8.13