~ubuntu-branches/ubuntu/karmic/pygame/karmic

« back to all changes in this revision

Viewing changes to docs/ref/pygame_cursors.html

  • Committer: Bazaar Package Importer
  • Author(s): Joe Wreschnig
  • Date: 2005-09-15 15:10:45 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050915151045-6j7tiaorbf42xqia
Tags: 1.7.1release-1
* New upstream release.
* Remove 64-bit patch from 1.6-0.2, merged upstream.
* Remove SMPEG detection patch from 1.4-1, no longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
|| <a href=pygame.html>pygame</a> || 
19
19
<a href=pygame_cdrom.html>cdrom</a> || 
20
20
<a href=pygame_constants.html>constants</a> || 
 
21
<a href=pygame_cursor.html>cursor</a> || 
21
22
<a href=pygame_display.html>display</a> || 
22
 
<a href=pygame_draw.html>draw</a> || 
23
 
<a href=pygame_event.html>event</a> ||<br>
24
 
|| <a href=pygame_font.html>font</a> || 
 
23
<a href=pygame_draw.html>draw</a> ||<br>
 
24
|| <a href=pygame_event.html>event</a> || 
 
25
<a href=pygame_font.html>font</a> || 
25
26
<a href=pygame_image.html>image</a> || 
26
27
<a href=pygame_joystick.html>joystick</a> || 
27
28
<a href=pygame_key.html>key</a> || 
28
 
<a href=pygame_mixer.html>mixer</a> || 
29
 
<a href=pygame_mixer_music.html>mixer_music</a> ||<br>
30
 
|| <a href=pygame_mouse.html>mouse</a> || 
 
29
<a href=pygame_mixer.html>mixer</a> ||<br>
 
30
|| <a href=pygame_mixer_music.html>mixer_music</a> || 
 
31
<a href=pygame_mouse.html>mouse</a> || 
31
32
<a href=pygame_movie.html>movie</a> || 
32
33
<a href=pygame_sndarray.html>sndarray</a> || 
33
34
<a href=pygame_surfarray.html>surfarray</a> || 
34
 
<a href=pygame_time.html>time</a> || 
35
 
<a href=pygame_transform.html>transform</a> ||<br>
 
35
<a href=pygame_time.html>time</a> ||<br>
 
36
|| <a href=pygame_transform.html>transform</a> ||<br>
36
37
&nbsp;<br>|| <a href=CD.html>CD</a> || 
37
38
<a href=Channel.html>Channel</a> || 
38
39
<a href=Clock.html>Clock</a> || 
39
40
<a href=Font.html>Font</a> || 
40
41
<a href=Joystick.html>Joystick</a> || 
41
42
<a href=Movie.html>Movie</a> ||<br>
42
 
|| <a href=Rect.html>Rect</a> || 
 
43
|| <a href=Overlay.html>Overlay</a> || 
 
44
<a href=Rect.html>Rect</a> || 
43
45
<a href=Sound.html>Sound</a> || 
44
46
<a href=Surface.html>Surface</a> ||<br>
45
47
&nbsp;<br>|| <a href=pygame_color.html>color</a> || 
60
62
        broken_x, tri_left, tri_right
61
63
<br>&nbsp;<br>
62
64
There is also a sample string cursor named 'thickarrow_strings'.
63
 
The <a href=#compile>compile()</a> function can convert these string cursors into cursor byte data.
 
65
The <a href=pygame_cursor.html#compile>compile()</a> function can convert these string cursors into cursor byte data.
64
66
<br>&nbsp;<br>
65
67
 
66
68
<hr>
67
69
 
68
70
<table>
69
 
<tr><td><a href=#compile>compile</a></td><td> -
70
 
compile cursor strings into cursor data</td></tr>
71
 
 
72
 
 
73
71
<tr><td><a href=#load_xbm>load_xbm</a></td><td> -
74
72
reads a pair of XBM files into set_cursor arguments</td></tr>
75
73
 
78
76
 
79
77
<hr>
80
78
 
81
 
<a name=compile><font size=+2><b>compile
82
 
</b></font><br><font size=+1><tt>
83
 
pygame.cursors.compile(strings, black, white) -> data, mask
84
 
</tt></font><ul>
85
 
This takes a set of strings with equal length and computes
86
 
the binary data for that cursor. The string widths must be
87
 
divisible by 8.
88
 
<br>&nbsp;<br>
89
 
The black and white arguments are single letter strings that
90
 
tells which characters will represent black pixels, and which
91
 
characters represent white pixels. All other characters are
92
 
considered clear.
93
 
<br>&nbsp;<br>
94
 
This returns a tuple containing the cursor data and cursor mask
95
 
data. Both these arguments are used when setting a cursor with
96
 
<a href=pygame_mouse.html#set_cursor>pygame.mouse.set_cursor()</a>.
97
 
<br>&nbsp;<br>
98
 
</ul><br>&nbsp;<br>
99
 
 
100
79
<a name=load_xbm><font size=+2><b>load_xbm
101
80
</b></font><br><font size=+1><tt>
102
81
pygame.cursors.load_xbm(cursorfile, maskfile) -> cursor_args