Class Index Cross Index Namespace Index

Class Gdk_Cursor

Cursor
Contained in: global
Derived from: Gdk_Handle
Derived by: none

#include <gtk--/cursor.h>


public function member index:

Gdk_Cursor();
Gdk_Cursor(GdkCursor* cursor);
Gdk_Cursor(const Gdk_Cursor& font);
Gdk_Cursor(Type cursor_type);
Gdk_Cursor(const Gdk_Pixmap& source, const Gdk_Pixmap& mask, const Gdk_Color& fg, const Gdk_Color& bg, gint x, gint y);
void create(Type cursor_type);
void create(const Gdk_Pixmap& source, const Gdk_Pixmap& mask, const Gdk_Color& fg, const Gdk_Color& bg, gint x, gint y);
void destroy();
Gdk_Cursor& operator = (const Gdk_Cursor&);
void release();
~Gdk_Cursor();
 

protected function member index:

void ref();
void unref();
 

Description:

Cursor is a pointer used to represent the location of the mouse. It is limited to 2 colors, a foreground and background, by X. It has a place known as a hot spot specified by coordinates. Usually you just select them from a broad set of predefined Cursors using GdkCursorType.

Note that cursors are not reference counted, therefore if you create one from a pixmap you are responsible for holding it until you want to destroy it. (this is a gtk+ limitation)


Function Member Descriptions:

Gdk_Cursor::Gdk_Cursor - Create a unconnected cursor.

Gdk_Cursor();

Gdk_Cursor::Gdk_Cursor - Create a cursor handle from a GdkFont

Gdk_Cursor(GdkCursor* cursor);

Gdk_Cursor::Gdk_Cursor - Create a cursor handle loaded with specific fontname.

Gdk_Cursor(Type cursor_type);

Gdk_Cursor::Gdk_Cursor - Create a cursor from pixmap

Gdk_Cursor(const Gdk_Pixmap& source, const Gdk_Pixmap& mask, const Gdk_Color& fg, const Gdk_Color& bg, gint x, gint y);