mirror of
https://github.com/Insality/druid
synced 2025-06-27 18:37:45 +02:00
733 lines
20 KiB
HTML
733 lines
20 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
<head>
|
|
<title>Defold Druid UI Library</title>
|
|
<link rel="stylesheet" href="../ldoc_fixed.css" type="text/css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div id="container">
|
|
|
|
<div id="product">
|
|
<div id="product_logo"></div>
|
|
<div id="product_name"><big><b></b></big></div>
|
|
<div id="product_description"></div>
|
|
</div> <!-- id="product" -->
|
|
|
|
|
|
<div id="main">
|
|
|
|
|
|
<!-- Menu -->
|
|
|
|
<div id="navigation">
|
|
<br/>
|
|
<h1>Druid</h1>
|
|
|
|
<ul>
|
|
<li><a href="../index.html">Index</a></li>
|
|
</ul>
|
|
|
|
<h2>Contents</h2>
|
|
<ul>
|
|
<li><a href="#Functions">Functions</a></li>
|
|
<li><a href="#Tables">Tables</a></li>
|
|
</ul>
|
|
|
|
|
|
<h2>Modules</h2>
|
|
<ul class="nowrap">
|
|
<li><a href="../modules/druid.back_handler.html">druid.back_handler</a></li>
|
|
<li><a href="../modules/druid.blocker.html">druid.blocker</a></li>
|
|
<li><a href="../modules/druid.button.html">druid.button</a></li>
|
|
<li><a href="../modules/druid.drag.html">druid.drag</a></li>
|
|
<li><a href="../modules/druid.hover.html">druid.hover</a></li>
|
|
<li><strong>druid.scroll</strong></li>
|
|
<li><a href="../modules/druid.static_grid.html">druid.static_grid</a></li>
|
|
<li><a href="../modules/druid.swipe.html">druid.swipe</a></li>
|
|
<li><a href="../modules/druid.text.html">druid.text</a></li>
|
|
<li><a href="../modules/component.html">component</a></li>
|
|
<li><a href="../modules/druid.html">druid</a></li>
|
|
<li><a href="../modules/druid_event.html">druid_event</a></li>
|
|
<li><a href="../modules/druid.checkbox.html">druid.checkbox</a></li>
|
|
<li><a href="../modules/druid.checkbox_group.html">druid.checkbox_group</a></li>
|
|
<li><a href="../modules/druid.dynamic_grid.html">druid.dynamic_grid</a></li>
|
|
<li><a href="../modules/druid.input.html">druid.input</a></li>
|
|
<li><a href="../modules/druid.lang_text.html">druid.lang_text</a></li>
|
|
<li><a href="../modules/druid.progress.html">druid.progress</a></li>
|
|
<li><a href="../modules/druid.radio_group.html">druid.radio_group</a></li>
|
|
<li><a href="../modules/druid.slider.html">druid.slider</a></li>
|
|
<li><a href="../modules/druid.timer.html">druid.timer</a></li>
|
|
<li><a href="../modules/druid.helper.html">druid.helper</a></li>
|
|
<li><a href="../modules/druid_instance.html">druid_instance</a></li>
|
|
</ul>
|
|
<h2>Topics</h2>
|
|
<ul class="">
|
|
<li><a href="../topics/01-components.md.html">01-components</a></li>
|
|
<li><a href="../topics/02-creating_custom_components.md.html">Creating custom components</a></li>
|
|
<li><a href="../topics/03-styles.md.html">Styles</a></li>
|
|
<li><a href="../topics/04-druid_assets.md.html">Druid assets</a></li>
|
|
<li><a href="../topics/05-examples.md.html">Examples</a></li>
|
|
<li><a href="../topics/changelog.md.html">Druid 0.3.0:</a></li>
|
|
<li><a href="../topics/faq.md.html">faq</a></li>
|
|
<li><a href="../topics/README.md.html">README</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
<h1>Module <code>druid.scroll</code></h1>
|
|
<p>Component to handle scroll content.</p>
|
|
<p> Scroll consist from two nodes: scroll parent and scroll input
|
|
Scroll input the user input zone, it's static
|
|
Scroll parent the scroll moving part, it will change position.
|
|
Setup initial scroll size by changing scroll parent size. If scroll parent
|
|
size will be less than scroll_input size, no scroll is available. For scroll
|
|
parent size should be more than input size</p>
|
|
|
|
|
|
<h2><a href="#Functions">Functions</a></h2>
|
|
<table class="function_list">
|
|
<tr>
|
|
<td class="name" nowrap><a href="#init">init(view_node, content_node)</a></td>
|
|
<td class="summary">Scroll constructor.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#scroll_to">scroll_to(vector3[, is_instant])</a></td>
|
|
<td class="summary">Start scroll to target point.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#scroll_to_index">scroll_to_index(index[, skip_cb])</a></td>
|
|
<td class="summary">Scroll to item in scroll by point index.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#scroll_to_percent">scroll_to_percent(vector3[, is_instant])</a></td>
|
|
<td class="summary">Start scroll to target scroll percent</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#get_percent">get_percent()</a></td>
|
|
<td class="summary">Return current scroll progress status.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#set_size">set_size(size)</a></td>
|
|
<td class="summary">Set scroll content size.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#set_inert">set_inert(state)</a></td>
|
|
<td class="summary">Enable or disable scroll inert.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#is_inert">is_inert()</a></td>
|
|
<td class="summary">Return if scroll have inertion.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#set_extra_stretch_size">set_extra_stretch_size([stretch_size=0])</a></td>
|
|
<td class="summary">Set extra size for scroll stretching.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#get_scroll_size">get_scroll_size()</a></td>
|
|
<td class="summary">Return vector of scroll size with width and height.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#set_points">set_points(points)</a></td>
|
|
<td class="summary">Set points of interest.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#set_horizontal_scroll">set_horizontal_scroll(state)</a></td>
|
|
<td class="summary">Lock or unlock horizontal scroll</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#set_vertical_scroll">set_vertical_scroll(state)</a></td>
|
|
<td class="summary">Lock or unlock vertical scroll</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#bind_grid">bind_grid(Druid)</a></td>
|
|
<td class="summary">Bind the grid component (Static or Dynamic) to recalculate
|
|
scroll size on grid changes</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#Scroll:_cancel_animate">Scroll:_cancel_animate()</a></td>
|
|
<td class="summary">Cancel animation on other animation or input touch</td>
|
|
</tr>
|
|
</table>
|
|
<h2><a href="#Tables">Tables</a></h2>
|
|
<table class="function_list">
|
|
<tr>
|
|
<td class="name" nowrap><a href="#Events">Events</a></td>
|
|
<td class="summary">Component events</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#Fields">Fields</a></td>
|
|
<td class="summary">Component fields</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#Style">Style</a></td>
|
|
<td class="summary">Component style params.</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
<h2 class="section-header "><a name="Functions"></a>Functions</h2>
|
|
|
|
<dl class="function">
|
|
<dt>
|
|
<a name = "init"></a>
|
|
<strong>init(view_node, content_node)</strong>
|
|
</dt>
|
|
<dd>
|
|
Scroll constructor.
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">view_node</span>
|
|
<span class="types"><span class="type">node</span></span>
|
|
GUI view scroll node
|
|
</li>
|
|
<li><span class="parameter">content_node</span>
|
|
<span class="types"><span class="type">node</span></span>
|
|
GUI content scroll node
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "scroll_to"></a>
|
|
<strong>scroll_to(vector3[, is_instant])</strong>
|
|
</dt>
|
|
<dd>
|
|
Start scroll to target point.
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">vector3</span>
|
|
<span class="types"><span class="type">point</span></span>
|
|
Target point
|
|
</li>
|
|
<li><span class="parameter">is_instant</span>
|
|
<span class="types"><span class="type">bool</span></span>
|
|
Instant scroll flag
|
|
(<em>optional</em>)
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<h3>Usage:</h3>
|
|
<ul>
|
|
<li><pre class="example">scroll:scroll_to(vmath.vector3(<span class="number">0</span>, <span class="number">50</span>, <span class="number">0</span>))</pre></li>
|
|
<li><pre class="example">scroll:scroll_to(vmath.vector3(<span class="number">0</span>), <span class="keyword">true</span>)</pre></li>
|
|
</ul>
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "scroll_to_index"></a>
|
|
<strong>scroll_to_index(index[, skip_cb])</strong>
|
|
</dt>
|
|
<dd>
|
|
Scroll to item in scroll by point index.
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">index</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
Point index
|
|
</li>
|
|
<li><span class="parameter">skip_cb</span>
|
|
<span class="types"><span class="type">bool</span></span>
|
|
If true, skip the point callback
|
|
(<em>optional</em>)
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "scroll_to_percent"></a>
|
|
<strong>scroll_to_percent(vector3[, is_instant])</strong>
|
|
</dt>
|
|
<dd>
|
|
Start scroll to target scroll percent
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">vector3</span>
|
|
<span class="types"><span class="type">point</span></span>
|
|
target percent
|
|
</li>
|
|
<li><span class="parameter">is_instant</span>
|
|
<span class="types"><span class="type">bool</span></span>
|
|
instant scroll flag
|
|
(<em>optional</em>)
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<h3>Usage:</h3>
|
|
<ul>
|
|
<pre class="example">scroll:scroll_to_percent(vmath.vector3(<span class="number">0.5</span>, <span class="number">0</span>, <span class="number">0</span>))</pre>
|
|
</ul>
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "get_percent"></a>
|
|
<strong>get_percent()</strong>
|
|
</dt>
|
|
<dd>
|
|
Return current scroll progress status.
|
|
Values will be in [0..1] interval
|
|
|
|
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
<span class="types"><span class="type">vector3</span></span>
|
|
New vector with scroll progress values
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "set_size"></a>
|
|
<strong>set_size(size)</strong>
|
|
</dt>
|
|
<dd>
|
|
Set scroll content size.
|
|
It will change content gui node size
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">size</span>
|
|
<span class="types"><span class="type">vector3</span></span>
|
|
The new size for content node
|
|
</li>
|
|
</ul>
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
<span class="types"><span class="type">druid.scroll</span></span>
|
|
Current scroll instance
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "set_inert"></a>
|
|
<strong>set_inert(state)</strong>
|
|
</dt>
|
|
<dd>
|
|
Enable or disable scroll inert.
|
|
If disabled, scroll through points (if exist)
|
|
If no points, just simple drag without inertion
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">state</span>
|
|
<span class="types"><span class="type">bool</span></span>
|
|
Inert scroll state
|
|
</li>
|
|
</ul>
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
<span class="types"><span class="type">druid.scroll</span></span>
|
|
Current scroll instance
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "is_inert"></a>
|
|
<strong>is_inert()</strong>
|
|
</dt>
|
|
<dd>
|
|
Return if scroll have inertion.
|
|
|
|
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
<span class="types"><span class="type">bool</span></span>
|
|
If scroll have inertion
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "set_extra_stretch_size"></a>
|
|
<strong>set_extra_stretch_size([stretch_size=0])</strong>
|
|
</dt>
|
|
<dd>
|
|
Set extra size for scroll stretching.
|
|
Set 0 to disable stretching effect
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">stretch_size</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
Size in pixels of additional scroll area
|
|
(<em>default</em> 0)
|
|
</li>
|
|
</ul>
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
<span class="types"><span class="type">druid.scroll</span></span>
|
|
Current scroll instance
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "get_scroll_size"></a>
|
|
<strong>get_scroll_size()</strong>
|
|
</dt>
|
|
<dd>
|
|
Return vector of scroll size with width and height.
|
|
|
|
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
<span class="types"><span class="type">vector3</span></span>
|
|
Available scroll size
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "set_points"></a>
|
|
<strong>set_points(points)</strong>
|
|
</dt>
|
|
<dd>
|
|
Set points of interest.
|
|
Scroll will always centered on closer points
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">points</span>
|
|
<span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span>
|
|
Array of vector3 points
|
|
</li>
|
|
</ul>
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
<span class="types"><span class="type">druid.scroll</span></span>
|
|
Current scroll instance
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "set_horizontal_scroll"></a>
|
|
<strong>set_horizontal_scroll(state)</strong>
|
|
</dt>
|
|
<dd>
|
|
Lock or unlock horizontal scroll
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">state</span>
|
|
<span class="types"><span class="type">bool</span></span>
|
|
True, if horizontal scroll is enabled
|
|
</li>
|
|
</ul>
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
<span class="types"><span class="type">druid.scroll</span></span>
|
|
Current scroll instance
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "set_vertical_scroll"></a>
|
|
<strong>set_vertical_scroll(state)</strong>
|
|
</dt>
|
|
<dd>
|
|
Lock or unlock vertical scroll
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">state</span>
|
|
<span class="types"><span class="type">bool</span></span>
|
|
True, if vertical scroll is enabled
|
|
</li>
|
|
</ul>
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
<span class="types"><span class="type">druid.scroll</span></span>
|
|
Current scroll instance
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "bind_grid"></a>
|
|
<strong>bind_grid(Druid)</strong>
|
|
</dt>
|
|
<dd>
|
|
Bind the grid component (Static or Dynamic) to recalculate
|
|
scroll size on grid changes
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">Druid</span>
|
|
<span class="types"><span class="type">druid.static_grid</span> or <span class="type">druid.dynamic_grid</span></span>
|
|
grid component
|
|
</li>
|
|
</ul>
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
<span class="types"><span class="type">druid.scroll</span></span>
|
|
Current scroll instance
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "Scroll:_cancel_animate"></a>
|
|
<strong>Scroll:_cancel_animate()</strong>
|
|
</dt>
|
|
<dd>
|
|
Cancel animation on other animation or input touch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
</dl>
|
|
<h2 class="section-header "><a name="Tables"></a>Tables</h2>
|
|
|
|
<dl class="function">
|
|
<dt>
|
|
<a name = "Events"></a>
|
|
<strong>Events</strong>
|
|
</dt>
|
|
<dd>
|
|
Component events
|
|
|
|
|
|
<h3>Fields:</h3>
|
|
<ul>
|
|
<li><span class="parameter">on_scroll</span>
|
|
<span class="types"><span class="type">druid_event</span></span>
|
|
On scroll move callback
|
|
</li>
|
|
<li><span class="parameter">on_scroll_to</span>
|
|
<span class="types"><span class="type">druid_event</span></span>
|
|
On scroll_to function callback
|
|
</li>
|
|
<li><span class="parameter">on_point_scroll</span>
|
|
<span class="types"><span class="type">druid_event</span></span>
|
|
On scroll<em>to</em>index function callback
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "Fields"></a>
|
|
<strong>Fields</strong>
|
|
</dt>
|
|
<dd>
|
|
Component fields
|
|
|
|
|
|
<h3>Fields:</h3>
|
|
<ul>
|
|
<li><span class="parameter">view_node</span>
|
|
<span class="types"><span class="type">node</span></span>
|
|
Scroll view node
|
|
</li>
|
|
<li><span class="parameter">content_node</span>
|
|
<span class="types"><span class="type">node</span></span>
|
|
Scroll content node
|
|
</li>
|
|
<li><span class="parameter">is_inert</span>
|
|
<span class="types"><span class="type">bool</span></span>
|
|
Flag, if scroll now moving by inertion
|
|
</li>
|
|
<li><span class="parameter">inertion</span>
|
|
<span class="types"><span class="type">vector3</span></span>
|
|
Current inert speed
|
|
</li>
|
|
<li><span class="parameter">position</span>
|
|
<span class="types"><span class="type">vector3</span></span>
|
|
Current scroll posisition
|
|
</li>
|
|
<li><span class="parameter">target_position</span>
|
|
<span class="types"><span class="type">vector3</span></span>
|
|
Current scroll target position
|
|
</li>
|
|
<li><span class="parameter">available_pos</span>
|
|
<span class="types"><span class="type">vector4</span></span>
|
|
Available position for content node: (min<em>x, max</em>y, max<em>x, min</em>y)
|
|
</li>
|
|
<li><span class="parameter">available_size</span>
|
|
<span class="types"><span class="type">vector3</span></span>
|
|
Size of available positions: (width, height, 0)
|
|
</li>
|
|
<li><span class="parameter">drag</span>
|
|
<span class="types"><span class="type">druid.drag</span></span>
|
|
Drag component
|
|
</li>
|
|
<li><span class="parameter">Current</span>
|
|
<span class="types"><span class="type">selected</span></span>
|
|
index of points of interests
|
|
(<em>optional</em>)
|
|
</li>
|
|
<li><span class="parameter">is_animate</span>
|
|
<span class="types"><span class="type">bool</span></span>
|
|
Flag, if scroll now animating by gui.animate
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "Style"></a>
|
|
<strong>Style</strong>
|
|
</dt>
|
|
<dd>
|
|
Component style params.
|
|
You can override this component styles params in druid styles table
|
|
or create your own style
|
|
|
|
|
|
<h3>Fields:</h3>
|
|
<ul>
|
|
<li><span class="parameter">FRICT</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
Multiplier for free inertion
|
|
(<em>default</em> 0)
|
|
</li>
|
|
<li><span class="parameter">FRICT_HOLD</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
Multiplier for inertion, while touching
|
|
(<em>default</em> 0)
|
|
</li>
|
|
<li><span class="parameter">INERT_THRESHOLD</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
Scroll speed to stop inertion
|
|
(<em>default</em> 3)
|
|
</li>
|
|
<li><span class="parameter">INERT_SPEED</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
Multiplier for inertion speed
|
|
(<em>default</em> 30)
|
|
</li>
|
|
<li><span class="parameter">POINTS_DEADZONE</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
Speed to check points of interests in no_inertion mode
|
|
(<em>default</em> 20)
|
|
</li>
|
|
<li><span class="parameter">BACK_SPEED</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
Scroll back returning lerp speed
|
|
(<em>default</em> 0.35)
|
|
</li>
|
|
<li><span class="parameter">ANIM_SPEED</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
Scroll gui.animation speed for scroll_to function
|
|
(<em>default</em> 0.2)
|
|
</li>
|
|
<li><span class="parameter">EXTRA_STRETCH_SIZE</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
extra size in pixels outside of scroll (stretch effect)
|
|
(<em>default</em> 0)
|
|
</li>
|
|
<li><span class="parameter">SMALL_CONTENT_SCROLL</span>
|
|
<span class="types"><span class="type">bool</span></span>
|
|
If true, content node with size less than view node size can be scrolled
|
|
(<em>default</em> false)
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
</div> <!-- id="content" -->
|
|
</div> <!-- id="main" -->
|
|
<div id="about">
|
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
|
<i style="float:right;">Last updated 2020-09-29 23:46:16 </i>
|
|
</div> <!-- id="about" -->
|
|
</div> <!-- id="container" -->
|
|
</body>
|
|
</html>
|