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