X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Factors%2Factor-devel.h;h=2d11f0c497beb0aa080c7dbc949fc427aba1c091;hb=55827866fcb8c7ee47581ac4335a3390472090e8;hp=054fe3ef873a23cb929623324c5aabd1148613f7;hpb=aff80077ec8fcc8ea763a327518e1612f1e957dc;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 old mode 100644 new mode 100755 index 054fe3e..2d11f0c --- a/dali/devel-api/actors/actor-devel.h +++ b/dali/devel-api/actors/actor-devel.h @@ -2,7 +2,7 @@ #define DALI_ACTOR_DEVEL_H /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,7 +73,7 @@ enum Type INHERIT_ORIENTATION = Dali::Actor::Property::INHERIT_ORIENTATION, INHERIT_SCALE = Dali::Actor::Property::INHERIT_SCALE, COLOR_MODE = Dali::Actor::Property::COLOR_MODE, - POSITION_INHERITANCE = Dali::Actor::Property::POSITION_INHERITANCE, + RESERVED_PROPERTY_01 = Dali::Actor::Property::RESERVED_PROPERTY_01, DRAW_MODE = Dali::Actor::Property::DRAW_MODE, SIZE_MODE_FACTOR = Dali::Actor::Property::SIZE_MODE_FACTOR, WIDTH_RESIZE_POLICY = Dali::Actor::Property::WIDTH_RESIZE_POLICY, @@ -108,6 +108,7 @@ enum Type * @brief Returns the screen position of the Actor * @details Name "screenPosition", type Property::VECTOR2. Read-only * @note This assumes default camera and default render-task and the Z position is ZERO. + * @note The last known frame is used for the calculation. May not match a position value just set. */ SCREEN_POSITION = INHERIT_LAYOUT_DIRECTION + 3, @@ -119,6 +120,20 @@ enum Type * @note Setting this to false will allow scaling or rotation around the anchor-point without affecting the actor's position. */ POSITION_USES_ANCHOR_POINT = INHERIT_LAYOUT_DIRECTION + 4, + + /** + * @brief Returns whether the actor is culled or not. + * @details Name "culled", type Property::BOOLEAN. Read-only + * @note True means that the actor is out of the view frustum. + */ + CULLED = INHERIT_LAYOUT_DIRECTION + 5, + + /** + * @brief Sets the update size hint of the actor. + * @details Name "updateSizeHint", type Property::VECTOR2. + * @note When this value is set, the update area is determined by this value when a partial update. + */ + UPDATE_SIZE_HINT = INHERIT_LAYOUT_DIRECTION + 6, }; } // namespace Property @@ -150,7 +165,7 @@ typedef Signal< void ( Actor, bool, VisibilityChange::Type ) > VisibilityChanged * @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 ); +DALI_CORE_API VisibilityChangedSignalType& VisibilityChangedSignal( Actor actor ); typedef Signal< void (Actor) > ChildChangedSignalType; ///< Called when the actor has a child added or removed @@ -171,7 +186,7 @@ typedef Signal< void (Actor) > ChildChangedSignalType; ///< Called when the acto * @return The signal to connect to * @pre The Actor has been initialized */ -DALI_IMPORT_API ChildChangedSignalType& ChildAddedSignal( Actor actor ); +DALI_CORE_API ChildChangedSignalType& ChildAddedSignal( Actor actor ); /** * @brief This signal is emitted when a child is removed from this actor. @@ -193,7 +208,25 @@ DALI_IMPORT_API ChildChangedSignalType& ChildAddedSignal( Actor actor ); * @return The signal to connect to * @pre The Actor has been initialized */ -DALI_IMPORT_API ChildChangedSignalType& ChildRemovedSignal( Actor actor ); +DALI_CORE_API ChildChangedSignalType& ChildRemovedSignal( Actor actor ); + + +typedef Signal< void (Actor) > ChildOrderChangedSignalType; ///< Used when the actor's children have changed order + +/** + * @brief This signal is emitted when an actor's children change their sibling order + * + * A callback of the following type may be connected: + * @code + * void MyCallbackName( Actor parent ); + * @endcode + * parent The parent actor of the moved children + * + * @return The signal to connect to + * @pre The Actor has been initialized + */ +DALI_CORE_API ChildOrderChangedSignalType& ChildOrderChangedSignal( Actor actor ); + } // namespace DevelActor