UIpixmapCursor
Synopsis
cursor that can display any pixmap of the correct type
UIcursor UIpixmapCursor
<cxx_class="UIpixmapCursorP", use_src_file=0> {
UIpixmap cursor_pixmap{ /* Only x_bitmaps supported currently */
fileType = "x_bitmap";
};
UIpixmap mask_pixmap{ /* Only x_bitmaps supported currently */
fileType = "x_bitmap";
};
int+nonotify x, y; /* Cursor hot spot position in bitmap */
int+nonotify width, height; /* Size of cursor bitmap */
cxxmethod+notify_inst+req init<NEvisible=0>;
cxxmethod+req update<NEvisible=0>
(attach_cursor+notify,color.foregroundColor+notify,color.backgroundColor+
notify,cursor_pixmap+notify);
};Description
UIpixmapCursor can use any x_bitmap as the cursor image. The pixmap size is returned in the width and height subobjects. The x and y objects contain the hot_spot of the cursor if it is set in the bitmap file. You can create bitmap files in various ways using editing tools available on most systems. An array of UIpixmapCursors can be created and a sequence selected in turn to create a semi-animated cursor.
Subobjects
UIpixmap. Specify the filename of the pixmap to use for the cursor and the type of the pixmap. (Only x_bitmap types currently supported). For details, see UIpixmap .
the type of the pixmap. The mask size must match the cursor size. (Only x_bitmap types currently supported). For details, see UIpixmap ..
Example
File
See Also Related Modules