tesseract  4.1.1
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 "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
Definition: callcpp.h:28
Definition: callcpp.h:64
void c_draw(void *win, double x, double y)
Definition: callcpp.cpp:80
Definition: callcpp.h:46
Definition: callcpp.h:65
Definition: callcpp.h:29
Definition: callcpp.h:30
C_COL
Definition: callcpp.h:27
Definition: callcpp.h:63
void c_clear_window(void *win)
Definition: callcpp.cpp:96
Definition: callcpp.h:32
Definition: callcpp.h:48
Definition: callcpp.h:61
Definition: callcpp.h:60
Definition: callcpp.h:73
void c_move(void *win, double x, double y)
Definition: callcpp.cpp:71
Definition: callcpp.h:70
Definition: callcpp.h:31
Definition: callcpp.h:62
Definition: callcpp.h:69
void c_make_current(void *win)
Definition: callcpp.cpp:89
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
void c_line_color_index(void *win, C_COL index)
Definition: callcpp.cpp:62
Definition: callcpp.h:74
Definition: callcpp.h:45
Definition: callcpp.h:59
Definition: callcpp.h:33
void cprintf(const char *format,...)
Definition: callcpp.cpp:32
char window_wait(ScrollView *win)
Definition: callcpp.cpp:103
Definition: callcpp.h:34