projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Control not always rendering background image depending on add order
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
public-api
/
controls
/
control-impl.h
diff --git
a/dali-toolkit/public-api/controls/control-impl.h
b/dali-toolkit/public-api/controls/control-impl.h
index
1ce94b7
..
c6b3b5e
100644
(file)
--- a/
dali-toolkit/public-api/controls/control-impl.h
+++ b/
dali-toolkit/public-api/controls/control-impl.h
@@
-35,11
+35,15
@@
namespace Dali
namespace Toolkit
{
namespace Toolkit
{
+/**
+ * @addtogroup dali_toolkit_controls
+ * @{
+ */
+
class StyleManager;
namespace Internal
{
class StyleManager;
namespace Internal
{
-
/**
* @brief This is the internal base class for all controls.
*
/**
* @brief This is the internal base class for all controls.
*
@@
-98,6
+102,13
@@
public:
void SetBackgroundImage( Image image );
/**
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();
* @copydoc Dali::Toolkit::Control::ClearBackground
*/
void ClearBackground();
@@
-257,6
+268,15
@@
public:
*/
DALI_INTERNAL bool EmitKeyEventSignal( const KeyEvent& event );
*/
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
/**
protected: // For derived classes to call
/**
@@
-629,6
+649,9
@@
DALI_IMPORT_API const Internal::Control& GetImplementation( const Dali::Toolkit:
} // namespace Internal
} // namespace Internal
+/**
+ * @}
+ */
} // namespace Toolkit
} // namespace Dali
} // namespace Toolkit
} // namespace Dali