<<<<<<<<<<<<<<<<

xcursor(x) Xlib xcursor(x)

NAME

xcursor - an X cursor

DESCRIPTION

The xcursor class provides an interface to X cursors. This class is an abstract class so it should not be instantiated.

SUPERCLASS

object

INSTANCE VARIABLES

background_rgb is the rgb for the background of the cursor. Each rgb value should be in the range 0 <= rgb_value <= 1. Note that this differs from Xlib where rgb value can range from 0 thru 65535.

display is the name of the associated xdisplay object.

foreground_rgb is the rgb for the foreground of the cursor. Each rgb value should be in the range 0 <= rgb_value <= 1. Note that this differs from Xlib where rgb value can range from 0 thru 65535.

id is a pointer to the X Cursor structure. This is usually set by the system when the cursor is created.

MESSAGES

background_rgb= (red_component, green_component, blue_component) sets the background_rgb instance variable.

background_rgb? returns the value of the background_rgb instance variable on the argument stack.

display= display_object_name sets the display instance variable.

display? returns the value of the display instance variable on the argument stack.

foreground_rgb= (red_component, green_component, blue_component) sets the foreground_rgb instance variable.

foreground_rgb? returns the value of the foreground_rgb instance variable on the argument stack.

free_cursor! frees the cursor but not the xcursor object.

id? returns the pointer to the X structure for the cursor. This is set when the cursor is created.

recolor_cursor! recolors the cursor according to the foreground_rgb and background_rgb. (warning: doesn't really work yet?)

EXAMPLE

/* create a font cursor */ xfont_cursor new: gumby

font_name= 65 /* 65 came from the include file cursorfont.h>

create!;

SEE ALSO

xdisplay, xgc, xfont_cursor, xwindow


Last Updated On: Fri Mar 10 15:38:44 1995

Please send comments and suggestions to

its-documentation@rpi.edu

Keyword Search of RPInfo Consulting Pages and NewsCache