| 1 | |
| 2 | <refentry id="FLpack"> |
| 3 | <indexterm id="IndexFLpack"><primary>FLpack</primary></indexterm> |
| 4 | <refentryinfo><title>FLTK:Containers</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>FLpack</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>FLpack</refname> |
| 11 | <refpurpose> |
| 12 | Provides the functionality of compressing and aligning FLTK widgets. |
| 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>FLpack</emphasis> provides the functionality of compressing and aligning widgets. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis><command>FLpack</command> iwidth, iheight, ix, iy, itype, ispace, iborder</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> -- 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> -- vertical position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels). |
| 47 | </para> |
| 48 | |
| 49 | <para> |
| 50 | <emphasis>itype</emphasis> -- an integer number that modifies the appearance of the target widget. |
| 51 | </para> |
| 52 | |
| 53 | <para> |
| 54 | The <emphasis>itype</emphasis> argument expresses the type of packing: |
| 55 | <itemizedlist> |
| 56 | <listitem><para>0 - vertical</para></listitem> |
| 57 | <listitem><para>1 - horizontal</para></listitem> |
| 58 | </itemizedlist> |
| 59 | </para> |
| 60 | |
| 61 | <para> |
| 62 | <emphasis>ispace</emphasis> -- sets the space between the widgets. |
| 63 | </para> |
| 64 | |
| 65 | <para> |
| 66 | <emphasis>iborder</emphasis> -- border type of the container. It is expressed by means of an integer number chosen from the following: |
| 67 | |
| 68 | <itemizedlist> |
| 69 | <listitem><para>0 - no border</para></listitem> |
| 70 | <listitem><para>1 - down box border</para></listitem> |
| 71 | <listitem><para>2 - up box border</para></listitem> |
| 72 | <listitem><para>3 - engraved border</para></listitem> |
| 73 | <listitem><para>4 - embossed border</para></listitem> |
| 74 | <listitem><para>5 - black line border</para></listitem> |
| 75 | <listitem><para>6 - thin down border</para></listitem> |
| 76 | <listitem><para>7 - thin up border</para></listitem> |
| 77 | </itemizedlist> |
| 78 | </para> |
| 79 | </refsect1> |
| 80 | |
| 81 | <refsect1> |
| 82 | <title>Performance</title> |
| 83 | <para> |
| 84 | <emphasis>FLpack</emphasis> provides the functionality of compressing and aligning widgets. |
| 85 | </para> |
| 86 | |
| 87 | <para> |
| 88 | 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. |
| 89 | </para> |
| 90 | |
| 91 | <para> |
| 92 | There are no k-rate arguments in containers. |
| 93 | </para> |
| 94 | </refsect1> |
| 95 | |
| 96 | <refsect1> |
| 97 | <title>Examples</title> |
| 98 | <para> |
| 99 | The following example: |
| 100 | <informalexample> |
| 101 | <programlisting> |
| 102 | <emphasis role="opc">FLpanel</emphasis> "Panel1",450,300,100,100 |
| 103 | <emphasis role="opc">FLpack</emphasis> 400,300, 10,40,0,15,3 |
| 104 | gk1, ihs1 <emphasis role="opc">FLslider</emphasis> "FLslider 1", 500, 1000, 2 ,1, -1, 300,15, 20,50 |
| 105 | gk2, ihs2 <emphasis role="opc">FLslider</emphasis> "FLslider 2", 300, 5000, 2 ,3, -1, 300,15, 20,100 |
| 106 | gk3, ihs3 <emphasis role="opc">FLslider</emphasis> "FLslider 3", 350, 1000, 2 ,5, -1, 300,15, 20,150 |
| 107 | gk4, ihs4 <emphasis role="opc">FLslider</emphasis> "FLslider 4", 250, 5000, 1 ,11, -1, 300,30, 20,200 |
| 108 | gk5, ihs5 <emphasis role="opc">FLslider</emphasis> "FLslider 5", 220, 8000, 2 ,1, -1, 300,15, 20,250 |
| 109 | gk6, ihs6 <emphasis role="opc">FLslider</emphasis> "FLslider 6", 1, 5000, 1 ,13, -1, 300,15, 20,300 |
| 110 | gk7, ihs7 <emphasis role="opc">FLslider</emphasis> "FLslider 7", 870, 5000, 1 ,15, -1, 300,30, 20,350 |
| 111 | <emphasis role="opc">FLpackEnd</emphasis> |
| 112 | <emphasis role="opc">FLpanelEnd</emphasis></programlisting> |
| 113 | </informalexample> |
| 114 | |
| 115 | ...will produce this result, when resizing the window: |
| 116 | |
| 117 | <mediaobject> |
| 118 | <imageobject> |
| 119 | <imagedata fileref="images/flpack.png" format="PNG"/> |
| 120 | </imageobject> |
| 121 | |
| 122 | <textobject> |
| 123 | <phrase>FLpack.</phrase> |
| 124 | </textobject> |
| 125 | |
| 126 | <caption> |
| 127 | <para>FLpack.</para> |
| 128 | </caption> |
| 129 | </mediaobject> |
| 130 | </para> |
| 131 | </refsect1> |
| 132 | |
| 133 | <refsect1> |
| 134 | <title>See Also</title> |
| 135 | <para> |
| 136 | <link linkend="FLgroup"><citetitle>FLgroup</citetitle></link>, |
| 137 | <link linkend="FLgroupEnd"><citetitle>FLgroupEnd</citetitle></link>, |
| 138 | <link linkend="FLpackEnd"><citetitle>FLpackEnd</citetitle></link>, |
| 139 | <link linkend="FLpanel"><citetitle>FLpanel</citetitle></link>, |
| 140 | <link linkend="FLpanelEnd"><citetitle>FLpanelEnd</citetitle></link>, |
| 141 | <link linkend="FLscroll"><citetitle>FLscroll</citetitle></link>, |
| 142 | <link linkend="FLscrollEnd"><citetitle>FLscrollEnd</citetitle></link>, |
| 143 | <link linkend="FLtabs"><citetitle>FLtabs</citetitle></link>, |
| 144 | <link linkend="FLtabsEnd"><citetitle>FLtabsEnd</citetitle></link> |
| 145 | </para> |
| 146 | </refsect1> |
| 147 | |
| 148 | <refsect1> |
| 149 | <title>Credits</title> |
| 150 | <para>Author: &namegabriel;</para> |
| 151 | <para>New in version 4.22</para> |
| 152 | </refsect1> |
| 153 | </refentry> |