Dali 3D User Interface Engine
actor-attachment-impl.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_ACTOR_ATTACHMENT_H__
2 #define __DALI_INTERNAL_ACTOR_ATTACHMENT_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20 
21 // INTERNAL INCLUDES
23 
24 namespace Dali
25 {
26 
27 namespace Internal
28 {
29 
30 class EventThreadServices;
31 
37 {
38 public:
39 
44  bool OnStage() const;
45 
49  void Connect();
50 
54  void Disconnect();
55 
56 protected:
57 
62  ActorAttachment( EventThreadServices& eventThreadServices );
63 
67  virtual ~ActorAttachment();
68 
69 private:
70 
71  // Undefined
73 
74  // Undefined
76 
80  virtual void OnStageConnection() = 0;
81 
85  virtual void OnStageDisconnection() = 0;
86 
87 protected:
94  {
95  return mEventThreadServices;
96  }
97 
103  {
104  return mEventThreadServices;
105  }
106 
107 private:
109 
110 protected:
111  bool mIsOnStage : 1;
112 
113 };
114 
115 } // namespace Internal
116 
117 } // namespace Dali
118 
119 #endif // __DALI_INTERNAL_ACTOR_ATTACHMENT_H__
Dali Docs Home
Read more about Dali