mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
unfinished window stuff
This commit is contained in:
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