home
 
 index of namespace default
 
 index of project tksdl
 
 index of module tksdl

Class tksdl.Cursor


SynopsisRepresents 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
intwWidth
inthHeight
inthotxHotspot x
inthotyHotspot y
Returns
booleanTrue 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
booleanTrue 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 , ui 
All Projects:core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit 


auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54