→ index of namespace default
 
→ index of project tksdl
 
→ index of module tksdl

Class tksdl.Cursor


Synopsis: Represents a mouse cursor shape

  Methods:

Method create(String pixels
Create new monochrome cursor shape from string. 'X' or 'x' means a set pixel and '.' means a cleared pixel.
Signature
create(String pixels(intw,
  inth,
  inthotx,
  inthoty 
  )  
 :boolean
Arguments
intw–Width
inth–Height
inthotx–Hotspot x
inthoty–Hotspot y
Returns
boolean–True if shape has been created, false if something went terribly wrong

 
→ top of page
Method revert
Revert to previous cursor shape
Signature
revert()

 
→ top of page
Method show
Change cursor to this shape.
Signature
show():boolean
Returns
boolean–True if the new shape has been set, false if something went terribly wrong
Description
Remembers previous cursor shape so it can be reverted

 
→ top of page
 

Project Modules:tksdl 
Project Classes:AudioDevice , AudioSample , Cursor , FPS , Joystick , Key , Mouse , SamplePlayer , SDL , Viewport 
Project Functions:MIDINoteToFrequency 
All Namespaces:default , graph , ui 
All Projects:core , eqxmms , ShaderVG , ShaderVG_Text , tkanalogrytm , tkchipmunk , tkclap , tkfileutils , tkfreeglut , tkfreetype2 , tkfreeverb , tkmath , tkmidi , tkmidipipe , tkminnie , tkoldmath , tkopengl , tkportaudio , tkradiastools , tksamplechain , tksampleedit , tksampler , tksdl , tksdl_net , tksidplay2 , tkspeexdsp , tksqlite , tktriangulate , tkui , tkvst2 , tkzip , ui , yingtest 


auto-generated by "DOG", the TkScript document generator. Tue, 3/Mar/2026 18:10:18