1 #ifndef DALI_INTERNAL_SCENE_GRAPH_NODE_DECLARATIONS_H
2 #define DALI_INTERNAL_SCENE_GRAPH_NODE_DECLARATIONS_H
5 * Copyright (c) 2019 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/common/dali-vector.h>
23 #include <dali/devel-api/common/bitwise-enum.h>
24 #include <dali/devel-api/common/owner-container.h>
25 #include <dali/internal/common/owner-pointer.h>
38 typedef Dali::Vector< Node* > NodeContainer;
39 typedef NodeContainer::Iterator NodeIter;
40 typedef NodeContainer::ConstIterator NodeConstIter;
43 * Flag whether property has changed, during the Update phase.
45 enum class NodePropertyFlags : uint8_t
46 // 8 bits is enough for 4 flags (compiler will check it)
52 CHILD_DELETED = 0x008,
53 ALL = ( CHILD_DELETED << 1 ) - 1 // all the flags
56 } // namespace SceneGraph
58 } // namespace Internal
60 // specialization has to be done in the same namespace
61 template<> struct EnableBitMaskOperators< Internal::SceneGraph::NodePropertyFlags > { static const bool ENABLE = true; };
65 #endif // DALI_INTERNAL_SCENE_GRAPH_NODE_DECLARATIONS_H