Layout and Animation Language
Why Would I Walk Through Mud?
Ras Bodik, Thibaud Hottelier, James Ide, Doug Kimelman (IBM), Kimmo Kuusilinna (Nokia), Per Ljung (Nokia)
#
Layout and Animation Language Why Would I Walk Through Mud? Ras - - PowerPoint PPT Presentation
Layout and Animation Language Why Would I Walk Through Mud? Ras Bodik, Thibaud Hottelier, James Ide, Doug Kimelman (IBM), Kimmo Kuusilinna (Nokia), Per Ljung (Nokia) # NY Times 2 How Fancy Layout Are Created Today Pick a canned layout from
Why Would I Walk Through Mud?
#
2
5
– Designers know the “what”, but not the “how”
– We compile down to tree passes. Linear Time. – No search and backtrack.
6
7
NY Times
8
9
A C B
B C A
1. V is a rectangle with some style. 2. V area is divided vertically among its children 3. V’s children are stacked on top of each other. 4. V area is proportional the sum its children’s capitalization
Cap =70 Cap = 30
10
V
11
“Trait”: Composable unit of behaviour
12
13
14
15
16
TreeMap Table Building Blocks Prop Fun Prop Fun Functions Dependencies AG compiler [Leo & Adam] Tree traversals SideBar Specifications Bi-directional constraints Declarative/relational Directional constraints Operational/functional Attribute Grammar Layout Engine
18
19
20
21