forked from enlightenment/efl
layout: Move Part_Alias struct to legacy
Part aliases need to be handled differently in EO. Ref T5315
This commit is contained in:
parent
f0730f6f4c
commit
82e6100322
|
@ -1,22 +1,5 @@
|
||||||
import edje_types;
|
import edje_types;
|
||||||
|
|
||||||
struct Elm.Layout_Part_Alias_Description
|
|
||||||
{
|
|
||||||
[[
|
|
||||||
Elementary Layout-based widgets may declare part proxies, i.e., aliases
|
|
||||||
for real theme part names to expose to the API calls:
|
|
||||||
- elm_layout_text_set()
|
|
||||||
- elm_layout_text_get()
|
|
||||||
- elm_layout_content_set()
|
|
||||||
- elm_layout_content_get()
|
|
||||||
- elm_layout_content_unset()
|
|
||||||
and their equivalents. This list must be set on the "_smart_set_user()" function of inheriting widgets,
|
|
||||||
so that part aliasing is handled automatically for them.
|
|
||||||
]]
|
|
||||||
alias: string; [[Alternate name for a given (real) part. Calls receiving this string as a part name will be translated to the string at Elm.Layout_Part_Proxies_Description::real_part]]
|
|
||||||
real_part: string; [[Target part name for the alias set on Elm.Layout_Part_Proxies_Description::real_part. An example of usage would be "default" on that field, with "elm.content.swallow" on this one]]
|
|
||||||
}
|
|
||||||
|
|
||||||
class Elm.Layout (Elm.Widget, Efl.Part, Efl.Container, Efl.File,
|
class Elm.Layout (Elm.Widget, Efl.Part, Efl.Container, Efl.File,
|
||||||
Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Ui.Model.Factory.Connect,
|
Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Ui.Model.Factory.Connect,
|
||||||
Efl.Canvas.Layout_Calc)
|
Efl.Canvas.Layout_Calc)
|
||||||
|
|
|
@ -1,3 +1,32 @@
|
||||||
|
/**
|
||||||
|
* Elementary Layout-based widgets may declare part proxies, i.e., aliases for
|
||||||
|
* real theme part names to expose to the API calls:
|
||||||
|
* - elm_layout_text_set()
|
||||||
|
* - elm_layout_text_get()
|
||||||
|
* - elm_layout_content_set()
|
||||||
|
* - elm_layout_content_get()
|
||||||
|
* - elm_layout_content_unset()
|
||||||
|
* and their equivalents. This list must be set on the "_smart_set_user()"
|
||||||
|
* function of inheriting widgets, so that part aliasing is handled
|
||||||
|
* automatically for them.
|
||||||
|
*
|
||||||
|
* @deprecated Should not be used outside of EFL internal code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
struct _Elm_Layout_Part_Alias_Description
|
||||||
|
{
|
||||||
|
const char *alias; /**< Alternate name for a given (real) part. Calls
|
||||||
|
* receiving this string as a part name will be translated
|
||||||
|
* to the string at
|
||||||
|
* Elm.Layout_Part_Proxies_Description::real_part */
|
||||||
|
const char *real_part; /**< Target part name for the alias set on
|
||||||
|
* Elm.Layout_Part_Proxies_Description::real_part. An
|
||||||
|
* example of usage would be "default" on that field,
|
||||||
|
* with "elm.content.swallow" on this one */
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct _Elm_Layout_Part_Alias_Description Elm_Layout_Part_Alias_Description;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a new layout to the parent
|
* Add a new layout to the parent
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue