Changeset 306 for trunk/samples

Show
Ignore:
Timestamp:
11/26/2007 18:50:21 (9 months ago)
Author:
why
Message:

* shoes/ruby.c: working on text margins, to make them work more like HTML. if nil then use the text height to make auto margins. and use the greater of two margins that meet.
* shoes/canvas.c: add marginy for tracking the current cursor's margin.

Location:
trunk/samples
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/samples/book.rb

    r297 r306  
    2323    num = num.to_i 
    2424    stack :margin => 10, :margin_left => 190, :margin_top => 20 do 
    25       banner "Incident" 
     25      banner "Incident", :margin => 0 
    2626      para strong("No. #{num + 1}: #{INCIDENTS[num][0]}") 
    2727    end 
  • trunk/samples/book.yaml

    r112 r306  
    238238    I am authorized to speak of flutes and certain floutists, one of whom was interested in furthering his career and in forcing flutework to the forefront of pop culture. So this floutist, he parachuted into small towns, playing trills all the way down. 
    239239 
    240      The first town he landed in was called Eccles. He captivated the crowd below, but fell straight through a new walnut bureau, crafted by a local artisan. Newpapers read: “Stray Piper Strikes Through Solid Drawers” or such nonsense. 
    241  
    242      Fall came and he orchestrated a second drop over a larger city, Merriwealth. And, again, bedazzlement. People loved it. The city pool was also opening that day. Sadly, no ripples were made in its surface. And a child left his pet bat’s cage open. A suit store was robbed. The printed headlines broadly rang, “Charm Upon City Unstitches One Tailor’s Already Threadbare Pockets.” 
    243  
    244      And the floutist also saw Rascot. A town which is nothing but forest. The preceding day, the town was ravaged by an upright dog. The floutist ran for ten miles before the monstrous dog overtook him and bellied him whole. 
    245  
    246      So, from the newspapers: “Dog Man At Last Acts Favorably.” 
     240    The first town he landed in was called Eccles. He captivated the crowd below, but fell straight through a new walnut bureau, crafted by a local artisan. Newpapers read: “Stray Piper Strikes Through Solid Drawers” or such nonsense. 
     241 
     242    Fall came and he orchestrated a second drop over a larger city, Merriwealth. And, again, bedazzlement. People loved it. The city pool was also opening that day. Sadly, no ripples were made in its surface. And a child left his pet bat’s cage open. A suit store was robbed. The printed headlines broadly rang, “Charm Upon City Unstitches One Tailor’s Already Threadbare Pockets.” 
     243 
     244    And the floutist also saw Rascot. A town which is nothing but forest. The preceding day, the town was ravaged by an upright dog. The floutist ran for ten miles before the monstrous dog overtook him and bellied him whole. 
     245 
     246    So, from the newspapers: “Dog Man At Last Acts Favorably.” 
    247247 
    248248- - Kimothy's Mouth