Add customized mouse cursor.
Cursor Molecule | |
Preference Dialog | |
Properties | |
type | string, ( r ) |
pref.name | string, ( r ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | bool, ( r, w ) |
pref.ox | int, ( r, w ) |
pref.oy | int, ( r, w ) |
Functions | |
attach | |
detach | |
delete | |
rename | |
refresh | |
clone | |
serialize | |
setCursor |
string, ( r )
The scriptable name for this molecule. This name can be set using rename function dynamically.
setCursor(url, x, y);
Set the cursor using an external URL or a name to a system cursor. If x and y are not null, use them to offset the cursor hotspot.
Example: setCursor('pointer'); setCursor('http://www.example.com/cursor.png', 25, 25);
url | (string) the url of a cursor image or the name of a system cursor. |
x | (int) hotspot offset in x direction. |
y | (int) hotspot offset in y direction. |
N/A