#62 redrawing
This commit is contained in:
@@ -106,7 +106,7 @@ function element.new(args)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- draw the element given new data
|
-- draw the element given new data
|
||||||
function public.draw(...)
|
function public.update(...)
|
||||||
protected.on_update(...)
|
protected.on_update(...)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -120,6 +120,11 @@ function element.new(args)
|
|||||||
protected.window.setVisible(false)
|
protected.window.setVisible(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- re-draw the element
|
||||||
|
function public.redraw()
|
||||||
|
protected.window.redraw()
|
||||||
|
end
|
||||||
|
|
||||||
return protected
|
return protected
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user