Difference between revisions of "Gwee"

Line 4: Line 4:
  
 
* Skinning
 
* Skinning
* XML widget layouts
+
* External widget layouts
  
Here is a small example program:
+
You can get Gwee from the [http://github.com/ZephyrMC/Gwee Github repository]. There are also [http://github.com/ZephyrMC/Gwee/tree/master/screenshots screenshots] and an [http://github.com/ZephyrMC/Gwee/blob/master/main.lua example] there.
 
 
<source lang="lua">
 
require "gwee"
 
 
 
function sayHi()
 
    print("Hi!")
 
end
 
 
 
function love.load()
 
    gui = gwee.GUI()
 
    gui:add(gwee.Button(100, 100, 100, 30, "Button!", sayHi))
 
    gui:add(gwee.TextField(100, 100, 100, 30, "Text Field:"))
 
end
 
 
 
function love.keypressed(key, unicode)
 
    gui:keypressed(key, unicode)
 
end
 
 
 
function love.mousepressed(x, y, button)
 
    gui:mousepressed(x, y, button)
 
end
 
 
 
function love.draw()
 
    gui:draw()
 
end
 
</source>
 
 
 
More information can be found in the [http://github.com/ZephyrMC/Gwee/blob/master/README README] and the [http://github.com/ZephyrMC/Gwee/blob/master/API.txt API documentation].
 
 
 
You can get Gwee from the [http://github.com/ZephyrMC/Gwee Github repository].
 
  
 
{{#set:LOVE Version=0.7.2}}
 
{{#set:LOVE Version=0.7.2}}
 
{{#set:Description=Small GUI toolkit}}
 
{{#set:Description=Small GUI toolkit}}
 
[[Category:Libraries]]
 
[[Category:Libraries]]

Revision as of 06:26, 9 December 2011

Gwee is a small GUI toolkit for love2d.

Gwee's widget set is currently very small and still a little buggy, but it has a couple of cool features:

  • Skinning
  • External widget layouts

You can get Gwee from the Github repository. There are also screenshots and an example there.