#define DALI_TOOLKIT_STYLE_MANAGER_H
/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
namespace Dali
{
-
namespace Toolkit
{
-
namespace Internal DALI_INTERNAL
{
class StyleManager;
class DALI_TOOLKIT_API StyleManager : public BaseHandle
{
public:
-
/// @brief Style Changed signal. Emitted after controls have been updated.
- typedef Signal< void ( StyleManager, StyleChange::Type ) > StyleChangedSignalType;
+ typedef Signal<void(StyleManager, StyleChange::Type)> StyleChangedSignalType;
/**
* @brief Creates a StyleManager handle; this can be initialized with StyleManager::Get().
* @param[in] themeFile If a relative path is specified, then this is relative
* to the directory returned by Application::GetResourcePath()
*/
- void ApplyTheme( const std::string& themeFile );
+ void ApplyTheme(const std::string& themeFile);
/**
* @brief Applies the default Toolkit theme.
* @param[in] key The key of the constant
* @param[in] value The value of the constant
*/
- void SetStyleConstant( const std::string& key, const Property::Value& value );
+ void SetStyleConstant(const std::string& key, const Property::Value& value);
/**
* @brief Returns the style constant set for a specific key.
*
* @return If the constant for key exists, then return the constant in valueOut and return true
*/
- bool GetStyleConstant( const std::string& key, Property::Value& valueOut );
+ bool GetStyleConstant(const std::string& key, Property::Value& valueOut);
/**
* @brief Applies the specified style to the control.
* returned by Application::GetResourcePath()
* @param[in] styleName The name of the style within the JSON file to apply
*/
- void ApplyStyle( Toolkit::Control control, const std::string& jsonFileName, const std::string& styleName );
+ void ApplyStyle(Toolkit::Control control, const std::string& jsonFileName, const std::string& styleName);
public: // Signals
-
/**
* @brief This signal is emitted after the style (e.g. theme/font change) has changed
* and the controls have been informed.
StyleChangedSignalType& StyleChangedSignal();
public:
-
/// @cond internal
/**
* @brief Allows the creation of a StyleManager handle from an internal pointer.
* @SINCE_1_1.32
* @param[in] impl A pointer to the object
*/
- explicit DALI_INTERNAL StyleManager( Internal::StyleManager *impl );
+ explicit DALI_INTERNAL StyleManager(Internal::StyleManager* impl);
/// @endcond
}; // class StyleManager