X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fupdate%2Fnodes%2Fnode-declarations.h;h=a0a382fa6e4d7b28b0cbdaec06327dc3ce66a059;hb=b43741a90b40ca9dfbd33d6a9d390d3c09230e89;hp=3a8b3062b1dbb9ec89d608e6c78aa99ce05fa322;hpb=8f2c5571c924479b6a07a2c2187dedd9c685baf0;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/update/nodes/node-declarations.h b/dali/internal/update/nodes/node-declarations.h old mode 100644 new mode 100755 index 3a8b306..a0a382f --- a/dali/internal/update/nodes/node-declarations.h +++ b/dali/internal/update/nodes/node-declarations.h @@ -1,26 +1,28 @@ -#ifndef __DALI_INTERNAL_SCENE_GRAPH_NODE_DECLARATIONS_H__ -#define __DALI_INTERNAL_SCENE_GRAPH_NODE_DECLARATIONS_H__ - -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +#ifndef DALI_INTERNAL_SCENE_GRAPH_NODE_DECLARATIONS_H +#define DALI_INTERNAL_SCENE_GRAPH_NODE_DECLARATIONS_H + +/* + * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // INTERNAL INCLUDES #include +#include +#include #include -#include namespace Dali { @@ -33,16 +35,31 @@ namespace SceneGraph class Node; -typedef OwnerContainer< Node* > NodeOwnerContainer; - typedef Dali::Vector< Node* > NodeContainer; typedef NodeContainer::Iterator NodeIter; typedef NodeContainer::ConstIterator NodeConstIter; +/** + * Flag whether property has changed, during the Update phase. + */ +enum class NodePropertyFlags : uint8_t +// 8 bits is enough for 4 flags (compiler will check it) +{ + NOTHING = 0x000, + TRANSFORM = 0x001, + VISIBLE = 0x002, + COLOR = 0x004, + CHILD_DELETED = 0x008, + ALL = ( CHILD_DELETED << 1 ) - 1 // all the flags +}; + } // namespace SceneGraph } // namespace Internal +// specialization has to be done in the same namespace +template<> struct EnableBitMaskOperators< Internal::SceneGraph::NodePropertyFlags > { static const bool ENABLE = true; }; + } // namespace Dali -#endif // __DALI_INTERNAL_SCENE_GRAPH_NODE_DECLARATIONS_H__ +#endif // DALI_INTERNAL_SCENE_GRAPH_NODE_DECLARATIONS_H