X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Fcontrol-depth-index-ranges.h;h=3aa0c9f637aa0330fd20bd49a4576d2df9e8c2b0;hb=20e1c73dd9097276d12197f427ec8e00ab9e5650;hp=088fb7a67e836ba05ea2ecbfbb4cffbafa4f5523;hpb=8e7cfd0c114bf778287cc6e67d0f42f3c866e205;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/control-depth-index-ranges.h b/dali-toolkit/devel-api/controls/control-depth-index-ranges.h index 088fb7a..3aa0c9f 100644 --- a/dali-toolkit/devel-api/controls/control-depth-index-ranges.h +++ b/dali-toolkit/devel-api/controls/control-depth-index-ranges.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_DEVEL_CONTROL_DEPTH_INDEX_RANGES_H__ -#define __DALI_TOOLKIT_DEVEL_CONTROL_DEPTH_INDEX_RANGES_H__ +#ifndef DALI_TOOLKIT_DEVEL_CONTROL_DEPTH_INDEX_RANGES_H +#define DALI_TOOLKIT_DEVEL_CONTROL_DEPTH_INDEX_RANGES_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -19,18 +19,14 @@ */ // EXTERNAL INCLUDES -#include #include namespace Dali { - namespace Toolkit { - namespace DepthIndex { - // The negative value for background effect and background has been // chosen so that newer controls can have content without setting // depth index, and go in front of native controls with a background. @@ -41,18 +37,18 @@ namespace DepthIndex enum Ranges { - BACKGROUND_EFFECT = -2 * DevelLayer::SIBLING_ORDER_MULTIPLIER/100, - BACKGROUND = -1 * DevelLayer::SIBLING_ORDER_MULTIPLIER/100, - CONTENT = 0, - DECORATION = 1 * DevelLayer::SIBLING_ORDER_MULTIPLIER/100, - FOREGROUND_EFFECT = 2 * DevelLayer::SIBLING_ORDER_MULTIPLIER/100 + BACKGROUND_EFFECT = -2 * DevelLayer::SIBLING_ORDER_MULTIPLIER / 100, + BACKGROUND = -1 * DevelLayer::SIBLING_ORDER_MULTIPLIER / 100, + CONTENT = 0, + DECORATION = 1 * DevelLayer::SIBLING_ORDER_MULTIPLIER / 100, + FOREGROUND_EFFECT = 2 * DevelLayer::SIBLING_ORDER_MULTIPLIER / 100 }; -DALI_COMPILE_TIME_ASSERT( (unsigned int)DevelLayer::ACTOR_DEPTH_MULTIPLIER > (unsigned int)DevelLayer::SIBLING_ORDER_MULTIPLIER ); -DALI_COMPILE_TIME_ASSERT( BACKGROUND_EFFECT < BACKGROUND ); -DALI_COMPILE_TIME_ASSERT( BACKGROUND < CONTENT ); -DALI_COMPILE_TIME_ASSERT( CONTENT < DECORATION ); -DALI_COMPILE_TIME_ASSERT( DECORATION < FOREGROUND_EFFECT ); +static_assert((unsigned int)DevelLayer::ACTOR_DEPTH_MULTIPLIER > (unsigned int)DevelLayer::SIBLING_ORDER_MULTIPLIER); +static_assert(BACKGROUND_EFFECT < BACKGROUND); +static_assert(BACKGROUND < CONTENT); +static_assert(CONTENT < DECORATION); +static_assert(DECORATION < FOREGROUND_EFFECT); } // namespace DepthIndex @@ -60,4 +56,4 @@ DALI_COMPILE_TIME_ASSERT( DECORATION < FOREGROUND_EFFECT ); } // namespace Dali -#endif // __DALI_TOOLKIT_DEVEL_CONTROL_DEPTH_INDEX_RANGES_H__ +#endif // DALI_TOOLKIT_DEVEL_CONTROL_DEPTH_INDEX_RANGES_H