1/*!
2
3\page skin_Toggle_button_control Toggle button control
4\brief **A toggle on/off button that can take 2 different states.**
5
6\tableofcontents
7
8The toggle button control is used for creating buttons that have 2 states. You
9can choose the position, size, and look of the button. When the user clicks on
10the toggle button, the state will change, toggling the extra textures
11(alttexturefocus and alttexturenofocus). Used for controls where two states are
12needed (pushed in and pushed out for instance).
13
14--------------------------------------------------------------------------------
15\section skin_Toggle_button_control_sect1 Example
16
17~~~~~~~~~~~~~
18<control type="togglebutton" id="25">
19      <description>My first togglebutton control</description>
20      <posx>80</posx>
21      <posy>60</posy>
22      <width>250</width>
23      <height>200</height>
24      <visible>true</visible>
25      <colordiffuse>FFFFFFFF</colordiffuse>
26      <texturefocus>myfocustexture.png</texturefocus>
27      <texturenofocus>mynormaltexture.png</texturenofocus>
28      <alttexturefocus>myselectedTexture.png</alttexturefocus>
29      <alttexturenofocus>myselectedTexture_nf.png</alttexturenofocus>
30      <usealttexture>!Player.IsPaused</usealttexture>
31      <label>29</label>
32      <altlabel>29</altlabel>
33      <font>font12</font>
34      <textcolor>FFFFFFFF</textcolor>
35      <disabledcolor>80FFFFFF</disabledcolor>
36      <align>left</align>
37      <aligny>center</aligny>
38      <textoffsetx>4</textoffsetx>
39      <textoffsety>5</textoffsety>
40      <pulseonselect>false</pulseonselect>
41      <onclick>Player.Pause</onclick>
42      <onfocus>-</onfocus>
43      <onunfocus>-</onunfocus>
44      <onup>2</onup>
45      <ondown>3</ondown>
46      <onleft>1</onleft>
47      <onright>1</onright>
48      <wrapmultiline>false</wrapmultiline>
49</control>
50~~~~~~~~~~~~~
51
52
53--------------------------------------------------------------------------------
54\section skin_Toggle_button_control_sect2 Available tags
55
56In addition to the Default Control Tags the following tags are available. Note
57that each tag is lower case only. This is important, as xml tags are case-sensitive.
58
59| Tag               | Description                                                   |
60|------------------:|:--------------------------------------------------------------|
61| texturefocus      | Specifies the image file which should be displayed when the button has focus. See here for additional information about texture tags.
62| texturenofocus    | Specifies the image file which should be displayed when the button does not have focus.
63| alttexturefocus   | Specifies the image file which should be displayed when the toggle button is in it's selected state. This texture replaces the <b>`<texturefocus>`</b> texture when the toggle button is selected.
64| alttexturenofocus | Specifies the image file which should be displayed when the button is in it's selected state but unfocused.
65| usealttexture     | Specifies the conditions under which the Alternative Textures should be shown. Some toggle button controls are handled by Kodi internally, but any extra ones that the skinner has can be controlled using this tag. See here for more information.
66| label             | The label used on the button. It can be a link into strings.po, or an actual text label.
67| altlabel          | The alternate label used on the button. It can be a link into strings.po, or an actual text label.
68| altclick          | The alternate action to perform when the button is pressed. Should be a built in function. See here for more information. You may have more than one <b>`<altclick>`</b> tag, and they'll be executed in sequence.
69| font              | Font used for the button label. From fonts.xml.
70| textcolor         | Color used for displaying the button label. In AARRGGBB hex format, or a name from the colour theme.
71| disabledcolor     | Color used for the button label if the button is disabled. In AARRGGBB hex format, or a name from the colour theme.
72| shadowcolor       | Specifies the color of the drop shadow on the text. In AARRGGBB hex format, or a name from the colour theme.
73| align             | Label horizontal alignment on the button. Defaults to left, can also be center or right.
74| aligny            | Label vertical alignment on the button. Defaults to top, can also be center.
75| textoffsetx       | Amount to offset the label from the left (or right) edge of the button when using left or right alignment.
76| textoffsety       | Amount to offset the label from the top edge of the button when using top alignment.
77| textwidth         | Will truncate any text that's too long.
78| onclick           | Specifies the action to perform when the button is pressed. Should be a built in function. See here for more information. You may have more than one <b>`<onclick>`</b> tag, and they'll be executed in sequence.
79| onfocus           | Specifies the action to perform when the button is focused. Should be a built in function. The action is performed after any focus animations have completed. See here for more information.
80| onunfocus         | Specifies the action to perform when the button loses focus. Should be a built in function.
81| wrapmultiline     | Allows wrapping on the label across multiple lines. Defaults to false.
82
83
84--------------------------------------------------------------------------------
85\section skin_Toggle_button_control_sect3 See also
86#### Development:
87
88- [Add-on development](http://kodi.wiki/view/Add-on_development)
89- [Skinning](http://kodi.wiki/view/Skinning)
90
91*/
92