Prev | Current Page 704 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

If the content size is
omitted its fit size is used.
The Element class exposes the public fields described in Table 13 - 6 .
Table 13 - 6
Element Fields Description
var vLayout : Layout The vertical layout.
var hLayout : Layout The horizontal layout.
var minSize : Size < Float > The minimum size for the element.
Chapter 13: Replacing the Need for an IDE
375
Element Fields Description
var maxSize : Size < Float > The maximum size for the element.
var mouse : MouseInteraction A container for the mouse related events.
var key : KeyInteraction A container for the keyboard related events.
var context(getContext,
null) : IContext
A context object. The context provides the methods to deal
with the visual representation of the element and it is platform
specific.
var parent
(default,null) : Container
A reference to the container for the current element. The parent is
null if the control not yet associated to a container. This value is
read - only and is responsibility of the container to set it correctly.


Pages:
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716