X - X11 Utility Routines for ImageMagick
option=IsTrue(message)
Latin1Compare(first,second)
status=XAnnotateImage(display,pixel_info,annotate_info,image)
font=XBestFont(display,resource_info,text_font)
XBestIconSize(display,window,image)
pixel=XBestPixel(display,colormap,colors,number_colors,color)
visual_info=XBestVisualInfo(display,map_info,resource_info)
XCheckRefreshWindows(display,windows)
XClientMessage(display,window,protocol,message,timestamp)
client_window=XClientWindow(display,target_window)
XConfigureImageColormap(display,resource_info,windows,image)
XConstrainWindowPosition(display,window_info)
XDelay(display,milliseconds)
XDestroyWindowColors(display,window)
XDisplayImageInfo(display,resource_info,windows,undo_image,image)
status=XDrawImage(display,pixel_info,draw_info,image)
XError(display,error)
XFreeStandardColormap(display,visual_info,map_info,pixel_info)
XGetAnnotateInfo(annotate_info)
XGetMapInfo(visual_info,colormap,map_info)
XGetMontageInfo(montage_info)
value=XGetResourceClass(database,client_name,keyword,resource_default)
database=XGetResourceDatabase(display,client_name)
XGetResourceInfo(database,client_name,resource_info)
value=XGetResourceInstance(database,client_name,keyword,resource_default)
density=XGetScreenDensity(display)
subwindow=XGetSubwindow(display,window,x,y)
status=XGetWindowColor(display,name)
image=XGetWindowImage(display,window,borders,level)
XHighlightEllipse(display,window,annotate_context,highlight_info)
XHighlightLine(display,window,annotate_context,highlight_info)
XHighlightRectangle(display,window,annotate_context,highlight_info)
windows=XInitializeWindows(display,resource_info)
XMakeCursor(display,window,colormap,background_color,foreground_color)
status=XMakeImage(display,resource_info,window,image,width,height)
XMakeMagnifyImage(display,windows)
status=XMakePixmap(display,resource_info,window)
XProgressMonitor(task,quantum,span)
status=XQueryColorDatabase(target,color)
XQueryPosition(display,window,x,y)
XRefreshWindow(display,window,event)
XRemoteCommand(display,window,filename)
XRetainWindowColors(display,window)
target_window=XSelectWindow(display,crop_info)
XSetCursorState(display,windows,state)
windows=XSetWindows(windows_info)
XSignalHandler(status)
XUserPreferences(resource_info)
visual_type=XVisualClassName(class)
XWarning(message,qualifier)
child=XWindowByID(display,window,id)
window=XWindowByName(display,root_window,name)
Method IsTrue returns True if the message is ``true'', ``on'', ``yes'' or ``1''.
The format of the IsTrue routine is:
option=IsTrue(message)
A description of each parameter follows:
either True or False depending on the message parameter.
Specifies a pointer to a character array.
Method Latin1Compare compares two null terminated Latin-1 strings, ignoring case differences, and returns an integer greater than, equal to, or less than 0, according to whether first is lexicographically greater than, equal to, or less than second. The two strings are assumed to be encoded using ISO 8859-1.
The format of the Latin1Compare routine is:
Latin1Compare(first,second)
A description of each parameter follows:
A pointer to the string to convert to Latin1 string.
A pointer to the string to convert to Latin1 string.
Method XAnnotateImage annotates the image with text.
The format of the XAnnotateImage routine is:
status=XAnnotateImage(display,pixel_info,annotate_info,image)
A description of each parameter follows:
Method XAnnotateImage returns True if the image is successfully annotated with text. False is returned is there is a memory shortage.
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a XPixelInfo structure.
Specifies a pointer to a XAnnotateInfo structure.
Specifies a pointer to a Image structure; returned from ReadImage.
Method XBestFont returns the ``best'' font. ``Best'' is defined as a font specified in the X resource database or a font such that the text width displayed with the font does not exceed the specified maximum width.
The format of the XBestFont routine is:
font=XBestFont(display,resource_info,text_font)
A description of each parameter follows:
XBestFont returns a pointer to a XFontStruct structure.
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a X11 XResourceInfo structure.
True is font should be mono-spaced (typewriter style).
Method XBestIconSize returns the ``best'' icon size. ``Best'' is defined as an icon size that maintains the aspect ratio of the image. If the window manager has preferred icon sizes, one of the preferred sizes is used.
The format of the XBestIconSize routine is:
XBestIconSize(display,window,image)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a Image structure; returned from ReadImage.
Method XBestPixel returns a pixel from an array of pixels that is closest to the requested color. If the color array is NULL, the colors are obtained from the X server.
The format of the XBestPixel routine is:
pixel=XBestPixel(display,colormap,colors,number_colors,color)
A description of each parameter follows:
XBestPixel returns the pixel value closest to the requested color.
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies the ID of the X server colormap.
Specifies an array of XColor structures.
Specifies the number of XColor structures in the color definition array.
Specifies the desired RGB value to find in the colors array.
Method XBestVisualInfo returns visual information for a visual that is the ``best'' the server supports. ``Best'' is defined as:
Restrict the visual list to those supported by the default screen.
If a visual type is specified, restrict the visual list to those of that type.
If a map type is specified, choose the visual that matches the id specified by the Standard Colormap.
4 From the list of visuals, choose one that can display the most
simultaneous colors. If more than one visual can display the same
number of simultaneous colors, one is choosen based on a rank.
The format of the XBestVisualInfo routine is:
visual_info=XBestVisualInfo(display,map_info,resource_info)
A description of each parameter follows:
XBestVisualInfo returns a pointer to a X11 XVisualInfo structure.
Specifies a connection to an X server; returned from XOpenDisplay.
If map_type is specified, this structure is initialized with info from the Standard Colormap.
Specifies a pointer to a X11 XResourceInfo structure.
Method XCheckRefreshWindows checks the X server for exposure events for a particular window and updates the area associated withe exposure event.
The format of the XCheckRefreshWindows routine is:
XCheckRefreshWindows(display,windows)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a XWindows structure.
Method XClientMessage sends a message to a window with XSendEvent. The message is initialized with a particular protocol type and atom.
The format of the XClientMessage function is:
XClientMessage(display,window,protocol,message,timestamp)
A description of each parameter follows:
Specifies a pointer to the Display structure; returned from XOpenDisplay.
Specifies a pointer to a Window structure.
Specifies an atom value.
Specifies an atom value which is the message to send.
Specifies a value of type Time.
Method XClientWindow finds a window, at or below the specified window, which has a WM_STATE property. If such a window is found, it is returned, otherwise the argument window is returned.
The format of the XClientWindow function is:
client_window=XClientWindow(display,target_window)
A description of each parameter follows:
XClientWindow returns a window, at or below the specified window, which has a WM_STATE property otherwise the argument target_window is returned.
Specifies a pointer to the Display structure; returned from XOpenDisplay.
Specifies the window to find a WM_STATE property.
Method XConfigureImageColormap creates a new X colormap.
The format of the XConfigureImageColormap routine is:
XConfigureImageColormap(display,resource_info,windows,image)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a X11 XResourceInfo structure.
Specifies a pointer to a XWindows structure.
Specifies a pointer to a Image structure; returned from ReadImage.
Method XConstrainWindowPosition assures a window is positioned witin the X server boundaries.
The format of the XConstrainWindowPosition routine is:
XConstrainWindowPosition(display,window_info)
A description of each parameter follows:
Specifies a pointer to the Display structure; returned from XOpenDisplay.
Specifies a pointer to a XWindowInfo structure.
Method XDelay suspends program execution for the number of milliseconds specified.
The format of the Delay routine is:
XDelay(display,milliseconds)
A description of each parameter follows:
Specifies a pointer to the Display structure; returned from XOpenDisplay.
Specifies the number of milliseconds to delay before returning.
Method XDestroyWindowColors frees X11 color resources previously saved on a window by XRetainWindowColors or programs like xsetroot.
The format of the XDestroyWindowColors routine is:
XDestroyWindowColors(display,window)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a Window structure.
Method XDisplayImageInfo displays information about an X image.
The format of the XDisplayImageInfo routine is:
XDisplayImageInfo(display,resource_info,windows,undo_image,image)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a X11 XResourceInfo structure.
Specifies a pointer to a XWindows structure.
Specifies a pointer to a Image structure; returned from ReadImage.
Specifies a pointer to a Image structure; returned from ReadImage.
Method XDrawImage draws a line on the image.
The format of the XDrawImage routine is:
status=XDrawImage(display,pixel_info,draw_info,image)
A description of each parameter follows:
Method XDrawImage returns True if the image is successfully drawd with text. False is returned is there is a memory shortage.
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a XPixelInfo structure.
Specifies a pointer to a XDrawInfo structure.
Specifies a pointer to a Image structure; returned from ReadImage.
Method XError ignores BadWindow errors for XQueryTree and XGetWindowAttributes, and ignores BadDrawable errors for XGetGeometry, and ignores BadValue errors for XQueryColor. It returns False in those cases. Otherwise it returns True.
The format of the XError function is:
XError(display,error)
A description of each parameter follows:
Specifies a pointer to the Display structure; returned from XOpenDisplay.
Specifies the error event.
Method XFreeResources frees X11 resources.
The format of the XFreeResources routine is:
XFreeResources(display,visual_info,map_info,pixel_info,font_info,
resource_info,window_info)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a X11 XVisualInfo structure; returned from XGetVisualInfo.
If map_type is specified, this structure is initialized with info from the Standard Colormap.
Specifies a pointer to a XPixelInfo structure.
Specifies a pointer to a XFontStruct structure.
Specifies a pointer to a X11 XResourceInfo structure.
Specifies a pointer to a X11 XWindowInfo structure.
Method XFreeStandardColormap frees an X11 colormap.
The format of the XFreeStandardColormap routine is:
XFreeStandardColormap(display,visual_info,map_info,pixel_info)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a X11 XVisualInfo structure; returned from XGetVisualInfo.
If map_type is specified, this structure is initialized with info from the Standard Colormap.
Specifies a pointer to a XPixelInfo structure.
Method XGetAnnotateInfo initializes the AnnotateInfo structure.
The format of the GetAnnotateInfo routine is:
XGetAnnotateInfo(annotate_info)
A description of each parameter follows:
Specifies a pointer to a XAnnotateInfo structure.
Method XGetMapInfo initializes the XStandardColormap structure.
The format of the XStandardColormap routine is:
XGetMapInfo(visual_info,colormap,map_info)
A description of each parameter follows:
Specifies the ID of the X server colormap.
Specifies a pointer to a X11 XVisualInfo structure; returned from XGetVisualInfo.
Specifies a pointer to a X11 XStandardColormap structure.
Method XGetImportInfo initializes the XImportInfo structure.
The format of the GetImageInfo routine is:
XGetImportInfo(ximage_info)
A description of each parameter follows:
Specifies a pointer to a ImageInfo structure.
Method XGetMontageInfo initializes the MontageInfo structure.
The format of the GetMontageInfo routine is:
XGetMontageInfo(montage_info)
A description of each parameter follows:
Specifies a pointer to a MontageInfo structure.
Method XGetPixelInfo initializes the PixelInfo structure.
The format of the XGetPixelInfo routine is:
XGetPixelInfo(display,visual_info,map_info,resource_info,image,
pixel_info)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a X11 XVisualInfo structure; returned from XGetVisualInfo.
If map_type is specified, this structure is initialized with info from the Standard Colormap.
Specifies a pointer to a X11 XResourceInfo structure.
Specifies a pointer to a Image structure; returned from ReadImage.
Specifies a pointer to a XPixelInfo structure.
Method XGetResourceClass queries the X server for the specified resource name or class. If the resource name or class is not defined in the database, the supplied default value is returned.
The format of the XGetResourceClass routine is:
value=XGetResourceClass(database,client_name,keyword,resource_default)
A description of each parameter follows:
Method XGetResourceClass returns the resource value associated with the name or class. If none is found, the supplied default value is returned.
Specifies a resource database; returned from XrmGetStringDatabase.
Specifies the application name used to retrieve resource info from the X server database.
Specifies the keyword of the value being retrieved.
Specifies the default value to return if the query fails to find the specified keyword/class.
Method XGetResourceDatabase creates a new resource database and initializes it.
The format of the XGetResourceDatabase routine is:
database=XGetResourceDatabase(display,client_name)
A description of each parameter follows:
Method XGetResourceDatabase returns the database after it is initialized.
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies the application name used to retrieve resource info from the X server database.
Method XGetResourceInfo initializes the ResourceInfo structure.
The format of the XGetResourceInfo routine is:
XGetResourceInfo(database,client_name,resource_info)
A description of each parameter follows:
Specifies a resource database; returned from XrmGetStringDatabase.
Specifies the application name used to retrieve resource info from the X server database.
Specifies a pointer to a X11 XResourceInfo structure.
Method XGetResourceInstance queries the X server for the specified resource name. If the resource name is not defined in the database, the supplied default value is returned.
The format of the XGetResourceInstance routine is:
value=XGetResourceInstance(database,client_name,keyword,resource_default)
A description of each parameter follows:
Method XGetResourceInstance returns the resource value associated with the name or class. If none is found, the supplied default value is returned.
Specifies a resource database; returned from XrmGetStringDatabase.
Specifies the application name used to retrieve resource info from the X server database.
Specifies the keyword of the value being retrieved.
Specifies the default value to return if the query fails to find the specified keyword/class.
Method XGetScreenDensity returns the density of the X server screen in dots-per-inch.
The format of the XGetScreenDensity routine is:
density=XGetScreenDensity(display)
A description of each parameter follows:
Method XGetScreenDensity returns the density of the X screen in dots-per-inch.
Specifies a connection to an X server; returned from XOpenDisplay.
Method XGetSubwindow returns the subwindow of a window choosen the user with the pointer and a button press.
The format of the XGetSubwindow routine is:
subwindow=XGetSubwindow(display,window,x,y)
A description of each parameter follows:
Method XGetSubwindow returns NULL if no subwindow is found otherwise the subwindow is returned.
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a Window.
the x coordinate of the pointer relative to the origin of the window.
the y coordinate of the pointer relative to the origin of the window.
Method XGetWindowColor returns the color of a pixel interactively choosen from the X server.
The format of the XGetWindowColor routine is:
status=XGetWindowColor(display,name)
A description of each parameter follows:
Method XGetWindowColor returns True if the color is obtained from the X server. False is returned if any errors occurs.
Specifies a connection to an X server; returned from XOpenDisplay.
The name of of the color if found in the X Color Database is returned in this character string.
Method XGetWindowImage reads an image from the target X window and returns it. XGetWindowImage optionally descends the window hierarchy and overlays the target image with each child image in an optimized fashion. Any child window that have the same visual, colormap, and are contained by its parent are exempted.
The format of the XGetWindowImage routine is:
image=XGetWindowImage(display,window,borders,level)
A description of each parameter follows:
Method XGetWindowImage returns a MIFF image if it can be successfully read from the X window. A null image is returned if any errors occurs.
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies the window to obtain the image from.
Specifies whether borders pixels are to be saved with the image.
Specifies an unsigned integer representing the level of decent in the window hierarchy. This value must be zero or one on the initial call to XGetWindowImage. A value of zero returns after one call. A value of one causes the function to descend the window hierarchy and overlay the target image with each subwindow image.
Method XGetWindowInfo initializes the XWindowInfo structure.
The format of the XGetWindowInfo routine is:
XGetWindowInfo(display,visual_info,map_info,pixel_info,font_info,
resource_info,window)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a X11 XVisualInfo structure; returned from XGetVisualInfo.
If map_type is specified, this structure is initialized with info from the Standard Colormap.
Specifies a pointer to a XPixelInfo structure.
Specifies a pointer to a XFontStruct structure.
Specifies a pointer to a X11 XResourceInfo structure.
Method XHighlightEllipse puts a border on the X server around a region defined by highlight_info.
The format of the XHighlightEllipse routine is:
XHighlightEllipse(display,window,annotate_context,highlight_info)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a Window structure.
Specifies a pointer to a GC structure.
Specifies a pointer to a RectangleInfo structure. It contains the extents of any highlighting rectangle.
Method XHighlightLine puts a border on the X server around a region defined by highlight_info.
The format of the XHighlightLine routine is:
XHighlightLine(display,window,annotate_context,highlight_info)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a Window structure.
Specifies a pointer to a GC structure.
Specifies a pointer to a RectangleInfo structure. It contains the extents of any highlighting rectangle.
Method XHighlightRectangle puts a border on the X server around a region defined by highlight_info.
The format of the XHighlightRectangle routine is:
XHighlightRectangle(display,window,annotate_context,highlight_info)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a Window structure.
Specifies a pointer to a GC structure.
Specifies a pointer to a RectangleInfo structure. It contains the extents of any highlighting rectangle.
Method XInitializeWindows initializes the XWindows structure.
The format of the XInitializeWindows routine is:
windows=XInitializeWindows(display,resource_info)
A description of each parameter follows:
XInitializeWindows returns a pointer to a XWindows structure.
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a X11 XResourceInfo structure.
Method XMakeCursor creates a crosshairs X11 cursor.
The format of the XMakeCursor routine is:
XMakeCursor(display,window,colormap,background_color,foreground_color)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies the ID of the window for which the cursor is assigned.
Specifies the ID of the colormap from which the background and foreground color will be retrieved.
Specifies the color to use for the cursor background.
Specifies the color to use for the cursor foreground.
Method XMakeImage creates an X11 image. If the image size differs from the X11 image size, the image is first resized.
The format of the XMakeImage routine is:
status=XMakeImage(display,resource_info,window,image,width,height)
A description of each parameter follows:
Method XMakeImage returns True if the X image is successfully created. False is returned is there is a memory shortage.
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a X11 XResourceInfo structure.
Specifies a pointer to a XWindowInfo structure.
Specifies a pointer to a Image structure; returned from ReadImage.
Specifies the width in pixels of the rectangular area to display.
Specifies the height in pixels of the rectangular area to display.
Method XMakeMagnifyImage magnifies a region of an X image and displays it.
The format of the XMakeMagnifyImage routine is:
XMakeMagnifyImage(display,windows)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a XWindows structure.
Method XMakePixmap creates an X11 pixmap.
The format of the XMakePixmap routine is:
status=XMakePixmap(display,resource_info,window)
A description of each parameter follows:
Method XMakePixmap returns True if the X pixmap is successfully created. False is returned is there is a memory shortage.
Specifies a pointer to a X11 XResourceInfo structure.
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a XWindowInfo structure.
Method XMakeStandardColormap creates an X11 Standard Colormap.
The format of the XMakeStandardColormap routine is:
XMakeStandardColormap(display,visual_info,resource_info,image,
map_info,pixel_info)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a X11 XVisualInfo structure; returned from XGetVisualInfo.
Specifies a pointer to a X11 XResourceInfo structure.
Specifies a pointer to a Image structure; returned from ReadImage.
If a Standard Colormap type is specified, this structure is initialized with info from the Standard Colormap.
Specifies a pointer to a XPixelInfo structure.
Method XMakeWindow creates an X11 window.
The format of the XMakeWindow routine is:
XMakeWindow(display,parent,argv,argc,class_hint,manager_hints,
window_info)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies the parent window_info.
Specifies the application's argument list.
Specifies the number of arguments.
Specifies a pointer to a X11 XClassHint structure.
Specifies a pointer to a X11 XWMHints structure.
Specifies a pointer to a X11 XWindowInfo structure.
Method XMontageImages creates a composite image by combining several separate images.
The format of the MontageImages routine is:
XMontageImages(image_info,montage_info,image)
A description of each parameter follows:
Specifies a pointer to a ImageInfo structure.
Specifies a pointer to a XMontageInfo structure.
Specifies a pointer to an array of Image structures.
Method XProgressMonitor displays the progress a task is making in completing a task.
The format of the XProgressMonitor routine is:
XProgressMonitor(task,quantum,span)
A description of each parameter follows:
Identifies the task in progress.
Specifies the quantum position within the span which represents how much progress has been made in completing a task.
Specifies the span relative to completing a task.
Method XQueryColorDatabase looks up a RGB values for a color given in the target string.
The format of the XQueryColorDatabase routine is:
status=XQueryColorDatabase(target,color)
A description of each parameter follows:
Method XQueryColorDatabase returns True if the RGB values of the target color is defined, otherwise False is returned.
Specifies the color to lookup in the X color database.
A pointer to an XColor structure. The RGB value of the target color is returned as this value.
Method XQueryPosition gets the pointer coodinates relative to a window.
The format of the XQueryPosition routine is:
XQueryPosition(display,window,x,y)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a Window.
Return the x coordinate of the pointer relative to the origin of the window.
Return the y coordinate of the pointer relative to the origin of the window.
Method XRefreshWindow refreshes an image in a X window.
The format of the XRefreshWindow routine is:
XRefreshWindow(display,window,event)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a XWindowInfo structure.
Specifies a pointer to a XEvent structure. If it is NULL, the entire image is refreshed.
Method XRemoteCommand forces a remote display(1)
to display
the specified image filename.
The format of the XRemoteCommand routine is:
XRemoteCommand(display,window,filename)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies the name or id of an X window.
The name of the image filename to display.
Method XRetainWindowColors sets X11 color resources on a window. This perserves the colors associated with an image displayed on the window.
The format of the XRetainWindowColors routine is:
XRetainWindowColors(display,window)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a XWindowInfo structure.
Method XSelectWindow allows a user to select a window using the mouse. If the mouse moves, a cropping rectangle is drawn and the extents of the rectangle is returned in the crop_info structure.
The format of the XSelectWindow function is:
target_window=XSelectWindow(display,crop_info)
A description of each parameter follows:
XSelectWindow returns the window id.
Specifies a pointer to the Display structure; returned from XOpenDisplay.
Specifies a pointer to a RectangleInfo structure. It contains the extents of any cropping rectangle.
Method XSignalHandler is called if the program execution is interrupted.
The format of the XSignalHandler routine is:
XSignalHandler(status)
Method XSetCursorState sets the cursor state to busy, otherwise the cursor are reset to their default.
The format of the XXSetCursorState routine is:
XSetCursorState(display,windows,state)
A description of each parameter follows:
Specifies a connection to an X server; returned from XOpenDisplay.
Specifies a pointer to a XWindows structure.
An unsigned integer greater than 0 sets the cursor state to busy, otherwise the cursor are reset to their default.
Method XSetWindows sets the X windows structure if the windows info is specified. Otherwise the current windows structure is returned.
The format of the XSetWindows routine is:
windows=XSetWindows(windows_info)
A description of each parameter follows:
Method XSetWindows returns a pointer to the XWindows structure.
Initialize the Windows structure with this information.
Method XUserPreferences saves the preferences in a configuration file in the users' home directory.
The format of the XUserPreferences routine is:
XUserPreferences(resource_info)
A description of each parameter follows:
Specifies a pointer to a X11 XResourceInfo structure.
Method XVisualClassName returns the visual class name as a character string.
The format of the XVisualClassName routine is:
visual_type=XVisualClassName(class)
A description of each parameter follows:
XVisualClassName returns the visual class as a character string.
Specifies the visual class.
Method XWarning displays a warning message in a Notice widget.
The format of the XWarning routine is:
XWarning(message,qualifier)
A description of each parameter follows:
Specifies the message to display before terminating the program.
Specifies any qualifier to the message.
Method XWindowByID locates a child window with a given ID. If not window with the given name is found, 0 is returned. Only the window specified and its subwindows are searched.
The format of the XWindowByID function is:
child=XWindowByID(display,window,id)
A description of each parameter follows:
XWindowByID returns the window with the specified id. If no windows are found, XWindowByID returns 0.
Specifies a pointer to the Display structure; returned from XOpenDisplay.
Specifies the id of the window to locate.
Method XWindowByName locates a window with a given name on a display. If no window with the given name is found, 0 is returned. If more than one window has the given name, the first one is returned. Only root and its children are searched.
The format of the XWindowByName function is:
window=XWindowByName(display,root_window,name)
A description of each parameter follows:
XWindowByName returns the window id.
Specifies a pointer to the Display structure; returned from XOpenDisplay.
Specifies the id of the root window.
Specifies the name of the window to locate.
Method XWindowByProperty locates a child window with a given property. If no window with the given name is found, 0 is returned. If more than one window has the given property, the first one is returned. Only the window specified and its subwindows are searched.
The format of the XWindowByProperty function is:
child=XWindowByProperty(display,window,property)
A description of each parameter follows:
XWindowByProperty returns the window id with the specified property. If no windows are found, XWindowByProperty returns 0.
Specifies a pointer to the Display structure; returned from XOpenDisplay.
Specifies the property of the window to locate.