From: Donghyun Lee Actor is the primary object for interaction in DALi applications. Actors are effective nodes that receive input (touch events) and act as a container for drawable elements and other actors. A DALi application uses a hierarchy of actor objects to position visible content. An actor inherits a position relative to its parent, and can be moved relative to this point. UI components can be built by combining multiple actors. Stage is a top-level node of the scene graph used for displaying a tree of actors. To display an actor, add is to the stage. Stage is a top-level node of the scene graph used for displaying a tree of actors. To display an actor, add it to the stage.Actor and Stage
Signal and Slot
@@ -68,7 +68,7 @@ DALi.
This module provides UI components and various effects on top of the dali-core.
dali-adaptor is a platform adaptation layer. It initializes and sets up DALi appropriately. The module provides many platform-related services. Several signals can be connected to it to keep you informed when certain platform-related activities occur.
dali-adaptor is a platform adaptation layer. It initializes and sets up DALi appropriately. The module provides many platform-related services with its internal module, platform abstraction. Several signals can be connected to it to keep you informed when certain platform-related activities occur.
Figure: DALi internal structure
The concept of signal and slots were introduced by Qt for communication between objects. The event mechanism of DALi is inspired by Qt.
-Figure: Signal and slot event handling
+Figure: A schematic example of signal-slot connections
+ : Signal 1 is connected to slot 1,
+ signal 2 is connected to slot 1 & slot 3,
+ and signal 3 is connected to slot 2.
The signal and slot system has following advantages: