Automatic Control Clipping 95/108795/5
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 30 Dec 2016 13:38:08 +0000 (13:38 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 6 Jan 2017 10:34:36 +0000 (10:34 +0000)
commitcf58f2980b99438db9784a284e126d80893e6138
treed0d229fe6b609cbbf0552751441fe31207e429bb
parent1e7f2e72fcc37576c754ca2ed563ece458942960
Automatic Control Clipping

If the application sets to clip the children of a control, then this patch automatically
creates a background visual which is used for clipping the children rather than the
application writer having to do so.

It only adds the background visual if no renderers or visuals have been added.

Change-Id: I6e3c0c3c5459fc2cbc828daf3d01c7b0faf0a069
automated-tests/src/dali-toolkit/utc-Dali-Control.cpp
automated-tests/src/dali-toolkit/utc-Dali-ControlImpl.cpp
dali-toolkit/public-api/controls/control-impl.cpp
dali-toolkit/public-api/controls/control-impl.h
docs/content/shared-javascript-and-cpp-documentation/creating-custom-controls.md