1 #ifndef __DALI_INTERNAL_RENDERABLE_ATTACHMENT_H__
2 #define __DALI_INTERNAL_RENDERABLE_ATTACHMENT_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/actors/renderable-actor.h>
23 #include <dali/internal/event/actor-attachments/actor-attachment-impl.h>
33 class RenderableAttachment;
37 * An base class for renderable actor attachments
39 class RenderableAttachment : public ActorAttachment
48 * Protected constructor; only base classes are instantiatable.
49 * @param[in] stage Used to send messages to scene-graph.
51 RenderableAttachment( Stage& stage );
54 * A reference counted object may only be deleted by calling Unreference()
56 virtual ~RenderableAttachment();
61 RenderableAttachment(const RenderableAttachment&);
64 RenderableAttachment& operator=(const RenderableAttachment& rhs);
67 * Helper for getting the scene-graph renderable attachment.
68 * @return The scene object.
70 const SceneGraph::RenderableAttachment& GetSceneAttachment() const;
73 * @copydoc Dali::Internal::ActorAttachment::OnStageConnection()
75 virtual void OnStageConnection();
78 * @copydoc Dali::Internal::ActorAttachment::OnStageDisconnection()
80 virtual void OnStageDisconnection();
83 * For derived classes, chained from OnStageConnection()
85 virtual void OnStageConnection2() = 0;
88 * For derived classes, chained from OnStageDisconnection()
90 virtual void OnStageDisconnection2() = 0;
93 * For derived classes to provide a corresponding scene-graph object
94 * @return The scene-object.
96 virtual const SceneGraph::RenderableAttachment& GetSceneObject() const = 0;
98 private: // Data, cached for actor-thread getters
102 } // namespace Internal
106 #endif // __DALI_INTERNAL_RENDERABLE_ATTACHMENT_H__