Wiki page eo-inherit.md changed with summary [Bring back the callout] by Xavi Artigas

This commit is contained in:
Xavi Artigas 2017-11-22 03:02:29 -08:00 committed by apache
parent 1ec441d0ed
commit eb64c43073
1 changed files with 2 additions and 3 deletions

View File

@ -249,9 +249,8 @@ And likewise for the ``height`` setter.
Note how the first parameter to ``efl_data_scope_get()`` is the object for which you want to retrieve the private data, and the second parameter is the *ancestor class*. You can retrieve the private data for any class, as long as it belongs to your hierarchy.
**NOTE:**
For performance reasons, no runtime check is performed to ensure that the requested class actually belongs to your ancestry. If you want to avoid *undefined behavior* use ``efl_data_scope_safe_get()``.
> **NOTE:**
> For performance reasons, no runtime check is performed to ensure that the requested class actually belongs to your ancestry. If you want to avoid *undefined behavior* use ``efl_data_scope_safe_get()``.
Once you have the pointer to the private data of ``Example.Rectangle`` you can write to both ``width`` and ``height`` as you were doing before.