tesseract
4.0.0-1-g2a2b
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
#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
Slate_BLUE
Definition:
callcpp.h:45
Coral
Definition:
callcpp.h:47
Cyan
Definition:
callcpp.h:35
Plum
Definition:
callcpp.h:67
Black
Definition:
callcpp.h:30
c_move
void c_move(void *win, double x, double y)
Definition:
callcpp.cpp:72
c_clear_window
void c_clear_window(void *win)
Definition:
callcpp.cpp:97
Dim_GREY
Definition:
callcpp.h:60
c_make_current
void c_make_current(void *win)
Definition:
callcpp.cpp:90
Gold
Definition:
callcpp.h:50
Violet_RED
Definition:
callcpp.h:70
Indian_RED
Definition:
callcpp.h:68
Wheat
Definition:
callcpp.h:76
White
Definition:
callcpp.h:31
host.h
Dark_GREEN
Definition:
callcpp.h:52
Light_BLUE
Definition:
callcpp.h:40
Khaki
Definition:
callcpp.h:62
Blue
Definition:
callcpp.h:36
Midnight_BLUE
Definition:
callcpp.h:42
Magenta
Definition:
callcpp.h:37
Sandy_BROWN
Definition:
callcpp.h:49
C_COL
C_COL
Definition:
callcpp.h:29
Maroon
Definition:
callcpp.h:63
Aquamarine
Definition:
callcpp.h:38
Dark_OLIVE_GREEN
Definition:
callcpp.h:53
cprintf
void cprintf(const char *format,...)
Definition:
callcpp.cpp:33
Steel_BLUE
Definition:
callcpp.h:46
c_create_window
ScrollView * c_create_window(const char *name, int16_t xpos, int16_t ypos, int16_t xsize, int16_t ysize, double xmin, double xmax, double ymin, double ymax)
Definition:
callcpp.cpp:48
c_line_color_index
void c_line_color_index(void *win, C_COL index)
Definition:
callcpp.cpp:63
Orchid
Definition:
callcpp.h:65
Green_YELLOW
Definition:
callcpp.h:77
Red
Definition:
callcpp.h:32
Green
Definition:
callcpp.h:34
Navy_BLUE
Definition:
callcpp.h:43
Brown
Definition:
callcpp.h:48
Yellow
Definition:
callcpp.h:33
reverse16
void reverse16(void *ptr)
Definition:
callcpp.cpp:131
Violet
Definition:
callcpp.h:75
Dark_SLATE_BLUE
Definition:
callcpp.h:39
Dark_SLATE_GREY
Definition:
callcpp.h:59
Tan
Definition:
callcpp.h:72
Light_GREY
Definition:
callcpp.h:58
Medium_BLUE
Definition:
callcpp.h:41
unichar.h
Lime_GREEN
Definition:
callcpp.h:55
Orange_RED
Definition:
callcpp.h:69
Pale_GREEN
Definition:
callcpp.h:56
reverse32
void reverse32(void *ptr)
Definition:
callcpp.cpp:118
window_wait
char window_wait(ScrollView *win)
Definition:
callcpp.cpp:104
Sky_BLUE
Definition:
callcpp.h:44
Salmon
Definition:
callcpp.h:71
ScrollView
Definition:
scrollview.h:102
Pink
Definition:
callcpp.h:66
params.h
Grey
Definition:
callcpp.h:61
Forest_GREEN
Definition:
callcpp.h:54
GoldENROD
Definition:
callcpp.h:51
Dark_TURQUOISE
Definition:
callcpp.h:74
Yellow_GREEN
Definition:
callcpp.h:57
Turqoise
Definition:
callcpp.h:73
Orange
Definition:
callcpp.h:64
c_draw
void c_draw(void *win, double x, double y)
Definition:
callcpp.cpp:81
tesseract-ocr.master
src
cutil
callcpp.h
Generated on Mon Oct 29 2018 11:03:48 for tesseract by
1.8.14