X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fcontrol-impl.h;h=c6b3b5e9c06879de6f46ce5c75c38168e43ef680;hp=b8ae6bb013d4eb7555f062591165ef7f5ee4983d;hb=421d28ac0c56bca53a4c187983de6c20b56957c5;hpb=5c07fde9dd6a022e2080c871994499e56eff89aa diff --git a/dali-toolkit/public-api/controls/control-impl.h b/dali-toolkit/public-api/controls/control-impl.h index b8ae6bb..c6b3b5e 100644 --- a/dali-toolkit/public-api/controls/control-impl.h +++ b/dali-toolkit/public-api/controls/control-impl.h @@ -36,7 +36,7 @@ namespace Dali namespace Toolkit { /** - * @addtogroup dali-toolkit-controls + * @addtogroup dali_toolkit_controls * @{ */ @@ -102,6 +102,13 @@ public: void SetBackgroundImage( Image image ); /** + * @brief Set the background with a property map. + * + * @param[in] map The background property map. + */ + void SetBackground(const Property::Map& map); + + /** * @copydoc Dali::Toolkit::Control::ClearBackground */ void ClearBackground(); @@ -261,6 +268,15 @@ public: */ DALI_INTERNAL bool EmitKeyEventSignal( const KeyEvent& event ); +private: + + /** + * Sets up the background image/color based on the current state. + * This will set the depth index (always), and add to stage if the control is on stage. + * + */ + void UpdateBackgroundState(); + protected: // For derived classes to call /**