*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* The internal Dali resources are reference counted. copying a Dali handle will increase the reference count.
* A resource will not be deleted until all its Dali::BaseHandle handles are destroyed, or reset.
*
* The internal Dali resources are reference counted. copying a Dali handle will increase the reference count.
* A resource will not be deleted until all its Dali::BaseHandle handles are destroyed, or reset.
*
* @param [in] handle A pointer to a newly allocated Dali resource
*/
BaseHandle(Dali::BaseObject* handle);
* @param [in] handle A pointer to a newly allocated Dali resource
*/
BaseHandle(Dali::BaseObject* handle);
* @brief Dali::BaseHandle is intended as a base class
*
* This is non-virtual since derived BaseHandle types must not contain data.
* @brief Dali::BaseHandle is intended as a base class
*
* This is non-virtual since derived BaseHandle types must not contain data.
* @brief This assignment operator is required for (smart) pointer semantics.
*
* It makes this handle use the same BaseObject as the copied handle
* @brief This assignment operator is required for (smart) pointer semantics.
*
* It makes this handle use the same BaseObject as the copied handle
* @param [in] connectionTracker A connection tracker which can be used to disconnect.
* @param [in] signalName Name of the signal to connect to.
* @param [in] functor The functor to copy.
* @return True if the signal was available.
* @param [in] connectionTracker A connection tracker which can be used to disconnect.
* @param [in] signalName Name of the signal to connect to.
* @param [in] functor The functor to copy.
* @return True if the signal was available.
*/
template <class T>
bool ConnectSignal( ConnectionTrackerInterface* connectionTracker, const std::string& signalName, const T& functor )
*/
template <class T>
bool ConnectSignal( ConnectionTrackerInterface* connectionTracker, const std::string& signalName, const T& functor )
* @param [in] actionName The command for the action.
* @param [in] attributes The list of attributes for the action.
* @return The action is performed by the object or not.
*/
* @param [in] actionName The command for the action.
* @param [in] attributes The list of attributes for the action.
* @return The action is performed by the object or not.
*/
* Will return an empty string if the typename does not exist. This will happen for types that
* have not registered with type-registry.
*
* Will return an empty string if the typename does not exist. This will happen for types that
* have not registered with type-registry.
*
* @return The type name. Empty string if the typename does not exist.
*/
const std::string& GetTypeName() const;
* @return The type name. Empty string if the typename does not exist.
*/
const std::string& GetTypeName() const;
* @brief Retrieve the internal Dali resource.
*
* This is useful for checking the reference count of the internal resource.
* @brief Retrieve the internal Dali resource.
*
* This is useful for checking the reference count of the internal resource.
* @brief Retrieve the internal Dali resource.
*
* This is useful for checking the reference count of the internal resource.
* @brief Retrieve the internal Dali resource.
*
* This is useful for checking the reference count of the internal resource.
* @return The BaseObject which is referenced by the BaseHandle.
*/
const BaseObject& GetBaseObject() const;
* @return The BaseObject which is referenced by the BaseHandle.
*/
const BaseObject& GetBaseObject() const;
*
* If no other handle copies exist, the internal Dali resouce will be deleted.
* Calling this is not required i.e. it will happen automatically when a Dali::BaseHandle is destroyed.
*
* If no other handle copies exist, the internal Dali resouce will be deleted.
* Calling this is not required i.e. it will happen automatically when a Dali::BaseHandle is destroyed.
* @brief Converts an handle to a BooleanType.
*
* This is useful for checking whether the handle is empty.
* @brief Converts an handle to a BooleanType.
*
* This is useful for checking whether the handle is empty.
* @param [in] rhs A reference to the compared handle.
* @return true if the handle handles point to the same Dali resource, or if both are NULL.
*/
* @param [in] rhs A reference to the compared handle.
* @return true if the handle handles point to the same Dali resource, or if both are NULL.
*/
* @param [in] rhs A reference to the compared handle.
* @return true if the handle handles point to the different Dali resources.
*/
* @param [in] rhs A reference to the compared handle.
* @return true if the handle handles point to the different Dali resources.
*/
* @param [in] connectionTracker A connection tracker which can be used to disconnect.
* @param [in] signalName Name of the signal to connect to.
* @param [in] functorDelegate A newly allocatated functor delegate (takes ownership).
* @param [in] connectionTracker A connection tracker which can be used to disconnect.
* @param [in] signalName Name of the signal to connect to.
* @param [in] functorDelegate A newly allocatated functor delegate (takes ownership).
*/
bool DoConnectSignal( ConnectionTrackerInterface* connectionTracker, const std::string& signalName, FunctorDelegate* functorDelegate );
*/
bool DoConnectSignal( ConnectionTrackerInterface* connectionTracker, const std::string& signalName, FunctorDelegate* functorDelegate );
*/
inline bool operator<(const BaseHandle& lhs, const BaseHandle& rhs)
{
return lhs.GetObjectPtr() < rhs.GetObjectPtr();
}
*/
inline bool operator<(const BaseHandle& lhs, const BaseHandle& rhs)
{
return lhs.GetObjectPtr() < rhs.GetObjectPtr();
}