Skip to content

Instantly share code, notes, and snippets.

View toriaezunama's full-sized avatar

Paul Wadsworth toriaezunama

  • Bluescape
  • Vancouver BC Canada
View GitHub Profile
/// An object that has some tear-down logic
public protocol Disposable {
func dispose()
}
/// An event provides a mechanism for raising notifications, together with some
/// associated data. Multiple function handlers can be added, with each being invoked,
/// with the event data, when the event is raised.
public class Event<T> {
@toriaezunama
toriaezunama / scrollView-basic.lua
Created January 12, 2012 02:36
#lua #corona #template #scrollView widget basic usage
local widget = require "widget"
local scroller = widget.newScrollView{
width = 320,
height = 480,
scrollWidth = 700,
scrollHeight = 1000
}
local obj = display.newImage( "myobject.png" )
obj.x = 400