/*! \page Resize_Control Resize control \brief **Used to set the pixel ratio in Video Calibration.** \tableofcontents The resize control is used to specify an area of changeable ratio for use in the screen calibration portion of Kodi. You can choose the size, and look of the resizer. -------------------------------------------------------------------------------- \section Resize_Control_sect1 Example ~~~~~~~~~~~~~ My first resize control 80 60 250 200 mytexture.png mytexture.png true ~~~~~~~~~~~~~ -------------------------------------------------------------------------------- \section Resize_Control_sect2 Available tags In addition to the [Default Control Tags](http://kodi.wiki/view/Default_Control_Tags) the following tags are available. Note that each tag is **lower case** only. This is important, as `xml` tags are case-sensitive. | Tag | Description | |----------------:|:--------------------------------------------------------------| | texturefocus | Specifies the image file which should be displayed when the resizer has focus. [See here for additional information about textures](http://kodi.wiki/view/Texture_Attributes). | texturenofocus | Specifies the image file which should be displayed when the resizer does not have focus. | movingspeed | Specifies the allowed directional movements and respective configurations. The `` tag section can contain as many `` tags as required. -------------------------------------------------------------------------------- \section Resize_Control_sect3 Note on use of movingspeed tag The `movingspeed` tag must be specified to allow the control to be moved via an input device such as keyboard. Each direction can be specified and configured to simulate the motion effect with the `eventconfig` tag. The following attributes allow the motion effect of the control to be configured: | Attribute | Description | |----------------:|:--------------------------------------------------------------| | type | Specifies the direction of movement. Accepted values are: `up`, `down`, `left`, `right`. All directions are optional and do not have to be included. | acceleration | Specifies the acceleration in pixels per second (integer value). | maxvelocity | Specifies the maximum movement speed. This depends on the acceleration value, e.g. a suitable value could be (acceleration value)*3. Set to 0 to disable. (integer value). | resettimeout | Specifies the idle timeout before resetting the acceleration speed (in milliseconds, integer value). | delta | Specifies the minimal pixel increment step (integer value). The attributes `acceleration`, `maxvelocity`, `resettimeout`, `delta` can be specified individually for each `eventconfig` tag, or globally in the `movingspeed` tag, or a mixture, as the following example: ~~~~~~~~~~~~~ ~~~~~~~~~~~~~ -------------------------------------------------------------------------------- \section Resize_Control_sect4 Revision History @skinning_v20 [movingspeed] New tag added. -------------------------------------------------------------------------------- \section Resize_Control_sect5 See also #### Development: - [Add-on development](http://kodi.wiki/view/Add-on_development) - [Skinning](http://kodi.wiki/view/Skinning) */