Update of /cvsroot/freevo/freevo/Docs/plugin_writing
In directory sc8-pr-cvs1:/tmp/cvs-serv25968
Modified Files:
howto.sgml
Log Message:
first shot at a idlebarplugin section
Index: howto.sgml
===================================================================
RCS file: /cvsroot/freevo/freevo/Docs/plugin_writing/howto.sgml,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** howto.sgml 1 Dec 2003 20:17:30 -0000 1.12
--- howto.sgml 2 Dec 2003 02:36:53 -0000 1.13
***************
*** 379,383 ****
<sect1>
<title>IdlebarPlugin</title>
! <para><emphasis>not written yet</emphasis></para>
<programlisting><inlinegraphic entityref="idlebarpluginex"></inlinegraphic>
</programlisting>
--- 379,386 ----
<sect1>
<title>IdlebarPlugin</title>
! <para>Idlebar plugins are deceptively simple. Only two methods are reccomedded
to be implemented. There is the init method which most often calls the parent init and
sets any class variables based on arguments to it. The other method is draw. Draw as
its name suggests draws in the idlebar area assigned to the plugin.</para>
! <para>Draw is where most of the action happens. Basically you get a reference
to the plugin, the X coordinate to start drawing at, an osd object to use to call all
the drawing methods, and a tuple containing a type and object (what do they do? have
never seen them used).</para>
! <para>The most complicated part is probably the drawing methods. Basically we
can write text and, draw images. The osd variable actually is the Plugin_Area class
which is a skin_area subclass and not the real osd class you would expect. You can
look in freevo/src/skins/main/area.py and freevo/src/skins/main/main.py for class
definitions and possible methods. The osd variable is also how we get and set the font
we wish to use.</para>
! <para>Here is a full out example:</para>
<programlisting><inlinegraphic entityref="idlebarpluginex"></inlinegraphic>
</programlisting>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog