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/internal/event/actor-attachments/actor-attachment-impl.h>
32 class RenderableAttachment;
36 * An base class for renderable actor attachments
38 class RenderableAttachment : public ActorAttachment
47 * Protected constructor; only base classes are instantiatable.
48 * @param[in] eventThreadServices Used for messaging to and reading from scene-graph.
50 RenderableAttachment( EventThreadServices& eventThreadServices );
53 * A reference counted object may only be deleted by calling Unreference()
55 virtual ~RenderableAttachment();
60 RenderableAttachment(const RenderableAttachment&);
63 RenderableAttachment& operator=(const RenderableAttachment& rhs);
66 * Helper for getting the scene-graph renderable attachment.
67 * @return The scene object.
69 const SceneGraph::RenderableAttachment& GetSceneAttachment() const;
72 * @copydoc Dali::Internal::ActorAttachment::OnStageConnection()
74 virtual void OnStageConnection();
77 * @copydoc Dali::Internal::ActorAttachment::OnStageDisconnection()
79 virtual void OnStageDisconnection();
82 * For derived classes, chained from OnStageConnection()
84 virtual void OnStageConnection2() = 0;
87 * For derived classes, chained from OnStageDisconnection()
89 virtual void OnStageDisconnection2() = 0;
91 private: // Data, cached for actor-thread getters
95 } // namespace Internal
99 #endif // __DALI_INTERNAL_RENDERABLE_ATTACHMENT_H__