Debian Codegraph @

opcodes/flvalue.xml

raw symbols SCIP
1
2 <refentry id="FLvalue">
3 <indexterm id="IndexFLvalue"><primary>FLvalue</primary></indexterm>
4 <refentryinfo><title>FLTK:Other</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>FLvalue</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>FLvalue</refname>
13 <refpurpose>
14 Shows the current value of a FLTK valuator.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 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.
22 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
23 <para>
24 <emphasis>FLvalue</emphasis> shows current the value of a valuator in a text field.
25 </para>
26 </refsect1>
27
28 <refsect1>
29 <title>Syntax</title>
30 <synopsis>ihandle <command>FLvalue</command> &quot;label&quot;, iwidth, iheight, ix, iy</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Initialization</title>
35 <para>
36 <emphasis>ihandle</emphasis> -- handle value (an integer number) that unequivocally references the corresponding valuator. It can be used for the <emphasis>idisp</emphasis> argument of a valuator.
37 </para>
38
39 <para>
40 <emphasis><quote>label</quote></emphasis> -- a double-quoted string containing some user-provided text, placed near the corresponding widget.
41 </para>
42
43 <para>
44 <emphasis>iwidth</emphasis> -- width of widget.
45 </para>
46
47 <para>
48 <emphasis>iheight</emphasis> -- height of widget.
49 </para>
50
51 <para>
52 <emphasis>ix</emphasis> -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
53 </para>
54
55 <para>
56 <emphasis>iy</emphasis> -- vertical position of upper left corner of the valuator, relative to the upper
57 left corner of corresponding window (expressed in pixels).
58 </para>
59 </refsect1>
60
61 <refsect1>
62 <title>Performance</title>
63
64 <para>
65 <emphasis>FLvalue</emphasis> shows the current values of a valuator in a text field. It outputs <emphasis>ihandle</emphasis> that can then be used for the <emphasis>idisp</emphasis> argument of a valuator (see the <link linkend="ControlFltkValuators"><citetitle>FLTK Valuators section</citetitle></link>). In this way, the values of that valuator will be dynamically be shown in a text field.
66 </para>
67 <note>
68 <para>Note that <emphasis>FLvalue</emphasis> is not a valuator and its value cannot be modified.The value for an <emphasis>FLvalue</emphasis> widget should be set only by other widgets, and NOT from <link linkend="FLsetVal"><citetitle>FLsetVal</citetitle></link> or <link linkend="FLsetVal_i"><citetitle>FLsetVal_i</citetitle></link> since this can cause Csound to crash.</para>
69 </note>
70 </refsect1>
71
72 <refsect1>
73 <title>Examples</title>
74 <para>
75 Here is an example of the FLvalue opcode. It uses the file <ulink url="examples/FLvalue.csd"><citetitle>FLvalue.csd</citetitle></ulink>.
76
77 <example>
78 <title>Example of the FLvalue opcode.</title>
79
80 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
81 <xi:include href="examples-xml/FLvalue.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
82 </example>
83 </para>
84 </refsect1>
85
86 <refsect1>
87 <title>See Also</title>
88 <para>
89 <link linkend="FLbox"><citetitle>FLbox</citetitle></link>,
90 <link linkend="FLbutBank"><citetitle>FLbutBank</citetitle></link>,
91 <link linkend="FLbutton"><citetitle>FLbutton</citetitle></link>,
92 <link linkend="FLprintk"><citetitle>FLprintk</citetitle></link>,
93 <link linkend="FLprintk2"><citetitle>FLprintk2</citetitle></link>
94 </para>
95 </refsect1>
96
97 <refsect1>
98 <title>Credits</title>
99 <para>Author: &namegabriel;</para>
100 <para>New in version 4.22</para>
101 <para>Example written by Iain McCurdy, edited by &namekevin;.</para>
102 </refsect1>
103 </refentry>