unfinished window stuff

This commit is contained in:
nobody
2015-12-16 19:51:16 -05:00
parent 75ff950ff1
commit ee2415870a
6 changed files with 399 additions and 3 deletions

View File

@@ -76,6 +76,8 @@ end)
local Backend = require 'luigi.backend'
layout.menuQuit:onPress(Backend.quit)
Backend.setWindowIcon('logo.png')
-- show the main layout
layout:show()

18
example/window.lua Normal file
View File

@@ -0,0 +1,18 @@
local Layout = require 'luigi.layout'
local window = Layout {
type = 'window',
icon = 'logo.png',
title = 'Test window',
width = 300,
height = 200,
minwidth = 200,
minheight = 100,
maxwidth = 640,
maxheight = 480,
}
window:show()
require 'luigi.backend'.run()