Top Banner
Shoes A tiny Ruby GUI toolkit for all of us
18
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Shoes

ShoesA tiny Ruby GUI toolkit for all of us

Page 2: Shoes

about me

• Koen Van der Auwera

• Co-founder 10to1 (http://10to1.be)

• Enjoying Java since 2000, Ruby since 2003

• http://atog.be

Page 3: Shoes

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

Page 4: Shoes

10

• para

• stacks

• flows

• button

• image

• edit_line

• link

• background

• Shoes.url

• clear

Page 5: Shoes

para

• all things text

• short for “paragraph”

Page 6: Shoes

stacks and flows

• Columns, grids, just like web pages

• Stacks = vertical

• Flows = horizontal

• Shoes doesn’t believe in a horizontal scrollbar

Page 7: Shoes

stacks and flows

Page 8: Shoes

button

• Yep, a button

Page 9: Shoes

image

• gif, jpeg or png

• easily swap images by changing the path

Page 10: Shoes

edit_line

• an input box

Page 11: Shoes

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”)

Page 12: Shoes

background

• color, gradient or an image

• fill up an entire box

• rounded corners

• borders too

Page 13: Shoes

background

Page 14: Shoes

Shoes.url

Page 15: Shoes

clear

• clear a box

• hide, show, append, prepend, before, after

• remove

Page 16: Shoes
Page 17: Shoes

demo

• for fun!