Make depth-index as 'AUTO' instead of CONTENT change as default, and clamp depth... 29/309729/7
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 16 Apr 2024 04:14:49 +0000 (13:14 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Fri, 3 May 2024 08:03:04 +0000 (08:03 +0000)
commitc0a91ff3a43ac7d8e6a7a8e3791a097753577a4d
tree1d3550bd48c52a889ea9e4a8234d25df1466ed85
parent902aaca572b31e65d679d645e3cd49540779c065
Make depth-index as 'AUTO' instead of CONTENT change as default, and clamp depth-index

Let we set depth index as auto if user doesn't set visual's depth index.

Previously we use same behavior if user doesn't set, or user set depth index as CONTENT.
So if user set as 0, it might not works well.

To avoid this confuse logic, let we seperate whether user didn't set the property or not.

Furthermore, let we hard-clamp the range of DepthIndex for VisualBase.

The case of AUTO_INDEX is only for special cases, and otherwise, let we use normal values
what user set.

---

We allow to use RegisterVisual use depth-index as AUTO_INDEX. If this case, it will works
like what we don't set the depth index.

Change-Id: If19b0757b5e27e0a94a37fc8bc0f57c6824d0b16
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
15 files changed:
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.h
automated-tests/src/dali-toolkit/utc-Dali-Visual.cpp
dali-toolkit/devel-api/controls/control-depth-index-ranges.h
dali-toolkit/devel-api/controls/control-devel.h
dali-toolkit/devel-api/visual-factory/visual-base.h
dali-toolkit/internal/controls/buttons/toggle-button-impl.cpp
dali-toolkit/internal/controls/control/control-data-impl.cpp
dali-toolkit/internal/controls/control/control-data-impl.h
dali-toolkit/internal/controls/image-view/image-view-impl.cpp
dali-toolkit/internal/controls/progress-bar/progress-bar-impl.cpp
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp
dali-toolkit/internal/controls/web-view/web-view-impl.cpp
dali-toolkit/internal/visuals/visual-base-data-impl.cpp
dali-toolkit/internal/visuals/visual-base-impl.cpp