ScrollView.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  1. // WARNING - AUTOGENERATED - DO NOT EDIT
  2. //
  3. // Generated using `sharpie urho`
  4. //
  5. // ScrollView.cs
  6. //
  7. // Copyright 2015 Xamarin Inc. All rights reserved.
  8. using System;
  9. using System.Runtime.InteropServices;
  10. using System.Collections.Generic;
  11. using Urho.Urho2D;
  12. using Urho.Gui;
  13. using Urho.Resources;
  14. using Urho.IO;
  15. using Urho.Navigation;
  16. using Urho.Network;
  17. namespace Urho.Gui
  18. {
  19. /// <summary>
  20. /// Scrollable %UI element for showing a (possibly large) child element.
  21. /// </summary>
  22. public unsafe partial class ScrollView : UIElement
  23. {
  24. unsafe partial void OnScrollViewCreated ();
  25. [Preserve]
  26. public ScrollView (IntPtr handle) : base (handle)
  27. {
  28. OnScrollViewCreated ();
  29. }
  30. [Preserve]
  31. protected ScrollView (UrhoObjectFlag emptyFlag) : base (emptyFlag)
  32. {
  33. OnScrollViewCreated ();
  34. }
  35. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  36. internal static extern int ScrollView_GetType (IntPtr handle);
  37. private StringHash UrhoGetType ()
  38. {
  39. Runtime.ValidateRefCounted (this);
  40. return new StringHash (ScrollView_GetType (handle));
  41. }
  42. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  43. internal static extern IntPtr ScrollView_GetTypeName (IntPtr handle);
  44. private string GetTypeName ()
  45. {
  46. Runtime.ValidateRefCounted (this);
  47. return Marshal.PtrToStringAnsi (ScrollView_GetTypeName (handle));
  48. }
  49. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  50. internal static extern int ScrollView_GetTypeStatic ();
  51. private static StringHash GetTypeStatic ()
  52. {
  53. Runtime.Validate (typeof(ScrollView));
  54. return new StringHash (ScrollView_GetTypeStatic ());
  55. }
  56. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  57. internal static extern IntPtr ScrollView_GetTypeNameStatic ();
  58. private static string GetTypeNameStatic ()
  59. {
  60. Runtime.Validate (typeof(ScrollView));
  61. return Marshal.PtrToStringAnsi (ScrollView_GetTypeNameStatic ());
  62. }
  63. [Preserve]
  64. public ScrollView () : this (Application.CurrentContext)
  65. {
  66. }
  67. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  68. internal static extern IntPtr ScrollView_ScrollView (IntPtr context);
  69. [Preserve]
  70. public ScrollView (Context context) : base (UrhoObjectFlag.Empty)
  71. {
  72. Runtime.Validate (typeof(ScrollView));
  73. handle = ScrollView_ScrollView ((object)context == null ? IntPtr.Zero : context.Handle);
  74. Runtime.RegisterObject (this);
  75. OnScrollViewCreated ();
  76. }
  77. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  78. internal static extern void ScrollView_RegisterObject (IntPtr context);
  79. /// <summary>
  80. /// Register object factory.
  81. /// </summary>
  82. public new static void RegisterObject (Context context)
  83. {
  84. Runtime.Validate (typeof(ScrollView));
  85. ScrollView_RegisterObject ((object)context == null ? IntPtr.Zero : context.Handle);
  86. }
  87. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  88. internal static extern void ScrollView_Update (IntPtr handle, float timeStep);
  89. /// <summary>
  90. /// Perform UI element update.
  91. /// </summary>
  92. public override void Update (float timeStep)
  93. {
  94. Runtime.ValidateRefCounted (this);
  95. ScrollView_Update (handle, timeStep);
  96. }
  97. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  98. internal static extern void ScrollView_ApplyAttributes (IntPtr handle);
  99. /// <summary>
  100. /// Apply attribute changes that can not be applied immediately.
  101. /// </summary>
  102. public override void ApplyAttributes ()
  103. {
  104. Runtime.ValidateRefCounted (this);
  105. ScrollView_ApplyAttributes (handle);
  106. }
  107. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  108. internal static extern void ScrollView_OnWheel (IntPtr handle, int delta, int buttons, int qualifiers);
  109. /// <summary>
  110. /// React to mouse wheel.
  111. /// </summary>
  112. public override void OnWheel (int delta, int buttons, int qualifiers)
  113. {
  114. Runtime.ValidateRefCounted (this);
  115. ScrollView_OnWheel (handle, delta, buttons, qualifiers);
  116. }
  117. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  118. internal static extern void ScrollView_OnKey (IntPtr handle, int key, int buttons, int qualifiers);
  119. /// <summary>
  120. /// React to a key press.
  121. /// </summary>
  122. public override void OnKey (int key, int buttons, int qualifiers)
  123. {
  124. Runtime.ValidateRefCounted (this);
  125. ScrollView_OnKey (handle, key, buttons, qualifiers);
  126. }
  127. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  128. internal static extern void ScrollView_OnResize (IntPtr handle, ref Urho.IntVector2 newSize, ref Urho.IntVector2 delta);
  129. /// <summary>
  130. /// React to resize.
  131. /// </summary>
  132. public override void OnResize (Urho.IntVector2 newSize, Urho.IntVector2 delta)
  133. {
  134. Runtime.ValidateRefCounted (this);
  135. ScrollView_OnResize (handle, ref newSize, ref delta);
  136. }
  137. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  138. internal static extern bool ScrollView_IsWheelHandler (IntPtr handle);
  139. /// <summary>
  140. /// Return whether the element could handle wheel input.
  141. /// </summary>
  142. private bool IsWheelHandler ()
  143. {
  144. Runtime.ValidateRefCounted (this);
  145. return ScrollView_IsWheelHandler (handle);
  146. }
  147. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  148. internal static extern void ScrollView_SetContentElement (IntPtr handle, IntPtr element);
  149. /// <summary>
  150. /// Set content element.
  151. /// </summary>
  152. private void SetContentElement (UIElement element)
  153. {
  154. Runtime.ValidateRefCounted (this);
  155. ScrollView_SetContentElement (handle, (object)element == null ? IntPtr.Zero : element.Handle);
  156. }
  157. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  158. internal static extern void ScrollView_SetViewPosition (IntPtr handle, ref Urho.IntVector2 position);
  159. /// <summary>
  160. /// Set view offset from the top-left corner.
  161. /// </summary>
  162. private void SetViewPosition (Urho.IntVector2 position)
  163. {
  164. Runtime.ValidateRefCounted (this);
  165. ScrollView_SetViewPosition (handle, ref position);
  166. }
  167. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  168. internal static extern void ScrollView_SetViewPosition0 (IntPtr handle, int x, int y);
  169. /// <summary>
  170. /// Set view offset from the top-left corner.
  171. /// </summary>
  172. public void SetViewPosition (int x, int y)
  173. {
  174. Runtime.ValidateRefCounted (this);
  175. ScrollView_SetViewPosition0 (handle, x, y);
  176. }
  177. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  178. internal static extern void ScrollView_SetScrollBarsVisible (IntPtr handle, bool horizontal, bool vertical);
  179. /// <summary>
  180. /// Set scrollbars' visibility manually. Disables scrollbar autoshow/hide.
  181. /// </summary>
  182. public void SetScrollBarsVisible (bool horizontal, bool vertical)
  183. {
  184. Runtime.ValidateRefCounted (this);
  185. ScrollView_SetScrollBarsVisible (handle, horizontal, vertical);
  186. }
  187. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  188. internal static extern void ScrollView_SetHorizontalScrollBarVisible (IntPtr handle, bool visible);
  189. /// <summary>
  190. /// Set horizontal scrollbar visibility manually. Disables scrollbar autoshow/hide.
  191. /// </summary>
  192. private void SetHorizontalScrollBarVisible (bool visible)
  193. {
  194. Runtime.ValidateRefCounted (this);
  195. ScrollView_SetHorizontalScrollBarVisible (handle, visible);
  196. }
  197. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  198. internal static extern void ScrollView_SetVerticalScrollBarVisible (IntPtr handle, bool visible);
  199. /// <summary>
  200. /// Set vertical scrollbar visibility manually. Disables scrollbar autoshow/hide.
  201. /// </summary>
  202. private void SetVerticalScrollBarVisible (bool visible)
  203. {
  204. Runtime.ValidateRefCounted (this);
  205. ScrollView_SetVerticalScrollBarVisible (handle, visible);
  206. }
  207. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  208. internal static extern void ScrollView_SetScrollBarsAutoVisible (IntPtr handle, bool enable);
  209. /// <summary>
  210. /// Set whether to automatically show/hide scrollbars. Default true.
  211. /// </summary>
  212. private void SetScrollBarsAutoVisible (bool enable)
  213. {
  214. Runtime.ValidateRefCounted (this);
  215. ScrollView_SetScrollBarsAutoVisible (handle, enable);
  216. }
  217. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  218. internal static extern void ScrollView_SetScrollStep (IntPtr handle, float step);
  219. /// <summary>
  220. /// Set arrow key scroll step. Also sets it on the scrollbars.
  221. /// </summary>
  222. private void SetScrollStep (float step)
  223. {
  224. Runtime.ValidateRefCounted (this);
  225. ScrollView_SetScrollStep (handle, step);
  226. }
  227. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  228. internal static extern void ScrollView_SetPageStep (IntPtr handle, float step);
  229. /// <summary>
  230. /// Set arrow key page step.
  231. /// </summary>
  232. private void SetPageStep (float step)
  233. {
  234. Runtime.ValidateRefCounted (this);
  235. ScrollView_SetPageStep (handle, step);
  236. }
  237. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  238. internal static extern void ScrollView_SetScrollDeceleration (IntPtr handle, float deceleration);
  239. /// <summary>
  240. /// Set scroll deceleration.
  241. /// </summary>
  242. private void SetScrollDeceleration (float deceleration)
  243. {
  244. Runtime.ValidateRefCounted (this);
  245. ScrollView_SetScrollDeceleration (handle, deceleration);
  246. }
  247. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  248. internal static extern void ScrollView_SetScrollSnapEpsilon (IntPtr handle, float snap);
  249. /// <summary>
  250. /// Set scroll snap epsilon
  251. /// </summary>
  252. private void SetScrollSnapEpsilon (float snap)
  253. {
  254. Runtime.ValidateRefCounted (this);
  255. ScrollView_SetScrollSnapEpsilon (handle, snap);
  256. }
  257. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  258. internal static extern void ScrollView_SetAutoDisableChildren (IntPtr handle, bool disable);
  259. /// <summary>
  260. /// Set whether child elements should be disabled while touch scrolling.
  261. /// </summary>
  262. private void SetAutoDisableChildren (bool disable)
  263. {
  264. Runtime.ValidateRefCounted (this);
  265. ScrollView_SetAutoDisableChildren (handle, disable);
  266. }
  267. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  268. internal static extern void ScrollView_SetAutoDisableThreshold (IntPtr handle, float amount);
  269. /// <summary>
  270. /// Set how much touch movement is needed to trigger child element disabling.
  271. /// </summary>
  272. private void SetAutoDisableThreshold (float amount)
  273. {
  274. Runtime.ValidateRefCounted (this);
  275. ScrollView_SetAutoDisableThreshold (handle, amount);
  276. }
  277. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  278. internal static extern Urho.IntVector2 ScrollView_GetViewPosition (IntPtr handle);
  279. /// <summary>
  280. /// Return view offset from the top-left corner.
  281. /// </summary>
  282. private Urho.IntVector2 GetViewPosition ()
  283. {
  284. Runtime.ValidateRefCounted (this);
  285. return ScrollView_GetViewPosition (handle);
  286. }
  287. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  288. internal static extern IntPtr ScrollView_GetContentElement (IntPtr handle);
  289. /// <summary>
  290. /// Return content element.
  291. /// </summary>
  292. private UIElement GetContentElement ()
  293. {
  294. Runtime.ValidateRefCounted (this);
  295. return Runtime.LookupObject<UIElement> (ScrollView_GetContentElement (handle));
  296. }
  297. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  298. internal static extern IntPtr ScrollView_GetHorizontalScrollBar (IntPtr handle);
  299. /// <summary>
  300. /// Return horizontal scroll bar.
  301. /// </summary>
  302. private ScrollBar GetHorizontalScrollBar ()
  303. {
  304. Runtime.ValidateRefCounted (this);
  305. return Runtime.LookupObject<ScrollBar> (ScrollView_GetHorizontalScrollBar (handle));
  306. }
  307. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  308. internal static extern IntPtr ScrollView_GetVerticalScrollBar (IntPtr handle);
  309. /// <summary>
  310. /// Return vertical scroll bar.
  311. /// </summary>
  312. private ScrollBar GetVerticalScrollBar ()
  313. {
  314. Runtime.ValidateRefCounted (this);
  315. return Runtime.LookupObject<ScrollBar> (ScrollView_GetVerticalScrollBar (handle));
  316. }
  317. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  318. internal static extern IntPtr ScrollView_GetScrollPanel (IntPtr handle);
  319. /// <summary>
  320. /// Return scroll panel.
  321. /// </summary>
  322. private BorderImage GetScrollPanel ()
  323. {
  324. Runtime.ValidateRefCounted (this);
  325. return Runtime.LookupObject<BorderImage> (ScrollView_GetScrollPanel (handle));
  326. }
  327. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  328. internal static extern bool ScrollView_GetScrollBarsAutoVisible (IntPtr handle);
  329. /// <summary>
  330. /// Return whether scrollbars are automatically shown/hidden.
  331. /// </summary>
  332. private bool GetScrollBarsAutoVisible ()
  333. {
  334. Runtime.ValidateRefCounted (this);
  335. return ScrollView_GetScrollBarsAutoVisible (handle);
  336. }
  337. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  338. internal static extern bool ScrollView_GetHorizontalScrollBarVisible (IntPtr handle);
  339. /// <summary>
  340. /// Return whether the horizontal scrollbar is visible.
  341. /// </summary>
  342. private bool GetHorizontalScrollBarVisible ()
  343. {
  344. Runtime.ValidateRefCounted (this);
  345. return ScrollView_GetHorizontalScrollBarVisible (handle);
  346. }
  347. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  348. internal static extern bool ScrollView_GetVerticalScrollBarVisible (IntPtr handle);
  349. /// <summary>
  350. /// Return whether the vertical scrollbar is visible.
  351. /// </summary>
  352. private bool GetVerticalScrollBarVisible ()
  353. {
  354. Runtime.ValidateRefCounted (this);
  355. return ScrollView_GetVerticalScrollBarVisible (handle);
  356. }
  357. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  358. internal static extern float ScrollView_GetScrollStep (IntPtr handle);
  359. /// <summary>
  360. /// Return arrow key scroll step.
  361. /// </summary>
  362. private float GetScrollStep ()
  363. {
  364. Runtime.ValidateRefCounted (this);
  365. return ScrollView_GetScrollStep (handle);
  366. }
  367. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  368. internal static extern float ScrollView_GetPageStep (IntPtr handle);
  369. /// <summary>
  370. /// Return arrow key page step.
  371. /// </summary>
  372. private float GetPageStep ()
  373. {
  374. Runtime.ValidateRefCounted (this);
  375. return ScrollView_GetPageStep (handle);
  376. }
  377. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  378. internal static extern float ScrollView_GetScrollDeceleration (IntPtr handle);
  379. /// <summary>
  380. /// Return scroll deceleration.
  381. /// </summary>
  382. private float GetScrollDeceleration ()
  383. {
  384. Runtime.ValidateRefCounted (this);
  385. return ScrollView_GetScrollDeceleration (handle);
  386. }
  387. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  388. internal static extern float ScrollView_GetScrollSnapEpsilon (IntPtr handle);
  389. /// <summary>
  390. /// Return scroll snap epsilon
  391. /// </summary>
  392. private float GetScrollSnapEpsilon ()
  393. {
  394. Runtime.ValidateRefCounted (this);
  395. return ScrollView_GetScrollSnapEpsilon (handle);
  396. }
  397. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  398. internal static extern bool ScrollView_GetAutoDisableChildren (IntPtr handle);
  399. /// <summary>
  400. /// Return whether child element will be disabled while touch scrolling.
  401. /// </summary>
  402. private bool GetAutoDisableChildren ()
  403. {
  404. Runtime.ValidateRefCounted (this);
  405. return ScrollView_GetAutoDisableChildren (handle);
  406. }
  407. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  408. internal static extern float ScrollView_GetAutoDisableThreshold (IntPtr handle);
  409. /// <summary>
  410. /// Return how much touch movement is needed to trigger child element disabling.
  411. /// </summary>
  412. private float GetAutoDisableThreshold ()
  413. {
  414. Runtime.ValidateRefCounted (this);
  415. return ScrollView_GetAutoDisableThreshold (handle);
  416. }
  417. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  418. internal static extern void ScrollView_SetViewPositionAttr (IntPtr handle, ref Urho.IntVector2 value);
  419. /// <summary>
  420. /// Set view position attribute.
  421. /// </summary>
  422. public void SetViewPositionAttr (Urho.IntVector2 value)
  423. {
  424. Runtime.ValidateRefCounted (this);
  425. ScrollView_SetViewPositionAttr (handle, ref value);
  426. }
  427. public override StringHash Type {
  428. get {
  429. return UrhoGetType ();
  430. }
  431. }
  432. public override string TypeName {
  433. get {
  434. return GetTypeName ();
  435. }
  436. }
  437. [Preserve]
  438. public new static StringHash TypeStatic {
  439. get {
  440. return GetTypeStatic ();
  441. }
  442. }
  443. public new static string TypeNameStatic {
  444. get {
  445. return GetTypeNameStatic ();
  446. }
  447. }
  448. /// <summary>
  449. /// Return whether the element could handle wheel input.
  450. /// </summary>
  451. public override bool WheelHandler {
  452. get {
  453. return IsWheelHandler ();
  454. }
  455. }
  456. /// <summary>
  457. /// Return content element.
  458. /// Or
  459. /// Set content element.
  460. /// </summary>
  461. public UIElement ContentElement {
  462. get {
  463. return GetContentElement ();
  464. }
  465. set {
  466. SetContentElement (value);
  467. }
  468. }
  469. /// <summary>
  470. /// Return view offset from the top-left corner.
  471. /// Or
  472. /// Set view offset from the top-left corner.
  473. /// </summary>
  474. public Urho.IntVector2 ViewPosition {
  475. get {
  476. return GetViewPosition ();
  477. }
  478. set {
  479. SetViewPosition (value);
  480. }
  481. }
  482. /// <summary>
  483. /// Return whether the horizontal scrollbar is visible.
  484. /// Or
  485. /// Set horizontal scrollbar visibility manually. Disables scrollbar autoshow/hide.
  486. /// </summary>
  487. public bool HorizontalScrollBarVisible {
  488. get {
  489. return GetHorizontalScrollBarVisible ();
  490. }
  491. set {
  492. SetHorizontalScrollBarVisible (value);
  493. }
  494. }
  495. /// <summary>
  496. /// Return whether the vertical scrollbar is visible.
  497. /// Or
  498. /// Set vertical scrollbar visibility manually. Disables scrollbar autoshow/hide.
  499. /// </summary>
  500. public bool VerticalScrollBarVisible {
  501. get {
  502. return GetVerticalScrollBarVisible ();
  503. }
  504. set {
  505. SetVerticalScrollBarVisible (value);
  506. }
  507. }
  508. /// <summary>
  509. /// Return whether scrollbars are automatically shown/hidden.
  510. /// Or
  511. /// Set whether to automatically show/hide scrollbars. Default true.
  512. /// </summary>
  513. public bool ScrollBarsAutoVisible {
  514. get {
  515. return GetScrollBarsAutoVisible ();
  516. }
  517. set {
  518. SetScrollBarsAutoVisible (value);
  519. }
  520. }
  521. /// <summary>
  522. /// Return arrow key scroll step.
  523. /// Or
  524. /// Set arrow key scroll step. Also sets it on the scrollbars.
  525. /// </summary>
  526. public float ScrollStep {
  527. get {
  528. return GetScrollStep ();
  529. }
  530. set {
  531. SetScrollStep (value);
  532. }
  533. }
  534. /// <summary>
  535. /// Return arrow key page step.
  536. /// Or
  537. /// Set arrow key page step.
  538. /// </summary>
  539. public float PageStep {
  540. get {
  541. return GetPageStep ();
  542. }
  543. set {
  544. SetPageStep (value);
  545. }
  546. }
  547. /// <summary>
  548. /// Return scroll deceleration.
  549. /// Or
  550. /// Set scroll deceleration.
  551. /// </summary>
  552. public float ScrollDeceleration {
  553. get {
  554. return GetScrollDeceleration ();
  555. }
  556. set {
  557. SetScrollDeceleration (value);
  558. }
  559. }
  560. /// <summary>
  561. /// Return scroll snap epsilon
  562. /// Or
  563. /// Set scroll snap epsilon
  564. /// </summary>
  565. public float ScrollSnapEpsilon {
  566. get {
  567. return GetScrollSnapEpsilon ();
  568. }
  569. set {
  570. SetScrollSnapEpsilon (value);
  571. }
  572. }
  573. /// <summary>
  574. /// Return whether child element will be disabled while touch scrolling.
  575. /// Or
  576. /// Set whether child elements should be disabled while touch scrolling.
  577. /// </summary>
  578. public bool AutoDisableChildren {
  579. get {
  580. return GetAutoDisableChildren ();
  581. }
  582. set {
  583. SetAutoDisableChildren (value);
  584. }
  585. }
  586. /// <summary>
  587. /// Return how much touch movement is needed to trigger child element disabling.
  588. /// Or
  589. /// Set how much touch movement is needed to trigger child element disabling.
  590. /// </summary>
  591. public float AutoDisableThreshold {
  592. get {
  593. return GetAutoDisableThreshold ();
  594. }
  595. set {
  596. SetAutoDisableThreshold (value);
  597. }
  598. }
  599. /// <summary>
  600. /// Return horizontal scroll bar.
  601. /// </summary>
  602. public ScrollBar HorizontalScrollBar {
  603. get {
  604. return GetHorizontalScrollBar ();
  605. }
  606. }
  607. /// <summary>
  608. /// Return vertical scroll bar.
  609. /// </summary>
  610. public ScrollBar VerticalScrollBar {
  611. get {
  612. return GetVerticalScrollBar ();
  613. }
  614. }
  615. /// <summary>
  616. /// Return scroll panel.
  617. /// </summary>
  618. public BorderImage ScrollPanel {
  619. get {
  620. return GetScrollPanel ();
  621. }
  622. }
  623. }
  624. }