Prev | Current Page 705 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


function bounds() :
Rectangle < Float >
Returns a rectangle definition with the coordinates and dimensions
for the current element. The region used to calculate the
bounds is established by the container object. If the element is
not associated to any container, the function returns null .
function fitSize() :
Size < Float >
The fit - size of an element is the ideal dimension for the element.
The meaning of ideal can change with the kind of control,
but in general it is the minimum required area to fully
display the content of the element. The calculation of this size
is by the fact responsibility of the rendering engine and thus
the context object.
function getView() : IView Returns the view object that contains the current element or null
if the element or its ancestors are not associated to any view.
function getContext() :
IContext
If the element is currently associated to a view, returns the
context specific object, otherwise null .
function render() : Void Actually draws the element and its children (if it has any) on
the screen.


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