Debian Codegraph @

opcodes/flclosebutton.xml

raw symbols SCIP
1
2 <refentry id="FLcloseButton">
3 <indexterm id="IndexFLcloseButton"><primary>FLcloseButton</primary></indexterm>
4 <refentryinfo><title>FLTK:Other</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>FLcloseButton</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>FLcloseButton</refname>
13 <refpurpose>
14 A FLTK widget opcode that creates a button that will close the panel
15 window it is a part of.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Plugin opcode in widgets. This opcode is part of the plugin repository and has to be installed separately. These FLTK widgets do not work on the Mac.
23 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
24 <para>
25 A FLTK widget opcode that creates a button that will close the panel
26 window it is a part of.
27 </para>
28 </refsect1>
29
30 <refsect1>
31 <title>Syntax</title>
32 <synopsis>ihandle <command>FLcloseButton</command> &quot;label&quot;, iwidth, iheight, ix, iy</synopsis>
33 </refsect1>
34
35 <refsect1>
36 <title>Initialization</title>
37 <para>
38 <emphasis>ihandle</emphasis> -- a handle value (an integer number) that unequivocally references a corresponding widget. This is used by other opcodes that modify a widget's properties (see <link linkend="ControlFltkAppearance"><citetitle>Modifying FLTK Widget Appearance</citetitle></link>). It is automatically output by <emphasis>FLcloseButton</emphasis> and must not be set by the user label. (The user label is a double-quoted string containing some user-provided text placed near the widget.)
39 </para>
40
41 <para>
42 <emphasis><quote>label</quote></emphasis> -- a double-quoted string containing some user-provided text, placed near the corresponding widget.
43 </para>
44
45 <para>
46 Notice that with <emphasis>FLcloseButton</emphasis>, it is not necessary to call the <link linkend="FLsetTextType"><citetitle>FLsetTextType</citetitle></link> opcode at all in order to use a symbol. In this case, it is sufficient to set a label starting with <quote>@</quote> followed by the proper formatting string.
47 </para>
48
49 <para>
50 The following symbols are supported:
51
52 <mediaobject>
53 <imageobject>
54 <imagedata fileref="images/symbols.png" format="PNG"/>
55 </imageobject>
56
57 <textobject>
58 <phrase>FLTK label supported symbols.</phrase>
59 </textobject>
60
61 <caption>
62 <para>FLTK label supported symbols.</para>
63 </caption>
64 </mediaobject>
65 </para>
66
67 <para>
68 The @ sign may be followed by the following optional <quote>formatting</quote> characters, in this order:
69
70 <orderedlist>
71 <listitem><para><quote>#</quote> forces square scaling rather than distortion to the widget's shape.</para></listitem>
72 <listitem><para>+[1-9] or -[1-9] tweaks the scaling a little bigger or smaller.</para></listitem>
73 <listitem><para>[1-9] rotates by a multiple of 45 degrees. <quote>6</quote> does nothing, the others point in the direction of that key on a numeric keypad.</para></listitem>
74 </orderedlist>
75 </para>
76
77 <para>
78 <emphasis>iwidth</emphasis> -- width of widget.
79 </para>
80
81 <para>
82 <emphasis>iheight</emphasis> -- height of widget.
83 </para>
84
85 <para>
86 <emphasis>ix</emphasis> -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
87 </para>
88
89 <para>
90 <emphasis>iy</emphasis> -- vertical position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
91 </para>
92
93 </refsect1>
94
95
96 <refsect1>
97 <title>See Also</title>
98 <para>
99 <link linkend="FLbutton"><citetitle>FLbutton</citetitle></link>,
100 <link linkend="FLbox"><citetitle>FLbox</citetitle></link>,
101 <link linkend="FLbutBank"><citetitle>FLbutBank</citetitle></link>,
102 <link linkend="FLprintk"><citetitle>FLprintk</citetitle></link>,
103 <link linkend="FLprintk2"><citetitle>FLprintk2</citetitle></link>,
104 <link linkend="FLvalue"><citetitle>FLvalue</citetitle></link>
105 </para>
106 </refsect1>
107
108 <refsect1>
109 <title>Credits</title>
110 <para>Author: &namesteven;</para>
111 <para>New in version 5.05</para>
112 </refsect1>
113 </refentry>