background image
Functional specification
24
CDE/Motif PST
CDEnext
2.6.2
Long Description
NAME
XpGetScreenOfContext - get the screen associated with the current print context
SYNOPSIS
#include <X11/extensions/Print.h>
Screen *XpGetScreenOfContext(
Display
*display,
XPContext
print_context
)
ARGUMENTS
display
Specifies a pointer to the
Display
structure; returned from
XOpenDisplay
.
print_context
A pre-existing print context.
RETURN VALUE
A pointer to the associated screen.
DESCRIPTION
XpGetScreenOfContext
returns the screen that is associated with the print context. This call must be
made after
XpStartDoc
(see
XpCreateContext
) to determine which specific screen X-resources
must be created on.
ERRORS/WARNINGS
This function can generate one of the following errors:
XPBadContext
The specified print context id is not valid.
SEE ALSO
XpCreateContext
2.7
XpGetPageDimensions
2.7.1
Short Description
Get the page dimensions for the current printer settings.