Debian Codegraph @

opcodes/flscroll.xml

raw symbols SCIP
1
2 <refentry id="FLscroll">
3 <indexterm id="IndexFLscroll"><primary>FLscroll</primary></indexterm>
4 <refentryinfo><title>FLTK:Containers</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>FLscroll</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>FLscroll</refname>
11 <refpurpose>
12 A FLTK opcode that adds scroll bars to an area.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 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.
20 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
21 <para>
22 <emphasis>FLscroll</emphasis> adds scroll bars to an area.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>FLscroll</command> iwidth, iheight [, ix] [, iy]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>iwidth</emphasis> -- width of widget.
35 </para>
36
37 <para>
38 <emphasis>iheight</emphasis> -- height of widget.
39 </para>
40
41 <para>
42 <emphasis>ix</emphasis> (optional) -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
43 </para>
44
45 <para>
46 <emphasis>iy</emphasis> (optional) -- vertical position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
47 </para>
48 </refsect1>
49
50 <refsect1>
51 <title>Performance</title>
52 <para>
53 Containers are useful to format the graphic appearance of the widgets. The most important container is <link linkend="FLpanel"><citetitle>FLpanel</citetitle></link>, that actually creates a window. It can be filled with other containers and/or valuators or other kinds of widgets.
54 </para>
55
56 <para>
57 There are no k-rate arguments in containers.
58 </para>
59
60 <para>
61 <emphasis>FLscroll</emphasis> adds scroll bars to an area. Normally you must set arguments <emphasis>iwidth</emphasis> and <emphasis>iheight</emphasis> equal to that of the parent window or other parent container. <emphasis>ix</emphasis> and <emphasis>iy</emphasis> are optional since they normally are set to zero. For example the following code:
62
63 <informalexample>
64 <programlisting>
65 <emphasis role="opc">FLpanel</emphasis> "PanelPluto",400,300,100,100
66 <emphasis role="opc">FLscroll</emphasis> 400,300
67 gk1, ih1 <emphasis role="opc">FLslider</emphasis> "FLslider 1", 500, 1000, 2 ,1, -1, 300,15, 20,50
68 gk2, ih2 <emphasis role="opc">FLslider</emphasis> "FLslider 2", 300, 5000, 2 ,3, -1, 300,15, 20,100
69 gk3, ih3 <emphasis role="opc">FLslider</emphasis> "FLslider 3", 350, 1000, 2 ,5, -1, 300,15, 20,150
70 gk4, ih4 <emphasis role="opc">FLslider</emphasis> "FLslider 4", 250, 5000, 1 ,11,-1, 300,30, 20,200
71 <emphasis role="opc">FLscrollEnd</emphasis>
72 <emphasis role="opc">FLpanelEnd</emphasis></programlisting>
73 </informalexample>
74
75 will show scroll bars, when the main window size is reduced:
76
77 <mediaobject>
78 <imageobject>
79 <imagedata fileref="images/flscroll.png" format="PNG"/>
80 </imageobject>
81
82 <textobject>
83 <phrase>FLscroll.</phrase>
84 </textobject>
85
86 <caption>
87 <para>FLscroll.</para>
88 </caption>
89 </mediaobject>
90 </para>
91 </refsect1>
92
93 <refsect1>
94 <title>Examples</title>
95 <para>
96 Here is an example of the FLscroll opcode. It uses the file <ulink url="examples/FLscroll.csd"><citetitle>FLscroll.csd</citetitle></ulink>.
97
98 <example>
99 <title>Example of the FLscroll opcode.</title>
100
101 <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>
102 <xi:include href="examples-xml/FLscroll.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
103 </example>
104 </para>
105 </refsect1>
106
107 <refsect1>
108 <title>See Also</title>
109 <para>
110 <link linkend="FLgroup"><citetitle>FLgroup</citetitle></link>,
111 <link linkend="FLgroupEnd"><citetitle>FLgroupEnd</citetitle></link>,
112 <link linkend="FLpack"><citetitle>FLpack</citetitle></link>,
113 <link linkend="FLpackEnd"><citetitle>FLpackEnd</citetitle></link>,
114 <link linkend="FLpanel"><citetitle>FLpanel</citetitle></link>,
115 <link linkend="FLpanelEnd"><citetitle>FLpanelEnd</citetitle></link>,
116 <link linkend="FLscrollEnd"><citetitle>FLscrollEnd</citetitle></link>,
117 <link linkend="FLtabs"><citetitle>FLtabs</citetitle></link>,
118 <link linkend="FLtabsEnd"><citetitle>FLtabsEnd</citetitle></link>
119 </para>
120 </refsect1>
121
122 <refsect1>
123 <title>Credits</title>
124 <para>Author: &namegabriel;</para>
125 <para>New in version 4.22</para>
126 <para>Example written by Iain McCurdy, edited by &namekevin;.</para>
127 </refsect1>
128 </refentry>