2
2
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3
3
<html><head><title>Python: module VUWidget</title>
4
</head><body bgcolor="#f0f0f8">
4
</head><body bgcolor="#ffffff">
6
6
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
8
8
<td valign=bottom> <br>
9
9
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>VUWidget</strong></big></big></font></td
10
10
><td align=right valign=bottom
11
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/mike/src/jokosher/trunk/Jokosher/VUWidget.py">/home/mike/src/jokosher/trunk/Jokosher/VUWidget.py</a></font></td></tr></table>
11
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/david/Projects/Jokosher/trunk/Jokosher/VUWidget.py">/home/david/Projects/Jokosher/trunk/Jokosher/VUWidget.py</a></font></td></tr></table>
12
<p><tt># THIS FILE IS PART OF THE JOKOSHER PROJECT AND LICENSED UNDER THE GPL. SEE<br>
13
# THE 'COPYING' FILE FOR DETAILS<br>
15
# <a href="#VUWidget">VUWidget</a>.py<br>
16
# <br>
17
# This module draws the gradient volume levels and is used by<br>
18
# MixerStrip.py to show the volume levels in Jokosher's mix view.<br>
20
#-------------------------------------------------------------------------------</tt></p>
14
22
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
15
<tr bgcolor="#aa55cc">
23
<tr bgcolor="#4e9a06">
16
24
<td colspan=3 valign=bottom> <br>
17
25
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
19
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
27
<tr><td bgcolor="#4e9a06"><tt> </tt></td><td> </td>
20
28
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="cairo.html">cairo</a><br>
21
29
</td><td width="25%" valign=top><a href="gettext.html">gettext</a><br>
22
30
</td><td width="25%" valign=top><a href="gtk.html">gtk</a><br>
23
31
</td><td width="25%" valign=top><a href="pygtk.html">pygtk</a><br>
24
32
</td></tr></table></td></tr></table><p>
25
33
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
26
<tr bgcolor="#ee77aa">
34
<tr bgcolor="#3465a4">
27
35
<td colspan=3 valign=bottom> <br>
28
36
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
30
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
38
<tr><td bgcolor="#3465a4"><tt> </tt></td><td> </td>
31
39
<td width="100%"><dl>
32
40
<dt><font face="helvetica, arial">gobject.DrawingArea(gobject.Widget)
57
68
Methods defined here:<br>
58
<dl><dt><a name="VUWidget-GenerateBackground"><strong>GenerateBackground</strong></a>(self)</dt><dd><tt>Renders the gradient strip for the VU meter background to speed up<br>
59
drawing.</tt></dd></dl>
61
<dl><dt><a name="VUWidget-OnDraw"><strong>OnDraw</strong></a>(self, widget, event)</dt><dd><tt>Handles the GTK paint event.</tt></dd></dl>
63
<dl><dt><a name="VUWidget-OnMouseDown"><strong>OnMouseDown</strong></a>(self, widget, mouse)</dt></dl>
65
<dl><dt><a name="VUWidget-OnMouseLeave"><strong>OnMouseLeave</strong></a>(self, widget, mouse)</dt></dl>
67
<dl><dt><a name="VUWidget-OnMouseMove"><strong>OnMouseMove</strong></a>(self, widget, mouse)</dt></dl>
69
<dl><dt><a name="VUWidget-OnMouseUp"><strong>OnMouseUp</strong></a>(self, widget, mouse)</dt></dl>
71
<dl><dt><a name="VUWidget-OnSizeChanged"><strong>OnSizeChanged</strong></a>(self, obj, evt)</dt><dd><tt>Called when the widget's size changes</tt></dd></dl>
73
<dl><dt><a name="VUWidget-__init__"><strong>__init__</strong></a>(self, mixerstrip, mainview)</dt></dl>
75
<dl><dt><a name="VUWidget-do_size_request"><strong>do_size_request</strong></a>(self, requisition)</dt></dl>
69
<dl><dt><a name="VUWidget-Destroy"><strong>Destroy</strong></a>(self)</dt><dd><tt>Deletes the cairo.ImageSurface and then calls the class destructor.</tt></dd></dl>
71
<dl><dt><a name="VUWidget-GenerateBackground"><strong>GenerateBackground</strong></a>(self)</dt><dd><tt>Renders the gradient strip for the VU meter background to speed up drawing.</tt></dd></dl>
73
<dl><dt><a name="VUWidget-OnDraw"><strong>OnDraw</strong></a>(self, widget, event)</dt><dd><tt>Handles the GTK paint event.<br>
76
widget -- reserved for GTK callbacks, don't use it explicitly.<br>
77
event -- reserved for GTK callbacks, don't use it explicitly.<br>
78
<br>
80
False -- TODO</tt></dd></dl>
82
<dl><dt><a name="VUWidget-OnMouseDown"><strong>OnMouseDown</strong></a>(self, widget, mouse)</dt><dd><tt>If the fader widget is clicked, activates it.<br>
85
widget -- reserved for GTK callbacks, don't use it explicitly.<br>
86
mouse -- reserved for GTK callbacks, don't use it explicitly.</tt></dd></dl>
88
<dl><dt><a name="VUWidget-OnMouseLeave"><strong>OnMouseLeave</strong></a>(self, widget, mouse)</dt><dd><tt>Clears the StatusBar helper message.<br>
91
widget -- reserved for GTK callbacks, don't use it explicitly.<br>
92
mouse -- reserved for GTK callbacks, don't use it explicitly.</tt></dd></dl>
94
<dl><dt><a name="VUWidget-OnMouseMove"><strong>OnMouseMove</strong></a>(self, widget, mouse)</dt><dd><tt>Displays a helper message in the StatusBar and sets the volume<br>
95
according to the position of the fader widget.<br>
98
widget -- reserved for GTK callbacks, don't use it explicitly.<br>
99
mouse -- reserved for GTK callbacks, don't use it explicitly.</tt></dd></dl>
101
<dl><dt><a name="VUWidget-OnMouseUp"><strong>OnMouseUp</strong></a>(self, widget, mouse)</dt><dd><tt>Deactivates the fader widget.<br>
104
widget -- reserved for GTK callbacks, don't use it explicitly.<br>
105
mouse -- reserved for GTK callbacks, don't use it explicitly.</tt></dd></dl>
107
<dl><dt><a name="VUWidget-OnSizeChanged"><strong>OnSizeChanged</strong></a>(self, obj, evt)</dt><dd><tt>Toggles a redraw of the <a href="#VUWidget">VUWidget</a> if needed.<br>
110
obj -- reserved for Cairo callbacks, don't use it explicitly. *CHECK*<br>
111
evt --reserved for Cairo callbacks, don't use it explicitly. *CHECK*</tt></dd></dl>
113
<dl><dt><a name="VUWidget-__init__"><strong>__init__</strong></a>(self, mixerstrip, mainview)</dt><dd><tt>Creates a new instance of <a href="#VUWidget">VUWidget</a>.<br>
116
mixerstrip -- TODO<br>
117
mainview -- the main Jokosher window (JokosherApp).</tt></dd></dl>
119
<dl><dt><a name="VUWidget-do_size_request"><strong>do_size_request</strong></a>(self, requisition)</dt><dd><tt>TODO<br>
122
requisition -- TODO</tt></dd></dl>
78
125
Data and other attributes defined here:<br>
79
126
<dl><dt><strong>BAR_WIDTH</strong> = 20</dl>
81
<dl><dt><strong>__gtype__</strong> = <GType VUWidget (137011496)></dl>
128
<dl><dt><strong>__gtype__</strong> = <GType VUWidget (138585352)></dl>
83
130
<dl><dt><strong>__gtype_name__</strong> = 'VUWidget'</dl>