Dali 3D User Interface Engine
property-buffer.h
Go to the documentation of this file.
1 #ifndef DALI_PROPERTY_BUFFER_H
2 #define DALI_PROPERTY_BUFFER_H
3 
4 /*
5  * Copyright (c) 2015 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 <cstddef> // std::size_t
23 #include <string> // std::string
24 
25 // INTERNAL INCLUDES
26 #include <dali/public-api/object/handle.h> // Dali::Handle
27 #include <dali/public-api/object/property-map.h> // Dali::Property::Map
28 
29 namespace Dali
30 {
31 
32 namespace Internal DALI_INTERNAL
33 {
34 class PropertyBuffer;
35 }
36 
72 {
73 public:
74 
84  static PropertyBuffer New( Dali::Property::Map& bufferFormat, std::size_t size );
85 
90 
94  ~PropertyBuffer();
95 
101  PropertyBuffer( const PropertyBuffer& handle );
102 
110  static PropertyBuffer DownCast( BaseHandle handle );
111 
118  PropertyBuffer& operator=( const PropertyBuffer& handle );
119 
127  void SetSize( std::size_t size );
128 
134  std::size_t GetSize() const;
135 
156  void SetData( const void* data );
157 
158 public:
165 };
166 
167 } // namespace Dali
168 
169 #endif // DALI_PROPERTY_BUFFER_H
Dali Docs Home
Read more about Dali