Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gdkCursorNewFromPixbuf

gdkCursorNewFromPixbuf


Description

Creates a new cursor from a pixbuf.

Usage

gdkCursorNewFromPixbuf(display, source, x, y)

Arguments

display

the GdkDisplay for which the cursor will be created

source

the GdkPixbuf containing the cursor image

x

the horizontal offset of the 'hotspot' of the cursor.

y

the vertical offset of the 'hotspot' of the cursor.

Details

Not all GDK backends support RGBA cursors. If they are not supported, a monochrome approximation will be displayed. The functions gdkDisplaySupportsCursorAlpha and gdkDisplaySupportsCursorColor can be used to determine whether RGBA cursors are supported; gdkDisplayGetDefaultCursorSize and gdkDisplayGetMaximalCursorSize give information about cursor sizes.

On the X backend, support for RGBA cursors requires a sufficently new version of the X Render extension. Since 2.4

Value

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.