Skip to content
/ yui Public

Experimental, declarative GUI toolkit in Lua using the SDL2 as backend.

Notifications You must be signed in to change notification settings

Lukc/yui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yeay User Interface

Alternate Names

  • YUI User Interface
  • Yui’s User Interface (although I cannot tell who Yui is)

Description

A work in progress. I started it thinking “Why not?”.

But it’s supposed to be a somewhat declarative GUI library, inspired by minor projects like yaoui or HTML.

Usage

local yui = require "yui.init"

yui.init()

yui:loadFont("default", "DejaVuSans.ttf", 18)

local w = yui.Window {
	width = 800,
	height = 600,

	yui.Label "It works!"
}

while yui:run {w} do end

You can use other widgets, like yui.Button, yui.Frame, yui.Column, yui.Row and yui.TextInput. Each of them have particular properties. You can look at their (commented and documented) source files for more information. Or build the documentation with LDoc.

About

Experimental, declarative GUI toolkit in Lua using the SDL2 as backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages