XpGetAttributes
NAMESYNOPSIS
ARGUMENTS
DESCRIPTION
STRUCTURES
DIAGNOSTICS
FILES
SEE ALSO
NAME
XpGetAttributes − Gets an attribute pool from the specified print context.
SYNOPSIS
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
char
*XpGetAttributes ( display, context, type )
Display *display;
XPContext context;
XPAttributes type;
ARGUMENTS
display
Specifies a pointer to the Display structure; returned from XOpenDisplay.
context
The print context from which the attribute pool is to be retrieved.
type |
Specifies the attribute pool. |
DESCRIPTION
XpGetAttributes returns a pool, a COMPOUND_TEXT resource string representing the attribute pool specified by type. The caller is expected to free pool when it is no longer needed using XFree.
The attribute pool (hence the resource string) consists of many name-value pairs (for example, "copy-count: 3"). The syntax of an attribute pool is the same as an X resource file (see "Resource File Syntax" in the Xlib specification).
Valid characters for each name (left hand side) are derived from the Posix which is "a"-"z" and "A"="Z" and"0"-"9" and "_" and "-". Valid characters for each value (right hand side) are all characters except NULL and unescaped NEWLINE, though all predefined values in the X Print Service are confined to X Portable Character Set (XPCS) characters. Non XPCS values are typically limited to localized "description" strings. See XpCreateContext regarding the locale hint for more information on localized values.
If any errors occur, XpGetAttributes returns NULL.
STRUCTURES
The values for
the typedef XPAttributes in <X11/extensions/Print.h>
are:
#define XPJobAttr 1 /∗ get/set */
#define XPDocAttr |
2 /∗ get/set */ | ||||
3 /∗ get/set-subset of XPDocAttr */ | |||||
4 /∗ get only (library) */ | |||||
5 /∗ get only (library), no context needed */ |
DIAGNOSTICS
BadAlloc |
Insufficient memory. | ||
BadValue |
The value specified for type is not valid. | ||
XPBadContext |
The specified print context-id is not valid. |
FILES
<X11/extensions/Print.h>
SEE ALSO
XpCreateContext(3Xp)
More Linux Commands
manpages/yuv2lav.1.html
yuv2lav(1) - encodes lavtool's raw YUV frame streams into MJ
yuv2lav is a simple MJPEG encoder for raw YUV frame streams as they are emitted by lav2yuv(1) or lavpipe(1), for example. It reads its input from stdin and is c
manpages/rescan-scsi-bus.sh.8.html
rescan-scsi-bus.sh(8) script for adding and removing SCSI de
rescan-scsi-bus.sh [options] [host [host ...]] OPTIONS a, alltargets scan all targets, not just currently existing [default: disabled] d enable debug ......
manpages/aa-cleanprof.8.html
aa-cleanprof(8) clean an existing AppArmor security profile.
aa-cleanprof is used to perform a cleanup on one or more profiles. The tool removes any existing superfluous rules (rules that are covered under an include or a
manpages/uniq.1.html
uniq(1) - report or omit repeated lines - Linux manual page
Filter adjacent matching lines from INPUT (or standard input), writing to OUTPUT (or standard output). With no options, matching lines are merged to the first o
manpages/autoreconf.1.html
autoreconf(1) - Update generated configuration files........
Run autoconf (and autoheader, aclocal, automake, autopoint (formerly gettextize), and libtoolize where appropriate) repeatedly to remake the GNU Build System fi
manpages/ins_nwstr.3ncurses.html
ins_nwstr(3ncurses) - insert a wide-character string into a
These routines insert a wchar_t character string (as many characters as will fit on the line) before the character under the cursor. All characters to the right
manpages/netsnmp_session_api.3.html
netsnmp_session_api(3) - netsnmp_session_api functions......
Snmp_sess_init prepares a netsnmp_session that sources transport characteristics and common information that will be used for a set of SNMP transactions. After
manpages/ExtUtils::MM_Cygwin.3pm.html
ExtUtils::MM_Cygwin(3pm) - methods to override UN*X behaviou
See ExtUtils::MM_Unix for a documentation of the methods provided there. os_flavor Were Unix and Cygwin. cflags if configured for dynamic loading, triggers #def
manpages/glColor3fv.3gl.html
glColor3fv(3gl) - set the current color - Linux manual page
The GL stores both a current single-valued color index and a current four-valued RGBA color. glColor sets a new four-valued RGBA color. glColor has two major va
manpages/pitchplay.1.html
pitchplay(1) - wrapper script to play audio tracks with cdda
pitchplay allows playback of audio tracks with cdda2wav with pitches specified in percentage with 100% being the original pitch, 50% being one octave lower, 200
manpages/longjmp.3.html
longjmp(3) - nonlocal jump to a saved stack context.........
longjmp() and setjmp(3) are useful for dealing with errors and interrupts encountered in a low-level subroutine of a program. longjmp() restores the environment
manpages/vtimes.3.html
vtimes(3) - get resource usage (Library - Linux man page)...
getrusage() returns resource usage measures for who, which can be one of the following: RUSAGE_SELF Return resource usage statistics for the calling process, wh
