Allow to overwrite draw function per widget

This commit is contained in:
Matthias Richter 2016-01-16 02:33:41 +01:00
parent 18880de088
commit 4f3d285218
9 changed files with 16 additions and 9 deletions

View file

@ -111,6 +111,9 @@ The following code will create this UI:
-- nested content, whichever is bigger
suit.layout:push(suit.layout:row())
-- change cell padding to 3 pixels in either direction
suit.layout:padding(3)
-- put a slider in the cell
-- the inner cell will be 160 px wide and 20 px high
suit.Slider(slider, suit.layout:col(160, 20))