"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Xlibscm.info" between
scm-5f2.zip and scm-5f3.zip

About: SCM is a Scheme Language Interpreter.

Xlibscm.info  (scm-5f2):Xlibscm.info  (scm-5f3)
This is Xlibscm.info, produced by makeinfo version 4.13 from This is Xlibscm.info, produced by makeinfo version 6.5 from
Xlibscm.texi. Xlibscm.texi.
This manual documents the X Interface for SCM Language (version This manual documents the X Interface for SCM Language (version 5f3,
5f2, January 2015). February 2020).
Copyright (C) 1999 Free Software Foundation, Inc. Copyright (C) 1999 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission this manual provided the copyright notice and this permission
notice are preserved on all copies. notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of Permission is granted to copy and distribute modified versions of
this manual under the conditions for verbatim copying, provided this manual under the conditions for verbatim copying, provided
that the entire resulting derived work is distributed under the that the entire resulting derived work is distributed under the
terms of a permission notice identical to this one. terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for manual into another language, under the above conditions for
modified versions, except that this permission notice may be modified versions, except that this permission notice may be stated
stated in a translation approved by the author. in a translation approved by the author.
INFO-DIR-SECTION The Algorithmic Language Scheme INFO-DIR-SECTION The Algorithmic Language Scheme
START-INFO-DIR-ENTRY START-INFO-DIR-ENTRY
* XlibScm: (XlibScm). SCM Language X Interface. * XlibScm: (XlibScm). SCM Language X Interface.
END-INFO-DIR-ENTRY END-INFO-DIR-ENTRY
 
File: Xlibscm.info, Node: Top, Next: XlibScm, Prev: (dir), Up: (dir) File: Xlibscm.info, Node: Top, Next: XlibScm, Prev: (dir), Up: (dir)
XlibScm XlibScm
******* *******
This manual documents the X Interface for SCM Language (version This manual documents the X Interface for SCM Language (version 5f3,
5f2, January 2015). February 2020).
Copyright (C) 1999 Free Software Foundation, Inc. Copyright (C) 1999 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission this manual provided the copyright notice and this permission
notice are preserved on all copies. notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of Permission is granted to copy and distribute modified versions of
this manual under the conditions for verbatim copying, provided this manual under the conditions for verbatim copying, provided
that the entire resulting derived work is distributed under the that the entire resulting derived work is distributed under the
terms of a permission notice identical to this one. terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for manual into another language, under the above conditions for
modified versions, except that this permission notice may be modified versions, except that this permission notice may be stated
stated in a translation approved by the author. in a translation approved by the author.
* Menu: * Menu:
* XlibScm:: * XlibScm::
* Display and Screens:: * Display and Screens::
* Drawables:: * Drawables::
* Graphics Context:: * Graphics Context::
* Cursor:: * Cursor::
* Colormap:: * Colormap::
* Rendering:: * Rendering::
* Images:: * Images::
* Event:: * Event::
* Indexes:: * Indexes::
 
File: Xlibscm.info, Node: XlibScm, Next: Display and Screens, Prev: Top, Up: Top File: Xlibscm.info, Node: XlibScm, Next: Display and Screens, Prev: Top, Up: Top
1 XlibScm 1 XlibScm
********* *********
"XlibScm" is a SCM interface to "X". The X Window System is a "XlibScm" is a SCM interface to "X". The X Window System is a
network-transparent window system that was designed at MIT. SCM is a network-transparent window system that was designed at MIT. SCM is a
portable Scheme implementation written in C. The interface can be portable Scheme implementation written in C. The interface can be
compiled into SCM or, on those platforms supporting dynamic linking, compiled into SCM or, on those platforms supporting dynamic linking,
compiled separately and loaded with `(require 'Xlib)'. compiled separately and loaded with '(require 'Xlib)'.
Much of this X documentation is dervied from: Much of this X documentation is dervied from:
Xlib - C Language X Interface Xlib - C Language X Interface
X Consortium Standard X Consortium Standard
X Version 11, Release 6.3 X Version 11, Release 6.3
The X Window System is a trademark of X Consortium, Inc. The X Window System is a trademark of X Consortium, Inc.
TekHVC is a trademark of Tektronix, Inc. TekHVC is a trademark of Tektronix, Inc.
skipping to change at line 144 skipping to change at line 143
********************* *********************
-- Function: x:open-display display-name -- Function: x:open-display display-name
DISPLAY-NAME Specifies the hardware display name, which determines DISPLAY-NAME Specifies the hardware display name, which determines
the display and communications domain to be used. On a the display and communications domain to be used. On a
POSIX-conformant system, if the display-name is #f, it defaults to POSIX-conformant system, if the display-name is #f, it defaults to
the value of the DISPLAY environment variable. the value of the DISPLAY environment variable.
The encoding and interpretation of DISPLAY-NAME is The encoding and interpretation of DISPLAY-NAME is
implementation-dependent. On POSIX-conformant systems, the implementation-dependent. On POSIX-conformant systems, the
DISPLAY-NAME or DISPLAY environment variable can be a string in DISPLAY-NAME or DISPLAY environment variable can be a string in the
the format: format:
-- Special Form: hostname:number.screen-number -- Special Form: hostname:number.screen-number
HOSTNAME specifies the name of the host machine on which the HOSTNAME specifies the name of the host machine on which the
display is physically attached. Follow the HOSTNAME with display is physically attached. Follow the HOSTNAME with
either a single colon (:) or a double colon (::). either a single colon (:) or a double colon (::).
NUMBER specifies the number of the display server on that host NUMBER specifies the number of the display server on that host
machine. You may optionally follow this display number with machine. You may optionally follow this display number with a
a period (.). A single CPU can have more than one display. period (.). A single CPU can have more than one display.
Multiple displays are usually numbered starting with zero. Multiple displays are usually numbered starting with zero.
SCREEN-NUMBER specifies the screen to be used on that server. SCREEN-NUMBER specifies the screen to be used on that server.
Multiple screens can be controlled by a single X server. The Multiple screens can be controlled by a single X server. The
SCREEN-NUMBER sets an internal variable that can be accessed SCREEN-NUMBER sets an internal variable that can be accessed
by using the x:default-screen procedure. by using the x:default-screen procedure.
-- Function: x:close display -- Function: x:close display
DISPLAY specifies the connection to the X server. DISPLAY specifies the connection to the X server.
The `x:close' function closes the connection to the X server for The 'x:close' function closes the connection to the X server for
the DISPLAY specified and destroys all windows, resource IDs the DISPLAY specified and destroys all windows, resource IDs
(Window, Font, Pixmap, Colormap, Cursor, and GContext), or other (Window, Font, Pixmap, Colormap, Cursor, and GContext), or other
resources that the client has created on this display, unless the resources that the client has created on this display, unless the
close-down mode of the resource has been changed (see close-down mode of the resource has been changed (see
`x:set-close-down-mode'). Therefore, these windows, resource IDs, 'x:set-close-down-mode'). Therefore, these windows, resource IDs,
and other resources should not be used again or an error will be and other resources should not be used again or an error will be
generated. Before exiting, you should call X:CLOSE-DISPLAY or generated. Before exiting, you should call X:CLOSE-DISPLAY or
X:FLUSH explicitly so that any pending errors are reported. X:FLUSH explicitly so that any pending errors are reported.
-- Function: x:protocol-version display -- Function: x:protocol-version display
Returns cons of the major version number (11) of the X protocol Returns cons of the major version number (11) of the X protocol
associated with the connected DISPLAY and the minor protocol associated with the connected DISPLAY and the minor protocol
revision number of the X server. revision number of the X server.
-- Function: x:server-vendor display -- Function: x:server-vendor display
skipping to change at line 195 skipping to change at line 195
-- Function: x:vendor-release display -- Function: x:vendor-release display
Returns a number related to a vendor's release of the X server. Returns a number related to a vendor's release of the X server.
A display consists of one or more "Screen"s. Each screen has a A display consists of one or more "Screen"s. Each screen has a
"root-window", "default-graphics-context", and "colormap". "root-window", "default-graphics-context", and "colormap".
-- Function: x:screen-count display -- Function: x:screen-count display
Returns the number of available screens. Returns the number of available screens.
-- Function: x:default-screen display -- Function: x:default-screen display
Returns the default screen number specified by the `x:open-display' Returns the default screen number specified by the 'x:open-display'
function. Use this screen number in applications which will use function. Use this screen number in applications which will use
only a single screen. only a single screen.
-- Function: x:root-window display screen-number -- Function: x:root-window display screen-number
-- Function: x:root-window display -- Function: x:root-window display
SCREEN-NUMBER, if givien, specifies the appropriate screen number SCREEN-NUMBER, if givien, specifies the appropriate screen number
on the host server. Otherwise the default-screen for DISPLAY is on the host server. Otherwise the default-screen for DISPLAY is
used. used.
Returns the root window for the specified SCREEN-NUMBER. Use Returns the root window for the specified SCREEN-NUMBER. Use
`x:root-window' for functions that need a drawable of a particular 'x:root-window' for functions that need a drawable of a particular
screen or for creating top-level windows. screen or for creating top-level windows.
-- Function: x:root-window window -- Function: x:root-window window
Returns the root window for the specified WINDOW's screen. Returns the root window for the specified WINDOW's screen.
-- Function: x:default-colormap display screen-number -- Function: x:default-colormap display screen-number
-- Function: x:default-colormap display -- Function: x:default-colormap display
-- Function: x:default-colormap window -- Function: x:default-colormap window
Returns the default colormap of the specified screen. Returns the default colormap of the specified screen.
skipping to change at line 242 skipping to change at line 242
The "Visual" type describes possible colormap depths and arrangements. The "Visual" type describes possible colormap depths and arrangements.
-- Function: x:default-visual display screen-number -- Function: x:default-visual display screen-number
-- Function: x:default-visual display -- Function: x:default-visual display
-- Function: x:default-visual window -- Function: x:default-visual window
Returns the default Visual type for the specified screen. Returns the default Visual type for the specified screen.
-- Function: x:make-visual display depth class -- Function: x:make-visual display depth class
-- Function: x:make-visual window depth class -- Function: x:make-visual window depth class
The integer DEPTH specifies the number of bits per pixel. The The integer DEPTH specifies the number of bits per pixel. The
CLASS argument specifies one of the possible visual classes for a CLASS argument specifies one of the possible visual classes for a
screen: screen:
* x:Static-Gray * x:Static-Gray
* x:Static-Color * x:Static-Color
* x:True-Color * x:True-Color
* x:Gray-Scale * x:Gray-Scale
* x:Pseudo-Color * x:Pseudo-Color
* x:Direct-Color * x:Direct-Color
`X:make-visual' returns a visual type for the screen specified by 'X:make-visual' returns a visual type for the screen specified by
DISPLAY or WINDOW if successful; #f if not. DISPLAY or WINDOW if successful; #f if not.
-- Function: x:visual-class visual -- Function: x:visual-class visual
-- Function: x:visual-class screen -- Function: x:visual-class screen
-- Function: x:visual-class display -- Function: x:visual-class display
Returns the (integer) visual class of its argument. Returns the (integer) visual class of its argument.
-- Function: x:visual-geometry visual -- Function: x:visual-geometry visual
-- Function: x:visual-geometry screen -- Function: x:visual-geometry screen
-- Function: x:visual-geometry display -- Function: x:visual-geometry display
Returns a list of the: Returns a list of the:
* red_mask * red_mask
* green_mask * green_mask
* blue_mask * blue_mask
* colormap_size * colormap_size
-- Function: x:screen-cells display screen-number -- Function: x:screen-cells display screen-number
-- Function: x:screen-cells display -- Function: x:screen-cells display
-- Function: x:screen-cells window -- Function: x:screen-cells window
Returns the number of entries in the default colormap. Returns the number of entries in the default colormap.
-- Function: x:screen-depth display screen-number -- Function: x:screen-depth display screen-number
Returns the depth of the root window of the specified screen. Returns the depth of the root window of the specified screen.
skipping to change at line 364 skipping to change at line 357
same as the parent, but the parent must not be a window of class same as the parent, but the parent must not be a window of class
x:Input-Only. For an x:Input-Only window, the DEPTH must be zero, x:Input-Only. For an x:Input-Only window, the DEPTH must be zero,
and the VISUAL must be one supported by the screen. and the VISUAL must be one supported by the screen.
The returned window will have the attributes specified by The returned window will have the attributes specified by
FIELD-NAMEs and VALUE. FIELD-NAMEs and VALUE.
-- Function: x:create-window window position size border-width border -- Function: x:create-window window position size border-width border
background background
The returned window inherits its depth, class, and visual from its The returned window inherits its depth, class, and visual from its
parent. All other window attributes, except BACKGROUND and parent. All other window attributes, except BACKGROUND and BORDER,
BORDER, have their default values. have their default values.
-- Function: x:create-pixmap drawable size depth -- Function: x:create-pixmap drawable size depth
-- Function: x:create-pixmap display size depth -- Function: x:create-pixmap display size depth
SIZE is a list, vector, or pair of nonzero integers specifying the SIZE is a list, vector, or pair of nonzero integers specifying the
width and height desired in the new pixmap. width and height desired in the new pixmap.
X:CREATE-PIXMAP returns a new pixmap of the width, height, and X:CREATE-PIXMAP returns a new pixmap of the width, height, and
DEPTH specified. It is valid to pass an x:Input-Only window to the DEPTH specified. It is valid to pass an x:Input-Only window to the
drawable argument. The DEPTH argument must be one of the depths drawable argument. The DEPTH argument must be one of the depths
supported by the screen of the specified DRAWABLE. supported by the screen of the specified DRAWABLE.
-- Function: x:close window -- Function: x:close window
Destroys the specified WINDOW as well as all of its subwindows and Destroys the specified WINDOW as well as all of its subwindows and
skipping to change at line 398 skipping to change at line 392
mapped WINDOW will generate x:Expose events on other windows that mapped WINDOW will generate x:Expose events on other windows that
were obscured by the window being destroyed. were obscured by the window being destroyed.
-- Function: x:close pixmap -- Function: x:close pixmap
Deletes the association between the PIXMAP and its storage. The X Deletes the association between the PIXMAP and its storage. The X
server frees the pixmap storage when there are no references to it. server frees the pixmap storage when there are no references to it.
-- Function: x:window-geometry drawable -- Function: x:window-geometry drawable
Returns a list of: Returns a list of:
coordinates coordinates
`list' of x and y coordinates that define the location of the 'list' of x and y coordinates that define the location of the
DRAWABLE. For a window, these coordinates specify the DRAWABLE. For a window, these coordinates specify the
upper-left outer corner relative to its parent's origin. For upper-left outer corner relative to its parent's origin. For
pixmaps, these coordinates are always zero. pixmaps, these coordinates are always zero.
size
size 'list' of the DRAWABLE's dimensions (width and height). For a
`list' of the DRAWABLE's dimensions (width and height). For window, these dimensions specify the inside size, not
a window, these dimensions specify the inside size, not
including the border. including the border.
border-width
border-width The border width in pixels. If the DRAWABLE is a pixmap, this
The border width in pixels. If the DRAWABLE is a pixmap, is zero.
this is zero. depth
depth
The depth of the DRAWABLE (bits per pixel for the object). The depth of the DRAWABLE (bits per pixel for the object).
-- Function: x:window-geometry-set! window field-name value ... -- Function: x:window-geometry-set! window field-name value ...
Changes the "Configuration" components specified by FIELD-NAMEs Changes the "Configuration" components specified by FIELD-NAMEs for
for the specified WINDOW. the specified WINDOW.
These are the attributes settable by `x:window-geometry-set!'. That These are the attributes settable by 'x:window-geometry-set!'. That
these attributes are encoded by small integers - just like those of the these attributes are encoded by small integers - just like those of the
next section. Be warned therefore that confusion of attribute names next section. Be warned therefore that confusion of attribute names
will likely not signal errors, just cause mysterious behavior. will likely not signal errors, just cause mysterious behavior.
-- Attribute: x:CWX -- Attribute: x:CWX
-- Attribute: x:CWY -- Attribute: x:CWY
-- Attribute: x:CW-Width -- Attribute: x:CW-Width
-- Attribute: x:CW-Height -- Attribute: x:CW-Height
The x:CWX and x:CYY members are used to set the window's x and y The x:CWX and x:CYY members are used to set the window's x and y
coordinates, which are relative to the parent's origin and coordinates, which are relative to the parent's origin and indicate
indicate the position of the upper-left outer corner of the the position of the upper-left outer corner of the window. The
window. The x:CW-Width and x:CW-Height members are used to set x:CW-Width and x:CW-Height members are used to set the inside size
the inside size of the window, not including the border, and must of the window, not including the border, and must be nonzero.
be nonzero. Attempts to configure a root window have no effect. Attempts to configure a root window have no effect.
If a window's size actually changes, the window's subwindows move If a window's size actually changes, the window's subwindows move
according to their window gravity. Depending on the window's bit according to their window gravity. Depending on the window's bit
gravity, the contents of the window also may be moved gravity, the contents of the window also may be moved
-- Attribute: x:CW-Border-Width -- Attribute: x:CW-Border-Width
The integer x:CW-Border-Width is used to set the width of the The integer x:CW-Border-Width is used to set the width of the
border in pixels. Note that setting just the border width leaves border in pixels. Note that setting just the border width leaves
the outer-left corner of the window in a fixed position but moves the outer-left corner of the window in a fixed position but moves
the absolute position of the window's origin. It is an error to the absolute position of the window's origin. It is an error to
skipping to change at line 459 skipping to change at line 450
operations. operations.
-- Attribute: x:CW-Stack-Mode -- Attribute: x:CW-Stack-Mode
The x:CW-Stack-Mode member is used to set how the window is to be The x:CW-Stack-Mode member is used to set how the window is to be
restacked and can be set to x:Above, x:Below, x:Top-If, restacked and can be set to x:Above, x:Below, x:Top-If,
x:Bottom-If, or x:Opposite. x:Bottom-If, or x:Opposite.
If a sibling and a stack-mode are specified, the window is restacked as If a sibling and a stack-mode are specified, the window is restacked as
follows: follows:
`x:Above' 'x:Above'
The window is placed just above the sibling. The window is placed just above the sibling.
'x:Below'
`x:Below'
The window is placed just below the sibling. The window is placed just below the sibling.
'x:Top-If'
`x:Top-If' If the sibling occludes the window, the window is placed at the top
If the sibling occludes the window, the window is placed at the of the stack.
top of the stack. 'x:Bottom-If'
`x:Bottom-If'
If the window occludes the sibling, the window is placed at the If the window occludes the sibling, the window is placed at the
bottom of the stack. bottom of the stack.
'x:Opposite'
`x:Opposite' If the sibling occludes the window, the window is placed at the top
If the sibling occludes the window, the window is placed at the of the stack. If the window occludes the sibling, the window is
top of the stack. If the window occludes the sibling, the window placed at the bottom of the stack.
is placed at the bottom of the stack.
If a stack-mode is specified but no sibling is specified, the window is If a stack-mode is specified but no sibling is specified, the window is
restacked as follows: restacked as follows:
`x:Above' 'x:Above'
The window is placed at the top of the stack. The window is placed at the top of the stack.
'x:Below'
`x:Below'
The window is placed at the bottom of the stack. The window is placed at the bottom of the stack.
'x:Top-If'
`x:Top-If' If any sibling occludes the window, the window is placed at the top
If any sibling occludes the window, the window is placed at the of the stack.
top of the stack. 'x:Bottom-If'
`x:Bottom-If'
If the window occludes any sibling, the window is placed at the If the window occludes any sibling, the window is placed at the
bottom of the stack. bottom of the stack.
'x:Opposite'
`x:Opposite' If any sibling occludes the window, the window is placed at the top
If any sibling occludes the window, the window is placed at the of the stack. If the window occludes any sibling, the window is
top of the stack. If the window occludes any sibling, the window placed at the bottom of the stack.
is placed at the bottom of the stack.
 
File: Xlibscm.info, Node: Window Attributes, Next: Window Properties and Visib ility, Prev: Windows and Pixmaps, Up: Drawables File: Xlibscm.info, Node: Window Attributes, Next: Window Properties and Visib ility, Prev: Windows and Pixmaps, Up: Drawables
3.2 Window Attributes 3.2 Window Attributes
===================== =====================
-- Function: x:window-set! window field-name value ... -- Function: x:window-set! window field-name value ...
Changes the components specified by FIELD-NAMEs for the specified Changes the components specified by FIELD-NAMEs for the specified
WINDOW. The restrictions are the same as for `x:create-window'. WINDOW. The restrictions are the same as for 'x:create-window'.
The order in which components are verified and altered is server The order in which components are verified and altered is server
dependent. If an error occurs, a subset of the components may dependent. If an error occurs, a subset of the components may have
have been altered. been altered.
The `x:create-window' and `x:window-set!' procedures take five and one The 'x:create-window' and 'x:window-set!' procedures take five and one
argument (respectively) followed by pairs of arguments, where the first argument (respectively) followed by pairs of arguments, where the first
is one of the property-name symbols (or its top-level value) listed is one of the property-name symbols (or its top-level value) listed
below; and the second is the value to associate with that property. below; and the second is the value to associate with that property.
-- Attribute: x:CW-Back-Pixmap -- Attribute: x:CW-Back-Pixmap
Sets the background pixmap of the WINDOW to the specified pixmap. Sets the background pixmap of the WINDOW to the specified pixmap.
The background pixmap can immediately be freed if no further The background pixmap can immediately be freed if no further
explicit references to it are to be made. If x:Parent-Relative is explicit references to it are to be made. If x:Parent-Relative is
specified, the background pixmap of the window's parent is used, specified, the background pixmap of the window's parent is used, or
or on the root window, the default background is restored. It is on the root window, the default background is restored. It is an
an error to perform this operation on an x:Input-Only window. If error to perform this operation on an x:Input-Only window. If the
the background is set to #f or None, the window has no defined background is set to #f or None, the window has no defined
background. background.
-- Attribute: x:CW-Back-Pixel -- Attribute: x:CW-Back-Pixel
Sets the background of the WINDOW to the specified pixel value. Sets the background of the WINDOW to the specified pixel value.
Changing the background does not cause the WINDOW contents to be Changing the background does not cause the WINDOW contents to be
changed. It is an error to perform this operation on an changed. It is an error to perform this operation on an
x:Input-Only window. x:Input-Only window.
-- Attribute: x:CW-Border-Pixmap -- Attribute: x:CW-Border-Pixmap
Sets the border pixmap of the WINDOW to the pixmap you specify. Sets the border pixmap of the WINDOW to the pixmap you specify.
The border pixmap can be freed if no further explicit references The border pixmap can be freed if no further explicit references to
to it are to be made. If you specify x:Copy-From-Parent, a copy it are to be made. If you specify x:Copy-From-Parent, a copy of
of the parent window's border pixmap is used. It is an error to the parent window's border pixmap is used. It is an error to
perform this operation on an x:Input-Only WINDOW. perform this operation on an x:Input-Only WINDOW.
-- Attribute: x:CW-Border-Pixel -- Attribute: x:CW-Border-Pixel
Sets the border of the WINDOW to the pixel VALUE. It is an error Sets the border of the WINDOW to the pixel VALUE. It is an error
to perform this operation on an x:Input-Only window. to perform this operation on an x:Input-Only window.
-- Attribute: x:CW-Bit-Gravity -- Attribute: x:CW-Bit-Gravity
-- Attribute: x:CW-Win-Gravity -- Attribute: x:CW-Win-Gravity
The bit gravity of a window defines which region of the window The bit gravity of a window defines which region of the window
should be retained when an x:Input-Output window is resized. The should be retained when an x:Input-Output window is resized. The
default value for the bit-gravity attribute is x:Forget-Gravity. default value for the bit-gravity attribute is x:Forget-Gravity.
The window gravity of a window allows you to define how the The window gravity of a window allows you to define how the
x:Input-Output or x:Input-Only window should be repositioned if x:Input-Output or x:Input-Only window should be repositioned if its
its parent is resized. The default value for the win-gravity parent is resized. The default value for the win-gravity attribute
attribute is x:North-West-Gravity. is x:North-West-Gravity.
If the inside width or height of a window is not changed and if the If the inside width or height of a window is not changed and if the
window is moved or its border is changed, then the contents of the window is moved or its border is changed, then the contents of the
window are not lost but move with the window. Changing the inside window are not lost but move with the window. Changing the inside
width or height of the window causes its contents to be moved or width or height of the window causes its contents to be moved or
lost (depending on the bit-gravity of the window) and causes lost (depending on the bit-gravity of the window) and causes
children to be reconfigured (depending on their win-gravity). For children to be reconfigured (depending on their win-gravity). For
a change of width and height, the (x, y) pairs are defined: a change of width and height, the (x, y) pairs are defined:
Gravity Direction Coordinates Gravity Direction Coordinates
x:North-West-Gravity (0, 0) x:North-West-Gravity (0, 0)
x:North-Gravity (Width/2, 0) x:North-Gravity (Width/2, 0)
x:North-East-Gravity (Width, 0) x:North-East-Gravity (Width, 0)
x:West-Gravity (0, Height/2) x:West-Gravity (0, Height/2)
x:Center-Gravity (Width/2, Height/2) x:Center-Gravity (Width/2, Height/2)
x:East-Gravity (Width, Height/2) x:East-Gravity (Width, Height/2)
x:South-West-Gravity (0, Height) x:South-West-Gravity (0, Height)
x:South-Gravity (Width/2, Height) x:South-Gravity (Width/2, Height)
x:South-East-Gravity (Width, Height) x:South-East-Gravity (Width, Height)
When a window with one of these bit-gravity values is resized, the When a window with one of these bit-gravity values is resized, the
corresponding pair defines the change in position of each pixel in corresponding pair defines the change in position of each pixel in
the window. When a window with one of these win-gravities has its the window. When a window with one of these win-gravities has its
parent window resized, the corresponding pair defines the change parent window resized, the corresponding pair defines the change in
in position of the window within the parent. When a window is so position of the window within the parent. When a window is so
repositioned, a x:Gravity-Notify event is generated (see section repositioned, a x:Gravity-Notify event is generated (see section
10.10.5). 10.10.5).
A bit-gravity of x:Static-Gravity indicates that the contents or A bit-gravity of x:Static-Gravity indicates that the contents or
origin should not move relative to the origin of the root window. origin should not move relative to the origin of the root window.
If the change in size of the window is coupled with a change in If the change in size of the window is coupled with a change in
position (x, y), then for bit-gravity the change in position of position (x, y), then for bit-gravity the change in position of
each pixel is (-x, -y), and for win-gravity the change in position each pixel is (-x, -y), and for win-gravity the change in position
of a child when its parent is so resized is (-x, -y). Note that of a child when its parent is so resized is (-x, -y). Note that
x:Static-Gravity still only takes effect when the width or height x:Static-Gravity still only takes effect when the width or height
skipping to change at line 617 skipping to change at line 600
-- Attribute: x:CW-Backing-Store -- Attribute: x:CW-Backing-Store
Some implementations of the X server may choose to maintain the Some implementations of the X server may choose to maintain the
contents of x:Input-Output windows. If the X server maintains the contents of x:Input-Output windows. If the X server maintains the
contents of a window, the off-screen saved pixels are known as contents of a window, the off-screen saved pixels are known as
backing store. The backing store advises the X server on what to backing store. The backing store advises the X server on what to
do with the contents of a window. The backing-store attribute can do with the contents of a window. The backing-store attribute can
be set to x:Not-Useful (default), x:When-Mapped, or x:Always. A be set to x:Not-Useful (default), x:When-Mapped, or x:Always. A
backing-store attribute of x:Not-Useful advises the X server that backing-store attribute of x:Not-Useful advises the X server that
maintaining contents is unnecessary, although some X maintaining contents is unnecessary, although some X
implementations may still choose to maintain contents and, implementations may still choose to maintain contents and,
therefore, not generate x:Expose events. A backing-store therefore, not generate x:Expose events. A backing-store attribute
attribute of x:When-Mapped advises the X server that maintaining of x:When-Mapped advises the X server that maintaining contents of
contents of obscured regions when the window is mapped would be obscured regions when the window is mapped would be beneficial. In
beneficial. In this case, the server may generate an x:Expose this case, the server may generate an x:Expose event when the
event when the window is created. A backing-store attribute of window is created. A backing-store attribute of x:Always advises
x:Always advises the X server that maintaining contents even when the X server that maintaining contents even when the window is
the window is unmapped would be beneficial. Even if the window is unmapped would be beneficial. Even if the window is larger than
larger than its parent, this is a request to the X server to its parent, this is a request to the X server to maintain complete
maintain complete contents, not just the region within the parent contents, not just the region within the parent window boundaries.
window boundaries. While the X server maintains the window's While the X server maintains the window's contents, x:Expose events
contents, x:Expose events normally are not generated, but the X normally are not generated, but the X server may stop maintaining
server may stop maintaining contents at any time. contents at any time.
When the contents of obscured regions of a window are being When the contents of obscured regions of a window are being
maintained, regions obscured by noninferior windows are included maintained, regions obscured by noninferior windows are included in
in the destination of graphics requests (and source, when the the destination of graphics requests (and source, when the window
window is the source). However, regions obscured by inferior is the source). However, regions obscured by inferior windows are
windows are not included. not included.
-- Attribute: x:CW-Backing-Planes -- Attribute: x:CW-Backing-Planes
-- Attribute: x:CW-Backing-Pixel -- Attribute: x:CW-Backing-Pixel
You can set backing planes to indicate (with bits set to 1) which You can set backing planes to indicate (with bits set to 1) which
bit planes of an x:Input-Output window hold dynamic data that must bit planes of an x:Input-Output window hold dynamic data that must
be preserved in backing store and during save unders. The default be preserved in backing store and during save unders. The default
value for the backing-planes attribute is all bits set to 1. You value for the backing-planes attribute is all bits set to 1. You
can set backing pixel to specify what bits to use in planes not can set backing pixel to specify what bits to use in planes not
covered by backing planes. The default value for the covered by backing planes. The default value for the backing-pixel
backing-pixel attribute is all bits set to 0. The X server is attribute is all bits set to 0. The X server is free to save only
free to save only the specified bit planes in the backing store or the specified bit planes in the backing store or the save under and
the save under and is free to regenerate the remaining planes with is free to regenerate the remaining planes with the specified pixel
the specified pixel value. Any extraneous bits in these values value. Any extraneous bits in these values (that is, those bits
(that is, those bits beyond the specified depth of the window) may beyond the specified depth of the window) may be simply ignored.
be simply ignored. If you request backing store or save unders, If you request backing store or save unders, you should use these
you should use these members to minimize the amount of off-screen members to minimize the amount of off-screen memory required to
memory required to store your window. store your window.
-- Attribute: x:CW-Override-Redirect -- Attribute: x:CW-Override-Redirect
To control window placement or to add decoration, a window manager To control window placement or to add decoration, a window manager
often needs to intercept (redirect) any map or configure request. often needs to intercept (redirect) any map or configure request.
Pop-up windows, however, often need to be mapped without a window Pop-up windows, however, often need to be mapped without a window
manager getting in the way. To control whether an x:Input-Output manager getting in the way. To control whether an x:Input-Output
or x:Input-Only window is to ignore these structure control or x:Input-Only window is to ignore these structure control
facilities, use the override-redirect flag. facilities, use the override-redirect flag.
The override-redirect flag specifies whether map and configure The override-redirect flag specifies whether map and configure
requests on this window should override a requests on this window should override a
x:Substructure-Redirect-Mask on the parent. You can set the x:Substructure-Redirect-Mask on the parent. You can set the
override-redirect flag to #t or #f (default). Window managers use override-redirect flag to #t or #f (default). Window managers use
this information to avoid tampering with pop-up windows. this information to avoid tampering with pop-up windows.
-- Attribute: x:CW-Save-Under -- Attribute: x:CW-Save-Under
Some server implementations may preserve contents of Some server implementations may preserve contents of x:Input-Output
x:Input-Output windows under other x:Input-Output windows. This windows under other x:Input-Output windows. This is not the same
is not the same as preserving the contents of a window for you. as preserving the contents of a window for you. You may get better
You may get better visual appeal if transient windows (for visual appeal if transient windows (for example, pop-up menus)
example, pop-up menus) request that the system preserve the screen request that the system preserve the screen contents under them, so
contents under them, so the temporarily obscured applications do the temporarily obscured applications do not have to repaint.
not have to repaint.
You can set the save-under flag to True or False (default). If You can set the save-under flag to True or False (default). If
save-under is True, the X server is advised that, when this window save-under is True, the X server is advised that, when this window
is mapped, saving the contents of windows it obscures would be is mapped, saving the contents of windows it obscures would be
beneficial. beneficial.
-- Attribute: x:CW-Event-Mask -- Attribute: x:CW-Event-Mask
The event mask defines which events the client is interested in The event mask defines which events the client is interested in for
for this x:Input-Output or x:Input-Only window (or, for some event this x:Input-Output or x:Input-Only window (or, for some event
types, inferiors of this window). The event mask is the bitwise types, inferiors of this window). The event mask is the bitwise
inclusive OR of zero or more of the valid event mask bits. You inclusive OR of zero or more of the valid event mask bits. You can
can specify that no maskable events are reported by setting specify that no maskable events are reported by setting
x:No-Event-Mask (default). x:No-Event-Mask (default).
The following table lists the event mask constants you can pass to The following table lists the event mask constants you can pass to
the event-mask argument and the circumstances in which you would the event-mask argument and the circumstances in which you would
want to specify the event mask: want to specify the event mask:
Event Mask Circumstances Event Mask Circumstances
x:No-Event-Mask No events wanted x:No-Event-Mask No events wanted
x:Key-Press-Mask Keyboard down events wanted x:Key-Press-Mask Keyboard down events wanted
x:Key-Release-Mask Keyboard up events wanted x:Key-Release-Mask Keyboard up events wanted
x:Button-Press-Mask Pointer button down events wanted x:Button-Press-Mask Pointer button down events wanted
x:Button-Release-Mask Pointer button up events wanted x:Button-Release-Mask Pointer button up events wanted
x:Enter-Window-Mask Pointer window entry events wanted x:Enter-Window-Mask Pointer window entry events wanted
x:Leave-Window-Mask Pointer window leave events wanted x:Leave-Window-Mask Pointer window leave events wanted
x:Pointer-Motion-Mask Pointer motion events wanted x:Pointer-Motion-Mask Pointer motion events wanted
x:Pointer-Motion-Hint-Mask If x:Pointer-Motion-Hint-Mask is x:Pointer-Motion-Hint-Mask If x:Pointer-Motion-Hint-Mask is
selected in combination with one or selected in combination with one or
more motion-masks, the X server is more motion-masks, the X server is
free to send only one x:Motion-Notify free to send only one x:Motion-Notify
event (with the is_hint member of event (with the is_hint member of the
the X:Pointer-Moved-Event structure X:Pointer-Moved-Event structure set to
set to x:Notify-Hint) to the client x:Notify-Hint) to the client for the
for the event window, until either event window, until either the key or
the key or button state changes, the button state changes, the pointer
pointer leaves the event window, or leaves the event window, or the client
the client calls X:Query-Pointer or calls X:Query-Pointer or
X:Get-Motion-Events. The server X:Get-Motion-Events. The server still
still may send x:Motion-Notify may send x:Motion-Notify events
events without is_hint set to without is_hint set to x:Notify-Hint.
x:Notify-Hint. x:Button1-Motion-Mask Pointer motion while button 1 down
x:Button1-Motion-Mask Pointer motion while button 1 down x:Button2-Motion-Mask Pointer motion while button 2 down
x:Button2-Motion-Mask Pointer motion while button 2 down x:Button3-Motion-Mask Pointer motion while button 3 down
x:Button3-Motion-Mask Pointer motion while button 3 down x:Button4-Motion-Mask Pointer motion while button 4 down
x:Button4-Motion-Mask Pointer motion while button 4 down x:Button5-Motion-Mask Pointer motion while button 5 down
x:Button5-Motion-Mask Pointer motion while button 5 down x:Button-Motion-Mask Pointer motion while any button down
x:Button-Motion-Mask Pointer motion while any button down x:Keymap-State-Mask Keyboard state wanted at window entry
x:Keymap-State-Mask Keyboard state wanted at window and focus in
entry and focus in x:Exposure-Mask Any exposure wanted
x:Exposure-Mask Any exposure wanted x:Visibility-Change-Mask Any change in visibility wanted
x:Visibility-Change-Mask Any change in visibility wanted x:Structure-Notify-Mask Any change in window structure wanted
x:Structure-Notify-Mask Any change in window structure wanted x:Resize-Redirect-Mask Redirect resize of this window
x:Resize-Redirect-Mask Redirect resize of this window x:Substructure-Notify-Mask Substructure notification wanted
x:Substructure-Notify-Mask Substructure notification wanted x:Substructure-Redirect-Mask Redirect structure requests on
x:Substructure-Redirect-Mask Redirect structure requests on children
children x:Focus-Change-Mask Any change in input focus wanted
x:Focus-Change-Mask Any change in input focus wanted x:Property-Change-Mask Any change in property wanted
x:Property-Change-Mask Any change in property wanted x:Colormap-Change-Mask Any change in colormap wanted
x:Colormap-Change-Mask Any change in colormap wanted x:Owner-Grab-Button-Mask Automatic grabs should activate with
x:Owner-Grab-Button-Mask Automatic grabs should activate with owner_events set to True
owner_events set to True
-- Attribute: x:CW-Dont-Propagate -- Attribute: x:CW-Dont-Propagate
The do-not-propagate-mask attribute defines which events should The do-not-propagate-mask attribute defines which events should not
not be propagated to ancestor windows when no client has the event be propagated to ancestor windows when no client has the event type
type selected in this x:Input-Output or x:Input-Only window. The selected in this x:Input-Output or x:Input-Only window. The
do-not-propagate-mask is the bitwise inclusive OR of zero or more do-not-propagate-mask is the bitwise inclusive OR of zero or more
of the following masks: x:Key-Press, x:Key-Release, x:Button-Press, of the following masks: x:Key-Press, x:Key-Release, x:Button-Press,
x:Button-Release, x:Pointer-Motion, x:Button1Motion, x:Button-Release, x:Pointer-Motion, x:Button1Motion,
x:Button2Motion, x:Button3Motion, x:Button4Motion, x:Button2Motion, x:Button3Motion, x:Button4Motion, x:Button5Motion,
x:Button5Motion, and x:Button-Motion. You can specify that all and x:Button-Motion. You can specify that all events are
events are propagated by setting x:No-Event-Mask (default). propagated by setting x:No-Event-Mask (default).
-- Attribute: x:CW-Colormap -- Attribute: x:CW-Colormap
The colormap attribute specifies which colormap best reflects the The colormap attribute specifies which colormap best reflects the
true colors of the x:Input-Output window. The colormap must have true colors of the x:Input-Output window. The colormap must have
the same visual type as the window. X servers capable of the same visual type as the window. X servers capable of
supporting multiple hardware colormaps can use this information, supporting multiple hardware colormaps can use this information,
and window managers can use it for calls to X:Install-Colormap. and window managers can use it for calls to X:Install-Colormap.
You can set the colormap attribute to a colormap or to You can set the colormap attribute to a colormap or to
x:Copy-From-Parent (default). x:Copy-From-Parent (default).
If you set the colormap to x:Copy-From-Parent, the parent window's If you set the colormap to x:Copy-From-Parent, the parent window's
colormap is copied and used by its child. However, the child colormap is copied and used by its child. However, the child
window must have the same visual type as the parent. The parent window must have the same visual type as the parent. The parent
window must not have a colormap of x:None. The colormap is copied window must not have a colormap of x:None. The colormap is copied
by sharing the colormap object between the child and parent, not by sharing the colormap object between the child and parent, not by
by making a complete copy of the colormap contents. Subsequent making a complete copy of the colormap contents. Subsequent
changes to the parent window's colormap attribute do not affect changes to the parent window's colormap attribute do not affect the
the child window. child window.
-- Attribute: x:CW-Cursor -- Attribute: x:CW-Cursor
The cursor attribute specifies which cursor is to be used when the The cursor attribute specifies which cursor is to be used when the
pointer is in the x:Input-Output or x:Input-Only window. You can pointer is in the x:Input-Output or x:Input-Only window. You can
set the cursor to a cursor or x:None (default). set the cursor to a cursor or x:None (default).
If you set the cursor to x:None, the parent's cursor is used when If you set the cursor to x:None, the parent's cursor is used when
the pointer is in the x:Input-Output or x:Input-Only window, and the pointer is in the x:Input-Output or x:Input-Only window, and
any change in the parent's cursor will cause an immediate change any change in the parent's cursor will cause an immediate change in
in the displayed cursor. On the root window, the default cursor the displayed cursor. On the root window, the default cursor is
is restored. restored.
-- Function: x:window-ref window field-name ... -- Function: x:window-ref window field-name ...
Returns a list of the components specified by FIELD-NAMEs for the Returns a list of the components specified by FIELD-NAMEs for the
specified WINDOW. Allowable FIELD-NAMEs are a subset of those for specified WINDOW. Allowable FIELD-NAMEs are a subset of those for
`x:window-set!': 'x:window-set!':
* x:CW-Back-Pixel * x:CW-Back-Pixel
* x:CW-Bit-Gravity * x:CW-Bit-Gravity
* x:CW-Win-Gravity * x:CW-Win-Gravity
* x:CW-Backing-Store * x:CW-Backing-Store
* x:CW-Backing-Planes * x:CW-Backing-Planes
* x:CW-Backing-Pixel * x:CW-Backing-Pixel
* x:CW-Override-Redirect * x:CW-Override-Redirect
* x:CW-Save-Under * x:CW-Save-Under
* x:CW-Event-Mask * x:CW-Event-Mask
* x:CW-Dont-Propagate * x:CW-Dont-Propagate
* x:CW-Colormap * x:CW-Colormap
 
File: Xlibscm.info, Node: Window Properties and Visibility, Prev: Window Attri butes, Up: Drawables File: Xlibscm.info, Node: Window Properties and Visibility, Prev: Window Attri butes, Up: Drawables
3.3 Window Properties and Visibility 3.3 Window Properties and Visibility
==================================== ====================================
-- Function: x:get-window-property window property -- Function: x:get-window-property window property
Returns the (string or list of numbers) value of PROPERTY of Returns the (string or list of numbers) value of PROPERTY of
skipping to change at line 831 skipping to change at line 802
In X parlance, a window which is hidden even when not obscured by other In X parlance, a window which is hidden even when not obscured by other
windows is "unmapped"; one which shows is "mapped". It is an windows is "unmapped"; one which shows is "mapped". It is an
unfortunate name-collision with Scheme, and is ingrained in the unfortunate name-collision with Scheme, and is ingrained in the
attribute names. attribute names.
-- Function: x:map-window window -- Function: x:map-window window
Maps the WINDOW and all of its subwindows that have had map Maps the WINDOW and all of its subwindows that have had map
requests. Mapping a window that has an unmapped ancestor does not requests. Mapping a window that has an unmapped ancestor does not
display the window but marks it as eligible for display when the display the window but marks it as eligible for display when the
ancestor becomes mapped. Such a window is called unviewable. ancestor becomes mapped. Such a window is called unviewable. When
When all its ancestors are mapped, the window becomes viewable and all its ancestors are mapped, the window becomes viewable and will
will be visible on the screen if it is not obscured by another be visible on the screen if it is not obscured by another window.
window. This function has no effect if the WINDOW is already This function has no effect if the WINDOW is already mapped.
mapped.
If the override-redirect of the window is False and if some other If the override-redirect of the window is False and if some other
client has selected x:Substructure-Redirect-Mask on the parent client has selected x:Substructure-Redirect-Mask on the parent
window, then the X server generates a MapRequest event, and the window, then the X server generates a MapRequest event, and the
`x:map-window' function does not map the WINDOW. Otherwise, the 'x:map-window' function does not map the WINDOW. Otherwise, the
WINDOW is mapped, and the X server generates a MapNotify event. WINDOW is mapped, and the X server generates a MapNotify event.
If the WINDOW becomes viewable and no earlier contents for it are If the WINDOW becomes viewable and no earlier contents for it are
remembered, the X server tiles the WINDOW with its background. If remembered, the X server tiles the WINDOW with its background. If
the window's background is undefined, the existing screen contents the window's background is undefined, the existing screen contents
are not altered, and the X server generates zero or more x:Expose are not altered, and the X server generates zero or more x:Expose
events. If backing-store was maintained while the WINDOW was events. If backing-store was maintained while the WINDOW was
unmapped, no x:Expose events are generated. If backing-store will unmapped, no x:Expose events are generated. If backing-store will
now be maintained, a full-window exposure is always generated. now be maintained, a full-window exposure is always generated.
Otherwise, only visible regions may be reported. Similar tiling Otherwise, only visible regions may be reported. Similar tiling
and exposure take place for any newly viewable inferiors. and exposure take place for any newly viewable inferiors.
If the window is an Input-Output window, `x:map-window' generates If the window is an Input-Output window, 'x:map-window' generates
x:Expose events on each Input-Output window that it causes to be x:Expose events on each Input-Output window that it causes to be
displayed. If the client maps and paints the window and if the displayed. If the client maps and paints the window and if the
client begins processing events, the window is painted twice. To client begins processing events, the window is painted twice. To
avoid this, first ask for x:Expose events and then map the window, avoid this, first ask for x:Expose events and then map the window,
so the client processes input events as usual. The event list so the client processes input events as usual. The event list will
will include x:Expose for each window that has appeared on the include x:Expose for each window that has appeared on the screen.
screen. The client's normal response to an x:Expose event should The client's normal response to an x:Expose event should be to
be to repaint the window. This method usually leads to simpler repaint the window. This method usually leads to simpler programs
programs and to proper interaction with window managers. and to proper interaction with window managers.
-- Function: x:map-subwindows window -- Function: x:map-subwindows window
Maps all subwindows of a specified WINDOW in top-to-bottom Maps all subwindows of a specified WINDOW in top-to-bottom stacking
stacking order. The X server generates x:Expose events on each order. The X server generates x:Expose events on each newly
newly displayed window. This may be much more efficient than displayed window. This may be much more efficient than mapping
mapping many windows one at a time because the server needs to many windows one at a time because the server needs to perform much
perform much of the work only once, for all of the windows, rather of the work only once, for all of the windows, rather than for each
than for each window. window.
-- Function: x:unmap-window window -- Function: x:unmap-window window
Unmaps the specified WINDOW and causes the X server to generate an Unmaps the specified WINDOW and causes the X server to generate an
UnmapNotify event. If the specified WINDOW is already unmapped, UnmapNotify event. If the specified WINDOW is already unmapped,
`x:unmap-window' has no effect. Normal exposure processing on 'x:unmap-window' has no effect. Normal exposure processing on
formerly obscured windows is performed. Any child window will no formerly obscured windows is performed. Any child window will no
longer be visible until another map call is made on the parent. longer be visible until another map call is made on the parent. In
In other words, the subwindows are still mapped but are not other words, the subwindows are still mapped but are not visible
visible until the parent is mapped. Unmapping a WINDOW will until the parent is mapped. Unmapping a WINDOW will generate
generate x:Expose events on windows that were formerly obscured by x:Expose events on windows that were formerly obscured by it.
it.
-- Function: x:unmap-subwindows window -- Function: x:unmap-subwindows window
Unmaps all subwindows for the specified WINDOW in bottom-to-top Unmaps all subwindows for the specified WINDOW in bottom-to-top
stacking order. It causes the X server to generate an UnmapNotify stacking order. It causes the X server to generate an UnmapNotify
event on each subwindow and x:Expose events on formerly obscured event on each subwindow and x:Expose events on formerly obscured
windows. Using this function is much more efficient than windows. Using this function is much more efficient than unmapping
unmapping multiple windows one at a time because the server needs multiple windows one at a time because the server needs to perform
to perform much of the work only once, for all of the windows, much of the work only once, for all of the windows, rather than for
rather than for each window. each window.
 
File: Xlibscm.info, Node: Graphics Context, Next: Cursor, Prev: Drawables, U p: Top File: Xlibscm.info, Node: Graphics Context, Next: Cursor, Prev: Drawables, U p: Top
4 Graphics Context 4 Graphics Context
****************** ******************
Most attributes of graphics operations are stored in "GC"s. These Most attributes of graphics operations are stored in "GC"s. These
include line width, line style, plane mask, foreground, background, include line width, line style, plane mask, foreground, background,
tile, stipple, clipping region, end style, join style, and so on. tile, stipple, clipping region, end style, join style, and so on.
skipping to change at line 912 skipping to change at line 881
determine the actual drawing operation. determine the actual drawing operation.
-- Function: x:create-gc drawable field-name value ... -- Function: x:create-gc drawable field-name value ...
Creates and returns graphics context. The graphics context can be Creates and returns graphics context. The graphics context can be
used with any destination drawable having the same root and depth used with any destination drawable having the same root and depth
as the specified DRAWABLE. as the specified DRAWABLE.
-- Function: x:gc-set! graphics-context field-name value ... -- Function: x:gc-set! graphics-context field-name value ...
Changes the components specified by FIELD-NAMEs for the specified Changes the components specified by FIELD-NAMEs for the specified
GRAPHICS-CONTEXT. The restrictions are the same as for GRAPHICS-CONTEXT. The restrictions are the same as for
`x:create-gc'. The order in which components are verified and 'x:create-gc'. The order in which components are verified and
altered is server dependent. If an error occurs, a subset of the altered is server dependent. If an error occurs, a subset of the
components may have been altered. components may have been altered.
-- Function: x:copy-gc-fields! gcontext-src gcontext-dst field-name ... -- Function: x:copy-gc-fields! gcontext-src gcontext-dst field-name ...
Copies the components specified by FIELD-NAMEs from GCONTEXT-SRC Copies the components specified by FIELD-NAMEs from GCONTEXT-SRC to
to GCONTEXT-DST. GCONTEXT-SRC and GCONTEXT-DST must have the same GCONTEXT-DST. GCONTEXT-SRC and GCONTEXT-DST must have the same
root and depth. root and depth.
-- Function: x:gc-ref graphics-context field-name ... -- Function: x:gc-ref graphics-context field-name ...
Returns a list of the components specified by FIELD-NAMEs ... Returns a list of the components specified by FIELD-NAMEs ... from
from the specified GRAPHICS-CONTEXT. the specified GRAPHICS-CONTEXT.
GC Attributes GC Attributes
============= =============
Both `x:create-gc' and `x:change-gc' take one argument followed by Both 'x:create-gc' and 'x:change-gc' take one argument followed by pairs
pairs of arguments, where the first is one of the property-name symbols of arguments, where the first is one of the property-name symbols (or
(or its top-level value) listed below; and the second is the value to its top-level value) listed below; and the second is the value to
associate with that property. associate with that property.
-- Attribute: x:GC-Function -- Attribute: x:GC-Function
The function attributes of a GC are used when you update a section The function attributes of a GC are used when you update a section
of a drawable (the destination) with bits from somewhere else (the of a drawable (the destination) with bits from somewhere else (the
source). The function in a GC defines how the new destination source). The function in a GC defines how the new destination bits
bits are to be computed from the source bits and the old are to be computed from the source bits and the old destination
destination bits. x:G-Xcopy is typically the most useful because bits. x:G-Xcopy is typically the most useful because it will work
it will work on a color display, but special applications may use on a color display, but special applications may use other
other functions, particularly in concert with particular planes of functions, particularly in concert with particular planes of a
a color display. The 16 functions are: color display. The 16 functions are:
x:G-Xclear 0 x:G-Xclear 0
x:G-Xand (AND src dst) x:G-Xand (AND src dst)
x:G-Xand-Reverse (AND src (NOT dst)) x:G-Xand-Reverse (AND src (NOT dst))
x:G-Xcopy src x:G-Xcopy src
x:G-Xand-Inverted (AND (NOT src) dst) x:G-Xand-Inverted (AND (NOT src) dst)
x:G-Xnoop dst x:G-Xnoop dst
x:G-Xxor (XOR src dst) x:G-Xxor (XOR src dst)
x:G-Xor (OR src dst) x:G-Xor (OR src dst)
x:G-Xnor (AND (NOT src) (NOT dst)) x:G-Xnor (AND (NOT src) (NOT dst))
x:G-Xequiv (XOR (NOT src) dst) x:G-Xequiv (XOR (NOT src) dst)
x:G-Xinvert (NOT dst) x:G-Xinvert (NOT dst)
x:G-Xor-Reverse (OR src (NOT dst)) x:G-Xor-Reverse (OR src (NOT dst))
x:G-Xcopy-Inverted (NOT src) x:G-Xcopy-Inverted (NOT src)
x:G-Xor-Inverted (OR (NOT src) dst) x:G-Xor-Inverted (OR (NOT src) dst)
x:G-Xnand (OR (NOT src) (NOT dst)) x:G-Xnand (OR (NOT src) (NOT dst))
x:G-Xset 1 x:G-Xset 1
-- Attribute: x:GC-Plane-Mask -- Attribute: x:GC-Plane-Mask
Many graphics operations depend on either pixel values or planes
in a GC. The planes attribute is an integer which specifies which Many graphics operations depend on either pixel values or planes in
planes of the destination are to be modified, one bit per plane. a GC. The planes attribute is an integer which specifies which
A monochrome display has only one plane and will be the least planes of the destination are to be modified, one bit per plane. A
significant bit of the integer. As planes are added to the monochrome display has only one plane and will be the least
display hardware, they will occupy more significant bits in the significant bit of the integer. As planes are added to the display
plane mask. hardware, they will occupy more significant bits in the plane mask.
In graphics operations, given a source and destination pixel, the In graphics operations, given a source and destination pixel, the
result is computed bitwise on corresponding bits of the pixels. result is computed bitwise on corresponding bits of the pixels.
That is, a Boolean operation is performed in each bit plane. The That is, a Boolean operation is performed in each bit plane. The
plane-mask restricts the operation to a subset of planes. plane-mask restricts the operation to a subset of planes.
`x:All-Planes' can be used to refer to all planes of the screen 'x:All-Planes' can be used to refer to all planes of the screen
simultaneously. The result is computed by the following: simultaneously. The result is computed by the following:
(OR (AND (FUNC src dst) plane-mask) (AND dst (NOT plane-mask))) (OR (AND (FUNC src dst) plane-mask) (AND dst (NOT plane-mask)))
Range checking is not performed on a plane-mask value. It is Range checking is not performed on a plane-mask value. It is
simply truncated to the appropriate number of bits. simply truncated to the appropriate number of bits.
-- Attribute: x:GC-Foreground -- Attribute: x:GC-Foreground
-- Attribute: x:GC-Background -- Attribute: x:GC-Background
Range checking is not performed on the values for foreground or Range checking is not performed on the values for foreground or
background. They are simply truncated to the appropriate number of background. They are simply truncated to the appropriate number of
bits. bits.
Note that foreground and background are not initialized to any Note that foreground and background are not initialized to any
values likely to be useful in a window. values likely to be useful in a window.
-- Attribute: x:GC-Line-Width -- Attribute: x:GC-Line-Width
The line-width is measured in pixels and either can be greater The line-width is measured in pixels and either can be greater than
than or equal to one (wide line) or can be the special value zero or equal to one (wide line) or can be the special value zero (thin
(thin line). line).
Thin lines (zero line-width) are one-pixel-wide lines drawn using Thin lines (zero line-width) are one-pixel-wide lines drawn using
an unspecified, device-dependent algorithm. There are only two an unspecified, device-dependent algorithm. There are only two
constraints on this algorithm. constraints on this algorithm.
* If a line is drawn unclipped from [x1,y1] to [x2,y2] and if * If a line is drawn unclipped from [x1,y1] to [x2,y2] and if
another line is drawn unclipped from [x1+dx,y1+dy] to another line is drawn unclipped from [x1+dx,y1+dy] to
[x2+dx,y2+dy], a point [x,y] is touched by drawing the first [x2+dx,y2+dy], a point [x,y] is touched by drawing the first
line if and only if the point [x+dx,y+dy] is touched by line if and only if the point [x+dx,y+dy] is touched by
drawing the second line. drawing the second line.
* The effective set of points comprising a line cannot be * The effective set of points comprising a line cannot be
affected by clipping. That is, a point is touched in a affected by clipping. That is, a point is touched in a
clipped line if and only if the point lies inside the clipped line if and only if the point lies inside the clipping
clipping region and the point would be touched by the line region and the point would be touched by the line when drawn
when drawn unclipped. unclipped.
A wide line drawn from [x1,y1] to [x2,y2] always draws the same A wide line drawn from [x1,y1] to [x2,y2] always draws the same
pixels as a wide line drawn from [x2,y2] to [x1,y1], not counting pixels as a wide line drawn from [x2,y2] to [x1,y1], not counting
cap-style and join-style. It is recommended that this property be cap-style and join-style. It is recommended that this property be
true for thin lines, but this is not required. A line-width of true for thin lines, but this is not required. A line-width of
zero may differ from a line-width of one in which pixels are zero may differ from a line-width of one in which pixels are drawn.
drawn. This permits the use of many manufacturers' line drawing This permits the use of many manufacturers' line drawing hardware,
hardware, which may run many times faster than the more precisely which may run many times faster than the more precisely specified
specified wide lines. wide lines.
In general, drawing a thin line will be faster than drawing a wide In general, drawing a thin line will be faster than drawing a wide
line of width one. However, because of their different drawing line of width one. However, because of their different drawing
algorithms, thin lines may not mix well aesthetically with wide algorithms, thin lines may not mix well aesthetically with wide
lines. If it is desirable to obtain precise and uniform results lines. If it is desirable to obtain precise and uniform results
across all displays, a client should always use a line-width of across all displays, a client should always use a line-width of one
one rather than a linewidth of zero. rather than a linewidth of zero.
-- Attribute: x:GC-Line-Style -- Attribute: x:GC-Line-Style
The line-style defines which sections of a line are drawn: The line-style defines which sections of a line are drawn:
x:Line-Solid x:Line-Solid
The full path of the line is drawn. The full path of the line is drawn.
x:Line-Double-Dash
x:Line-Double-Dash
The full path of the line is drawn, but the even dashes are The full path of the line is drawn, but the even dashes are
filled differently from the odd dashes (see fill-style) with filled differently from the odd dashes (see fill-style) with
x:Cap-Butt style used where even and odd dashes meet. x:Cap-Butt style used where even and odd dashes meet.
x:Line-On-Off-Dash
x:Line-On-Off-Dash
Only the even dashes are drawn, and cap-style applies to all Only the even dashes are drawn, and cap-style applies to all
internal ends of the individual dashes, except x:Cap-Not-Last internal ends of the individual dashes, except x:Cap-Not-Last
is treated as x:Cap-Butt. is treated as x:Cap-Butt.
-- Attribute: x:GC-Cap-Style -- Attribute: x:GC-Cap-Style
The cap-style defines how the endpoints of a path are drawn: The cap-style defines how the endpoints of a path are drawn:
x:Cap-Not-Last x:Cap-Not-Last
This is equivalent to x:Cap-Butt except that for a line-width This is equivalent to x:Cap-Butt except that for a line-width
of zero the final endpoint is not drawn. of zero the final endpoint is not drawn.
x:Cap-Butt
x:Cap-Butt The line is square at the endpoint (perpendicular to the slope
The line is square at the endpoint (perpendicular to the of the line) with no projection beyond.
slope of the line) with no projection beyond. x:Cap-Round
x:Cap-Round
The line has a circular arc with the diameter equal to the The line has a circular arc with the diameter equal to the
line-width, centered on the endpoint. (This is equivalent to line-width, centered on the endpoint. (This is equivalent to
x:Cap-Butt for line-width of zero). x:Cap-Butt for line-width of zero).
x:Cap-Projecting
x:Cap-Projecting
The line is square at the end, but the path continues beyond The line is square at the end, but the path continues beyond
the endpoint for a distance equal to half the line-width. the endpoint for a distance equal to half the line-width.
(This is equivalent to x:Cap-Butt for line-width of zero). (This is equivalent to x:Cap-Butt for line-width of zero).
-- Attribute: x:GC-Join-Style -- Attribute: x:GC-Join-Style
The join-style defines how corners are drawn for wide lines: The join-style defines how corners are drawn for wide lines:
x:Join-Miter x:Join-Miter
The outer edges of two lines extend to meet at an angle. The outer edges of two lines extend to meet at an angle.
However, if the angle is less than 11 degrees, then a However, if the angle is less than 11 degrees, then a
x:Join-Bevel join-style is used instead. x:Join-Bevel join-style is used instead.
x:Join-Round
x:Join-Round
The corner is a circular arc with the diameter equal to the The corner is a circular arc with the diameter equal to the
line-width, centered on the x:Join-point. line-width, centered on the x:Join-point.
x:Join-Bevel
x:Join-Bevel
The corner has x:Cap-Butt endpoint styles with the triangular The corner has x:Cap-Butt endpoint styles with the triangular
notch filled. notch filled.
-- Attribute: x:GC-Fill-Style -- Attribute: x:GC-Fill-Style
The fill-style defines the contents of the source for line, text, The fill-style defines the contents of the source for line, text,
and fill requests. For all text and fill requests (for example, and fill requests. For all text and fill requests (for example,
X:Draw-Text, X:Fill-Rectangle, X:Fill-Polygon, and X:Fill-Arc); X:Draw-Text, X:Fill-Rectangle, X:Fill-Polygon, and X:Fill-Arc); for
for line requests with linestyle x:Line-Solid (for example, line requests with linestyle x:Line-Solid (for example,
X:Draw-Line, X:Draw-Segments, X:Draw-Rectangle, X:Draw-Arc); and X:Draw-Line, X:Draw-Segments, X:Draw-Rectangle, X:Draw-Arc); and
for the even dashes for line requests with line-style for the even dashes for line requests with line-style
x:Line-On-Off-Dash or x:Line-Double-Dash, the following apply: x:Line-On-Off-Dash or x:Line-Double-Dash, the following apply:
x:Fill-Solid x:Fill-Solid
Foreground Foreground
x:Fill-Tiled
x:Fill-Tiled
Tile Tile
x:Fill-Opaque-Stippled
x:Fill-Opaque-Stippled
A tile with the same width and height as stipple, but with A tile with the same width and height as stipple, but with
background everywhere stipple has a zero and with foreground background everywhere stipple has a zero and with foreground
everywhere stipple has a one everywhere stipple has a one
x:Fill-Stippled
x:Fill-Stippled
Foreground masked by stipple Foreground masked by stipple
When drawing lines with line-style x:Line-Double-Dash, the odd When drawing lines with line-style x:Line-Double-Dash, the odd
dashes are controlled by the fill-style in the following manner: dashes are controlled by the fill-style in the following manner:
x:Fill-Solid x:Fill-Solid
Background Background
x:Fill-Tiled
x:Fill-Tiled
Same as for even dashes Same as for even dashes
x:Fill-Opaque-Stippled
x:Fill-Opaque-Stippled
Same as for even dashes Same as for even dashes
x:Fill-Stippled
x:Fill-Stippled
Background masked by stipple Background masked by stipple
-- Attribute: x:GC-Fill-Rule -- Attribute: x:GC-Fill-Rule
The fill-rule defines what pixels are inside (drawn) for paths The fill-rule defines what pixels are inside (drawn) for paths
given in X:Fill-Polygon requests and can be set to x:Even-Odd-Rule given in X:Fill-Polygon requests and can be set to x:Even-Odd-Rule
or x:Winding-Rule. or x:Winding-Rule.
x:Even-Odd-Rule x:Even-Odd-Rule
A point is inside if an infinite ray with the point as origin A point is inside if an infinite ray with the point as origin
crosses the path an odd number of times. crosses the path an odd number of times.
x:Winding-Rule
x:Winding-Rule
A point is inside if an infinite ray with the point as origin A point is inside if an infinite ray with the point as origin
crosses an unequal number of clockwise and counterclockwise crosses an unequal number of clockwise and counterclockwise
directed path segments. directed path segments.
A clockwise directed path segment is one that crosses the ray from A clockwise directed path segment is one that crosses the ray from
left to right as observed from the point. A counterclockwise left to right as observed from the point. A counterclockwise
segment is one that crosses the ray from right to left as observed segment is one that crosses the ray from right to left as observed
from the point. The case where a directed line segment is from the point. The case where a directed line segment is
coincident with the ray is uninteresting because you can simply coincident with the ray is uninteresting because you can simply
choose a different ray that is not coincident with a segment. choose a different ray that is not coincident with a segment.
skipping to change at line 1150 skipping to change at line 1108
small, and the path is an infinitely thin line. A pixel is inside small, and the path is an infinitely thin line. A pixel is inside
if the center point of the pixel is inside and the center point is if the center point of the pixel is inside and the center point is
not on the boundary. If the center point is on the boundary, the not on the boundary. If the center point is on the boundary, the
pixel is inside if and only if the polygon interior is immediately pixel is inside if and only if the polygon interior is immediately
to its right (x increasing direction). Pixels with centers on a to its right (x increasing direction). Pixels with centers on a
horizontal edge are a special case and are inside if and only if horizontal edge are a special case and are inside if and only if
the polygon interior is immediately below (y increasing direction). the polygon interior is immediately below (y increasing direction).
-- Attribute: x:GC-Tile -- Attribute: x:GC-Tile
-- Attribute: x:GC-Stipple -- Attribute: x:GC-Stipple
The tile/stipple represents an infinite two-dimensional plane, The tile/stipple represents an infinite two-dimensional plane, with
with the tile/stipple replicated in all dimensions. the tile/stipple replicated in all dimensions.
The tile pixmap must have the same root and depth as the GC, or an The tile pixmap must have the same root and depth as the GC, or an
error results. The stipple pixmap must have depth one and must error results. The stipple pixmap must have depth one and must
have the same root as the GC, or an error results. For stipple have the same root as the GC, or an error results. For stipple
operations where the fill-style is x:Fill-Stippled but not operations where the fill-style is x:Fill-Stippled but not
x:Fill-Opaque-Stippled, the stipple pattern is tiled in a single x:Fill-Opaque-Stippled, the stipple pattern is tiled in a single
plane and acts as an additional clip mask to be ANDed with the plane and acts as an additional clip mask to be ANDed with the
clip-mask. Although some sizes may be faster to use than others, clip-mask. Although some sizes may be faster to use than others,
any size pixmap can be used for tiling or stippling. any size pixmap can be used for tiling or stippling.
-- Attribute: x:GC-Tile-Stip-X-Origin -- Attribute: x:GC-Tile-Stip-X-Origin
-- Attribute: x:GC-Tile-Stip-Y-Origin -- Attribute: x:GC-Tile-Stip-Y-Origin
When the tile/stipple plane is superimposed on a drawable for use When the tile/stipple plane is superimposed on a drawable for use
in a graphics operation, the upper-left corner of some instance of in a graphics operation, the upper-left corner of some instance of
the tile/stipple is at the coordinates within the drawable the tile/stipple is at the coordinates within the drawable
specified by the tile/stipple origin. The tile/stipple origin is specified by the tile/stipple origin. The tile/stipple origin is
interpreted relative to the origin of whatever destination interpreted relative to the origin of whatever destination drawable
drawable is specified in a graphics request. is specified in a graphics request.
-- Attribute: x:GC-Font -- Attribute: x:GC-Font
The font to be used for drawing text. The font to be used for drawing text.
-- Attribute: x:GC-Subwindow-Mode -- Attribute: x:GC-Subwindow-Mode
You can set the subwindow-mode to x:Clip-By-Children or You can set the subwindow-mode to x:Clip-By-Children or
x:Include-Inferiors. x:Include-Inferiors.
x:Clip-By-Children x:Clip-By-Children
Both source and destination windows are additionally clipped Both source and destination windows are additionally clipped
by all viewable Input-Output children. by all viewable Input-Output children.
x:Include-Inferiors
x:Include-Inferiors Neither source nor destination window is clipped by inferiors.
Neither source nor destination window is clipped by This will result in including subwindow contents in the source
inferiors. This will result in including subwindow contents and drawing through subwindow boundaries of the destination.
in the source and drawing through subwindow boundaries of the The use of 'x:Include-Inferiors' on a window of one depth with
destination. The use of `x:Include-Inferiors' on a window of mapped inferiors of differing depth is not illegal, but the
one depth with mapped inferiors of differing depth is not semantics are undefined by the core protocol.
illegal, but the semantics are undefined by the core protocol.
-- Attribute: x:GC-Graphics-Exposures -- Attribute: x:GC-Graphics-Exposures
The graphics-exposure flag controls x:Graphics-Expose event The graphics-exposure flag controls x:Graphics-Expose event
generation for X:Copy-Area and X:Copy-Plane requests (and any generation for X:Copy-Area and X:Copy-Plane requests (and any
similar requests defined by extensions). similar requests defined by extensions).
-- Attribute: x:GC-Clip-X-Origin -- Attribute: x:GC-Clip-X-Origin
-- Attribute: x:GC-Clip-Y-Origin -- Attribute: x:GC-Clip-Y-Origin
The clip-mask origin is interpreted relative to the origin of The clip-mask origin is interpreted relative to the origin of
whatever destination drawable is specified in a graphics request. whatever destination drawable is specified in a graphics request.
-- Attribute: x:GC-Clip-Mask -- Attribute: x:GC-Clip-Mask
The clip-mask restricts writes to the destination drawable. If the The clip-mask restricts writes to the destination drawable. If the
clip-mask is set to a pixmap, it must have depth one and have the clip-mask is set to a pixmap, it must have depth one and have the
same root as the GC, or an error results. If clip-mask is set to "x:None", same root as the GC, or an error results. If clip-mask is set to
the pixels are always drawn regardless of the clip origin. The "x:None", the pixels are always drawn regardless of the clip
clip-mask also can be set by calling `X:Set-Region'. Only pixels origin. The clip-mask also can be set by calling 'X:Set-Region'.
where the clip-mask has a bit set to 1 are drawn. Pixels are not Only pixels where the clip-mask has a bit set to 1 are drawn.
drawn outside the area covered by the clip-mask or where the Pixels are not drawn outside the area covered by the clip-mask or
clip-mask has a bit set to 0. The clip-mask affects all graphics where the clip-mask has a bit set to 0. The clip-mask affects all
requests. The clip-mask does not clip sources. The clip-mask graphics requests. The clip-mask does not clip sources. The
origin is interpreted relative to the origin of whatever clip-mask origin is interpreted relative to the origin of whatever
destination drawable is specified in a graphics request. destination drawable is specified in a graphics request.
-- Attribute: x:GC-Dash-Offset -- Attribute: x:GC-Dash-Offset
Defines the phase of the pattern, specifying how many pixels into Defines the phase of the pattern, specifying how many pixels into
the dash-list the pattern should actually begin in any single the dash-list the pattern should actually begin in any single
graphics request. Dashing is continuous through path elements graphics request. Dashing is continuous through path elements
combined with a join-style but is reset to the dash-offset between combined with a join-style but is reset to the dash-offset between
each sequence of joined lines. each sequence of joined lines.
The unit of measure for dashes is the same for the ordinary The unit of measure for dashes is the same for the ordinary
coordinate system. Ideally, a dash length is measured along the coordinate system. Ideally, a dash length is measured along the
slope of the line, but implementations are only required to match slope of the line, but implementations are only required to match
this ideal for horizontal and vertical lines. Failing the ideal this ideal for horizontal and vertical lines. Failing the ideal
semantics, it is suggested that the length be measured along the semantics, it is suggested that the length be measured along the
major axis of the line. The major axis is defined as the x axis major axis of the line. The major axis is defined as the x axis
for lines drawn at an angle of between -45 and +45 degrees or for lines drawn at an angle of between -45 and +45 degrees or
between 135 and 225 degrees from the x axis. For all other lines, between 135 and 225 degrees from the x axis. For all other lines,
the major axis is the y axis. the major axis is the y axis.
-- Attribute: x:GC-Dash-List -- Attribute: x:GC-Dash-List
There must be at least one element in the specified DASH-LIST. There must be at least one element in the specified DASH-LIST. The
The initial and alternating elements (second, fourth, and so on) initial and alternating elements (second, fourth, and so on) of the
of the DASH-LIST are the even dashes, and the others are the odd DASH-LIST are the even dashes, and the others are the odd dashes.
dashes. Each element specifies a dash length in pixels. All of Each element specifies a dash length in pixels. All of the
the elements must be nonzero. Specifying an odd-length list is elements must be nonzero. Specifying an odd-length list is
equivalent to specifying the same list concatenated with itself to equivalent to specifying the same list concatenated with itself to
produce an even-length list. produce an even-length list.
-- Attribute: x:GC-Arc-Mode -- Attribute: x:GC-Arc-Mode
The arc-mode controls filling in the X:Fill-Arcs function and can The arc-mode controls filling in the X:Fill-Arcs function and can
be set to x:Arc-Pie-Slice or x:Arc-Chord. be set to x:Arc-Pie-Slice or x:Arc-Chord.
x:Arc-Pie-Slice x:Arc-Pie-Slice
The arcs are pie-slice filled. The arcs are pie-slice filled.
x:Arc-Chord
x:Arc-Chord
The arcs are chord filled. The arcs are chord filled.
 
File: Xlibscm.info, Node: Cursor, Next: Colormap, Prev: Graphics Context, Up : Top File: Xlibscm.info, Node: Cursor, Next: Colormap, Prev: Graphics Context, Up : Top
5 Cursor 5 Cursor
******** ********
-- Function: x:create-cursor display shape -- Function: x:create-cursor display shape
X provides a set of standard cursor shapes in a special font named "cursor" X provides a set of standard cursor shapes in a special font named
. "cursor". Applications are encouraged to use this interface for
Applications are encouraged to use this interface for their their cursors because the font can be customized for the individual
cursors because the font can be customized for the individual
display type. The SHAPE argument specifies which glyph of the display type. The SHAPE argument specifies which glyph of the
standard fonts to use. standard fonts to use.
The hotspot comes from the information stored in the cursor font. The hotspot comes from the information stored in the cursor font.
The initial colors of a cursor are a black foreground and a white The initial colors of a cursor are a black foreground and a white
background (see X:Recolor-Cursor). The names of all cursor shapes background (see X:Recolor-Cursor). The names of all cursor shapes
are defined with the prefix XC: in `x11.scm'. are defined with the prefix XC: in 'x11.scm'.
-- Function: x:create-cursor source-font source-char mask-font -- Function: x:create-cursor source-font source-char mask-font
mask-char fgc bgc mask-char fgc bgc
Creates a cursor from the source and mask bitmaps obtained from the Creates a cursor from the source and mask bitmaps obtained from the
specified font glyphs. The integer SOURCE-CHAR must be a defined specified font glyphs. The integer SOURCE-CHAR must be a defined
glyph in SOURCE-FONT. The integer MASK-CHAR must be a defined glyph in SOURCE-FONT. The integer MASK-CHAR must be a defined
glyph in MASK-FONT. The origins of the SOURCE-CHAR and MASK-CHAR glyph in MASK-FONT. The origins of the SOURCE-CHAR and MASK-CHAR
glyphs are positioned coincidently and define the hotspot. The glyphs are positioned coincidently and define the hotspot. The
SOURCE-CHAR and MASK-CHAR need not have the same bounding box SOURCE-CHAR and MASK-CHAR need not have the same bounding box
metrics, and there is no restriction on the placement of the metrics, and there is no restriction on the placement of the
hotspot relative to the bounding boxes. hotspot relative to the bounding boxes.
-- Function: x:create-cursor source-font source-char #f #f fgc bgc -- Function: x:create-cursor source-font source-char #f #f fgc bgc
If MASK-FONT and MASK-CHAR are #f, all pixels of the source are If MASK-FONT and MASK-CHAR are #f, all pixels of the source are
displayed. displayed.
-- Function: x:create-cursor source-pixmap mask-pixmap fgc bgc origin -- Function: x:create-cursor source-pixmap mask-pixmap fgc bgc origin
MASK-PIXMAP must be the same size as the pixmap defined by the MASK-PIXMAP must be the same size as the pixmap defined by the
SOURCE-PIXMAP argument. The foreground and background RGB values SOURCE-PIXMAP argument. The foreground and background RGB values
must be specified using FOREGROUND-COLOR and BACKGROUND-COLOR, must be specified using FOREGROUND-COLOR and BACKGROUND-COLOR, even
even if the X server only has a x:Static-Gray or x:Gray-Scale if the X server only has a x:Static-Gray or x:Gray-Scale screen.
screen. The hotspot must be a point within the SOURCE-PIXMAP. The hotspot must be a point within the SOURCE-PIXMAP.
`X:Create-Cursor' creates and returns a cursor. The 'X:Create-Cursor' creates and returns a cursor. The
FOREGROUND-COLOR is used for the pixels set to 1 in the source, FOREGROUND-COLOR is used for the pixels set to 1 in the source, and
and the BACKGROUND-COLOR is used for the pixels set to 0. Both the BACKGROUND-COLOR is used for the pixels set to 0. Both source
source and mask must have depth one but can have any root. The and mask must have depth one but can have any root. The
MASK-PIXMAP defines the shape of the cursor. The pixels set to 1 MASK-PIXMAP defines the shape of the cursor. The pixels set to 1
in MASK-PIXMAP define which source pixels are displayed, and the in MASK-PIXMAP define which source pixels are displayed, and the
pixels set to 0 define which pixels are ignored. pixels set to 0 define which pixels are ignored.
-- Function: x:create-cursor source-pixmap #f fgc bgc origin -- Function: x:create-cursor source-pixmap #f fgc bgc origin
If MASK-PIXMAP is #f, all pixels of the source are displayed. If MASK-PIXMAP is #f, all pixels of the source are displayed.
 
File: Xlibscm.info, Node: Colormap, Next: Rendering, Prev: Cursor, Up: Top File: Xlibscm.info, Node: Colormap, Next: Rendering, Prev: Cursor, Up: Top
6 Colormap 6 Colormap
********** **********
A "colormap" maps pixel values to "RGB" color space values. A "colormap" maps pixel values to "RGB" color space values.
-- Function: x:create-colormap window visual alloc-policy -- Function: x:create-colormap window visual alloc-policy
WINDOW specifies the window on whose screen you want to create a WINDOW specifies the window on whose screen you want to create a
colormap. VISUAL specifies a visual type supported on the screen. colormap. VISUAL specifies a visual type supported on the screen.
ALLOC-POLICY Specifies the colormap entries to be allocated. You ALLOC-POLICY Specifies the colormap entries to be allocated. You
can pass `X:Alloc-None' or `X:Alloc-All'. can pass 'X:Alloc-None' or 'X:Alloc-All'.
The `X:Create-Colormap' function creates and returns a colormap of The 'X:Create-Colormap' function creates and returns a colormap of
the specified VISUAL type for the screen on which WINDOW resides. the specified VISUAL type for the screen on which WINDOW resides.
Note that WINDOW is used only to determine the screen. Note that WINDOW is used only to determine the screen.
`X:Gray-Scale' 'X:Gray-Scale'
'X:Pseudo-Color'
`X:Pseudo-Color' 'X:Direct-Color'
`X:Direct-Color'
The initial values of the colormap entries are undefined. The initial values of the colormap entries are undefined.
`X:Static-Gray' 'X:Static-Gray'
'X:Static-Color'
`X:Static-Color' 'X:True-Color'
The entries have defined values, but those values are specific
to VISUAL and are not defined by X. The ALLOC-POLICY must be
'X:Alloc-None'.
`X:True-Color' For the other visual classes, if ALLOC-POLICY is 'X:Alloc-None',
The entries have defined values, but those values are
specific to VISUAL and are not defined by X. The
ALLOC-POLICY must be `X:Alloc-None'.
For the other visual classes, if ALLOC-POLICY is `X:Alloc-None',
the colormap initially has no allocated entries, and clients can the colormap initially has no allocated entries, and clients can
allocate them. allocate them.
If ALLOC-POLICY is `X:Alloc-All', the entire colormap is allocated If ALLOC-POLICY is 'X:Alloc-All', the entire colormap is allocated
writable. The initial values of all allocated entries are writable. The initial values of all allocated entries are
undefined. undefined.
`X:Gray-Scale' 'X:Gray-Scale'
'X:Pseudo-Color'
`X:Pseudo-Color' The effect is as if an 'XAllocColorCells' call returned all
The effect is as if an `XAllocColorCells' call returned all
pixel values from zero to N - 1, where N is the colormap pixel values from zero to N - 1, where N is the colormap
entries value in VISUAL. entries value in VISUAL.
`X:Direct-Color' 'X:Direct-Color'
The effect is as if an `XAllocColorPlanes' call returned a The effect is as if an 'XAllocColorPlanes' call returned a
pixel value of zero and red_mask, green_mask, and blue_mask pixel value of zero and red_mask, green_mask, and blue_mask
values containing the same bits as the corresponding masks in values containing the same bits as the corresponding masks in
the specified visual. the specified visual.
To create a new colormap when the allocation out of a previously shared To create a new colormap when the allocation out of a previously shared
colormap has failed because of resource exhaustion, use: colormap has failed because of resource exhaustion, use:
-- Function: x:copy-colormap-and-free colormap -- Function: x:copy-colormap-and-free colormap
Creates and returns a colormap of the same visual type and for the Creates and returns a colormap of the same visual type and for the
same screen as the specified COLORMAP. It also moves all of the same screen as the specified COLORMAP. It also moves all of the
client's existing allocation from the specified COLORMAP to the client's existing allocation from the specified COLORMAP to the new
new colormap with their color values intact and their read-only or colormap with their color values intact and their read-only or
writable characteristics intact and frees those entries in the writable characteristics intact and frees those entries in the
specified colormap. Color values in other entries in the new specified colormap. Color values in other entries in the new
colormap are undefined. If the specified colormap was created by colormap are undefined. If the specified colormap was created by
the client with alloc set to `X:Alloc-All', the new colormap is the client with alloc set to 'X:Alloc-All', the new colormap is
also created with `X:Alloc-All', all color values for all entries also created with 'X:Alloc-All', all color values for all entries
are copied from the specified COLORMAP, and then all entries in are copied from the specified COLORMAP, and then all entries in the
the specified COLORMAP are freed. If the specified COLORMAP was specified COLORMAP are freed. If the specified COLORMAP was not
not created by the client with `X:Alloc-All', the allocations to created by the client with 'X:Alloc-All', the allocations to be
be moved are all those pixels and planes that have been allocated moved are all those pixels and planes that have been allocated by
by the client and that have not been freed since they were the client and that have not been freed since they were allocated.
allocated.
A "colormap" maps pixel values to elements of the "RGB" datatype. An A "colormap" maps pixel values to elements of the "RGB" datatype. An
RGB is a list or vector of 3 integers, describing the red, green, and RGB is a list or vector of 3 integers, describing the red, green, and
blue intensities respectively. The integers are in the range 0 - 65535. blue intensities respectively. The integers are in the range 0 - 65535.
-- Function: x:alloc-colormap-cells colormap ncolors nplanes -- Function: x:alloc-colormap-cells colormap ncolors nplanes
-- Function: x:alloc-colormap-cells colormap ncolors nplanes -- Function: x:alloc-colormap-cells colormap ncolors nplanes
contiguous? contiguous?
The `X:Alloc-Color-Cells' function allocates read/write color
The 'X:Alloc-Color-Cells' function allocates read/write color
cells. The number of colors, NCOLORS must be positive and the cells. The number of colors, NCOLORS must be positive and the
number of planes, NPLANES nonnegative. If NCOLORS and nplanes are number of planes, NPLANES nonnegative. If NCOLORS and nplanes are
requested, then NCOLORS pixels and nplane plane masks are requested, then NCOLORS pixels and nplane plane masks are returned.
returned. No mask will have any bits set to 1 in common with any No mask will have any bits set to 1 in common with any other mask
other mask or with any of the pixels. By ORing together each or with any of the pixels. By ORing together each pixel with zero
pixel with zero or more masks, NCOLORS * 2^NPLANES distinct pixels or more masks, NCOLORS * 2^NPLANES distinct pixels can be produced.
can be produced. All of these are allocated writable by the All of these are allocated writable by the request.
request.
`x:Gray-Scale'
`x:Pseudo-Color' 'x:Gray-Scale'
'x:Pseudo-Color'
Each mask has exactly one bit set to 1. If CONTIGUOUS? is Each mask has exactly one bit set to 1. If CONTIGUOUS? is
non-false and if all masks are ORed together, a single non-false and if all masks are ORed together, a single
contiguous set of bits set to 1 is formed. contiguous set of bits set to 1 is formed.
'x:Direct-Color'
`x:Direct-Color'
Each mask has exactly three bits set to 1. If CONTIGUOUS? is Each mask has exactly three bits set to 1. If CONTIGUOUS? is
non-false and if all masks are ORed together, three non-false and if all masks are ORed together, three contiguous
contiguous sets of bits set to 1 (one within each pixel sets of bits set to 1 (one within each pixel subfield) is
subfield) is formed. formed.
The RGB values of the allocated entries are undefined. The RGB values of the allocated entries are undefined.
`X:Alloc-Color-Cells' returns a list of two uniform arrays if it 'X:Alloc-Color-Cells' returns a list of two uniform arrays if it
succeeded or #f if it failed. The first array has the pixels succeeded or #f if it failed. The first array has the pixels
allocated and the second has the plane-masks. allocated and the second has the plane-masks.
-- Function: x:alloc-colormap-cells colormap ncolors rgb -- Function: x:alloc-colormap-cells colormap ncolors rgb
-- Function: x:alloc-colormap-cells colormap ncolors rgb contiguous? -- Function: x:alloc-colormap-cells colormap ncolors rgb contiguous?
The specified NCOLORS must be positive; and RGB a list or vector
of 3 nonnegative integers. If NCOLORS colors, NREDS reds, NGREENS The specified NCOLORS must be positive; and RGB a list or vector of
3 nonnegative integers. If NCOLORS colors, NREDS reds, NGREENS
greens, and NBLUES blues are requested, NCOLORS pixels are greens, and NBLUES blues are requested, NCOLORS pixels are
returned; and the masks have NREDS, NGREENS, and NBLUES bits set returned; and the masks have NREDS, NGREENS, and NBLUES bits set to
to 1, respectively. If CONTIGUOUS? is non-false, each mask will 1, respectively. If CONTIGUOUS? is non-false, each mask will have
have a contiguous set of bits set to 1. No mask will have any a contiguous set of bits set to 1. No mask will have any bits set
bits set to 1 in common with any other mask or with any of the to 1 in common with any other mask or with any of the pixels.
pixels.
Each mask will lie within the corresponding pixel subfield. By Each mask will lie within the corresponding pixel subfield. By
ORing together subsets of masks with each pixel value, NCOLORS * ORing together subsets of masks with each pixel value, NCOLORS *
2(NREDS+NGREENS+NBLUES) distinct pixel values can be produced. 2(NREDS+NGREENS+NBLUES) distinct pixel values can be produced. All
All of these are allocated by the request. However, in the of these are allocated by the request. However, in the colormap,
colormap, there are only NCOLORS * 2^NREDS independent red there are only NCOLORS * 2^NREDS independent red entries, NCOLORS *
entries, NCOLORS * 2^NGREENS independent green entries, and 2^NGREENS independent green entries, and NCOLORS * 2^NBLUES
NCOLORS * 2^NBLUES independent blue entries. independent blue entries.
`X:Alloc-Color-Cells' returns a list if it succeeded or #f if it 'X:Alloc-Color-Cells' returns a list if it succeeded or #f if it
failed. The first element of the list has an array of the pixels failed. The first element of the list has an array of the pixels
allocated. The second, third, and fourth elements are the red, allocated. The second, third, and fourth elements are the red,
green, and blue plane-masks. green, and blue plane-masks.
-- Function: x:free-colormap-cells colormap pixels planes -- Function: x:free-colormap-cells colormap pixels planes
-- Function: x:free-colormap-cells colormap pixels -- Function: x:free-colormap-cells colormap pixels
Frees the cells represented by pixels whose values are in the Frees the cells represented by pixels whose values are in the
PIXELS unsigned-integer uniform-vector. The PLANES argument PIXELS unsigned-integer uniform-vector. The PLANES argument should
should not have any bits set to 1 in common with any of the not have any bits set to 1 in common with any of the pixels. The
pixels. The set of all pixels is produced by ORing together set of all pixels is produced by ORing together subsets of the
subsets of the PLANES argument with the pixels. The request frees PLANES argument with the pixels. The request frees all of these
all of these pixels that were allocated by the client. Note that pixels that were allocated by the client. Note that freeing an
freeing an individual pixel obtained from `X:Alloc-Colormap-Cells' individual pixel obtained from 'X:Alloc-Colormap-Cells' with a
with a planes argument may not actually allow it to be reused planes argument may not actually allow it to be reused until all of
until all of its related pixels are also freed. Similarly, a its related pixels are also freed. Similarly, a read-only entry is
read-only entry is not actually freed until it has been freed by not actually freed until it has been freed by all clients, and if a
all clients, and if a client allocates the same read-only entry client allocates the same read-only entry multiple times, it must
multiple times, it must free the entry that many times before the free the entry that many times before the entry is actually freed.
entry is actually freed.
All specified pixels that are allocated by the client in the All specified pixels that are allocated by the client in the
COLORMAP are freed, even if one or more pixels produce an error. COLORMAP are freed, even if one or more pixels produce an error.
It is an error if a specified pixel is not allocated by the client It is an error if a specified pixel is not allocated by the client
(that is, is unallocated or is only allocated by another client) (that is, is unallocated or is only allocated by another client) or
or if the colormap was created with all entries writable (by if the colormap was created with all entries writable (by passing
passing `x:Alloc-All' to `X:Create-Colormap'). If more than one 'x:Alloc-All' to 'X:Create-Colormap'). If more than one pixel is
pixel is in error, the one that gets reported is arbitrary. in error, the one that gets reported is arbitrary.
-- Function: x:colormap-find-color colormap rgb -- Function: x:colormap-find-color colormap rgb
RGB is a list or vector of 3 integers, describing the red, green, RGB is a list or vector of 3 integers, describing the red, green,
and blue intensities respectively; or an integer `#xrrggbb', and blue intensities respectively; or an integer '#xrrggbb',
packing red, green and blue intensities in the range 0 - 255. packing red, green and blue intensities in the range 0 - 255.
-- Function: x:colormap-find-color colormap color-name -- Function: x:colormap-find-color colormap color-name
The case-insensitive string COLOR_NAME specifies the name of a The case-insensitive string COLOR_NAME specifies the name of a
color (for example, `red') color (for example, 'red')
`X:Colormap-Find-Color' allocates a read-only colormap entry 'X:Colormap-Find-Color' allocates a read-only colormap entry
corresponding to the closest RGB value supported by the hardware. corresponding to the closest RGB value supported by the hardware.
`X:Colormap-Find-Color' returns the pixel value of the color 'X:Colormap-Find-Color' returns the pixel value of the color
closest to the specified RGB or COLOR_NAME elements supported by closest to the specified RGB or COLOR_NAME elements supported by
the hardware, if successful; otherwise `X:Colormap-Find-Color' the hardware, if successful; otherwise 'X:Colormap-Find-Color'
returns #f. returns #f.
Multiple clients that request the same effective RGB value can be Multiple clients that request the same effective RGB value can be
assigned the same read-only entry, thus allowing entries to be assigned the same read-only entry, thus allowing entries to be
shared. When the last client deallocates a shared cell, it is shared. When the last client deallocates a shared cell, it is
deallocated. deallocated.
-- Function: x:color-ref colormap pixel -- Function: x:color-ref colormap pixel
Returns a list of 3 integers, describing the red, green, and blue Returns a list of 3 integers, describing the red, green, and blue
intensities respectively of the COLORMAP entry of the cell indexed intensities respectively of the COLORMAP entry of the cell indexed
by PIXEL. by PIXEL.
The integer PIXEL must be a valid index into COLORMAP. The integer PIXEL must be a valid index into COLORMAP.
-- Function: X:Color-Set! colormap pixel rgb -- Function: X:Color-Set! colormap pixel rgb
RGB is a list or vector of 3 integers, describing the red, green, RGB is a list or vector of 3 integers, describing the red, green,
and blue intensities respectively; or an integer `#xrrggbb', and blue intensities respectively; or an integer '#xrrggbb',
packing red, green and blue intensities in the range 0 - 255. packing red, green and blue intensities in the range 0 - 255.
-- Function: X:Color-Set! colormap pixel color-name -- Function: X:Color-Set! colormap pixel color-name
The case-insensitive string COLOR_NAME specifies the name of a The case-insensitive string COLOR_NAME specifies the name of a
color (for example, `red') color (for example, 'red')
The integer PIXEL must be a valid index into COLORMAP. The integer PIXEL must be a valid index into COLORMAP.
`X:Color-Set!' changes the COLORMAP entry of the read/write cell 'X:Color-Set!' changes the COLORMAP entry of the read/write cell
indexed by PIXEL. If the COLORMAP is an installed map for its indexed by PIXEL. If the COLORMAP is an installed map for its
screen, the changes are visible immediately. screen, the changes are visible immediately.
-- Function: x:install-colormap colormap -- Function: x:install-colormap colormap
Installs the specified COLORMAP for its associated screen. All Installs the specified COLORMAP for its associated screen. All
windows associated with COLORMAP immediately display with true windows associated with COLORMAP immediately display with true
colors. A colormap is associated with a window when the window is colors. A colormap is associated with a window when the window is
created or its attributes changed. created or its attributes changed.
If the specified colormap is not already an installed colormap, If the specified colormap is not already an installed colormap, the
the X server generates a ColormapNotify event on each window that X server generates a ColormapNotify event on each window that has
has that colormap. that colormap.
-- Function: x:ccc colormap -- Function: x:ccc colormap
Returns the Color-Conversion-Context of COLORMAP. Returns the Color-Conversion-Context of COLORMAP.
 
File: Xlibscm.info, Node: Rendering, Next: Images, Prev: Colormap, Up: Top File: Xlibscm.info, Node: Rendering, Next: Images, Prev: Colormap, Up: Top
7 Rendering 7 Rendering
*********** ***********
-- Function: x:flush display -- Function: x:flush display
-- Function: x:flush window -- Function: x:flush window
Flushes the output buffer. Some client applications need not use Flushes the output buffer. Some client applications need not use
this function because the output buffer is automatically flushed this function because the output buffer is automatically flushed as
as needed by calls to X:Pending, X:Next-Event, and X:Window-Event. needed by calls to X:Pending, X:Next-Event, and X:Window-Event.
Events generated by the server may be enqueued into the library's Events generated by the server may be enqueued into the library's
event queue. event queue.
-- Function: x:flush gc -- Function: x:flush gc
Forces sending of GC component changes. Forces sending of GC component changes.
Xlib usually defers sending changes to the components of a GC to Xlib usually defers sending changes to the components of a GC to
the server until a graphics function is actually called with that the server until a graphics function is actually called with that
GC. This permits batching of component changes into a single GC. This permits batching of component changes into a single server
server request. In some circumstances, however, it may be request. In some circumstances, however, it may be necessary for
necessary for the client to explicitly force sending the changes the client to explicitly force sending the changes to the server.
to the server. An example might be when a protocol extension uses An example might be when a protocol extension uses the GC
the GC indirectly, in such a way that the extension interface indirectly, in such a way that the extension interface cannot know
cannot know what GC will be used. what GC will be used.
-- Function: x:clear-area window (x-pos y-pos) (width height) expose? -- Function: x:clear-area window (x-pos y-pos) (width height) expose?
Paints a rectangular area in the specified WINDOW according to the Paints a rectangular area in the specified WINDOW according to the
specified dimensions with the WINDOW's background pixel or pixmap. specified dimensions with the WINDOW's background pixel or pixmap.
The subwindow-mode effectively is `x:Clip-By-Children'. If width The subwindow-mode effectively is 'x:Clip-By-Children'. If width
is zero, it is replaced with the current width of the WINDOW minus is zero, it is replaced with the current width of the WINDOW minus
x. If height is zero, it is replaced with the current height of x. If height is zero, it is replaced with the current height of
the WINDOW minus y. If the WINDOW has a defined background tile, the WINDOW minus y. If the WINDOW has a defined background tile,
the rectangle clipped by any children is filled with this tile. the rectangle clipped by any children is filled with this tile. If
If the WINDOW has background x:None, the contents of the WINDOW the WINDOW has background x:None, the contents of the WINDOW are
are not changed. In either case, if EXPOSE? is True, one or more not changed. In either case, if EXPOSE? is True, one or more
x:Expose events are generated for regions of the rectangle that x:Expose events are generated for regions of the rectangle that are
are either visible or are being retained in a backing store. If either visible or are being retained in a backing store. If you
you specify a WINDOW whose class is x:Input-Only, an error results. specify a WINDOW whose class is x:Input-Only, an error results.
-- Function: x:fill-rectangle window gcontext position size -- Function: x:fill-rectangle window gcontext position size
Draw Strings Draw Strings
============ ============
-- Function: x:draw-string drawable gc position string -- Function: x:draw-string drawable gc position string
POSITION specifies coordinates relative to the origin of DRAWABLE POSITION specifies coordinates relative to the origin of DRAWABLE
of the origin of the first character to be drawn. of the origin of the first character to be drawn.
`x:draw-string' draws the characters of STRING, starting at 'x:draw-string' draws the characters of STRING, starting at
POSITION. POSITION.
-- Function: x:image-string drawable gc position string -- Function: x:image-string drawable gc position string
POSITION specifies coordinates relative to the origin of DRAWABLE POSITION specifies coordinates relative to the origin of DRAWABLE
of the origin of the first character to be drawn. of the origin of the first character to be drawn.
`x:image-string' draws the characters _and background_ of STRING, 'x:image-string' draws the characters _and background_ of STRING,
starting at POSITION. starting at POSITION.
Draw Shapes Draw Shapes
=========== ===========
-- Function: x:draw-points drawable gc position ... -- Function: x:draw-points drawable gc position ...
POSITION ... specifies coordinates of the point to be drawn. POSITION ... specifies coordinates of the point to be drawn.
-- Function: x:draw-points drawable gc x y ... -- Function: x:draw-points drawable gc x y ...
(X, Y) ... specifies coordinates of the point to be drawn. (X, Y) ... specifies coordinates of the point to be drawn.
-- Function: x:draw-points drawable gc point-array -- Function: x:draw-points drawable gc point-array
POINT-ARRAY is a uniform short array of rank 2, whose rightmost POINT-ARRAY is a uniform short array of rank 2, whose rightmost
index spans a range of 2. index spans a range of 2.
The `X:Draw-Points' procedure uses the foreground pixel and The 'X:Draw-Points' procedure uses the foreground pixel and
function components of the GC to draw points into DRAWABLE at the function components of the GC to draw points into DRAWABLE at the
positions (relative to the origin of DRAWABLE) specified. positions (relative to the origin of DRAWABLE) specified.
`X:Draw-Points' uses these GC components: function, planemask, 'X:Draw-Points' uses these GC components: function, planemask,
foreground, subwindow-mode, clip-x-origin, clip-y-origin, and foreground, subwindow-mode, clip-x-origin, clip-y-origin, and
clip-mask. clip-mask.
-- Function: x:draw-segments drawable gc pos1 pos2 ... -- Function: x:draw-segments drawable gc pos1 pos2 ...
POS1, POS2, ... specify coordinates to be connected by segments. POS1, POS2, ... specify coordinates to be connected by segments.
-- Function: x:draw-segments drawable gc x1 y1 x2 y2 ... -- Function: x:draw-segments drawable gc x1 y1 x2 y2 ...
(X1, Y1), (X2, Y2) ... specify coordinates to be connected by (X1, Y1), (X2, Y2) ... specify coordinates to be connected by
segments. segments.
-- Function: x:draw-segments drawable gc point-array -- Function: x:draw-segments drawable gc point-array
POINT-ARRAY is a uniform short array of rank 2, whose rightmost POINT-ARRAY is a uniform short array of rank 2, whose rightmost
index spans a range of 2. index spans a range of 2.
The `X:Draw-Segments' procedure uses the components of the The 'X:Draw-Segments' procedure uses the components of the
specified GC to draw multiple unconnected lines between disjoint specified GC to draw multiple unconnected lines between disjoint
adjacent pair of points passed as arguments. It draws the adjacent pair of points passed as arguments. It draws the segments
segments in order and does not perform joining at coincident in order and does not perform joining at coincident endpoints. For
endpoints. For any given line, `X:Draw-Segments' does not draw a any given line, 'X:Draw-Segments' does not draw a pixel more than
pixel more than once. If thin (zero line-width) segments once. If thin (zero line-width) segments intersect, the
intersect, the intersecting pixels are drawn multiple times. If intersecting pixels are drawn multiple times. If wide segments
wide segments intersect, the intersecting pixels are drawn only intersect, the intersecting pixels are drawn only once, as though
once, as though the entire PolyLine protocol request were a the entire PolyLine protocol request were a single, filled shape.
single, filled shape. `X:Draw-Segments' treats all coordinates as 'X:Draw-Segments' treats all coordinates as relative to the origin
relative to the origin of DRAWABLE. of DRAWABLE.
`X:Draw-Segments' uses these GC components: function, plane-mask, 'X:Draw-Segments' uses these GC components: function, plane-mask,
line-width, line-style, cap-style, fill-style, subwindow-mode, line-width, line-style, cap-style, fill-style, subwindow-mode,
clip-x-origin, clip-y-origin, and clip-mask, join-style. It also clip-x-origin, clip-y-origin, and clip-mask, join-style. It also
use these GC mode-dependent components: foreground, background, use these GC mode-dependent components: foreground, background,
tile, stipple, tilestipple-x-origin, tile-stipple-y-origin, tile, stipple, tilestipple-x-origin, tile-stipple-y-origin,
dash-offset, and dash-list. dash-offset, and dash-list.
-- Function: x:draw-lines drawable gc pos1 pos2 ... -- Function: x:draw-lines drawable gc pos1 pos2 ...
POS1, POS2, ... specify coordinates to be connected by lines. POS1, POS2, ... specify coordinates to be connected by lines.
-- Function: x:draw-lines drawable gc x1 y1 x2 y2 ... -- Function: x:draw-lines drawable gc x1 y1 x2 y2 ...
(X1, Y1), (X2, Y2) ... specify coordinates to be connected by (X1, Y1), (X2, Y2) ... specify coordinates to be connected by
lines. lines.
-- Function: x:draw-lines drawable gc point-array -- Function: x:draw-lines drawable gc point-array
POINT-ARRAY is a uniform short array of rank 2, whose rightmost POINT-ARRAY is a uniform short array of rank 2, whose rightmost
index spans a range of 2. index spans a range of 2.
The `X:Draw-Lines' procedure uses the components of the specified The 'X:Draw-Lines' procedure uses the components of the specified
GC to draw lines between each adjacent pair of points passed as GC to draw lines between each adjacent pair of points passed as
arguments. It draws the lines in order. The lines join correctly arguments. It draws the lines in order. The lines join correctly
at all intermediate points, and if the first and last points at all intermediate points, and if the first and last points
coincide, the first and last lines also join correctly. For any coincide, the first and last lines also join correctly. For any
given line, `X:Draw-Lines' does not draw a pixel more than once. given line, 'X:Draw-Lines' does not draw a pixel more than once.
If thin (zero line-width) lines intersect, the intersecting pixels If thin (zero line-width) lines intersect, the intersecting pixels
are drawn multiple times. If wide lines intersect, the are drawn multiple times. If wide lines intersect, the
intersecting pixels are drawn only once, as though the entire intersecting pixels are drawn only once, as though the entire
PolyLine protocol request were a single, filled shape. PolyLine protocol request were a single, filled shape.
`X:Draw-Lines' treats all coordinates as relative to the origin of 'X:Draw-Lines' treats all coordinates as relative to the origin of
DRAWABLE. DRAWABLE.
`X:Draw-Lines' uses these GC components: function, plane-mask, 'X:Draw-Lines' uses these GC components: function, plane-mask,
line-width, line-style, cap-style, fill-style, subwindow-mode, line-width, line-style, cap-style, fill-style, subwindow-mode,
clip-x-origin, clip-y-origin, and clip-mask, join-style. It also clip-x-origin, clip-y-origin, and clip-mask, join-style. It also
use these GC mode-dependent components: foreground, background, use these GC mode-dependent components: foreground, background,
tile, stipple, tilestipple-x-origin, tile-stipple-y-origin, tile, stipple, tilestipple-x-origin, tile-stipple-y-origin,
dash-offset, and dash-list. dash-offset, and dash-list.
-- Function: x:fill-polygon drawable gc pos1 pos2 ... -- Function: x:fill-polygon drawable gc pos1 pos2 ...
POS1, POS2, ... specify coordinates of the border path. POS1, POS2, ... specify coordinates of the border path.
-- Function: x:fill-polygon drawable gc x1 y1 x2 y2 ... -- Function: x:fill-polygon drawable gc x1 y1 x2 y2 ...
(X1, Y1), (X2, Y2) ... specify coordinates of the border path. (X1, Y1), (X2, Y2) ... specify coordinates of the border path.
-- Function: x:fill-polygon drawable gc point-array -- Function: x:fill-polygon drawable gc point-array
POINT-ARRAY is a uniform short array of rank 2, whose rightmost POINT-ARRAY is a uniform short array of rank 2, whose rightmost
index spans a range of 2. index spans a range of 2.
The path is closed automatically if the last point in the list or The path is closed automatically if the last point in the list or
POINT-ARRAY does not coincide with the first point. POINT-ARRAY does not coincide with the first point.
The `X:Fill-Polygon' procedure uses the components of the specified The 'X:Fill-Polygon' procedure uses the components of the specified
GC to fill the region closed by the specified path. GC to fill the region closed by the specified path.
`X:Fill-Polygon' does not draw a pixel of the region more than 'X:Fill-Polygon' does not draw a pixel of the region more than
once. `X:Fill-Polygon' treats all coordinates as relative to the once. 'X:Fill-Polygon' treats all coordinates as relative to the
origin of DRAWABLE. origin of DRAWABLE.
`X:Fill-Polygon' uses these GC components: function, planemask, 'X:Fill-Polygon' uses these GC components: function, planemask,
fill-style, fill-rule, subwindow-mode, clip-x-origin, fill-style, fill-rule, subwindow-mode, clip-x-origin,
clip-y-origin, and clip-mask. It also use these GC mode-dependent clip-y-origin, and clip-mask. It also use these GC mode-dependent
components: foreground, background, tile, stipple, components: foreground, background, tile, stipple,
tile-stipple-x-origin, and tile-stipple-y-origin. tile-stipple-x-origin, and tile-stipple-y-origin.
 
File: Xlibscm.info, Node: Images, Next: Event, Prev: Rendering, Up: Top File: Xlibscm.info, Node: Images, Next: Event, Prev: Rendering, Up: Top
8 Images 8 Images
******** ********
skipping to change at line 1706 skipping to change at line 1661
Returns the length of the event queue for the connected DISPLAY. Returns the length of the event queue for the connected DISPLAY.
Note that there may be more events that have not been read into the Note that there may be more events that have not been read into the
queue yet (see X:Events-Queued). queue yet (see X:Events-Queued).
-- Function: x:pending display -- Function: x:pending display
Returns the number of events that have been received from the X Returns the number of events that have been received from the X
server but have not been removed from the event queue. server but have not been removed from the event queue.
-- Function: x:events-queued display -- Function: x:events-queued display
Returns the number of events already in the queue if the number is Returns the number of events already in the queue if the number is
nonzero. If there are no events in the queue, `X:Events-Queued' nonzero. If there are no events in the queue, 'X:Events-Queued'
attempts to read more events out of the application's connection attempts to read more events out of the application's connection
without flushing the output buffer and returns the number read. without flushing the output buffer and returns the number read.
Both of these routines return an object of type "event". Both of these routines return an object of type "event".
-- Function: x:next-event display -- Function: x:next-event display
Removes and returns the first event from the event queue. If the Removes and returns the first event from the event queue. If the
event queue is empty, `X:Next-Event' flushes the output buffer and event queue is empty, 'X:Next-Event' flushes the output buffer and
blocks until an event is received. blocks until an event is received.
-- Function: x:peek-event display -- Function: x:peek-event display
Returns the first event from the event queue, but it does not Returns the first event from the event queue, but it does not
remove the event from the queue. If the queue is empty, remove the event from the queue. If the queue is empty,
`X:Peek-Event' flushes the output buffer and blocks until an event 'X:Peek-Event' flushes the output buffer and blocks until an event
is received. is received.
Each event object has fields dependent on its sub-type. Each event object has fields dependent on its sub-type.
-- Function: x:event-ref event field-name -- Function: x:event-ref event field-name
window The window on which EVENT was generated window The window on which EVENT was generated
and is referred to as the event window. and is referred to as the event window.
root is the event window's root window. root is the event window's root window.
subwindow If the source window is an inferior of subwindow If the source window is an inferior of
the event window, the SUBWINDOW is the the event window, the SUBWINDOW is the
child of the event window that is the child of the event window that is the
source window or the child of the event source window or the child of the event
window that is an ancestor of the window that is an ancestor of the source
source window. Otherwise, `None'. window. Otherwise, 'None'.
X-event:type An integer: X:KEY-PRESS, X:KEY-RELEASE, X-event:type An integer: X:KEY-PRESS, X:KEY-RELEASE,
X:BUTTON-PRESS, X:BUTTON-RELEASE, X:BUTTON-PRESS, X:BUTTON-RELEASE,
X:MOTION-NOTIFY, X:ENTER-NOTIFY, X:MOTION-NOTIFY, X:ENTER-NOTIFY,
X:LEAVE-NOTIFY, X:FOCUS-IN, X:LEAVE-NOTIFY, X:FOCUS-IN, X:FOCUS-OUT,
X:FOCUS-OUT, X:KEYMAP-NOTIFY, X:EXPOSE, X:KEYMAP-NOTIFY, X:EXPOSE,
X:GRAPHICS-EXPOSE, X:NO-EXPOSE, X:GRAPHICS-EXPOSE, X:NO-EXPOSE,
X:VISIBILITY-NOTIFY, X:CREATE-NOTIFY, X:VISIBILITY-NOTIFY, X:CREATE-NOTIFY,
X:DESTROY-NOTIFY, X:UNMAP-NOTIFY, X:DESTROY-NOTIFY, X:UNMAP-NOTIFY,
X:MAP-NOTIFY, X:MAP-REQUEST, X:MAP-NOTIFY, X:MAP-REQUEST,
X:REPARENT-NOTIFY, X:CONFIGURE-NOTIFY, X:REPARENT-NOTIFY, X:CONFIGURE-NOTIFY,
X:CONFIGURE-REQUEST, X:GRAVITY-NOTIFY, X:CONFIGURE-REQUEST, X:GRAVITY-NOTIFY,
X:RESIZE-REQUEST, X:CIRCULATE-NOTIFY, X:RESIZE-REQUEST, X:CIRCULATE-NOTIFY,
X:CIRCULATE-REQUEST, X:PROPERTY-NOTIFY, X:CIRCULATE-REQUEST, X:PROPERTY-NOTIFY,
X:SELECTION-CLEAR, X:SELECTION-REQUEST, X:SELECTION-CLEAR, X:SELECTION-REQUEST,
X:SELECTION-NOTIFY, X:COLORMAP-NOTIFY, X:SELECTION-NOTIFY, X:COLORMAP-NOTIFY,
X:CLIENT-MESSAGE, or X:MAPPING-NOTIFY. X:CLIENT-MESSAGE, or X:MAPPING-NOTIFY.
X-event:serial The serial number of the protocol X-event:serial The serial number of the protocol request
request that generated the EVENT. that generated the EVENT.
X-event:send-event Boolean that indicates whether the X-event:send-event Boolean that indicates whether the event
event was sent by a different client. was sent by a different client.
X-event:time The time when the EVENT was generated X-event:time The time when the EVENT was generated
expressed in milliseconds. expressed in milliseconds.
X-event:x X-event:x
X-event:y For window entry/exit events the X and X-event:y For window entry/exit events the X and Y
Y members are set to the coordinates of members are set to the coordinates of the
the pointer position in the event pointer position in the event window.
window. This position is always the This position is always the pointer's
pointer's final position, not its final position, not its initial position.
initial position. If the event window If the event window is on the same screen
is on the same screen as the root as the root window, X and Y are the
window, X and Y are the pointer pointer coordinates relative to the event
coordinates relative to the event window's origin. Otherwise, X and Y are
window's origin. Otherwise, X and Y set to zero.
are set to zero.
For expose events The X and Y members are
For expose events The X and Y members set to the coordinates relative to the
are set to the coordinates relative to drawable's origin and indicate the
the drawable's origin and indicate the upper-left corner of the rectangle.
upper-left corner of the rectangle.
For configure, create, gravity, and
For configure, create, gravity, and reparent events the X and Y members are
reparent events the X and Y members are set to the window's coordinates relative
set to the window's coordinates to the parent window's origin and
relative to the parent window's origin indicate the position of the upper-left
and indicate the position of the outside corner of the created window.
upper-left outside corner of the
created window.
X-event:x-root X-event:x-root
X-event:y-root The pointer's coordinates relative to X-event:y-root The pointer's coordinates relative to the
the root window's origin at the time of root window's origin at the time of the
the EVENT. EVENT.
X-event:state For keyboard, pointer and window X-event:state For keyboard, pointer and window
entry/exit events, the state member is entry/exit events, the state member is
set to indicate the logical state of set to indicate the logical state of the
the pointer buttons and modifier keys pointer buttons and modifier keys just
just prior to the EVENT, which is the prior to the EVENT, which is the bitwise
bitwise inclusive OR of one or more of inclusive OR of one or more of the button
the button or modifier key masks: or modifier key masks: X:BUTTON1-MASK,
X:BUTTON1-MASK, X:BUTTON2-MASK, X:BUTTON2-MASK, X:BUTTON3-MASK,
X:BUTTON3-MASK, X:BUTTON4-MASK, X:BUTTON4-MASK, X:BUTTON5-MASK,
X:BUTTON5-MASK, X:SHIFT-MASK, X:SHIFT-MASK, X:LOCK-MASK,
X:LOCK-MASK, X:CONTROL-MASK, X:CONTROL-MASK, X:MOD1-MASK, X:MOD2-MASK,
X:MOD1-MASK, X:MOD2-MASK, X:MOD3-MASK, X:MOD3-MASK, X:MOD4-MASK, and
X:MOD4-MASK, and X:MOD5-MASK. X:MOD5-MASK.
For visibility events, the state of the For visibility events, the state of the
window's visibility: window's visibility:
X:VISIBILITY-UNOBSCURED, X:VISIBILITY-UNOBSCURED,
X:VISIBILITY-PARTIALLY-OBSCURED, or X:VISIBILITY-PARTIALLY-OBSCURED, or
X:VISIBILITY-FULLY-OBSCURED. X:VISIBILITY-FULLY-OBSCURED.
For colormap events, indicates whether For colormap events, indicates whether
the colormap is installed or the colormap is installed or uninstalled:
uninstalled: x:Colormap-Installed or x:Colormap-Installed or
x:Colormap-Uninstalled. x:Colormap-Uninstalled.
For property events, indicates whether For property events, indicates whether
the property was changed to a new value the property was changed to a new value
or deleted: x:Property-New-Value or or deleted: x:Property-New-Value or
x:Property-Delete. x:Property-Delete.
X-event:keycode An integer that represents a physical X-event:keycode An integer that represents a physical key
key on the keyboard. on the keyboard.
X-event:same-screen Indicates whether the event window is X-event:same-screen Indicates whether the event window is on
on the same screen as the root window. the same screen as the root window. If
If #t, the event and root windows are #t, the event and root windows are on the
on the same screen. If #f, the event same screen. If #f, the event and root
and root windows are not on the same windows are not on the same screen.
screen. X-event:button The pointer button that changed state;
X-event:button The pointer button that changed state; can be the X:BUTTON1, X:BUTTON2,
can be the X:BUTTON1, X:BUTTON2, X:BUTTON3, X:BUTTON4, or X:BUTTON5 value.
X:BUTTON3, X:BUTTON4, or X:BUTTON5 X-event:is-hint Detail of motion-notify events:
value. X:NOTIFY-NORMAL or X:NOTIFY-HINT.
X-event:is-hint Detail of motion-notify events: X-event:mode Indicates whether the EVENT is a normal
X:NOTIFY-NORMAL or X:NOTIFY-HINT. event, pseudo-motion event when a grab
X-event:mode Indicates whether the EVENT is a normal activates, or a pseudo-motion event when
event, pseudo-motion event when a grab a grab deactivates: X:NOTIFY-NORMAL,
activates, or a pseudo-motion event X:NOTIFY-GRAB, or X:NOTIFY-UNGRAB.
when a grab deactivates: X-event:detail Indicates the notification detail:
X:NOTIFY-NORMAL, X:NOTIFY-GRAB, or X:NOTIFY-ANCESTOR, X:NOTIFY-VIRTUAL,
X:NOTIFY-UNGRAB. X:NOTIFY-INFERIOR, X:NOTIFY-NONLINEAR, or
X-event:detail Indicates the notification detail: X:NOTIFY-NONLINEAR-VIRTUAL.
X:NOTIFY-ANCESTOR, X:NOTIFY-VIRTUAL, X-event:focus If the event window is the focus window
X:NOTIFY-INFERIOR, X:NOTIFY-NONLINEAR, or an inferior of the focus window, #t;
or X:NOTIFY-NONLINEAR-VIRTUAL. otherwise #f.
X-event:focus If the event window is the focus window
or an inferior of the focus window, #t;
otherwise #f.
X-event:width X-event:width
X-event:height The size (extent) of the rectangle. X-event:height The size (extent) of the rectangle.
X-event:count For mapping events is the number of X-event:count For mapping events is the number of
keycodes altered. keycodes altered.
For expose events Is the number of For expose events Is the number of Expose
Expose or GraphicsExpose events that or GraphicsExpose events that are to
are to follow. If count is zero, no follow. If count is zero, no more Expose
more Expose events follow for this events follow for this window. However,
window. However, if count is nonzero, if count is nonzero, at least that number
at least that number of Expose events of Expose events (and possibly more)
(and possibly more) follow for this follow for this window. Simple
window. Simple applications that do applications that do not want to optimize
not want to optimize redisplay by redisplay by distinguishing between
distinguishing between subareas of its subareas of its window can just ignore
window can just ignore all Expose all Expose events with nonzero counts and
events with nonzero counts and perform perform full redisplays on events with
full redisplays on events with zero zero counts.
counts. X-event:major-code The major_code member is set to the
X-event:major-code The major_code member is set to the graphics request initiated by the client
graphics request initiated by the and can be either X_CopyArea or
client and can be either X_CopyArea or X_CopyPlane. If it is X_CopyArea, a call
X_CopyPlane. If it is X_CopyArea, a to XCopyArea initiated the request. If
call to XCopyArea initiated the it is X_CopyPlane, a call to XCopyPlane
request. If it is X_CopyPlane, a call initiated the request.
to XCopyPlane initiated the request. X-event:minor-code Not currently used.
X-event:minor-code Not currently used. X-event:border-width For configure events, the width of the
X-event:border-width For configure events, the width of the window's border, in pixels.
window's border, in pixels. X-event:override-redirect The override-redirect attribute of the
X-event:override-redirect The override-redirect attribute of the window. Window manager clients normally
window. Window manager clients should ignore this window if it is #t.
normally should ignore this window if X-event:from-configure True if the event was generated as a
it is #t. result of a resizing of the window's
X-event:from-configure True if the event was generated as a parent when the window itself had a
result of a resizing of the window's win-gravity of x:Unmap-Gravity.
parent when the window itself had a X-event:value-mask Indicates which components were specified
win-gravity of x:Unmap-Gravity. in the ConfigureWindow protocol request.
X-event:value-mask Indicates which components were The corresponding values are reported as
specified in the ConfigureWindow given in the request. The remaining
protocol request. The corresponding values are filled in from the current
values are reported as given in the geometry of the window, except in the
request. The remaining values are case of above (sibling) and detail
filled in from the current geometry of (stack-mode), which are reported as None
the window, except in the case of above and Above, respectively, if they are not
(sibling) and detail (stack-mode), given in the request.
which are reported as None and Above, X-event:place The window's position after the restack
respectively, if they are not given in occurs and is either x:Place-On-Top or
the request. x:Place-On-Bottom. If it is
X-event:place The window's position after the restack x:Place-On-Top, the window is now on top
occurs and is either x:Place-On-Top or of all siblings. If it is
x:Place-On-Bottom. If it is x:Place-On-Bottom, the window is now
x:Place-On-Top, the window is now on below all siblings.
top of all siblings. If it is X-event:new indicate whether the colormap for the
x:Place-On-Bottom, the window is now specified window was changed or installed
below all siblings. or uninstalled and can be True or False.
X-event:new indicate whether the colormap for the If it is True, the colormap was changed.
specified window was changed or If it is False, the colormap was
installed or uninstalled and can be installed or uninstalled.
True or False. If it is True, the X-event:format Is 8, 16, or 32 and specifies whether the
colormap was changed. If it is False, data should be viewed as a list of bytes,
the colormap was installed or shorts, or longs
uninstalled. X-event:request Indicates the kind of mapping change that
X-event:format Is 8, 16, or 32 and specifies whether occurred and can be X:MAPPING-MODIFIER,
the data should be viewed as a list of X:MAPPING-KEYBOARD, or X:MAPPING-POINTER.
bytes, shorts, or longs If it is X:MAPPING-MODIFIER, the modifier
X-event:request Indicates the kind of mapping change mapping was changed. If it is
that occurred and can be X:MAPPING-KEYBOARD, the keyboard mapping
X:MAPPING-MODIFIER, X:MAPPING-KEYBOARD, was changed. If it is X:MAPPING-POINTER,
or X:MAPPING-POINTER. If it is the pointer button mapping was changed.
X:MAPPING-MODIFIER, the modifier X-event:first-keycode The X-event:first-keycode is set only if
mapping was changed. If it is the X-event:request was set to
X:MAPPING-KEYBOARD, the keyboard X:MAPPING-KEYBOARD. The number in
mapping was changed. If it is X-event:first-keycode represents the
X:MAPPING-POINTER, the pointer button first number in the range of the altered
mapping was changed. mapping, and X-event:count represents the
X-event:first-keycode The X-event:first-keycode is set only number of keycodes altered.
if the X-event:request was set to
X:MAPPING-KEYBOARD. The number in
X-event:first-keycode represents the
first number in the range of the
altered mapping, and X-event:count
represents the number of keycodes
altered.
 
File: Xlibscm.info, Node: Indexes, Prev: Event, Up: Top File: Xlibscm.info, Node: Indexes, Prev: Event, Up: Top
Indexes Indexes
******* *******
* Menu: * Menu:
* Procedure and Macro Index:: * Procedure and Macro Index::
skipping to change at line 1947 skipping to change at line 1890
 
File: Xlibscm.info, Node: Procedure and Macro Index, Next: Variable Index, Pr ev: Indexes, Up: Indexes File: Xlibscm.info, Node: Procedure and Macro Index, Next: Variable Index, Pr ev: Indexes, Up: Indexes
Procedure and Macro Index Procedure and Macro Index
========================= =========================
[index] [index]
* Menu: * Menu:
* hostname:number.screen-number: Display and Screens. (line 18) * hostname:number.screen-number: Display and Screens. (line 17)
* x:alloc-colormap-cells: Colormap. (line 83) * x:alloc-colormap-cells: Colormap. (line 74)
* x:ccc: Colormap. (line 218) * x:alloc-colormap-cells <1>: Colormap. (line 75)
* x:clear-area: Rendering. (line 27) * x:alloc-colormap-cells <2>: Colormap. (line 103)
* x:close <1>: Windows and Pixmaps. (line 49) * x:alloc-colormap-cells <3>: Colormap. (line 104)
* x:ccc: Colormap. (line 210)
* x:clear-area: Rendering. (line 26)
* x:close: Display and Screens. (line 33) * x:close: Display and Screens. (line 33)
* x:color-ref: Colormap. (line 184) * x:close <1>: Windows and Pixmaps. (line 49)
* X:Color-Set!: Colormap. (line 191) * x:close <2>: Windows and Pixmaps. (line 63)
* x:colormap-find-color: Colormap. (line 162) * x:color-ref: Colormap. (line 174)
* x:copy-colormap-and-free: Colormap. (line 61) * X:Color-Set!: Colormap. (line 182)
* x:copy-gc-fields!: Graphics Context. (line 25) * X:Color-Set! <1>: Colormap. (line 188)
* x:create-colormap: Colormap. (line 9) * x:colormap-find-color: Colormap. (line 151)
* x:create-cursor: Cursor. (line 7) * x:colormap-find-color <1>: Colormap. (line 157)
* x:create-gc: Graphics Context. (line 13) * x:copy-colormap-and-free: Colormap. (line 53)
* x:create-pixmap: Windows and Pixmaps. (line 39) * x:copy-gc-fields!: Graphics Context. (line 24)
* x:create-window: Windows and Pixmaps. (line 8) * x:create-colormap: Colormap. (line 8)
* x:create-cursor: Cursor. (line 6)
* x:create-cursor <1>: Cursor. (line 18)
* x:create-cursor <2>: Cursor. (line 29)
* x:create-cursor <3>: Cursor. (line 33)
* x:create-cursor <4>: Cursor. (line 48)
* x:create-gc: Graphics Context. (line 12)
* x:create-pixmap: Windows and Pixmaps. (line 38)
* x:create-pixmap <1>: Windows and Pixmaps. (line 39)
* x:create-window: Windows and Pixmaps. (line 6)
* x:create-window <1>: Windows and Pixmaps. (line 32)
* x:default-ccc: Display and Screens. (line 88) * x:default-ccc: Display and Screens. (line 88)
* x:default-ccc <1>: Display and Screens. (line 89)
* x:default-ccc <2>: Display and Screens. (line 90)
* x:default-colormap: Display and Screens. (line 83) * x:default-colormap: Display and Screens. (line 83)
* x:default-colormap <1>: Display and Screens. (line 84)
* x:default-colormap <2>: Display and Screens. (line 85)
* x:default-gc: Display and Screens. (line 94) * x:default-gc: Display and Screens. (line 94)
* x:default-gc <1>: Display and Screens. (line 95)
* x:default-gc <2>: Display and Screens. (line 96)
* x:default-screen: Display and Screens. (line 65) * x:default-screen: Display and Screens. (line 65)
* x:default-visual: Display and Screens. (line 106) * x:default-visual: Display and Screens. (line 106)
* x:draw-lines: Rendering. (line 111) * x:default-visual <1>: Display and Screens. (line 107)
* x:draw-points: Rendering. (line 63) * x:default-visual <2>: Display and Screens. (line 108)
* x:draw-segments: Rendering. (line 81) * x:draw-lines: Rendering. (line 110)
* x:draw-string: Rendering. (line 46) * x:draw-lines <1>: Rendering. (line 113)
* x:event-ref: Event. (line 40) * x:draw-lines <2>: Rendering. (line 117)
* x:events-queued: Event. (line 19) * x:draw-points: Rendering. (line 62)
* x:fill-polygon: Rendering. (line 142) * x:draw-points <1>: Rendering. (line 65)
* x:fill-rectangle: Rendering. (line 41) * x:draw-points <2>: Rendering. (line 68)
* x:flush: Rendering. (line 7) * x:draw-segments: Rendering. (line 80)
* x:free-colormap-cells: Colormap. (line 138) * x:draw-segments <1>: Rendering. (line 83)
* x:gc-ref: Graphics Context. (line 30) * x:draw-segments <2>: Rendering. (line 87)
* x:gc-set!: Graphics Context. (line 18) * x:draw-string: Rendering. (line 45)
* x:event-ref: Event. (line 39)
* x:events-queued: Event. (line 18)
* x:fill-polygon: Rendering. (line 141)
* x:fill-polygon <1>: Rendering. (line 144)
* x:fill-polygon <2>: Rendering. (line 147)
* x:fill-rectangle: Rendering. (line 40)
* x:flush: Rendering. (line 6)
* x:flush <1>: Rendering. (line 7)
* x:flush <2>: Rendering. (line 14)
* x:free-colormap-cells: Colormap. (line 127)
* x:free-colormap-cells <1>: Colormap. (line 128)
* x:gc-ref: Graphics Context. (line 29)
* x:gc-set!: Graphics Context. (line 17)
* x:get-window-property: Window Properties and Visibility. * x:get-window-property: Window Properties and Visibility.
(line 7) (line 6)
* x:image-string: Rendering. (line 53) * x:get-window-property <1>: Window Properties and Visibility.
* x:install-colormap: Colormap. (line 207) (line 10)
* x:image-string: Rendering. (line 52)
* x:install-colormap: Colormap. (line 199)
* x:list-properties: Window Properties and Visibility. * x:list-properties: Window Properties and Visibility.
(line 15) (line 14)
* x:make-visual: Display and Screens. (line 112) * x:make-visual: Display and Screens. (line 111)
* x:make-visual <1>: Display and Screens. (line 112)
* x:map-subwindows: Window Properties and Visibility. * x:map-subwindows: Window Properties and Visibility.
(line 60) (line 58)
* x:map-window: Window Properties and Visibility. * x:map-window: Window Properties and Visibility.
(line 23) (line 22)
* x:next-event: Event. (line 27) * x:next-event: Event. (line 26)
* x:open-display: Display and Screens. (line 7) * x:open-display: Display and Screens. (line 6)
* x:peek-event: Event. (line 32) * x:peek-event: Event. (line 31)
* x:pending: Event. (line 15) * x:pending: Event. (line 14)
* x:protocol-version: Display and Screens. (line 46) * x:protocol-version: Display and Screens. (line 46)
* x:q-length: Event. (line 10) * x:q-length: Event. (line 9)
* x:read-bitmap-file: Images. (line 7) * x:read-bitmap-file: Images. (line 6)
* x:root-window: Display and Screens. (line 70) * x:root-window: Display and Screens. (line 70)
* x:screen-black: Display and Screens. (line 182) * x:root-window <1>: Display and Screens. (line 71)
* x:screen-cells: Display and Screens. (line 149) * x:root-window <2>: Display and Screens. (line 80)
* x:screen-black: Display and Screens. (line 174)
* x:screen-black <1>: Display and Screens. (line 175)
* x:screen-black <2>: Display and Screens. (line 176)
* x:screen-cells: Display and Screens. (line 141)
* x:screen-cells <1>: Display and Screens. (line 142)
* x:screen-cells <2>: Display and Screens. (line 143)
* x:screen-count: Display and Screens. (line 62) * x:screen-count: Display and Screens. (line 62)
* x:screen-depth: Display and Screens. (line 154) * x:screen-depth: Display and Screens. (line 146)
* x:screen-depth <1>: Display and Screens. (line 149)
* x:screen-depth <2>: Display and Screens. (line 150)
* x:screen-depth <3>: Display and Screens. (line 151)
* x:screen-depths: Display and Screens. (line 99) * x:screen-depths: Display and Screens. (line 99)
* x:screen-dimensions: Display and Screens. (line 171) * x:screen-depths <1>: Display and Screens. (line 100)
* x:screen-size: Display and Screens. (line 166) * x:screen-depths <2>: Display and Screens. (line 101)
* x:screen-white: Display and Screens. (line 177) * x:screen-dimensions: Display and Screens. (line 163)
* x:screen-dimensions <1>: Display and Screens. (line 164)
* x:screen-dimensions <2>: Display and Screens. (line 165)
* x:screen-size: Display and Screens. (line 158)
* x:screen-size <1>: Display and Screens. (line 159)
* x:screen-size <2>: Display and Screens. (line 160)
* x:screen-white: Display and Screens. (line 169)
* x:screen-white <1>: Display and Screens. (line 170)
* x:screen-white <2>: Display and Screens. (line 171)
* x:server-vendor: Display and Screens. (line 51) * x:server-vendor: Display and Screens. (line 51)
* x:unmap-subwindows: Window Properties and Visibility. * x:unmap-subwindows: Window Properties and Visibility.
(line 79) (line 76)
* x:unmap-window: Window Properties and Visibility. * x:unmap-window: Window Properties and Visibility.
(line 68) (line 66)
* x:vendor-release: Display and Screens. (line 56) * x:vendor-release: Display and Screens. (line 56)
* x:visual-class: Display and Screens. (line 132) * x:visual-class: Display and Screens. (line 127)
* x:visual-geometry: Display and Screens. (line 137) * x:visual-class <1>: Display and Screens. (line 128)
* x:visual-class <2>: Display and Screens. (line 129)
* x:visual-geometry: Display and Screens. (line 132)
* x:visual-geometry <1>: Display and Screens. (line 133)
* x:visual-geometry <2>: Display and Screens. (line 134)
* x:window-geometry: Windows and Pixmaps. (line 67) * x:window-geometry: Windows and Pixmaps. (line 67)
* x:window-geometry-set!: Windows and Pixmaps. (line 88) * x:window-geometry-set!: Windows and Pixmaps. (line 85)
* x:window-ref: Window Attributes. (line 280) * x:window-ref: Window Attributes. (line 276)
* x:window-set!: Window Attributes. (line 7) * x:window-set!: Window Attributes. (line 6)
 
File: Xlibscm.info, Node: Variable Index, Next: Concept Index, Prev: Procedur e and Macro Index, Up: Indexes File: Xlibscm.info, Node: Variable Index, Next: Concept Index, Prev: Procedur e and Macro Index, Up: Indexes
Variable Index Variable Index
============== ==============
[index] [index]
* Menu: * Menu:
* x:CW-Back-Pixel: Window Attributes. (line 29) * x:CW-Back-Pixel: Window Attributes. (line 28)
* x:CW-Back-Pixmap: Window Attributes. (line 19) * x:CW-Back-Pixmap: Window Attributes. (line 18)
* x:CW-Backing-Pixel: Window Attributes. (line 138) * x:CW-Backing-Pixel: Window Attributes. (line 137)
* x:CW-Backing-Planes: Window Attributes. (line 137) * x:CW-Backing-Planes: Window Attributes. (line 136)
* x:CW-Backing-Store: Window Attributes. (line 108) * x:CW-Backing-Store: Window Attributes. (line 107)
* x:CW-Bit-Gravity: Window Attributes. (line 46) * x:CW-Bit-Gravity: Window Attributes. (line 45)
* x:CW-Border-Pixel: Window Attributes. (line 42) * x:CW-Border-Pixel: Window Attributes. (line 41)
* x:CW-Border-Pixmap: Window Attributes. (line 35) * x:CW-Border-Pixmap: Window Attributes. (line 34)
* x:CW-Border-Width: Windows and Pixmaps. (line 112) * x:CW-Border-Width: Windows and Pixmaps. (line 109)
* x:CW-Colormap: Window Attributes. (line 251) * x:CW-Colormap: Window Attributes. (line 247)
* x:CW-Cursor: Window Attributes. (line 269) * x:CW-Cursor: Window Attributes. (line 265)
* x:CW-Dont-Propagate: Window Attributes. (line 240) * x:CW-Dont-Propagate: Window Attributes. (line 236)
* x:CW-Event-Mask: Window Attributes. (line 182) * x:CW-Event-Mask: Window Attributes. (line 180)
* x:CW-Height: Windows and Pixmaps. (line 100) * x:CW-Height: Windows and Pixmaps. (line 97)
* x:CW-Override-Redirect: Window Attributes. (line 154) * x:CW-Override-Redirect: Window Attributes. (line 153)
* x:CW-Save-Under: Window Attributes. (line 168) * x:CW-Save-Under: Window Attributes. (line 167)
* x:CW-Sibling: Windows and Pixmaps. (line 119) * x:CW-Sibling: Windows and Pixmaps. (line 116)
* x:CW-Stack-Mode: Windows and Pixmaps. (line 123) * x:CW-Stack-Mode: Windows and Pixmaps. (line 120)
* x:CW-Width: Windows and Pixmaps. (line 99) * x:CW-Width: Windows and Pixmaps. (line 96)
* x:CW-Win-Gravity: Window Attributes. (line 47) * x:CW-Win-Gravity: Window Attributes. (line 46)
* x:CWX: Windows and Pixmaps. (line 97) * x:CWX: Windows and Pixmaps. (line 94)
* x:CWY: Windows and Pixmaps. (line 98) * x:CWY: Windows and Pixmaps. (line 95)
* x:GC-Arc-Mode: Graphics Context. (line 348) * x:GC-Arc-Mode: Graphics Context. (line 335)
* x:GC-Background: Graphics Context. (line 92) * x:GC-Background: Graphics Context. (line 91)
* x:GC-Cap-Style: Graphics Context. (line 153) * x:GC-Cap-Style: Graphics Context. (line 150)
* x:GC-Clip-Mask: Graphics Context. (line 309) * x:GC-Clip-Mask: Graphics Context. (line 296)
* x:GC-Clip-X-Origin: Graphics Context. (line 304) * x:GC-Clip-X-Origin: Graphics Context. (line 291)
* x:GC-Clip-Y-Origin: Graphics Context. (line 305) * x:GC-Clip-Y-Origin: Graphics Context. (line 292)
* x:GC-Dash-List: Graphics Context. (line 339) * x:GC-Dash-List: Graphics Context. (line 326)
* x:GC-Dash-Offset: Graphics Context. (line 322) * x:GC-Dash-Offset: Graphics Context. (line 309)
* x:GC-Fill-Rule: Graphics Context. (line 228) * x:GC-Fill-Rule: Graphics Context. (line 217)
* x:GC-Fill-Style: Graphics Context. (line 190) * x:GC-Fill-Style: Graphics Context. (line 184)
* x:GC-Font: Graphics Context. (line 281) * x:GC-Font: Graphics Context. (line 269)
* x:GC-Foreground: Graphics Context. (line 91) * x:GC-Foreground: Graphics Context. (line 90)
* x:GC-Function: Graphics Context. (line 42) * x:GC-Function: Graphics Context. (line 41)
* x:GC-Graphics-Exposures: Graphics Context. (line 299) * x:GC-Graphics-Exposures: Graphics Context. (line 286)
* x:GC-Join-Style: Graphics Context. (line 174) * x:GC-Join-Style: Graphics Context. (line 169)
* x:GC-Line-Style: Graphics Context. (line 137) * x:GC-Line-Style: Graphics Context. (line 136)
* x:GC-Line-Width: Graphics Context. (line 100) * x:GC-Line-Width: Graphics Context. (line 99)
* x:GC-Plane-Mask: Graphics Context. (line 70) * x:GC-Plane-Mask: Graphics Context. (line 69)
* x:GC-Stipple: Graphics Context. (line 259) * x:GC-Stipple: Graphics Context. (line 247)
* x:GC-Subwindow-Mode: Graphics Context. (line 284) * x:GC-Subwindow-Mode: Graphics Context. (line 272)
* x:GC-Tile: Graphics Context. (line 258) * x:GC-Tile: Graphics Context. (line 246)
* x:GC-Tile-Stip-X-Origin: Graphics Context. (line 272) * x:GC-Tile-Stip-X-Origin: Graphics Context. (line 260)
* x:GC-Tile-Stip-Y-Origin: Graphics Context. (line 273) * x:GC-Tile-Stip-Y-Origin: Graphics Context. (line 261)
 
File: Xlibscm.info, Node: Concept Index, Prev: Variable Index, Up: Indexes File: Xlibscm.info, Node: Concept Index, Prev: Variable Index, Up: Indexes
Concept Index Concept Index
============= =============
[index] [index]
* Menu: * Menu:
* colormap: Colormap. (line 6) * colormap: Colormap. (line 6)
* cursor: Cursor. (line 7) * cursor: Cursor. (line 7)
* depth: Display and Screens. (line 161) * depth: Display and Screens. (line 154)
* drawable: Drawables. (line 6)
* Drawable: Drawables. (line 6) * Drawable: Drawables. (line 6)
* drawable: Drawables. (line 6)
* map: Window Properties and Visibility. * map: Window Properties and Visibility.
(line 18) (line 18)
* mapped: Window Properties and Visibility. * mapped: Window Properties and Visibility.
(line 18) (line 18)
* none: Graphics Context. (line 311) * none: Graphics Context. (line 299)
* RGB: Colormap. (line 6) * RGB: Colormap. (line 6)
* unmap: Window Properties and Visibility. * unmap: Window Properties and Visibility.
(line 18) (line 18)
* unmapped: Window Properties and Visibility. * unmapped: Window Properties and Visibility.
(line 18) (line 18)
* Visual: Display and Screens. (line 110) * visual: Display and Screens. (line 111)
* visual: Display and Screens. (line 110) * Visual: Display and Screens. (line 111)
* X: XlibScm. (line 6) * X: XlibScm. (line 6)
* x:None: Graphics Context. (line 311) * x:None: Graphics Context. (line 299)
* Xlib: XlibScm. (line 10) * Xlib: XlibScm. (line 10)
 
Tag Table: Tag Table:
Node: Top1054 Node: Top1053
Node: XlibScm2137 Node: XlibScm2137
Node: Display and Screens4931 Node: Display and Screens4926
Node: Drawables11973 Node: Drawables11961
Node: Windows and Pixmaps12238 Node: Windows and Pixmaps12226
Node: Window Attributes19340 Node: Window Attributes19321
Node: Window Properties and Visibility35345 Node: Window Properties and Visibility35379
Node: Graphics Context39817 Node: Graphics Context39841
Node: Cursor55557 Node: Cursor55583
Node: Colormap58068 Node: Colormap58094
Node: Rendering67963 Node: Rendering67976
Node: Images75543 Node: Images75554
Node: Event75689 Node: Event75700
Node: Indexes90176 Node: Indexes90106
Node: Procedure and Macro Index90332 Node: Procedure and Macro Index90262
Node: Variable Index95784 Node: Variable Index99731
Node: Concept Index99237 Node: Concept Index103184
 
End Tag Table End Tag Table
 End of changes. 213 change blocks. 
799 lines changed or deleted 796 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)