pygame / docs / ref / pygame_cursors.html

Full commit
<body bgcolor=#dddddd text=#333377 link=#7777bb vlink=#7777bb>

<table border=0 width=100% cellpadding=0 cellspacing=0 bgcolor=#f5f5f5><tr valign=top>
<td rowspan=2><table border=0 cellpadding=5 cellspacing=0 bgcolor=#333377>
<tr height=86 align=left><td valign=middle><font color=#ffffff size=+5>
	<a href=../index.html><font size=+5 color=#ffffff><i><b>
<td valign=middle><tt><font color=#dddddd><br>
</td></tr></table></td><td width=100% align=center valign=middle>

	<a href=>Home</a> &nbsp;||&nbsp;
	<a href=../index.html>Help Contents</a> &nbsp;||

|| <a href=CD.html>CD</a> || 
<a href=Channel.html>Channel</a> || 
<a href=Font.html>Font</a> || 
<a href=Joystick.html>Joystick</a> || 
<a href=Rect.html>Rect</a> || 
<a href=Sound.html>Sound</a> || 
<a href=Surface.html>Surface</a> ||<br>
|| <a href=pygame.html>pygame</a> || 
<a href=pygame_UserRect.html>UserRect</a> || 
<a href=pygame_cdrom.html>cdrom</a> || 
<a href=pygame_constants.html>constants</a> || 
<a href=pygame_cursors.html>cursors</a> || 
<a href=pygame_display.html>display</a> || 
<a href=pygame_event.html>event</a> ||<br>
|| <a href=pygame_font.html>font</a> || 
<a href=pygame_image.html>image</a> || 
<a href=pygame_joystick.html>joystick</a> || 
<a href=pygame_key.html>key</a> || 
<a href=pygame_mixer.html>mixer</a> || 
<a href=pygame_mixer_music.html>mixer_music</a> || 
<a href=pygame_mouse.html>mouse</a> ||<br>
|| <a href=pygame_surfarray.html>surfarray</a> || 
<a href=pygame_time.html>time</a> || 
<a href=pygame_version.html>version</a> ||<br>

<h2 align=center>pygame.cursors</h2>
Set of cursor resources available for use. These cursors come
in a sequence of values that are needed as the arguments for
pygame.mouse.set_cursor(). to dereference the sequence in place
and create the cursor in one step, call like this;
Here is a list of available cursors; arrow, diamond, ball,
        broken_x, tri_left, tri_right
There is also a sample string cursor named 'thickarrow_strings'.
The compile() function can convert these string cursors into cursor byte data.


<tr><td><a href=#compile>compile</a></td><td> -
compile cursor strings into cursor data</td></tr>

<tr><td><a href=#read_xbm>read_xbm</a></td><td> -
reads a pair of XBM files into set_cursor arguments</td></tr>



<a name=compile><font size=+2><b>compile
</b></font><br><font size=+1><tt>
pygame.cursors.compile(strings, black, white) -> data
This takes a set of strings with equal length and computes
the binary data for that cursor. The string widths must be
divisible by 6. The data returned are suitable for passing
to <a href=pygame_mouse.html#set_cursor>pygame.mouse.set_cursor()</a>

<a name=read_xbm><font size=+2><b>read_xbm
</b></font><br><font size=+1><tt>
pygame.cursors.read_xbm(cursorfile, maskfile) -> cursor_args
Arguments can either be strings or filelike objects
with the readlines method. Not largely tested, but
should work with typical XBM files.