224
Pascal 4.0 User’s Guide
10
Compiling with Libraries
Most XView procedures you call are in the libraries
pxview
,
xview
, and
X11
.
To compile an XView program, link the libraries, in order. For example:
hostname% pc my_pascal.p -lpxview -lxview -lolgx -lX11
Header Files
The header files define the necessary data types, constants, and external
procedures necessary to write programs using the XView interface with Pascal.
Names
The names of the header file are the same as the XView C language header files
with the
.h
extension changed to
_p.h
. For example, the Pascal header file
corresponding to the XView file
panel.h
is named
panel_p.h
. Other header
files are
canvas_p.h, text_p.h
, and so on.
In addition to the header files corresponding to the XView headers, there is an
another one,
stddefs_p.h
.
This file defines some basic types that are used by most of the other Pascal
XView header files, and is included by the header files that need it.
Usage
To use header files with Pascal, put in
include
lines for any other header files
you need.
Attribute Procedures
Each class of objects has its own set of attributes. Each attribute has a
predefined (default) value. For example, for the class of scrollbars, there is a
width and a color.
The standard C interface to XView defines two routines,
xv_get()
and
xv_set()
, which get and set attributes of XView objects. These routines take
an arbitrary number and type of parameters and return various types,
depending on its arguments.
Содержание SunSoft Pascal 4.0
Страница 14: ...xiv Pascal 4 0 User s Guide ...
Страница 16: ...xvi Pascal 4 0 User s Guide ...
Страница 30: ...6 Pascal 4 0 User s Guide 1 ...
Страница 160: ...136 Pascal 4 0 User s Guide 6 ...
Страница 268: ...244 Pascal 4 0 User s Guide 11 ...
Страница 320: ...296 Pascal 4 0 User s Guide B ...
Страница 331: ...Index 307 ...
Страница 333: ......