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

attach_cursor, color

.

UIcursor class attributes

cursor_pixmap

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 .

mask_pixmap

UIpixmap. Specifies the filename of the pixmap to use for the cursor mask and
the type of the pixmap. The mask size must match the cursor size. (Only x_bitmap types currently supported). For details, see UIpixmap ..

x, y

Integer. Read-only values set by AVS/Express to the hot-spot of the bitmap if it exists.

width, height

Integer. Read-only values set by AVS/Express to the size of the cursor bitmap in pixels.

Example

Not Available

File

v/UI.v

See Also Related Modules

UIcursor
UIfontCursor