gdk::cursor_new_from_pixmap

gdk::cursor_new_from_pixmap

GdkCursor gdk::cursor_new_from_pixmap ( GdkPixmap source , GdkPixmap mask , GdkColor fg , GdkColor bg , int x, int y);

This function creates a new cursor from a pixmap. After you have created the cursor, the set_cursor() has to be used on a widget's gdk window to make the cursor active. The cursor will be visible when the mouse hovers the widget on which it has been set.

In Gtk 1.x, you can make monochrome cursors only. This means, that every color (except black and None) is converted to the fg or bg color.

The x and y parameters are the hotspot coordinates with (0,0) describing the top left position.

This function is working since PHP-Gtk 1.0.1
© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.