Index

Package: Cursor

Description

package Gdk.Cursor is
The Gdk.Gdk_Cursor structure represents a cursor. Its contents are private.

Packages

Gdk_Cursor_Type_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Gdk_Cursor_Type_Properties is
      new Generic_Internal_Discrete_Property (Gdk_Cursor_Type);

Types

Gdk_Cursor_Type

type Gdk_Cursor_Type is (
      Blank_Cursor,
      Cursor_Is_Pixmap,
      X_Cursor,
      Arrow,
      Based_Arrow_Down,
      Based_Arrow_Up,
      Boat,
      Bogosity,
      Bottom_Left_Corner,
      Bottom_Right_Corner,
      Bottom_Side,
      Bottom_Tee,
      Box_Spiral,
      Center_Ptr,
      Circle,
      Clock,
      Coffee_Mug,
      Cross,
      Cross_Reverse,
      Crosshair,
      Diamond_Cross,
      Dot,
      Dotbox,
      Double_Arrow,
      Draft_Large,
      Draft_Small,
      Draped_Box,
      Exchange,
      Fleur,
      Gobbler,
      Gumby,
      Hand1,
      Hand2,
      Heart,
      Icon,
      Iron_Cross,
      Left_Ptr,
      Left_Side,
      Left_Tee,
      Leftbutton,
      Ll_Angle,
      Lr_Angle,
      Man,
      Middlebutton,
      Mouse,
      Pencil,
      Pirate,
      Plus,
      Question_Arrow,
      Right_Ptr,
      Right_Side,
      Right_Tee,
      Rightbutton,
      Rtl_Logo,
      Sailboat,
      Sb_Down_Arrow,
      Sb_H_Double_Arrow,
      Sb_Left_Arrow,
      Sb_Right_Arrow,
      Sb_Up_Arrow,
      Sb_V_Double_Arrow,
      Shuttle,
      Sizing,
      Spider,
      Spraycan,
      Star,
      Target,
      Tcross,
      Top_Left_Arrow,
      Top_Left_Corner,
      Top_Right_Corner,
      Top_Side,
      Top_Tee,
      Trek,
      Ul_Angle,
      Umbrella,
      Ur_Angle,
      Watch,
      Xterm,
      Last_Cursor);

Property_Gdk_Cursor_Type

type Property_Gdk_Cursor_Type is new Gdk_Cursor_Type_Properties.Property;

Constants & Global variables

Cursor_Type_Property (Glib.Properties.Property_Boxed)

Cursor_Type_Property : constant Glib.Properties.Property_Boxed;
Type: Cursor_Type

Display_Property (Glib.Properties.Property_Boxed)

Display_Property : constant Glib.Properties.Property_Boxed;
Type: Display

Subprograms & Entries

Gdk_New

procedure Gdk_New 
(Self: out Gdk_Cursor;
Cursor_Type: Gdk_Cursor_Type);
Creates a new cursor from the set of builtin cursors for the default display. See gdk_cursor_new_for_display. To make the cursor invisible, use Gdk.Blank_Cursor. "cursor_type": cursor to create

Gdk_Cursor_New

function Gdk_Cursor_New 
(Cursor_Type: Gdk_Cursor_Type) return Gdk_Cursor;
Creates a new cursor from the set of builtin cursors for the default display. See gdk_cursor_new_for_display. To make the cursor invisible, use Gdk.Blank_Cursor. "cursor_type": cursor to create

Gdk_New_For_Display

procedure Gdk_New_For_Display 
(Self: out Gdk_Cursor;
Display: not null access Gdk.Display.Gdk_Display_Record'Class;
Cursor_Type: Gdk_Cursor_Type);
Creates a new cursor from the set of builtin cursors. Some useful ones are: * <inlinegraphic format="PNG" fileref="right_ptr.png"></inlinegraphic> GDK_RIGHT_PTR (right-facing arrow) * <inlinegraphic format="PNG" fileref="crosshair.png"></inlinegraphic> GDK_CROSSHAIR (crosshair) * <inlinegraphic format="PNG" fileref="xterm.png"></inlinegraphic> GDK_XTERM (I-beam) * <inlinegraphic format="PNG" fileref="watch.png"></inlinegraphic> GDK_WATCH (busy) * <inlinegraphic format="PNG" fileref="fleur.png"></inlinegraphic> GDK_FLEUR (for moving objects) * <inlinegraphic format="PNG" fileref="hand1.png"></inlinegraphic> GDK_HAND1 (a right-pointing hand) * <inlinegraphic format="PNG" fileref="hand2.png"></inlinegraphic> GDK_HAND2 (a left-pointing hand) * <inlinegraphic format="PNG" fileref="left_side.png"></inlinegraphic> GDK_LEFT_SIDE (resize left side) * <inlinegraphic format="PNG" fileref="right_side.png"></inlinegraphic> GDK_RIGHT_SIDE (resize right side) * <inlinegraphic format="PNG" fileref="top_left_corner.png"></inlinegraphic> GDK_TOP_LEFT_CORNER (resize northwest corner) * <inlinegraphic format="PNG" fileref="top_right_corner.png"></inlinegraphic> GDK_TOP_RIGHT_CORNER (resize northeast corner) * <inlinegraphic format="PNG" fileref="bottom_left_corner.png"></inlinegraphic> GDK_BOTTOM_LEFT_CORNER (resize southwest corner) * <inlinegraphic format="PNG" fileref="bottom_right_corner.png"></inlinegraphic> GDK_BOTTOM_RIGHT_CORNER (resize southeast corner) * <inlinegraphic format="PNG" fileref="top_side.png"></inlinegraphic> GDK_TOP_SIDE (resize top side) * <inlinegraphic format="PNG" fileref="bottom_side.png"></inlinegraphic> GDK_BOTTOM_SIDE (resize bottom side) * <inlinegraphic format="PNG" fileref="sb_h_double_arrow.png"></inlinegraphic> GDK_SB_H_DOUBLE_ARROW (move vertical splitter) * <inlinegraphic format="PNG" fileref="sb_v_double_arrow.png"></inlinegraphic> GDK_SB_V_DOUBLE_ARROW (move horizontal splitter) * GDK_BLANK_CURSOR (Blank cursor). Since 2.16 Since: gtk+ 2.2 "display": the Gdk.Display.Gdk_Display for which the cursor will be created "cursor_type": cursor to create

Gdk_Cursor_New_For_Display

function Gdk_Cursor_New_For_Display 
(Display: not null access Gdk.Display.Gdk_Display_Record'Class;
Cursor_Type: Gdk_Cursor_Type) return Gdk_Cursor;
Creates a new cursor from the set of builtin cursors. Some useful ones are: * <inlinegraphic format="PNG" fileref="right_ptr.png"></inlinegraphic> GDK_RIGHT_PTR (right-facing arrow) * <inlinegraphic format="PNG" fileref="crosshair.png"></inlinegraphic> GDK_CROSSHAIR (crosshair) * <inlinegraphic format="PNG" fileref="xterm.png"></inlinegraphic> GDK_XTERM (I-beam) * <inlinegraphic format="PNG" fileref="watch.png"></inlinegraphic> GDK_WATCH (busy) * <inlinegraphic format="PNG" fileref="fleur.png"></inlinegraphic> GDK_FLEUR (for moving objects) * <inlinegraphic format="PNG" fileref="hand1.png"></inlinegraphic> GDK_HAND1 (a right-pointing hand) * <inlinegraphic format="PNG" fileref="hand2.png"></inlinegraphic> GDK_HAND2 (a left-pointing hand) * <inlinegraphic format="PNG" fileref="left_side.png"></inlinegraphic> GDK_LEFT_SIDE (resize left side) * <inlinegraphic format="PNG" fileref="right_side.png"></inlinegraphic> GDK_RIGHT_SIDE (resize right side) * <inlinegraphic format="PNG" fileref="top_left_corner.png"></inlinegraphic> GDK_TOP_LEFT_CORNER (resize northwest corner) * <inlinegraphic format="PNG" fileref="top_right_corner.png"></inlinegraphic> GDK_TOP_RIGHT_CORNER (resize northeast corner) * <inlinegraphic format="PNG" fileref="bottom_left_corner.png"></inlinegraphic> GDK_BOTTOM_LEFT_CORNER (resize southwest corner) * <inlinegraphic format="PNG" fileref="bottom_right_corner.png"></inlinegraphic> GDK_BOTTOM_RIGHT_CORNER (resize southeast corner) * <inlinegraphic format="PNG" fileref="top_side.png"></inlinegraphic> GDK_TOP_SIDE (resize top side) * <inlinegraphic format="PNG" fileref="bottom_side.png"></inlinegraphic> GDK_BOTTOM_SIDE (resize bottom side) * <inlinegraphic format="PNG" fileref="sb_h_double_arrow.png"></inlinegraphic> GDK_SB_H_DOUBLE_ARROW (move vertical splitter) * <inlinegraphic format="PNG" fileref="sb_v_double_arrow.png"></inlinegraphic> GDK_SB_V_DOUBLE_ARROW (move horizontal splitter) * GDK_BLANK_CURSOR (Blank cursor). Since 2.16 Since: gtk+ 2.2 "display": the Gdk.Display.Gdk_Display for which the cursor will be created "cursor_type": cursor to create

Gdk_New_From_Name

procedure Gdk_New_From_Name 
(Self: out Gdk_Cursor;
Display: not null access Gdk.Display.Gdk_Display_Record'Class;
Name: UTF8_String);
Creates a new cursor by looking up Name in the current cursor theme. Since: gtk+ 2.8 "display": the Gdk.Display.Gdk_Display for which the cursor will be created "name": the name of the cursor

Gdk_Cursor_New_From_Name

function Gdk_Cursor_New_From_Name 
(Display: not null access Gdk.Display.Gdk_Display_Record'Class;
Name: UTF8_String) return Gdk_Cursor;
Creates a new cursor by looking up Name in the current cursor theme. Since: gtk+ 2.8 "display": the Gdk.Display.Gdk_Display for which the cursor will be created "name": the name of the cursor

Get_Type

function Get_Type return Glib.GType;

Get_Cursor_Type

function Get_Cursor_Type 
(Self: Gdk.Gdk_Cursor) return Gdk_Cursor_Type;

Get_Display

function Get_Display 
(Self: Gdk.Gdk_Cursor) return Gdk.Display.Gdk_Display;
Returns the display on which the Gdk.Gdk_Cursor is defined. Since: gtk+ 2.2

Unref

procedure Unref 
(Self: Gdk.Gdk_Cursor);