Prev | Current Page 695 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Products developed with poor graphics are very
often labeled as unprofessional works independently from their functionalities. Sad but true.
Visually Configurable: The aspect of the controls must be easily customizable.
The file structure adopted to build the UI API is schematized in Figure 13 - 1 .
??‘
??‘
Figure 13 - 1
Chapter 13: Replacing the Need for an IDE
371
Table 13 - 2
Method Description
addListener(l:Listener
< EventType > ) :Listener
< EventType >
A listener is as an object that wraps a function, the handler for the
event. The function must be wrapped in an object because function
equality is not implemented in all the platforms (Neko does not support
it) and the equality operation is required in the remove-
Listener() method to identify the correct reference to remove. The
function adds a new Listener and returns it too.
removeListener(l:
Listener < EventType > ) :
Listener < EventType >
Removes and returns the Listener argument.
addHandler(f:EventType
- > Void) :
Listener < EventType >
Adds a function handler to the dispatcher and returns it wrapped in a
Listener object.


Pages:
683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707