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 {
32  Red,
72  Tan,
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
Definition: callcpp.h:47
Definition: callcpp.h:35
Definition: callcpp.h:67
Definition: callcpp.h:30
void c_move(void *win, double x, double y)
Definition: callcpp.cpp:72
void c_clear_window(void *win)
Definition: callcpp.cpp:97
void c_make_current(void *win)
Definition: callcpp.cpp:90
Definition: callcpp.h:50
Definition: callcpp.h:76
Definition: callcpp.h:31
Definition: callcpp.h:62
Definition: callcpp.h:36
C_COL
Definition: callcpp.h:29
Definition: callcpp.h:63
void cprintf(const char *format,...)
Definition: callcpp.cpp:33
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
void c_line_color_index(void *win, C_COL index)
Definition: callcpp.cpp:63
Definition: callcpp.h:65
Definition: callcpp.h:32
Definition: callcpp.h:34
Definition: callcpp.h:48
Definition: callcpp.h:33
void reverse16(void *ptr)
Definition: callcpp.cpp:131
Definition: callcpp.h:75
Definition: callcpp.h:72
void reverse32(void *ptr)
Definition: callcpp.cpp:118
char window_wait(ScrollView *win)
Definition: callcpp.cpp:104
Definition: callcpp.h:71
Definition: callcpp.h:66
Definition: callcpp.h:61
Definition: callcpp.h:64
void c_draw(void *win, double x, double y)
Definition: callcpp.cpp:81