<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.6(BH)" -->
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Canvas UI</title>
        <description></description>
        <link>http://www.mupe.net/documents/client_script_reference-html/canvas/</link>
        <lastBuildDate>Tue, 06 Jan 2009 09:42:45 +0000</lastBuildDate>
        <generator>FeedCreator 1.7.6(BH)</generator>
        <item>
            <title>Canvas UI</title>
            <link>http://www.mupe.net/documents/client_script_reference-html/canvas/index/</link>
            <description>&lt;p&gt;Canvas implements a free-form graphical user-interface. Canvas UI is meant to be used in graphical application that require a user-interface that does not auto-format itself, such as many kinds of games. With canvas UI content creator can define absolute locations of the UI items and have features for advanced functionality, such as&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;image frame animations&lt;/li&gt;
&lt;li&gt;moving objects&lt;/li&gt;
&lt;li&gt;showing and hiding&lt;/li&gt;
&lt;li&gt;anchoring items together&lt;/li&gt;
&lt;li&gt;z-order&lt;/li&gt;
&lt;li&gt;windowing (item groups)&lt;/li&gt;
&lt;li&gt;graphics primitives for drawing lines, circles, arcs, rectangles, ellipses, etc&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt; Canvas UI uses four UI items that have a lot of common functionality but also specialized features. The UI items are&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Image&lt;/li&gt;
&lt;li&gt;String&lt;/li&gt;
&lt;li&gt;Graphics&lt;/li&gt;
&lt;li&gt;Button&lt;/li&gt;
&lt;li&gt;Tilemap&lt;/li&gt;
&lt;li&gt;Prompt&lt;/li&gt;
&lt;li&gt;Data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt; Unlike the form UI, the canvas UI does not use one-level item hierarchy, but there can be several “window”-like drawing spaces, called groups. Groups are used as containers for the UI items. They are rectangular, opaque, areas that can be placed anywhere on the screen. By default, if no groups are created, the UI still containts one group, which is the canvas UI itself. From implementation point-of-view the canvas UI creates a fullscreen group with the ID from the &lt;em&gt;template&lt;/em&gt; method.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;Identifier&lt;/h1&gt;

&lt;p&gt;In this UI type the the UI items are referenced using three parameters: &lt;em&gt;ui,&lt;/em&gt; &lt;em&gt;group&lt;/em&gt; and &lt;em&gt;id&lt;/em&gt;. The &lt;em&gt;ui&lt;/em&gt; parameter can be left unspecified when the referred UI item is in the same UI with the caller. The &lt;em&gt;group&lt;/em&gt; parameter can be left unspecified when the referred UI item is in same UI group with the caller. In addition to the UI items the UI groups and UI itself can be referred with &lt;em&gt;group&lt;/em&gt; parameter.&lt;/p&gt;

&lt;p&gt;Alternatively its possible to refer to ui items using &lt;em&gt;item&lt;/em&gt; parameter as follows: &lt;em&gt;item=&quot;ui:group/id&quot;&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;attributes&lt;/h1&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Canvas Id (and default group Id) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Width of the UI. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the UI. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;smallfontheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the small font size. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mediumfontheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the medium font size. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;largefontheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the large font size. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;creation&lt;/h1&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;type&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;must be ‘canvas&quot; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;auto&lt;/td&gt;
&lt;td&gt;Canvas Id (also Id of the default item group) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;style&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“color”&lt;/td&gt;
&lt;td&gt;
color = flat color background &lt;br /&gt;
image = image background &lt;br /&gt;
tiled = tiled image background
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;img&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;URL to image that is used with “image” and “tiled” styles. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;resource&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Resource that is used with“image” and “tiled” styles. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;uigroup&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;ui group Id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;active&lt;/td&gt;
&lt;td&gt;boolean&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;
true = UI is displayed
false = UI is just stored in ui group
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fullscreen&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;True for fullscreen UIs, false for normal UI size &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Canvas background color as hex decimal (RRGGBB) or a color preset. Works with style='color' parameter&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Canvas border color as hex decimal (RRGGBB) or a color preset. The canvas uses this color to fill the space around the canvas visible area if the device is using custom resolution.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;defaultsize&lt;/td&gt;
&lt;td&gt;boolean / string&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set this parameter to true, if the UI size should be one of the standard UI resolutions most suitable for the device or you can set a custom resolution using notation &quot;widthxheight&quot;, i.e. &quot;176x208&quot;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;template type=&quot;canvas&quot; id=&quot;canvastest&quot; style=&quot;tiled&quot;&amp;gt;
   &amp;lt;parms&amp;gt; 
      &amp;lt;img&amp;gt;tile.png&amp;lt;/img&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/template&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;Anchoring UI items&lt;/h1&gt;

&lt;p&gt;Each UI item can be anchored to another UI tem. The programmer specified where this item is anchored to (anchor) and where this item is anchored at (reference). Offsets can also be specified. Default anchor is the top left of the group the object is added to and the default reference is this objects top left corner.&lt;/p&gt;

&lt;p&gt;If an object is moved and it has another object anchored to it, the anchored object it moved with it. This way the objects can be grouped and moved together. The location of the reference/anchor is defined by: &lt;em&gt;&quot;vertical location&quot;_&quot;horizontal location&quot;&lt;/em&gt;. The possible combinations are seen in the following table:&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;&lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;left&lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;center&lt;/td&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;right&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;top&lt;/th&gt;
&lt;td&gt;Top_left&lt;/td&gt;
&lt;td&gt;top_center&lt;/td&gt;
&lt;td&gt;top_right &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;center&lt;/th&gt;
&lt;td&gt;center_left&lt;/td&gt;
&lt;td&gt;center&lt;/td&gt;
&lt;td&gt;center_right &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;bottom&lt;/th&gt;
&lt;td&gt;bottom_left&lt;/td&gt;
&lt;td&gt;bottom_center&lt;/td&gt;
&lt;td&gt;bottom_right &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt; The anchor and reference points are defined by three parameters &lt;em&gt;reference&lt;/em&gt;, &lt;em&gt;anchor&lt;/em&gt; and &lt;em&gt;anchorid&lt;/em&gt;. the &lt;em&gt;reference&lt;/em&gt; parameters tells the reference point of the item and the &lt;em&gt;anchor&lt;/em&gt; parameter tells where the reference point is anchored. The &lt;em&gt;anchorid&lt;/em&gt; parameter specifies to which item the anchored item is anchored to.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt; In addition to previous, its possible to specify all three parameters within the &lt;em&gt;anchor&lt;/em&gt; parameter. This is just implemented there, because defining the anchoring for every item can be cumbersome. To enable this feature, the &lt;em&gt;reference&lt;/em&gt; and &lt;em&gt;anchorid&lt;/em&gt; parameters are left unspecified and the &lt;em&gt;anchor&lt;/em&gt; parameter is given with notation&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;anchor='referencepoint/anchorpoint/anchorid'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;string id='item1' text='test' x=&quot;2&quot; y=&quot;-2&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;reference&amp;gt;top_left&amp;lt;/reference&amp;gt;
      &amp;lt;anchor&amp;gt;center&amp;lt;/anchor&amp;gt;
      &amp;lt;anchorid&amp;gt;another_item&amp;lt;/anchorid&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/string&amp;gt;
&amp;lt;string id='item1' text='test' x=&quot;2&quot; y=&quot;-2&quot; anchor='top_left/center/another_item' /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;Events defined by Canvas Items&lt;/h1&gt;

&lt;p&gt;These event hooks are defined for all the canvas UI items. They extend the set of events defined in Common Script Language.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_show&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This event takes place when a UI item is shown with &lt;em&gt;show&lt;/em&gt; method or the item was initialized using visible=true flag. The event only happens if the UI item was not visible and the visibility state has changed, so the content cannot create this event for a visible UI item by calling show.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_show&quot;&amp;gt;
   &amp;lt;debug text=&quot;UI item $(this.id) was just shown.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_hide&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This event takes place when a UI item is hidden with &lt;em&gt;hide&lt;/em&gt; method. The event only happens if the UI item was visible and the visibility state has changed, so the content cannot create this event for a hidden UI item by calling hide.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_delete&quot;&amp;gt;
   &amp;lt;debug text=&quot;UI item $(this.id) was just deleted.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_selector_enter, on_selector_leave&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These events takes place when the user moves the item selector or the selected item is changed with &lt;em&gt;select&lt;/em&gt; method. When the selection is changed &lt;em&gt;on_selector_leave&lt;/em&gt; event is created on the previous selected item and &lt;em&gt;on_selector_enter&lt;/em&gt; event is created on the newly selected item.&lt;/p&gt;

&lt;p&gt;In addition to previous item groups receive these events whenever the currently selected item&quot;s item group changes.&lt;/p&gt;

&lt;p&gt;Content can utilize these events for instance to notify the user of changed selection by changing the looks of the item.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_selector_enter&quot;&amp;gt;
   &amp;lt;debug text=&quot;UI item $(this.id) is selected.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&amp;lt;hook name=&quot;on_selector_leave&quot;&amp;gt;
   &amp;lt;debug text=&quot;UI item $(this.id) is no more selected.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_select&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This event takes place when user activates a UI item by moving the selector to it and pressing the activation key on the device. If the selection is locked to a UI item using the &lt;em&gt;select&lt;/em&gt; method with &lt;em&gt;lock=true&lt;/em&gt; parameter the content no longer receives &lt;em&gt;on_select&lt;/em&gt; events. In that kind of situation, the content should hook the &lt;em&gt;on_fire_down&lt;/em&gt; and &lt;em&gt;on_fire_up&lt;/em&gt; events if it need to catch user pressing the activation key on the device.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_select&quot;&amp;gt;
   &amp;lt;debug text=&quot;UI item $(this.id) was activated by user.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_fire_down, on_fire_up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This event notifies the currently selected UI item that user has pressed down or released the activation key on the device. Note that, on_fire_down and on_fire_up events occur before possible on_select event.&lt;/p&gt;

&lt;p&gt;These events can be used to change the appearance of a UI item to something and back before the on_select event. In addition, if the selection is locked using lock=true parameter with the &lt;em&gt;select&lt;/em&gt; method, the UI item does not receive the on_select events anymore, but these events still work.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_fire_up&quot;&amp;gt;
   &amp;lt;debug text=&quot;User released fire button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name=&quot;on_fire_down&quot;&amp;gt;
   &amp;lt;debug text=&quot;User pressed fire button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_left_down, on_left_up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These events are for detecting if the user has pressed the left arrow key on the client device. The events are created for the currently selected item if and only if it has been selected with &lt;em&gt;select&lt;/em&gt; using the &lt;em&gt;lock=true&lt;/em&gt; flag. In other cases the selected items wont receive the events of directional key presses.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;on_left_down&lt;/em&gt; event occurs when user has pressed the key down and analogically the &lt;em&gt;on_left_up&lt;/em&gt; occurs when the key is released.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_left_up&quot;&amp;gt;
   &amp;lt;debug text=&quot;User released left button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name=&quot;on_left_down&quot;&amp;gt;
   &amp;lt;debug text=&quot;User pressed left button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_right_down, on_right_up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These events are for detecting if the user has pressed the right arrow key on the client device. The events are created for the currently selected item if and only if it has been selected with &lt;em&gt;select&lt;/em&gt; using the &lt;em&gt;lock=true&lt;/em&gt; flag. In other cases the selected items wont receive the events of directional key presses.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;on_right_down&lt;/em&gt; event occurs when user has pressed the key down and analogically the &lt;em&gt;on_right_up&lt;/em&gt; occurs when the key is released.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_right_up&quot;&amp;gt;
   &amp;lt;debug text=&quot;User released right button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name=&quot;on_right_down&quot;&amp;gt;
   &amp;lt;debug text=&quot;User pressed right button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_down_down, on_down_up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These events are for detecting if the user has pressed the down arrow key on the client device. The events are created for the currently selected item if and only if it has been selected with &lt;em&gt;select&lt;/em&gt; using the &lt;em&gt;lock=true&lt;/em&gt; flag. In other cases the selected items wont receive the events of directional key presses.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;on_down_down&lt;/em&gt; event occurs when user has pressed the key down and analogically the &lt;em&gt;on_down_up&lt;/em&gt; occurs when the key is released.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_down_up&quot;&amp;gt;
   &amp;lt;debug text=&quot;User released down button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name=&quot;on_down_down&quot;&amp;gt;
   &amp;lt;debug text=&quot;User pressed down button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_up_down, on_up_up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These events are for detecting if the user has pressed the arrow up key on the client device. The events are created for the currently selected item and if only if it has been selected with &lt;em&gt;select&lt;/em&gt; using the &lt;em&gt;lock=true&lt;/em&gt; flag. In other cases the selected items wont receive the events of directional key presses.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;on_up_down&lt;/em&gt; event occurs when user has pressed the key down and analogically the &lt;em&gt;on_up_up&lt;/em&gt; occurs when the key is released.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_up_up&quot;&amp;gt;
   &amp;lt;debug text=&quot;User released up button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name=&quot;on_up_down&quot;&amp;gt;
   &amp;lt;debug text=&quot;User pressed up button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_game_a_down, on_game_a_up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These events are for detecting if the user has pressed the &lt;em&gt;game_a&lt;/em&gt; key on the client device. The events are created for the currently selected item. There is no pre-requirement for using &lt;em&gt;select&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;on_game_a_down&lt;/em&gt; event occurs when user has pressed the key down and analogically the &lt;em&gt;on_game_a_up&lt;/em&gt; occurs when the key is released. Which key this is, depends on the MIDP implementation.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_game_b_up&quot;&amp;gt;
   &amp;lt;debug text=&quot;User released game_b button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name=&quot;on_game_b_down&quot;&amp;gt;
   &amp;lt;debug text=&quot;User pressed game_b button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_game_b_down, on_game_b_up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These events are for detecting if the user has pressed the &lt;em&gt;game_b&lt;/em&gt; key on the client device. The events are created for the currently selected item. There is no pre-requirement for using select.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;on_game_b_down&lt;/em&gt; event occurs when user has pressed the key down and analogically the &lt;em&gt;on_game_b_up&lt;/em&gt; occurs when the key is released. Which key this is, depends on the MIDP implementation.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_game_a_up&quot;&amp;gt;
   &amp;lt;debug text=&quot;User released game_a button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name=&quot;on_game_a_down&quot;&amp;gt;
   &amp;lt;debug text=&quot;User pressed game_a button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_game_c_down, on_game_c_up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These events are for detecting if the user has pressed the up &lt;em&gt;game_c&lt;/em&gt; on the client device. The events are created for the currently selected item. There is no pre-requirement for using &lt;em&gt;select&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;on_game_c_down&lt;/em&gt; event occurs when user has pressed the key down and analogically the &lt;em&gt;on_game_c_up&lt;/em&gt; occurs when the key is released. Which key this is, depends on the MIDP implementation.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_game_c_up&quot;&amp;gt;
   &amp;lt;debug text=&quot;User released game_c button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name=&quot;on_game_c_down&quot;&amp;gt;
   &amp;lt;debug text=&quot;User pressed game_c button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_game_d_down, on_game_d_up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These events are for detecting if the user has pressed the up &lt;em&gt;game_d&lt;/em&gt; on the client device. The events are created for the currently selected item. There is no pre-requirement for using &lt;em&gt;select&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;on_game_d_down&lt;/em&gt; event occurs when user has pressed the key down and analogically the &lt;em&gt;on_game_d_up&lt;/em&gt; occurs when the key is released. Which key this is, depends on the MIDP implementation.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_game_d_up&quot;&amp;gt;
   &amp;lt;debug text=&quot;User released game_d button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name=&quot;on_game_d_down&quot;&amp;gt;
   &amp;lt;debug text=&quot;User pressed game_d button.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_pointer_down, on_pointer_up, on_pointer_dragged&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These events are for catching events from a pointer device, such as mouse or touch screen. The event hooks must be placed at template level in the script. The pointer events update pointerx and pointery parameters for the canvas which tells the current location of the pointer.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;on_pointer_down&lt;/em&gt; event occurs when the pointer is activated by pressing mouse button down or touching the screen on a touch screen device. The on_pointer_dragged events occur when the pointer is moved while being activated, and lastly the &lt;em&gt;on_pointer_up&lt;/em&gt; event takes place when the pointer becomes inactive again.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name='on_pointer_down'&amp;gt;
   &amp;lt;debug text=&quot;pointer down at $(global.pointerx),  $(global.pointery)' /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name='on_pointer_dragged'&amp;gt;
   &amp;lt;debug text=&quot;pointer moved to $(global.pointerx),  $(global.pointery)' /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name='on_pointer_up'&amp;gt;
   &amp;lt;debug text=&quot;pointer up at $(global.pointerx),  $(global.pointery)' /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;on_focus_enter, on_focus_leave&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Item group receives on_focus_enter event when it becomes the currently locked group when calling&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; &amp;lt;select lock=&quot;true&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If the lock is removed from the item group or the currently selected item group changes, the item group receives &lt;em&gt;on_focus_leave&lt;/em&gt; event.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name='on_focus_enter'&amp;gt;
   &amp;lt;debug text=&quot;item group $(this.id) was locked&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;

&amp;lt;hook name='on_focus_leave'&amp;gt;
   &amp;lt;debug text=&quot;item group $(this.id) is no more locked ' /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;Hooking the number key pad&lt;/h2&gt;

&lt;p&gt;In addition to the game keys, it is also possible to hook any of the keys in the number pad. In some cases the game keys might actually be mapped to the keys in the number key pad. Keep this in mind when designing the user interaction.&lt;/p&gt;

&lt;p&gt;Unlike the game keys, these keys can be handled three different of the content. First, the client tries to handle the key for currently selected item. If the item does not have hook defined the key is sent to the selected item&quot;s group. If the item group does not have a hook for the key the key is sent to the canvas template. So its possible to make these keys global by defining the hooks in template level.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt; The event hooks for the key pad are mapped as follows:
&lt;br /&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Key &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Events &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;on_num1_down, on_num1_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;on_num2_down, on_num2_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;on_num3_down, on_num3_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;on_num4_down, on_num4_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;on_num5_down, on_num5_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;on_num6_down, on_num6_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;on_num7_down, on_num7_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;on_num8_down, on_num8_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;on_num9_down, on_num9_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;on_num0_down, on_num0_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;*&lt;/td&gt;
&lt;td&gt;on_star_down, on_star_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;#&lt;/td&gt;
&lt;td&gt;on_pound_down, on_pound_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Soft key1&lt;/td&gt;
&lt;td&gt;on_soft1_down, on_soft1_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Soft key2&lt;/td&gt;
&lt;td&gt;on_soft2_down, on_soft1_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clear&lt;/td&gt;
&lt;td&gt;on_clear_down, on_clear_up &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hang up&lt;/td&gt;
&lt;td&gt;on_hangup_down, on_hangup_up &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hook name=&quot;on_num1_down&quot;&amp;gt;
   &amp;lt;debug text=&quot;User pressed number 1 down.&quot; /&amp;gt;
&amp;lt;/hook&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;Methods defined by Canvas UI&lt;/h1&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;outside&lt;/h2&gt;

&lt;p&gt;This is a conditional statement, which checks if two items do not overlap. The two items must be in the same item group or the target item is not found. The script inside the &lt;em&gt;outside&lt;/em&gt; tag is run if the condition is true. If either of the given items is not found the or the condition is false &lt;em&gt;else&lt;/em&gt; section inside tag is run. If there is no &lt;em&gt;else&lt;/em&gt; section the method does nothing.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;target&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;target item &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;outside id=&quot;sprite1&quot; target=&quot;area1&quot;&amp;gt;
   &amp;lt;move id=&quot;sprite1&quot; x=&quot;10&quot; y=&quot;10 /&amp;gt;
&amp;lt;/outside&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;intersects&lt;/h2&gt;

&lt;p&gt;This is a conditional statement, which checks if two items overlap. The two items must be in the same item group or the target item is not found. The script inside the &lt;em&gt;outside&lt;/em&gt; tag is run if the condition is true. If either of the given items is not found the or the condition is false &lt;em&gt;else&lt;/em&gt; section inside tag is run. If there is no &lt;em&gt;else&lt;/em&gt; section the method does nothing.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;target&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;target item &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;intersects id=&quot;sprite1&quot; target=&quot;area1&quot;&amp;gt;
   &amp;lt;move id=&quot;sprite1&quot; x=&quot;10&quot; y=&quot;10 /&amp;gt;
&amp;lt;/intersects&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;inside&lt;/h2&gt;

&lt;p&gt;This is a conditional statement, which checks if the item defined by the group and id parameters is inside the item defined by the target parameter. The two items must be in the same item group or the target item is not found. The script inside the &lt;em&gt;outside&lt;/em&gt; tag is run if the condition is true. If either of the given items is not found the or the condition is false &lt;em&gt;else&lt;/em&gt; section inside tag is run. If there is no &lt;em&gt;else&lt;/em&gt; section the method does nothing.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;target&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;target item &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;inside id=&quot;sprite1&quot; target=&quot;area1&quot;&amp;gt;
   &amp;lt;move id=&quot;sprite1&quot; x=&quot;10&quot; y=&quot;10 /&amp;gt;
&amp;lt;/inside&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;move&lt;/h2&gt;

&lt;p&gt;Moves a UI item to specified location. The given coordinates are relative to the current anchor point. If there is no anchor item specified the coordinates are relative to the top-left corner of the item group, with the exception that if the moved item is an item group itself then the coordinates are relative to the top-left corner of the screen. In addition to the previous logic there are three ways of moving items: using absolute value, using delta values or both. The absolute values moves the item to the new given (x,y) coordinates relative to the anchor point. The delta-values move the object relative to the current coordinates. If both methods are used, the object is first moved according to the absolute and then according to the delta values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If there are items anchored to the moved item, anchored items automatically moves with the item.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;
&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Absolute x-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Absolute y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltax&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Relative x-vector &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltay&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Relative y-vector &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;move group=&quot;group1&quot; id=&quot;item1&quot; deltax=&quot;10&quot; deltay=&quot;10&quot; /&amp;gt;
&amp;lt;move group=&quot;group1&quot; x=&quot;20&quot; y=&quot;20&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;setcolors&lt;/h2&gt;

&lt;p&gt;This method is used for changing the foreground and background color values of a UI item. It is a generic method for all UI item types, including item groups. The UI items may only use one of the color values or not using either one of them. In the latter case the method does nothing.&lt;/p&gt;

&lt;p&gt;The fgcolor and bgcolor parameters may be either 3-byte hex decimal values or predefined color identifiers. In case of 3-byte hex decimal values the format is &quot;rrggbb&quot; where the &quot;rr&quot; means 8-bit red color component value, &quot;gg&quot; green component and &quot;bb&quot; the blue component.&lt;/p&gt;

&lt;p&gt;In case of using the predefined color identifiers the system recognizes the following color strings: black, white, green, yellow, pink, blue, gray, darkgray, brown and red.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Item foreground color as hex decimal (RRGGBB) or a color preset. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Item background color as hex decimal (RRGGBB) or a color preset. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;setcolors fgcolor=&quot;ff00ff&quot; bgcolor=&quot;black&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;select&lt;/h2&gt;

&lt;p&gt;Sets a given UI item as the selected item. The selected item is the one that has the “selector” rectangle drawn around its borders. Only items that have selectable attribute set to true can be set as the selected item. Usually user can browse through the selectable items using arrow keys. This method overrides the user input and jumps the selection to the given item.&lt;/p&gt;

&lt;p&gt;In addition to the previous feature this method also has functionality of locking the selection to a certain UI item. When the selection is locked to a UI item user cannot move the selection away from the item and the selector rectangle is not drawn around the item. This is especially useful feature in situations where the user should for instance move a UI item, say “starship” image, since the locking also lets the selected item to receive the arrow key presses as events. The events are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;on_left_down &amp;amp; on_left_up&lt;/li&gt;
&lt;li&gt;on_right_down &amp;amp; on_right_up&lt;/li&gt;
&lt;li&gt;on_up_down &amp;amp; on_up_up&lt;/li&gt;
&lt;li&gt;on_down_down &amp;amp; on_down_up&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Locking an item group affects the content in such a way that only the items in the locked item group are selectable. When the lock is released with lock=&quot;false&quot; parameter the items in all item groups are selectable again.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;lock&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;set to true if selection is locked to the specified item. If the item is an item group the selection is restricted to the items in the item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;select group=&quot;group1&quot; id=&quot;image1&quot; /&amp;gt;
&amp;lt;select id=&quot;sprite1&quot; lock=&quot;true&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;show&lt;/h2&gt;

&lt;p&gt;Shows an UI item or item group with given group and Id information. If the referred item is not found the method does nothing. If the referred object is an item group the group is shown and the items inside it that have visibility flag set to true.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;show id=&quot;sprite1&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;hide&lt;/h2&gt;

&lt;p&gt;Hides an UI item or item group with given group and Id information. If the referred item is not found the method does nothing.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hide id=&quot;sprite1&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;bringtofront&lt;/h2&gt;

&lt;p&gt;Brings a ui item to top of the z-order in a item group. If the referred item is an item group itself then it is made as the front item group. If the item (or item group) is not a &quot;topmost&quot; (creation parameter) item the item is still stays behind the &quot;topmost&quot; items.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;bringtofront id=&quot;sprite1&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;sendtoback&lt;/h2&gt;

&lt;p&gt;Sends a ui item to bottom of the z-order in a item group. If the referred item is an item group itself then it is made as the backmost item group. If the item (or item group) is a &quot;topmost&quot; (creation parameter) item the item is still stays top of the non-&quot;topmost&quot; items.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;sendtoback id=&quot;sprite1&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;allowuserinput&lt;/h2&gt;

&lt;p&gt;Enables or disables the user input. This may become handy in certain situations where the application wants to prevent the user from making any changes to the UI before the UI has completed some task.&lt;/p&gt;

&lt;p&gt;The task could be for instance sending a message to the server and waiting for reply. In that case the application can disable the user input before sending the message and when the reply arrives or in case of network error the user input can be enabled again.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ui&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;UI Id. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;value&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;true=user input enabled, false=user input disabled &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;type&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“all”&lt;/td&gt;
&lt;td&gt;Optional parameter for only disabling certain types of user input. Possible values are:
“menu”=disables/enables menu. &lt;br /&gt;
“keypad”=disables/enables keypad events &lt;br /&gt;
“gamekeys”=disables/enables arrow keys, game\_\* keys and fire button &lt;br /&gt;
“all”=disables/enables all input and resets individual input flags (default)
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;allowuserinput value=&quot;false&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;setselectable&lt;/h2&gt;

&lt;p&gt;Changes the selectable flag of a UI item. If the selectable flag is set to true user can select the item with browsing through the selectable UI items.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;value&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;The selectable state &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;setselectable id=&quot;sprite1&quot; value=&quot;true&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;anchoritem&lt;/h2&gt;

&lt;p&gt;(Re-)anchors item to another item using given anchor and reference points&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anchor&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“top\_left”&lt;/td&gt;
&lt;td&gt;Anchor point at the destination item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“top\_left”&lt;/td&gt;
&lt;td&gt;Anchor point at this item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anchorid&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor item &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;anchoritem id=&quot;sprite1&quot; reference=&quot;bottom\_left&quot; anchor=&quot;top\_right&quot; anchor=&quot;sprite2&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;setselectorcolor&lt;/h2&gt;

&lt;p&gt;Sets the current selector box color.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;_Parameters _&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;value&lt;/td&gt;
&lt;td&gt;Color/string&lt;/td&gt;
&lt;td&gt;“auto”&lt;/td&gt;
&lt;td&gt;
“auto” = automatic selector color (default).
“transparent” = transparent selector.
&quot;previous&quot; = previous selector color.
&lt;color&gt; = changes the color to given value.
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;setselectorcolor value=&quot;transparent&quot; /&amp;gt;
&amp;lt;setselectorcolor value=&quot;red&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;beginchange&lt;/h2&gt;

&lt;p&gt;The changes to the UI are not committed. The &lt;em&gt;beginchange&lt;/em&gt; and &lt;em&gt;endchange&lt;/em&gt; methods make it possible to greatly improve the performance of the graphical application. Instead of drawing and updating each group and item in each changed region on the screen, only the information of areas that need to be updated are combined together as a one large update area. When the endchange is called the client only updates the one large area instead of multiple smaller areas (as it would have been normally).&lt;/p&gt;

&lt;p&gt;Each update means that the client has to go through all the items to detect whether they intersect with the updated area or not. When there are a lot of UI items that constantly change the number of those checks can raise exponentially. In such cases its better just to update everything in the combined are once.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If the content updates two UI items in the opposite corners of the item group all the items are updated in that item group, since the combined update area covers everything inside the rectangle that includes the to items.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ui&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;UI Id. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fullupdate&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the screen should be fully redrawn after call to endchange. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;beginchange /&amp;gt;
    Lots of UI updates here
&amp;lt;endchange /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;endchange&lt;/h2&gt;

&lt;p&gt;Changes to the UI are committed. The &lt;em&gt;beginchange&lt;/em&gt; and &lt;em&gt;endchange&lt;/em&gt; method makes it possible to greatly improve the performance of the graphical application. Instead of drawing and updating each group and item in each changed region on the screen, only the information of areas that need to be updated are combined together as a one large update area. When the endchange is called the client only updates the one large area instead of multiple smaller areas (as it would have been normally).&lt;/p&gt;

&lt;p&gt;Each update means that the client has to go through all the items to detect wether they intersect with the updated area or not. When there are a lot of UI items that constantly change the number of those checks can raise exponentially. In such cases its better just to update everything in the combined are once.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If the content updates two UI items in the opposite corners of the item group all the items are updated in that item group, since the combined update area covers everything inside the rectangle that includes the to items.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ui&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;UI Id. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;beginchange /&amp;gt;
   Lots of UI updates here
&amp;lt;endchange /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;hideloadingicon&lt;/h2&gt;

&lt;p&gt;Call this method if you want the UI to be responsible of notifying the user about network activity. Once this method is called the UI no longer shows the network activity icon at the top right corner of the UI.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;hideloadingicon /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;overrideselector&lt;/h2&gt;

&lt;p&gt;Overrides default selector movement. Sometimes the default selector movement is not logical and its good to be able to override the default beviour for certain ui items. One can (re)define the overrides at creation or using &lt;overrideselector /&gt; method.&lt;/p&gt;

&lt;p&gt;In both cases the overrides are defined ny four parameters &quot;selleft&quot;,&quot;selright&quot;,&quot;selup&quot; and &quot;seldown&quot;. These parameters define the ID of the item that is selected when the selector is moved to one of the four directions. If one or more of the parameters is given value &quot;auto&quot; that disabled the override and returns default action for those directions. In addition, if the parameter is empty string (&quot;&quot;) the direction is always disabled for the ui item.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;selleft&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Id of the selected item when moving left or group and id in format &quot;group/id&quot;. Or...
&quot;auto&quot; for disabling the override.
&quot;&quot; for disabling the direction.
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;selright&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Id of the selected item when moving right or group and id in format &quot;group/id&quot;. Or...
&quot;auto&quot; for disabling the override.
&quot;&quot; for disabling the direction.
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;selup&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Id of the selected item when moving up or group and id in format &quot;group/id&quot;. Or...
&quot;auto&quot; for disabling the override.
&quot;&quot; for disabling the direction.
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;seldown&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Id of the selected item when moving down or group and id in format &quot;group/id&quot;. Or...
&quot;auto&quot; for disabling the override.
&quot;&quot; for disabling the direction.
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;overrideselector selleft='_' selright='img1' selup='auto' /&amp;gt;_
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;moveselector&lt;/h2&gt;

&lt;p&gt;Moves selector to given direction.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;direction&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;&quot;left&quot; moves selector to left.
&quot;right&quot; moves selector to right.
&quot;up&quot; moves selector to up.
&quot;down&quot; moves selector to down.
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;moveselector direction='left' /&amp;gt;_
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;Item Groups&lt;/h1&gt;

&lt;p&gt;A &lt;em&gt;group&lt;/em&gt; is a special case of the UI items. It is a UI item that contains other UI items. A &lt;em&gt;group&lt;/em&gt; cannot contain other groups, to keep the UI topology Just as a flat one level hierarchy. The z-order applies to item groups too, so the UIs can be made to look as the groups would be inside another group by making it smaller, placing it inside the other group&quot;s area (or for instance anchoring it to the center of another group), and making it the topmost item group.&lt;/p&gt;

&lt;p&gt;Item groups are always opaque rectangular areas. The background of the item group can be drawn with solid color, it can be an image, or a tiled image. The (x,y) coordinates are relative to the current anchor point (as with UI items), which is the top-left corner of the screen if no anchor point is specified.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;Modal item groups&lt;/h2&gt;

&lt;p&gt;Modal item groups are a special case of item group. They remember the last UI focus as they are shown. Also, they do not give UI focus to any other item group but another modal item group. When modal item group is hidden or deleted, it returns the ui focus to the UI item that was last selected, before the modal item group was shown. This feature can be enabled with modal=&quot;true&quot; creation parameter.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;attributes&lt;/h2&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Item group Id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;visible&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;Visibility flag &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bgcolor&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;Current background color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Width of the item group &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;height of the item group &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;x-coordidate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;creation&lt;/h2&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;auto&lt;/td&gt;
&lt;td&gt;Item id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;inherits&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Item inherits the hooks of this item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;visible&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;Visible flag &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anchor&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor point at the destination item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor point at this item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anchorid&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string &lt;/td&gt;
&lt;td&gt;“white”&lt;/td&gt;
&lt;td&gt;Background color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;canvas width&lt;/td&gt;
&lt;td&gt;Item group width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;canvas height&lt;/td&gt;
&lt;td&gt;Item group height &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;style&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“color”&lt;/td&gt;
&lt;td&gt;
“color” = bgcolor attribute used for solid color background &lt;br /&gt;
“image” = centered background image &lt;br /&gt;
“tiled” = tiled background image &lt;br /&gt;
“transparent”= transparent background
“rounded” = group has a round border
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;img&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;URL that points to image that is used as a background. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;resource&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Image resource that is used as a background. Optional to &quot;img&quot; parameter. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;border&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the item group's border should be drawn. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;topmost&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the item group should stay on top of non-topmost item groups. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;modal&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the item group is a modal item group which remembers the UI focus when it is hidden.&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;group id=&quot;mygroup&quot; x=&quot;20%&quot; y=&quot;30%&quot; width=&quot;60%&quot; height=&quot;40%&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;style&amp;gt;color&amp;lt;/style&amp;gt;
      &amp;lt;bgcolor&amp;gt;black&amp;lt;/bgcolor&amp;gt;
   &amp;lt;/parms&amp;gt;
   &amp;lt;hook name=&quot;on\_show&quot;&amp;gt;
       ... some script here ...
   &amp;lt;/hook&amp;gt;

   &amp;lt;image id=&quot;img1&quot; x=&quot;0&quot; y=&quot;0&quot; resource=&quot;res1&quot; /&amp;gt;
&amp;lt;/group&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;scroll&lt;/h2&gt;

&lt;p&gt;Scrolls an item group horizontally and/or vertically by moving the UI items inside the item group. However, items that have been created using sticky=&quot;true&quot; parameter, are not scrolled.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltax&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Horizontal delta. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltay&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Vertical delta. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;scroll id=&quot;group1&quot; deltax=&quot;5&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;resize&lt;/h2&gt;

&lt;p&gt;Resizes the item group horizontally and/or vertically.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Item width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Item height &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltawidth&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Change in width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltaheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Change in height &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;resize id=&quot;group1&quot; deltawidth=&quot;5&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;string&lt;/h1&gt;

&lt;p&gt;String is a UI item that has a rectangular area where a text string is rendered using given font, style and color. The size of the area can be set to automatic fit the text into it. If the string item uses static area size, the text that does not fit the area is clipped out. If only the width of the area is defined the text will automatically stretch the bounding box vertically to fit all the lines in the area. If only height is defined, the text has a static height bounding box but it automatically stretches horizontally according to the text size. And finally if neither width or height is defined, the height of the bounding box is the used font height and width equals to the text width.&lt;/p&gt;

&lt;p&gt;The text is drawn with current fgcolor value and background with the current bgcolor. The bounding box can also be set as transparent, in which case only the text is drawn.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;attributes&lt;/h2&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Item Id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;group&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Item group &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;visible&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;Visible flag &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;selectable&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;Is item selectable by user &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fgcolor&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;Text color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bgcolor&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;Background color for the item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Width of the item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;X-coordinate relative to currently anchored item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Y-coordinate relative to currently anchored item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;top&lt;/td&gt;
&lt;td&gt;Int&lt;/td&gt;
&lt;td&gt;Y-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;left&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;X-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bottom&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;(y+width)-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;right&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;(x+height)-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sticky&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;True if the item is not scrollable &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;text&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;The text &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;creation&lt;/h2&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;auto&lt;/td&gt;
&lt;td&gt;Item Id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;group&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;default&lt;/td&gt;
&lt;td&gt;Item group &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;inherits&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Item inherits the hooks of this item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;selectable&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Item is selectable by user &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;visible&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;Visible flag &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anchor&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor point at the destination item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor point at this item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anchorid&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string &lt;/td&gt;
&lt;td&gt;“black”&lt;/td&gt;
&lt;td&gt;Text color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string &lt;/td&gt;
&lt;td&gt;“white”&lt;/td&gt;
&lt;td&gt;Background color for the item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sticky&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the ui should not be scrolled via scroll. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;text width&lt;/td&gt;
&lt;td&gt;Width of the item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;font height&lt;/td&gt;
&lt;td&gt;Height of the item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;text&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;The text string &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;face&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“system”&lt;/td&gt;
&lt;td&gt;Font face: “system”, “monospace” or “proportional” &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;size&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;&quot;small&quot;&lt;/td&gt;
&lt;td&gt;Font size: “small”, “medium”, “large” &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bold&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Flag for bold text &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;italic&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Flag for Italic text &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;plain&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Flag for plain text &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;underlined&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Flag for Underlined text &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;font&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Alternatively to default MIDP fonts, you can use a bitmap font image resource. Set the resource id here or leavy unspecified for using the default fonts.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;opaque&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Flag for opaque text &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;halign&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“left”&lt;/td&gt;
&lt;td&gt;Horizontal alignment of the text inside bounding box: “left”,
“center”, “right”
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;valign&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“top&quot;&lt;/td&gt;
&lt;td&gt;Vertical alignment of the text inside bounding box: “top”, “center”, “bottom” &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;align&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;&quot;top/left&quot;&lt;/td&gt;
&lt;td&gt;Optional way to define the alignment. Using format &quot;horizontal alignment/vertical alignment&quot; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;hpadding&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Horizontal padding for the text. Amount of pixels at left and right borders not used by the text inside the bounding box. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;border&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the text bounding box needs to be drawn. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;drawselector&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;Set to false if the ui item handles its own selector visuals. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;topmost&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the item should stay on top of non-topmost items. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;xoffset&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Initial x-offset of the text inside it's bounding box. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;yoffset&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Initial y-offset of the text inside it's bounding box. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;autowrap&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;Set this to false if you do not want the text to lines to be wrapped at the bounding box border. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;string id=&quot;string1&quot; x=&quot;50&quot; y=&quot;50&quot; face=&quot;monospace&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;text&amp;gt;Hello world!&amp;lt;/text&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/string&amp;gt;

&amp;lt;string id=&quot;string2&quot; anchor=&quot;bottom\_center&quot; reference=&quot;top\_center&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;y&amp;gt;10&amp;lt;/y&amp;gt;
      &amp;lt;face&amp;gt;monospace&amp;lt;/face&amp;gt;
      &amp;lt;text&amp;gt;======&amp;lt;/text&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/string&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;settext&lt;/h2&gt;

&lt;p&gt;Changes the text string for the UI item.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;text&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;The text string &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;settext id=&quot;string1&quot; text=&quot;changed text&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;setstyle&lt;/h2&gt;

&lt;p&gt;Changes the font and style of the text.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;face&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“system”&lt;/td&gt;
&lt;td&gt;Font face: “system”, “monospace” or “proportional” &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;size&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“medium”&lt;/td&gt;
&lt;td&gt;Font size: “small”, “medium”, “large” &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bold&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Flag for bold text &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;italic&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Flag for Italic text &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;plain&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Flag for plain text &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;underlined&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Flag for Underlined text &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;opaque&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Flag for opaque text &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;halign&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“left”&lt;/td&gt;
&lt;td&gt;Horizontal alignment of the text inside bounding box: “left”,
“center”, “right”
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;valign&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;“top&quot;&lt;/td&gt;
&lt;td&gt;Vertical alignment of the text inside bounding box: “top”, “center”, “bottom” &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;align&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;&quot;top/left&quot;&lt;/td&gt;
&lt;td&gt;Optional way to define the alignment. Using format &quot;horizontal alignment/vertical alignment&quot; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;hpadding&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Horizontal padding for the text. Amount of pixels at left and right borders not used by the text inside the bounding box. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;border&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the text bounding box needs to be drawn. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;xoffset&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Initial x-offset of the text inside it's bounding box. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;yoffset&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Initial y-offset of the text inside it's bounding box. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;setstyle id=&quot;string1&quot; face=&quot;proportional&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;resize&lt;/h2&gt;

&lt;p&gt;Resizes the bounding box of the string item. If the width or height is set to -1 that means the bounding box will automatically calculate the width or height values according to the text size.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Item width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Item height &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltawidth&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Change in width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltaheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Change in height &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;resize id=&quot;string1&quot; width=&quot;100&quot; height=&quot;10&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;scroll&lt;/h2&gt;

&lt;p&gt;Scrolls the text inside it's bounding box. If the limit of available text is reached on one of the direction the scrolling is not done, i.e the text cannot be scrolled out of view.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;xoffset&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Text x-coordinate inside bounding box. Value 0 resets the text to original position. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;yoffset&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Text y-coordinate inside bounding box. Value 0 resets the text to original position. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltax&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Relative horizontal scroll amount in pixels. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltay&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Relative vertical scroll amount in pixels. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;scroll id=&quot;string1&quot; deltax=&quot;10&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;append&lt;/h2&gt;

&lt;p&gt;Appends a string in the end of the text. This is handly especially when the text is very long and it is updated rapidly. It also implements a FiFo buffer that cuts text off the beginning while adding text to the end.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;text&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;The text string &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;max&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Maximum size of the text after append.&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;append id=&quot;string1&quot; text=&quot;new text&quot; max=&quot;100&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;insert&lt;/h2&gt;

&lt;p&gt;Inserts a string in the beginning of the text. This is handly especially when the text is very long and it is updated rapidly. It also implements a FiFo buffer that cuts text off the end while adding text to the beginning.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;text&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;The text string &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;max&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Maximum size of the text after insertion.&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;insert id=&quot;string1&quot; text=&quot;new text&quot; max=&quot;100&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;image&lt;/h1&gt;

&lt;p&gt;UI item that supports downloadable images. It can be set to download an image from internet or it can use a defined image resource with &quot;resource:&quot; prefix as the url parameter. Like the other UI items it can be placed anywhere in its group. One can specify static framewidth and frameheight parameters to use the image data as a storage of multiple frames of data. If the framewidth and frameheight are specified the image is shown as given size and it is possible to change the active visible area using &lt;em&gt;setframe&lt;/em&gt; method, where the given value parameter corresponds to a image frame in the actually image data. This functionality can be used to create image frame animations by having all the frames of a &quot;sprite&quot; in one image and then changing the active frame with &lt;em&gt;setframe&lt;/em&gt; method. This method also saves some memory and it is faster to download one large image than many smaller ones.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;attributes&lt;/h2&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Item Id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;group&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Item group &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;visible&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;Visible flag &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;selectable&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;Is item selectable by user &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fgcolor&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;Text color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bgcolor&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;Background color for the item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Width of the item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;X-coordinate relative to currently anchored item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Y-coordinate relative to currently anchored item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;top&lt;/td&gt;
&lt;td&gt;Int&lt;/td&gt;
&lt;td&gt;Y-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;left&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;X-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bottom&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;(y+width)-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;right&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;(x+height)-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sticky&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;True if the item is not scrollable &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;url&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Image URL &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;frame&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Current frame number. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;creation&lt;/h2&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;auto&lt;/td&gt;
&lt;td&gt;Item Id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;group&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;default&lt;/td&gt;
&lt;td&gt;Item group &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;inherits&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Item inherits the hooks of this item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;selectable&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Item is selectable by user &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;visible&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;Visible flag &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anchor&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor point at the destination item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor point at this item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anchorid&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string &lt;/td&gt;
&lt;td&gt;“black”&lt;/td&gt;
&lt;td&gt;Text color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string &lt;/td&gt;
&lt;td&gt;“white”&lt;/td&gt;
&lt;td&gt;Background color for the item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sticky&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the ui should not be scrolled via scroll. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;url&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;URL for downloadable image. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;resource&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Image resource id. Alternate to URL parameter. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;framewidth&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Width of an image frame for sprite images &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;frameheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Height of an image frame for sprite images &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cache&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;&quot;true&quot;&lt;/td&gt;
&lt;td&gt;Set to &quot;false&quot; if the image should not be cached but downloaded each time. &lt;br /&gt;Set to &quot;update&quot; if the data in cache only needs to be updated. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cropx&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Crop rect for displaying a portion of a larger image resource. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cropy&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Crop rect for displaying a portion of a larger image resource. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cropwidth&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Image width&lt;/td&gt;
&lt;td&gt;Crop rect for displaying a portion of a larger image resource. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cropheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Image height&lt;/td&gt;
&lt;td&gt;Crop rect for displaying a portion of a larger image resource. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;drawselector&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;Set to false if the ui item handles its own selector visuals. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;topmost&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the item should stay on top of non-topmost items. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;image id=&quot;logo&quot; x=&quot;10&quot; y=&quot;10&quot; resource=&quot;res\_logo&quot; /&amp;gt;

&amp;lt;image id=&quot;logo2'&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;anchor&amp;gt;center_right&amp;lt;/anchor&amp;gt;
      &amp;lt;reference&amp;gt;center_left&amp;lt;/reference&amp;gt;
      &amp;lt;anchorid&amp;gt;logo&amp;lt;/anchorid&amp;gt;
      &amp;lt;url&amp;gt;logo2.png&amp;lt;/url&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/image&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;setimage&lt;/h2&gt;

&lt;p&gt;Sets new image data for the image item. It can either be a url to a network image or a image resource.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;url&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;URL to downloadable image. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;resource&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Reference to image resource (optional to url). &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;framewidth&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Width of an image frame for sprite images &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;frameheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Height of an image frame for sprite images &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cache&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;&quot;true&quot;&lt;/td&gt;
&lt;td&gt;Set to &quot;false&quot; if the image should not be cached but downloaded each time. Set to &quot;update&quot; if the data in cache only needs to be updated. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cropx&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Crop rect for displaying a portion of a larger image resource. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cropy&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Crop rect for displaying a portion of a larger image resource. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cropwidth&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Image width&lt;/td&gt;
&lt;td&gt;Crop rect for displaying a portion of a larger image resource. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cropheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Image height&lt;/td&gt;
&lt;td&gt;Crop rect for displaying a portion of a larger image resource. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;setimage id=&quot;logo&quot; url=&quot;http://www.images.com/logo3.png&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;setframe&lt;/h2&gt;

&lt;p&gt;Sets an active frame of the sprite image. The sprite functionality can be activated by setting static framewidth and frameheight parameters for an image. The actual image is divided into frames so that it is possible to change the active image frame by changing image frame index. The first image is the one in the top left corner, the next is the one on the right and so forth. The 1st image frame index is 0 and the next frame index is 1 and so forth. The frames can be arranged in multiple rows and columns as well.&lt;/p&gt;

&lt;p&gt;If the given frame index is outside the range of frames defined for the image, the index is the normalized into the range. I.e. if there is 5 frames (0…4) defined for an image and one tries to use index=&quot;6&quot; parameter within the &lt;em&gt;setframe&lt;/em&gt; method the frame index set for the image is actually ‘1&quot; when after normalization.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;index&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Absolute index to visible frame. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;delta&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Relative index to visible frame. i.e. delta=1 means next frame. delta=-1 means previous frame. &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;setframe id=&quot;sprite1&quot; delta=&quot;3&quot;  /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;transform&lt;/h2&gt;

&lt;p&gt;Applies given transformations to the image. Currently available transformations are image rotation and mirror.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;rotate&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Rotation value. Valid values are:
“clockwise” = rotates image 90 degrees clockwise
“anticlockwise” = rotates image 90 degrees anticlockwise
“deg0” = 0 degrees
“deg90” = 90 degrees
“deg180” = 180 degrees
“deg270” = 270 degrees
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;origox&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate of the rotation center &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;origoy&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate of the rotation center &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mirror&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;True for mirrored image &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;transform id=&quot;sprite1&quot; rotate=&quot;deg90&quot; mirror=&quot;true&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1&gt;graphics&lt;/h1&gt;

&lt;p&gt;Graphics is a UI item that consists of graphics elements. The elements are: line, rectangle, circle, ellipse and arc. These graphics elements can be drawn anywhere in the graphics item&quot;s bounding box. The graphics item can have a solid color background or the background can be left transparent. Each graphics element can be drawn with a different color and they may be drawn filled.&lt;/p&gt;

&lt;p&gt;ince version 2.26 of the client the graphics items can drawn using double buffering. This way the drawing of the graphics item becomes faster with the following limitations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the graphics item cannot be transparent&lt;/li&gt;
&lt;li&gt;&lt;em&gt;resize&lt;/em&gt;, &lt;em&gt;undo&lt;/em&gt; and &lt;em&gt;forget&lt;/em&gt; do not work with double buffered graphics items&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;attributes&lt;/h2&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Item Id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;group&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;Item group &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;visible&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;Visible flag &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;selectable&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;Is item selectable by user &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fgcolor&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;Text color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bgcolor&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;Background color of the item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Width of the item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Height of the item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;X-coordinate relative to currently anchored item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;Y-coordinate relative to currently anchored item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;top&lt;/td&gt;
&lt;td&gt;Int&lt;/td&gt;
&lt;td&gt;Y-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;left&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;X-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bottom&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;(y+width)-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;right&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;(x+height)-coordinate relative to item group. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sticky&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;True if the item is not scrollable &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;creation&lt;/h2&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;id&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;auto&lt;/td&gt;
&lt;td&gt;Item Id &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;group&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;default&lt;/td&gt;
&lt;td&gt;Item group &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;inherits&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Item inherits the hooks of this item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;selectable&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Item is selectable by user &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;visible&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;Visible flag &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anchor&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor point at the destination item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reference&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor point at this item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;anchorid&lt;/td&gt;
&lt;td&gt;string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Anchor item &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string &lt;/td&gt;
&lt;td&gt;“black”&lt;/td&gt;
&lt;td&gt;Text color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bgcolor&lt;/td&gt;
&lt;td&gt;3-byte hex / string &lt;/td&gt;
&lt;td&gt;“white”&lt;/td&gt;
&lt;td&gt;Background color of the item&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sticky&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the ui should not be scrolled via scroll. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;canvas width&lt;/td&gt;
&lt;td&gt;Item width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;canvas height&lt;/td&gt;
&lt;td&gt;Item height &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;doublebuffer&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true for double buffered graphics items. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;drawselector&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;true&lt;/td&gt;
&lt;td&gt;Set to false if the ui item handles its own selector visuals. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;topmost&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if the item should stay on top of non-topmost items. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;autoscale&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;Set to true if graphics item should autoscale its contents according to resizing.&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;graphics id=&quot;redcircleonyellow&quot; x=&quot;10&quot; y=&quot;100&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;width&amp;gt;50&amp;lt;/width&amp;gt;
      &amp;lt;height&amp;gt;50&amp;lt;/height&amp;gt;
   &amp;lt;/parms&amp;gt;
   &amp;lt;clear color=&quot;yellow&quot; /&amp;gt;
   &amp;lt;circle x=&quot;50%&quot; y=&quot;50%&quot; width=&quot;100%&quot; filled=&quot;true&quot;&amp;gt;
      &amp;lt;parms&amp;gt;&amp;lt;color&amp;gt;red&amp;lt;/color&amp;gt;&amp;lt;/parms&amp;gt;
   &amp;lt;/circle&amp;gt;
&amp;lt;/graphics&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;resize&lt;/h2&gt;

&lt;p&gt;Resizes the graphics UI item. The graphics elements that are drawn using percentage values are resized with the graphics item. As with &lt;em&gt;move&lt;/em&gt; method there are two ways of resizing: either giving new absolute width and height values, or changing the width and height with delta values, or using both.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Item width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;Item height &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltawidth&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Change in width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;deltaheight&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Change in height &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;resize id=&quot;redcircleonyellow&quot; deltawidth=&quot;10&quot; deltaheight=&quot;10&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;clear&lt;/h2&gt;

&lt;p&gt;Clears the graphics item from graphics elements and sets the background color. If the color parameter is left unspecified the background will be transparent.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;color&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Background color &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;clear id=&quot;redcircleonyellow&quot; /&amp;gt;

&amp;lt;clear id=&quot;redcircleonyellow&quot; color=&quot;blue&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;line&lt;/h2&gt;

&lt;p&gt;Adds a line to the graphics item drawn with given color. The coordinates are relative to the top-left corner of the graphics item and the graphics element is clipped to the graphics item&quot;s bounding box.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;color&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Drawing color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;start x-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;start y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x2&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;start x-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y2&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;End y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;line id=&quot;reccircleonyellow&quot; x=&quot;0&quot; y=&quot;0&quot; x2=&quot;100%&quot; y2=&quot;100%&quot; /&amp;gt;

&amp;lt;line id=&quot;reccircleonyellow&quot; x=&quot;0&quot; y=&quot;100%&quot; x2=&quot;100%&quot; y2=&quot;0&quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;circle&lt;/h2&gt;

&lt;p&gt;Adds a circle to the graphics item drawn with given color. The coordinates are relative to the top-left corner of the graphics item and the graphics element is clipped to the graphics item&quot;s bounding box.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;color&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Drawing color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Graph width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;filled&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;true = filled graph, false = border only &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;circle id=&quot;redcircleonyellow&quot; x=&quot;10&quot; y=&quot;10&quot; width=&quot;20&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;filled&amp;gt;true&amp;lt;/filled&amp;gt;
      &amp;lt;color&amp;gt;green&amp;lt;/color&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/circle&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;ellipse&lt;/h2&gt;

&lt;p&gt;Adds an ellipse to the graphics item drawn with given color. The coordinates are relative to the top-left corner of the graphics item and the graphics element is clipped to the graphics item&quot;s bounding box.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;color&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Drawing color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Graph width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Graph height &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;filled&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;true = filled graph, false = border only &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;ellipse id=&quot;redcircleonyellow&quot; x=&quot;90%&quot; y=&quot;10&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;height&amp;gt;10&amp;lt;/height&amp;gt;
      &amp;lt;width&amp;gt;20&amp;lt;/width&amp;gt;
      &amp;lt;filled&amp;gt;true&amp;lt;/filled&amp;gt;
      &amp;lt;color&amp;gt; black&amp;lt;/color&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/ellipse&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;arc&lt;/h2&gt;

&lt;p&gt;Adds an arc to the graphics item drawn with given color. The coordinates are relative to the top-left corner of the graphics item and the graphics element is clipped to the graphics item's bounding box.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;color&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Drawing color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Graph width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Graph height &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;filled&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;true = filled graph, false = border only &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;sangle&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Start angle &lt;span class=&quot;wiki_missing_nouser&quot; title=&quot;Login to create this missing page&quot;&gt;0..360&lt;/span&gt;, 0 = right most point of ellipse &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;eangle&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;360&lt;/td&gt;
&lt;td&gt;Extent of the arc in degrees, a positive value means counter-clockwise rotation &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;arc id=&quot;redcircleonyellow&quot; x=&quot;90%&quot; y=&quot;10 height=&quot;10&quot; width=&quot;20&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;sangle&amp;gt;90&amp;lt;/sangle&amp;gt;
      &amp;lt;eangle&amp;gt;270&amp;lt;/eangle&amp;gt;
      &amp;lt;filled&amp;gt;true&amp;lt;/filled&amp;gt;
      &amp;lt;color&amp;gt; black&amp;lt;/color&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/arc&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;rect&lt;/h2&gt;

&lt;p&gt;Adds a rectangle to the graphics item drawn with given color. The coordinates are relative to the top-left corner of the graphics item and the graphics element is clipped to the graphics item&quot;s bounding box.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;color&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Drawing color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Graph width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Graph height &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;filled&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;true = filled graph, false = border only &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;rect id=&quot;redcircleonyellow&quot; x=&quot;90%&quot; y=&quot;10 height=&quot;10&quot; width=&quot;20&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;filled&amp;gt;false&amp;lt;/filled&amp;gt;
      &amp;lt;color&amp;gt; black&amp;lt;/color&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/rect&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;roundrect&lt;/h2&gt;

&lt;p&gt;Adds a rectangle to the graphics item drawn with given color. The coordinates are relative to the top-left corner of the graphics item and the graphics element is clipped to the graphics item&quot;s bounding box.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;color&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Drawing color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;width&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Graph width &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;height&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Graph height &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;filled&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;true = filled graph, false = border only &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;corner&lt;/td&gt;
&lt;td&gt;int &lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Size of the corner&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;roundrect id=&quot;redcircleonyellow&quot; x=&quot;90%&quot; y=&quot;10 height=&quot;100&quot; width=&quot;70&quot; corner=&quot;15&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;filled&amp;gt;false&amp;lt;/filled&amp;gt;
      &amp;lt;color&amp;gt; black&amp;lt;/color&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/roundrect&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;triangle&lt;/h2&gt;

&lt;p&gt;Adds a triangle to the graphics item drawn with given color. The coordinates are relative to the top-left corner of the graphics item and the graphics element is clipped to the graphics item&quot;s bounding box.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Parameters&lt;/em&gt;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;
&lt;tr&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Param &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Type &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Default &lt;/th&gt;
&lt;th bgcolor=&quot;#efefef&quot;&gt;Meaning &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;i&gt;identifiers&lt;/i&gt;&lt;/td&gt;
&lt;td&gt;params&lt;/td&gt;
&lt;td&gt;current item&lt;/td&gt;
&lt;td&gt;Item reference. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;color&lt;/td&gt;
&lt;td&gt;3-byte hex / string&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;Drawing color &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate of first corner &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate of first corner &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x2&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate of second corner &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y2&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate of second corner &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x3&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;X-coordinate of third corner &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;y3&lt;/td&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Y-coordinate of third corner &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;filled&lt;/td&gt;
&lt;td&gt;bool&lt;/td&gt;
&lt;td&gt;false&lt;/td&gt;
&lt;td&gt;true = filled graph, false = border only &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;rect id=&quot;redcircleonyellow&quot; x=&quot;90%&quot; y=&quot;10 height=&quot;10&quot; width=&quot;20&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;filled&amp;gt;false&amp;lt;/filled&amp;gt;
      &amp;lt;color&amp;gt; black&amp;lt;/color&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/rect&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h2&gt;undo&lt;/h2&gt;

&lt;p&gt;Discards the last drawing operation.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;em&gt;Example(s)&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;rect id=&quot;redcircleonyellow&quot; x=&quot;90%&quot; y=&quot;10 height=&quot;10&quot; width=&quot;20&quot;&amp;gt;
   &amp;lt;parms&amp;gt;
      &amp;lt;filled&amp;gt;false&amp;lt;/filled&amp;gt;
      &amp;lt;color&amp;gt; black&amp;lt;/color&amp;gt;
   &amp;lt;/parms&amp;gt;
&amp;lt;/rect&amp;gt;
&amp;lt;rect id=&quot;redcircleonyellow&q