Shoes A tiny Ruby GUI toolkit for all of us
Jan 15, 2015
ShoesA tiny Ruby GUI toolkit for all of us
about me
• Koen Van der Auwera
• Co-founder 10to1 (http://10to1.be)
• Enjoying Java since 2000, Ruby since 2003
• http://atog.be
Shoes?
• Designed with simplicity in mind
• Ruby
• You only need to know a few things
• Uses Cairo and Pango for drawing and text.
• Mac OS X, Windows and Linux
10
• para
• stacks
• flows
• button
• image
• edit_line
• link
• background
• Shoes.url
• clear
para
• all things text
• short for “paragraph”
stacks and flows
• Columns, grids, just like web pages
• Stacks = vertical
• Flows = horizontal
• Shoes doesn’t believe in a horizontal scrollbar
stacks and flows
button
• Yep, a button
image
• gif, jpeg or png
• easily swap images by changing the path
edit_line
• an input box
link
• just like hyperlinks
• web url open in a web browser
• needs be in a text block (para, title, ...)
• link(“Yahoo!”, :click => “http://yahoo.com”)
• image(“me.png”, :click => “http://atog.be”)
background
• color, gradient or an image
• fill up an entire box
• rounded corners
• borders too
background
Shoes.url
clear
• clear a box
• hide, show, append, prepend, before, after
• remove
demo
• for fun!
more?
• http://code.whytheluckystiff.net/shoes
• Nobody knows shoes (http://www.lulu.com/content/1365064)