
CHAPTER 3 Layout
Other arrangement objects
Besides boxes, glue, and the various monoglyphs we've discussed thus far, Fresco's layout kit provides a number of other objects useful for arranging glyphs. An overlay aligns the origins of its children along both the X and Y axis. A fixed grid tiles its children into columns and rows and aligns the children within each column and row. A deck shows only one of its children at a time. Back, and front monoglyphs are used when you want to draw some other glyph before or after the wrapped glyph. Between monoglyphs are used for drawing two glyphs, one before and one after, the wrapped glyph. Often, back monoglyphs are used to fill the background of the window with some background color:
Glyph_var color_filler = widget_kit->color_filler(background_color);
Glyph_var back_filler = layout_kit->back(margin, color_filler);
FrescoLib::run(nil, back_filler);
Here, back_filler is a monoglyph that draws the color_filler glyph before drawing its body, the margin.
Copyright (c) 1994 by Steve Churchill
Comments or questions? Contact Steve Churchill (stevec@faslab.com)

Generated with CERN WebMaker