Roxen.git/server/modules/graphics/gbutton.pike:18:
// icon-data -- inline icon data
// align -- left|center|right text alignment
// align-icon -- left|center-before|center-after|right icon alignment
// valign-icon -- above|middle|below icon vertical alignment
// >Button text</gbutton>
//
// Alignment restriction: when text alignment is either left or right, icons
// must also be aligned left or right.
- constant cvs_version = "$Id: gbutton.pike,v 1.68 2001/01/12 16:16:10 anders Exp $";
+ constant cvs_version = "$Id: gbutton.pike,v 1.69 2001/02/20 09:48:09 kuntri Exp $";
constant thread_safe = 1;
#include <module.h>
inherit "module";
roxen.ImageCache button_cache;
constant module_type = MODULE_TAG;
constant module_name = "GButton";
constant module_doc =
Roxen.git/server/modules/graphics/gbutton.pike:85: Inside #if defined(manual)
</ex>
</attr>
<attr name=frame-image value='path'><p>
Use this XCF-image as a frame for the button. The image is required
to have at least the following layers: background, mask and
frame.</p>
<p>More information on how to create frame images can be found in the
Roxen documentation; Web Site Creator/Graphical tags section.</p>
- <ex>
- <gbutton frame-image='internal-roxen-tabframe'>foo</gbutton>
+ <ex type='vert'>
+ <gbutton frame-image='/internal-roxen-tab_frame'>foo</gbutton>
</ex>
</attr>
<attr name='alt' value='string'><p>
Alternative button and alt text.</p>
</attr>
<attr name='href' value='uri'><p>
Button URI.</p>
</attr>
Roxen.git/server/modules/graphics/gbutton.pike:136: Inside #if defined(manual)
<xtable>
<row><c>left</c><c>Place icon on the left side of the text.</c></row>
<row><c>center-before</c><c>Center the icon before the text.Requires the <att>align='center'</att> attribute.</c></row>
<row><c>center-after</c><c>Center the icon after the text. Requires the <att>align='center'</att> attribute.</c></row>
<row><c>right</c><c>Place icon on the right side of the text.</c></row>
</xtable>
<p></p>
- <ex>
- <gbutton width='150' align-icon='center-before' icon-src='internal-roxen-help'>Roxen 2.0</gbutton>
+ <ex type='vert'>
+ <gbutton width='150' align-icon='center-before'
+ icon-src='internal-roxen-help'>Roxen 2.0</gbutton>
</ex>
- <ex>
+ <ex type='vert'>
<gbutton width='150' align='center' align-icon='center-after'
icon-src='internal-roxen-help'>Roxen 2.0</gbutton>
</ex>
</attr>
<attr name='valign-icon' value='above|middle|below'><p>
Set icon vertical alignment. Requires three horizontal guidelines in the
frame image. If set to <att>above</att> the icon is placed between the first
and second guidelines and the text between the second and third ones. If
set to <att>below</att> the placement is reversed. Default value is
<att>middle</att>.</p>
</attr>
<attr name='font' value='fontname'><p></p>
- </attr>
-
- <attr name='extra-layers' value='[''],[first|last],[selected|unselected],[background|mask|frame|left|right]'>
- <p></p>
- </attr>
-
- <attr name='extra-left-layers' value='[''],[first|last],[selected|unselected],[background|mask|frame|left|right]'>
- <p></p>
- </attr>
-
- <attr name='extra-right-layers' value='[''],[first|last],[selected|unselected],[background|mask|frame|left|right]'>
- <p></p>
- </attr>
-
- <attr name='extra-background-layers' value='[''],[first|last],[selected|unselected],[background|mask|frame|left|right]'>
- <p></p>
- </attr>
-
- <attr name='extra-mask-layers' value='[''],[first|last],[selected|unselected],[background|mask|frame|left|right]'>
- <p></p>
- </attr>
-
- <attr name='extra-frame-layers' value='[''],[first|last],[selected|unselected],[background|mask|frame|left|right]'>
- <p></p>
- <ex>
- <gbutton frame-image='gbutton.xcf' alt='foo'>bu</gbutton>
- </ex>
-
-
- <ex>
- <gbutton alt='Edit' bgcolor='#aeaeae'
- extra-background-layers='unselected background,last unselected background,last background'
- extra-frame-layers='unselected frame,last unselected frame,last frame'
- extra-layers='unselected,last unselected,last'
- extra-left-layers='unselected left,last unselected left,last left'
- extra-mask-layers='unselected mask,last unselected mask,last mask'
- extra-right-layers='unselected right,last unselected right,last right' >Buttontext
- </gbutton>
- </ex>
- </attr>
-
- <!-- <table>
- <tr><td>A</td><td>B</td><td>C</td></tr>
- <tr><td>''</td><td>''</td><td>''</td></tr>
- <tr><td>'first'</td><td>'selected'</td><td>'background'</td></tr>
- <tr><td>'last'</td><td>'unselected'</td><td>'mask'</td></tr>
- <tr><td></td><td></td><td>'frame'</td></tr>
- <tr><td></td><td></td><td>'left'</td></tr>
- <tr><td></td><td></td><td>'right'</td></tr>
- </table> -->";
+ </attr>";
#endif
function TIMER( function f )
{
#if 0
return lambda(mixed ... args) {
int h = gethrtime();
mixed res;
werror("Drawing ... ");
res = f( @args );