X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Factors%2Factor-devel.h;h=58d0d5d220ac848fff30cc706ca39aac3171e0c7;hb=30eec5ebfcb0427a583e389f3de83b481a614312;hp=1f0192bd258313b3ca87b373d2c9fc4d3065162c;hpb=e72a3bcda27e5c2af336b1c7cf4a6d5090720e11;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/devel-api/actors/actor-devel.h b/dali/devel-api/actors/actor-devel.h index 1f0192b..58d0d5d 100644 --- a/dali/devel-api/actors/actor-devel.h +++ b/dali/devel-api/actors/actor-devel.h @@ -121,6 +121,19 @@ enum Type } // namespace Property +namespace VisibilityChange +{ + +enum Type +{ + SELF, ///< The visibility of the actor itself has changed. + PARENT ///< The visibility of a parent has changed. +}; + +} // namespace VisibilityChange + +typedef Signal< void ( Actor, bool, VisibilityChange::Type ) > VisibilityChangedSignalType; ///< Signal type of VisibilityChangedSignal + /** * @brief Raise actor above the next highest level of actor(s). * @@ -190,6 +203,22 @@ DALI_IMPORT_API void RaiseAbove( Actor actor, Dali::Actor target ); */ DALI_IMPORT_API void LowerBelow( Actor actor, Dali::Actor target ); +/** + * @brief This signal is emitted when the visible property of this or a parent actor is changed. + * + * A callback of the following type may be connected: + * @code + * void YourCallbackName( Actor actor, bool visible, VisibilityChange::Type& type ); + * @endcode + * actor: The actor, or child of actor, whose visibility has changed + * visible: Whether the actor is now visible or not + * type: Whether the actor's visible property has changed or a parent's. + * @return The signal to connect to + * @pre The Actor has been initialized. + * @note This signal is NOT emitted if the actor becomes transparent (or the reverse), it's only linked with Actor::Property::VISIBLE. + */ +DALI_IMPORT_API VisibilityChangedSignalType& VisibilityChangedSignal( Actor actor ); + } // namespace DevelActor } // namespace Dali