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