Prev | Current Page 708 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

This guarantees that the
container occupies all the available area; for the GridLayout this is the only supported configuration in
the current implementation.
The children communicate with the container using the calculateBounds() method to know what the
real area is that they have available for rendering.
PanelLayout
The PanelLayout is the one that gives more flexibility to the developer to position the controls in a
precise way. Both the vertical and horizontal directions follow the unbound model. The PanelLayout
extends the MultiContainer class the permits to manage an unlimited number of children. Elements
are added and removed using the addChild()/removeChild() methods.
Chapter 13: Replacing the Need for an IDE
377
Figure 13 - 3
In Figure 13 - 3 , some buttons have been added to a PanelLayout and anchored to the view borders.
Resizing the view can change the position and the size of the controls but it maintains the distances from
the margins.
Part II: Server Side, JavaScript, and Flash: Oh My!
378
import ui.


Pages:
696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720