Changes

Jump to navigation Jump to search

cursor.set

169 bytes added, 22:03, 1 August 2015
m
typo
Line 3: Line 3:     
It sets the shape of the mouse pointer to display.<br />
 
It sets the shape of the mouse pointer to display.<br />
 +
<br />
    
{{Since|3.0}}
 
{{Since|3.0}}
Line 14: Line 15:  
|-
 
|-
 
| <u><center>cursorName</center></u> || string || The name of the cursor shape to use for the mouse pointer. It can be one of the following strings :
 
| <u><center>cursorName</center></u> || string || The name of the cursor shape to use for the mouse pointer. It can be one of the following strings :
"default",
+
"animate", "arrow", "clear", "crosshair", "default", "diag resize", "dilation", "dotted arrow", "drag grab", "excel plus", "hand closed", "hand open", "hand pointer", "hide", "hollow pointer", "interrogation", "link select", "mod label", "pencil", "pointer", "resize column", "resize row", "rotation", "show" "text", "translation", "unavailable", "wait busy", "writing", "zoom box", "zoom in", "zoom out"
"interrogation",
  −
"crosshair",
  −
"text",
  −
"pointer",
  −
"link select",
  −
"diag resize",
  −
"wait busy",
  −
"hollow pointer",
  −
"rotation",
  −
"pencil",
  −
"zoom box",
  −
"hide",
  −
"arrow",
  −
"zoom out",
  −
"dotted arrow",
  −
"clear",
  −
"animate",
  −
"excel plus",
  −
"mod label",
  −
"writing",
  −
"unavailable",
  −
"resize row",
  −
"resize column",
  −
"drag grab",
  −
"hand open",
  −
"hand closed",
  −
"hand pointer",
  −
"zoom in",
  −
"dilation",
  −
"translation",
  −
"show"
   
|-
 
|-
 
|}
 
|}
   −
== Example ==
+
== Example ==
<syntaxhighlight>if (needsCursor == true) then
+
<syntaxhighlight>if needsCursor then   -- needsCursor would be a variable defined earlier
 
   cursor.set("pencil")
 
   cursor.set("pencil")
 
end</syntaxhighlight>
 
end</syntaxhighlight>
 +
 +
== Cursors ==
 +
[[File:Cursors.png|400 px]]
 +
 +
(this images also contains some non-available cursors, but most of them are)
    
== See also  ==
 
== See also  ==

Navigation menu