mirror of
https://github.com/airstruck/luigi.git
synced 2026-01-10 16:28:23 +00:00
unfinished window stuff
This commit is contained in:
@@ -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
18
example/window.lua
Normal 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()
|
||||
|
||||
Reference in New Issue
Block a user