Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
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
Grey
Definition:
callcpp.h:64
Plum
Definition:
callcpp.h:70
Slate_BLUE
Definition:
callcpp.h:48
Maroon
Definition:
callcpp.h:66
Dark_SLATE_BLUE
Definition:
callcpp.h:42
Yellow_GREEN
Definition:
callcpp.h:60
Cyan
Definition:
callcpp.h:38
Orange_RED
Definition:
callcpp.h:72
c_move
void c_move(void *win, double x, double y)
Definition:
callcpp.cpp:79
Turqoise
Definition:
callcpp.h:76
White
Definition:
callcpp.h:34
Dark_OLIVE_GREEN
Definition:
callcpp.h:56
Green
Definition:
callcpp.h:37
Dark_GREEN
Definition:
callcpp.h:55
c_line_color_index
void c_line_color_index(void *win, C_COL index)
Definition:
callcpp.cpp:70
Orange
Definition:
callcpp.h:67
Black
Definition:
callcpp.h:33
unichar.h
reverse32
void reverse32(void *ptr)
Definition:
callcpp.cpp:127
Gold
Definition:
callcpp.h:53
Magenta
Definition:
callcpp.h:40
Red
Definition:
callcpp.h:35
Light_GREY
Definition:
callcpp.h:61
Orchid
Definition:
callcpp.h:68
Dark_TURQUOISE
Definition:
callcpp.h:77
window_wait
char window_wait(ScrollView *win)
Definition:
callcpp.cpp:111
Pink
Definition:
callcpp.h:69
reverse16
void reverse16(void *ptr)
Definition:
callcpp.cpp:140
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
name
name_table name
Definition:
GlyphLessFont.c:308
Dark_SLATE_GREY
Definition:
callcpp.h:62
Steel_BLUE
Definition:
callcpp.h:49
Sky_BLUE
Definition:
callcpp.h:47
GoldENROD
Definition:
callcpp.h:54
Violet
Definition:
callcpp.h:78
Midnight_BLUE
Definition:
callcpp.h:45
params.h
Tan
Definition:
callcpp.h:75
Sandy_BROWN
Definition:
callcpp.h:52
C_COL
C_COL
Definition:
callcpp.h:32
Navy_BLUE
Definition:
callcpp.h:46
Brown
Definition:
callcpp.h:51
Yellow
Definition:
callcpp.h:36
Blue
Definition:
callcpp.h:39
Forest_GREEN
Definition:
callcpp.h:57
c_clear_window
void c_clear_window(void *win)
Definition:
callcpp.cpp:104
Green_YELLOW
Definition:
callcpp.h:80
Lime_GREEN
Definition:
callcpp.h:58
c_draw
void c_draw(void *win, double x, double y)
Definition:
callcpp.cpp:88
Pale_GREEN
Definition:
callcpp.h:59
Aquamarine
Definition:
callcpp.h:41
host.h
Wheat
Definition:
callcpp.h:79
cprintf
void cprintf(const char *format,...)
Definition:
callcpp.cpp:40
ScrollView
Definition:
scrollview.h:102
c_make_current
void c_make_current(void *win)
Definition:
callcpp.cpp:97
Light_BLUE
Definition:
callcpp.h:43
Dim_GREY
Definition:
callcpp.h:63
Khaki
Definition:
callcpp.h:65
Violet_RED
Definition:
callcpp.h:73
Salmon
Definition:
callcpp.h:74
Indian_RED
Definition:
callcpp.h:71
Coral
Definition:
callcpp.h:50
inT16
short inT16
Definition:
host.h:100
Medium_BLUE
Definition:
callcpp.h:44
cutil
callcpp.h
Generated on Mon Jul 20 2015 18:37:54 by
1.8.8