[Contents] [Back] [Prev] [Up] [Next] [Forward]

# Package Gdk.Cursor

This package provides the capability to create predefined mouse cursors as well as user defined ones.

- Gdk.Cursor Types
- Gdk.Cursor Subprograms

## Types

    type Gdk_Cursor is new Gdk.C_Proxy;

## Subprograms

    procedure Gdk_New
      (Widget             : out    Gdk_Cursor;
       Cursor_Type        : in     Gdk.Types.Gdk_Cursor_Type);
| Create a new standard cursor.
    procedure Gdk_New
      (Widget             : out    Gdk_Cursor;
       Source             : in     Gdk.Gdk_Pixmap;
       Mask               : in     Gdk.Gdk_Pixmap;
       Fg                 : in     Gdk.Color.Gdk_Color;
       Bg                 : in     Gdk.Color.Gdk_Color;
       X                  : in     Glib.Gint;
       Y                  : in     Glib.Gint);
| Create a new cursor from a given pixmap and mask. Both the pixmap and mask must have a depth of 1 (i.e. each pixel has only 2 values - on or off). The standard cursor size is 16 by 16 pixels. Source is the pixmap specifying the cursor. Mask is the pixmap specifying the mask, which must be the same size as source. Fg is the foreground color, used for the bits in the source which are enabled. The color does not have to be allocated first. Bg is the background color, used for the bits in the source which are disabled. The color does not have to be allocated first. X is the horizontal offset of the 'hotspot' of the cursor. Y is the vertical offset of the 'hotspot' of the cursor.
    procedure Destroy
      (Cursor             : in     Gdk_Cursor);
| Destroy a cursor, freeing any resources allocated for it.

[Contents] [Back] [Prev] [Up] [Next] [Forward]