No description, website, or topics provided.
Lua
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
samples
ui
README.md

README.md

ListView widget for Gigeros

ListView.lua

Version 0.1 beta

Author: Lukas Gergel, http://pykaso.net

This library is free to use and modify. Use it for free!

TODO

  • methods for programatic manipulating with ListView

PARAMS

  • width - widget width
  • height - widget height
  • bgTexture - background texture
  • bgColor - background color
  • rowSnap - experimental feature
  • friction - number lower then 1, used for slow the list down
  • data - array of pre renderend rows (see examples)

USAGE

Example

myList = ListView.new({
   width = 280,
   height = 390,
   bgTexture = Texture.new("texture.png"),
   rowSnap = true, experimental feature
   friction = 0.92
   data = data
})
myList:setPosition(x, y)

Minimal example

myList = ListView.new({
   width = 280,
   height = 390,
   data = data
})