• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 20. Cursors

With the exception of Windows CE, all of the supported SWT platforms provide an on-screen pointer called a cursor. Typically, the cursor is positioned by moving a mouse, trackball, or other similar input device, but its position may also be set by application code. Cursors are described by two attributes, shape and hotspot.

shape The shape of a cursor is its image on the screen. Platforms may restrict the number of colors that are available to draw the shape, the valid sizes for the shape, or both.

hotspot The hotspot is the point within the bounds of the cursor shape that is aligned with the on-screen pointer. Thus, when mouse events occur, the point in the event is the point, relative to the screen, of the hotspot for the visible cursor.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint