#ifndef __DALI_TOOLKIT_INTERNAL_CLUSTER_H__
#define __DALI_TOOLKIT_INTERNAL_CLUSTER_H__
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
+/*
+ * Copyright (c) 2014 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
// INTERNAL INCLUDES
#include <dali/public-api/object/ref-object.h>
* Multiple cluster styles may be provided, to determine the position, size, rotation, scale, color and visibility
* of the child actors in the cluster.
*/
-class Cluster : public ControlImpl
+class Cluster : public Control
{
public:
*/
void DoTransformAction(const PropertyValueContainer& attributes);
-private: // From ControlImpl
+private: // From Control
/**
- * From Toolkit::ControlImpl; called shortly before a child is removed from the owning actor.
+ * From Control; called shortly before a child is removed from the owning actor.
* @param[in] child The child being removed.Ptr
*/
virtual void OnControlChildRemove(Actor& child);
* @param[in] attributes The attributes with which to perfrom this action.
* @return true if action has been accepted by this control
*/
- static bool DoAction(BaseObject* object, const std::string& actionName, const std::vector<Property::Value>& attributes);
+ static bool DoAction(BaseObject* object, const std::string& actionName, const PropertyValueContainer& attributes);
-private: // From ControlImpl
+private: // From Control
/**
* @copydoc Toolkit::Control::OnInitialize()
*/
virtual void OnInitialize();
+ /**
+ *
+ * @copydoc Toolkit::Control::OnControlSizeSet( const Vector3& targetSize )
+ */
+ virtual void OnControlSizeSet( const Vector3& targetSize );
+
protected:
/**
Toolkit::ClusterStyle mClusterStyle;
ChildInfoContainer mChildren;
+ Vector3 mClusterSize;
Actor mBackgroundImage; ///< Stores the background image.
Actor mTitle; ///< Stores the text title.