Package: gdk
Function gdk-cursor-new-from-pixbuf
Lambda Listgdk-cursor-new-from-pixbuf (display pixbuf x y) ArgumentsReturn ValueA new gdk-cursor object. Details
Creates a new cursor from a pixbuf. Not all GDK backends support RGBA cursors. If they are not supported, a monochrome approximation will be displayed. The gdk-display-supports-cursor-alpha and gdk-display-supports-cursor-color functions can be used to determine whether RGBA cursors are supported. The gdk-display-default-cursor-size and gdk-display-maximal-cursor-size functions give information about cursor sizes. If the x or y arguments are -1, the pixbuf must have options named "x_hot" and "y_hot", resp., containing integer values between 0 and the width resp. height of the pixbuf. On the X backend, support for RGBA cursors requires a sufficently new version of the X Render extension. | See also |
2021-12-11