| 1 | |
| 2 | <refentry id="FLlabel"> |
| 3 | <indexterm id="IndexFLlabel"><primary>FLlabel</primary></indexterm> |
| 4 | <refentryinfo><title>FLTK:Appearance</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>FLlabel</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>FLlabel</refname> |
| 13 | <refpurpose> |
| 14 | A FLTK opcode that modifies the appearance of a text label. |
| 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 | Modifies a set of parameters related to the text label appearence of a widget (i.e. size, font, alignment and color of corresponding text). |
| 25 | </para> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Syntax</title> |
| 30 | <synopsis><command>FLlabel</command> isize, ifont, ialign, ired, igreen, iblue</synopsis> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Initialization</title> |
| 35 | <para> |
| 36 | <emphasis>isize</emphasis> -- size of the font of the target widget. Normal values are in the order of 15. Greater numbers enlarge font size, while smaller numbers reduce it. |
| 37 | </para> |
| 38 | |
| 39 | <para> |
| 40 | <emphasis>ifont</emphasis> -- sets the the font type of the label of a widget. |
| 41 | </para> |
| 42 | |
| 43 | <para> |
| 44 | Legal values for ifont argument are: |
| 45 | |
| 46 | <itemizedlist> |
| 47 | <listitem><para>1 - Helvetica (same as Arial under Windows)</para></listitem> |
| 48 | <listitem><para>2 - Helvetica Bold</para></listitem> |
| 49 | <listitem><para>3 - Helvetica Italic</para></listitem> |
| 50 | <listitem><para>4 - Helvetica Bold Italic</para></listitem> |
| 51 | <listitem><para>5 - Courier</para></listitem> |
| 52 | <listitem><para>6 - Courier Bold</para></listitem> |
| 53 | <listitem><para>7 - Courier Italic</para></listitem> |
| 54 | <listitem><para>8 - Courier Bold Italic</para></listitem> |
| 55 | <listitem><para>9 - Times</para></listitem> |
| 56 | <listitem><para>10 - Times Bold</para></listitem> |
| 57 | <listitem><para>11 - Times Italic</para></listitem> |
| 58 | <listitem><para>12 - Times Bold Italic</para></listitem> |
| 59 | <listitem><para>13 - Symbol</para></listitem> |
| 60 | <listitem><para>14 - Screen</para></listitem> |
| 61 | <listitem><para>15 - Screen Bold</para></listitem> |
| 62 | <listitem><para>16 - Dingbats</para></listitem> |
| 63 | </itemizedlist> |
| 64 | </para> |
| 65 | |
| 66 | <para> |
| 67 | <emphasis>ialign</emphasis> -- sets the alignment of the label text of the widget. |
| 68 | </para> |
| 69 | |
| 70 | <para> |
| 71 | Legal values for ialign argument are: |
| 72 | |
| 73 | <itemizedlist> |
| 74 | <listitem><para>1 - align center</para></listitem> |
| 75 | <listitem><para>2 - align top</para></listitem> |
| 76 | <listitem><para>3 - align bottom</para></listitem> |
| 77 | <listitem><para>4 - align left</para></listitem> |
| 78 | <listitem><para>5 - align right</para></listitem> |
| 79 | <listitem><para>6 - align top-left</para></listitem> |
| 80 | <listitem><para>7 - align top-right</para></listitem> |
| 81 | <listitem><para>8 - align bottom-left</para></listitem> |
| 82 | <listitem><para>9 - align bottom-right</para></listitem> |
| 83 | </itemizedlist> |
| 84 | </para> |
| 85 | |
| 86 | <para> |
| 87 | <emphasis>ired</emphasis> -- The red color of the target widget. The range for each RGB component is 0-255 |
| 88 | </para> |
| 89 | |
| 90 | <para> |
| 91 | <emphasis>igreen</emphasis> -- The green color of the target widget. The range for each RGB component is 0-255 |
| 92 | </para> |
| 93 | |
| 94 | <para> |
| 95 | <emphasis>iblue</emphasis> -- The blue color of the target widget. The range for each RGB component is 0-255 |
| 96 | </para> |
| 97 | </refsect1> |
| 98 | |
| 99 | <refsect1> |
| 100 | <title>Performance</title> |
| 101 | <para> |
| 102 | <emphasis>FLlabel</emphasis> modifies a set of parameters related to the text label appearance of a widget, i.e. size, font, alignment and color of corresponding text. This opcode affects (almost) all widgets defined next its location. A user can put several instances of <emphasis>FLlabel</emphasis> in front of each widget he intends to modify. However, to modify a particular widget, it is better to use the opcode belonging to the second type (i.e. those containing the <emphasis>ihandle</emphasis> argument). |
| 103 | </para> |
| 104 | |
| 105 | <para> |
| 106 | The influence of <emphasis>FLlabel</emphasis> on the next widget can be turned off by using -1 as its only argument. <emphasis>FLlabel</emphasis> is designed to modify text attributes of a group of related widgets. |
| 107 | </para> |
| 108 | </refsect1> |
| 109 | |
| 110 | <refsect1> |
| 111 | <title>See Also</title> |
| 112 | <para> |
| 113 | <link linkend="FLcolor2"><citetitle>FLcolor2</citetitle></link>, |
| 114 | <link linkend="FLhide"><citetitle>FLhide</citetitle></link>, |
| 115 | <link linkend="FLlabel"><citetitle>FLlabel</citetitle></link>, |
| 116 | <link linkend="FLsetAlign"><citetitle>FLsetAlign</citetitle></link>, |
| 117 | <link linkend="FLsetBox"><citetitle>FLsetBox</citetitle></link>, |
| 118 | <link linkend="FLsetColor"><citetitle>FLsetColor</citetitle></link>, |
| 119 | <link linkend="FLsetColor2"><citetitle>FLsetColor2</citetitle></link>, |
| 120 | <link linkend="FLsetFont"><citetitle>FLsetFont</citetitle></link>, |
| 121 | <link linkend="FLsetPosition"><citetitle>FLsetPosition</citetitle></link>, |
| 122 | <link linkend="FLsetSize"><citetitle>FLsetSize</citetitle></link>, |
| 123 | <link linkend="FLsetText"><citetitle>FLsetText</citetitle></link>, |
| 124 | <link linkend="FLsetTextColor"><citetitle>FLsetTextColor</citetitle></link>, |
| 125 | <link linkend="FLsetTextSize"><citetitle>FLsetTextSize</citetitle></link>, |
| 126 | <link linkend="FLsetTextType"><citetitle>FLsetTextType</citetitle></link>, |
| 127 | <link linkend="FLsetVal_i"><citetitle>FLsetVal_i</citetitle></link>, |
| 128 | <link linkend="FLsetVal"><citetitle>FLsetVal</citetitle></link>, |
| 129 | <link linkend="FLshow"><citetitle>FLshow</citetitle></link> |
| 130 | </para> |
| 131 | </refsect1> |
| 132 | |
| 133 | <refsect1> |
| 134 | <title>Credits</title> |
| 135 | <para>Author: &namegabriel;</para> |
| 136 | <para>New in version 4.22</para> |
| 137 | </refsect1> |
| 138 | </refentry> |