Dali 3D User Interface Engine
resource-types.h
Go to the documentation of this file.
1 #ifndef __DALI_INTEGRATION_RESOURCE_TYPES_H__
2 #define __DALI_INTEGRATION_RESOURCE_TYPES_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 // EXTERNAL INCLUDES
22 #include <stdint.h>
23 #include <string>
24 
25 // INTERNAL INCLUDES
32 
33 namespace Dali
34 {
35 
37 
38 namespace Integration
39 {
40 
41 // Resource Types
42 
47 {
51 };
52 
57 {
63  : id(typeId) {}
64 
68  virtual ~ResourceType() {}
69 
74  virtual ResourceType* Clone() const = 0;
75 
77 
78 private:
79 
80  // Undefined copy constructor.
81  ResourceType(const ResourceType& typePath);
82 
83  // Undefined assignment operator.
84  ResourceType& operator=(const ResourceType& rhs);
85 };
86 
92 {
106  bool orientationCorrection = true )
109 
113  virtual ~BitmapResourceType() {}
114 
118  virtual ResourceType* Clone() const
119  {
121  }
122 
130 
131 private:
132 
133  // Undefined copy constructor.
134  BitmapResourceType(const BitmapResourceType& typePath);
135 
136  // Undefined assignment operator.
138 };
139 
146 {
152 
159  imageDimensions(dimensions) {}
160 
165 
169  virtual ResourceType* Clone() const
170  {
172  }
173 
178 
179 private:
180 
181  // Undefined copy constructor.
183 
184  // Undefined assignment operator.
186 };
187 
193 {
199 
206  imageDimensions(dims) {}
207 
212 
216  virtual ResourceType* Clone() const
217  {
219  }
220 
225 
226 private:
227 
228  // Undefined copy constructor.
230 
231  // Undefined assignment operator.
233 };
234 
235 } // namespace Integration
236 
237 } // namespace Dali
238 
239 #endif // __DALI_INTEGRATION_RESOURCE_TYPES_H__
Dali Docs Home
Read more about Dali