| 1 | |
| 2 | <refentry id="FLsetPosition"> |
| 3 | <indexterm id="IndexFLsetPosition"><primary>FLsetPosition</primary></indexterm> |
| 4 | <refentryinfo><title>FLTK:Appearance</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>FLsetPosition</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>FLsetPosition</refname> |
| 13 | <refpurpose> |
| 14 | Sets the position of a FLTK widget. |
| 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>FLsetPosition</emphasis> sets the position of the target widget according to the <emphasis>ix</emphasis> and <emphasis>iy</emphasis> arguments. |
| 25 | </para> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Syntax</title> |
| 30 | <synopsis><command>FLsetPosition</command> ix, iy, ihandle</synopsis> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Initialization</title> |
| 35 | <para> |
| 36 | <emphasis>ix</emphasis> -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels). |
| 37 | </para> |
| 38 | |
| 39 | <para> |
| 40 | <emphasis>iy</emphasis> -- vertical position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels). |
| 41 | </para> |
| 42 | |
| 43 | <para> |
| 44 | <emphasis>ihandle</emphasis> -- an integer number (used as unique identifier) taken from the output of a previously located widget opcode (which corresponds to the target widget). It is used to unequivocally identify the widget when modifying its appearance with this class of opcodes. The user must not set the <emphasis>ihandle</emphasis> value directly, otherwise a Csound crash will occur. |
| 45 | </para> |
| 46 | </refsect1> |
| 47 | |
| 48 | <refsect1> |
| 49 | <title>See Also</title> |
| 50 | <para> |
| 51 | <link linkend="FLcolor2"><citetitle>FLcolor2</citetitle></link>, |
| 52 | <link linkend="FLhide"><citetitle>FLhide</citetitle></link>, |
| 53 | <link linkend="FLlabel"><citetitle>FLlabel</citetitle></link>, |
| 54 | <link linkend="FLsetAlign"><citetitle>FLsetAlign</citetitle></link>, |
| 55 | <link linkend="FLsetBox"><citetitle>FLsetBox</citetitle></link>, |
| 56 | <link linkend="FLsetColor"><citetitle>FLsetColor</citetitle></link>, |
| 57 | <link linkend="FLsetColor2"><citetitle>FLsetColor2</citetitle></link>, |
| 58 | <link linkend="FLsetFont"><citetitle>FLsetFont</citetitle></link>, |
| 59 | <link linkend="FLsetPosition"><citetitle>FLsetPosition</citetitle></link>, |
| 60 | <link linkend="FLsetSize"><citetitle>FLsetSize</citetitle></link>, |
| 61 | <link linkend="FLsetText"><citetitle>FLsetText</citetitle></link>, |
| 62 | <link linkend="FLsetTextColor"><citetitle>FLsetTextColor</citetitle></link>, |
| 63 | <link linkend="FLsetTextSize"><citetitle>FLsetTextSize</citetitle></link>, |
| 64 | <link linkend="FLsetTextType"><citetitle>FLsetTextType</citetitle></link>, |
| 65 | <link linkend="FLsetVal_i"><citetitle>FLsetVal_i</citetitle></link>, |
| 66 | <link linkend="FLsetVal"><citetitle>FLsetVal</citetitle></link>, |
| 67 | <link linkend="FLshow"><citetitle>FLshow</citetitle></link> |
| 68 | </para> |
| 69 | </refsect1> |
| 70 | |
| 71 | <refsect1> |
| 72 | <title>Credits</title> |
| 73 | <para>Author: &namegabriel;</para> |
| 74 | <para>New in version 4.22</para> |
| 75 | </refsect1> |
| 76 | </refentry> |