efl_input_hold: replace hold property name with input_hold

Sorry to touch stable eo classes. there is name conflict issue between class and
property when binding language is generated from eo. for example in C#, compiler
error occurs.

```
src/bindings/mono/efl_input_hold.eo.cs(166,17): error CS0542:
`Efl.Input.Hold.Hold': member names cannot be the same as their enclosing type
```

This patch changes Efl.Input.Hold.GetHold/SetHold to
Efl.Input.Hold.GetInputHold/SetInputHold and generates Efl.Input.Hold.InputHold
property.

Note that CAPI is not changed.

ref T8093

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Lauro Neto <lauromauro_>
Differential Revision: https://phab.enlightenment.org/D9484
This commit is contained in:
Yeongjong Lee 2019-08-02 04:43:14 +00:00 committed by Marcel Hollerbach
parent 51c8ff8fc8
commit 97510fc571
3 changed files with 4 additions and 5 deletions

View File

@ -114,8 +114,7 @@ inline bool is_alias_blacklisted(attributes::alias_def const& alias)
inline bool is_property_blacklisted(std::string const& name)
{
return name == "Efl.Input.Hold.Hold"
|| name == "Efl.IText.Text";
return name == "Efl.IText.Text";
}
template<typename Context>

View File

@ -13,13 +13,13 @@
#define MY_CLASS EFL_INPUT_HOLD_CLASS
EOLIAN static void
_efl_input_hold_hold_set(Eo *obj EINA_UNUSED, Efl_Input_Hold_Data *pd, Eina_Bool val)
_efl_input_hold_input_hold_set(Eo *obj EINA_UNUSED, Efl_Input_Hold_Data *pd, Eina_Bool val)
{
pd->hold = !!val;
}
EOLIAN static Eina_Bool
_efl_input_hold_hold_get(const Eo *obj EINA_UNUSED, Efl_Input_Hold_Data *pd)
_efl_input_hold_input_hold_get(const Eo *obj EINA_UNUSED, Efl_Input_Hold_Data *pd)
{
return pd->hold;
}

View File

@ -2,7 +2,7 @@ class Efl.Input.Hold extends Efl.Object implements Efl.Input.Event
{
[[Event data sent when inputs are put on hold or resumed.]]
methods {
@property hold {
@property input_hold {
[[Property to show if inputs are now on hold.]]
values {
val: bool; [[$true if inputs are on hold, $false otherwise]]