2017-05-29 04:28:08 -07:00
|
|
|
/* FIXME: Rename to Efl.Canvas.Layout.Part */
|
edje/elm: Rename _internal_ to _part_ (EO)
In Edje and Elementary, we have part objects, which are what is returned
by the interface efl_part(). Those objects can't be of an opaque type as
this doesn't work nicely with strongly typed languages such as C++ or
C#. In JS, Lua, C the types are weak and mostly runtime-based so it
doesn't matter much.
As a consequence, the documentation and the types need to look nice in
this EO API. Thus, we remove the abusive term "internal" and explicitly
call all those classes "part" something.
Eventually we want the types to be declared in the EO file so bindings
(C#, C++, ...) can generate the proper access methods, returning the
best possible types.
Note that right now a few of those part types are used in the legacy API
but don't actually need to be exposed externally.
This is kind of a mega commit that does all the renaming at once, but
it's really just a big sed operation. The power of good IDEs :)
Ref T5315
Ref T5306
2017-09-12 21:29:25 -07:00
|
|
|
class Efl.Canvas.Layout.Part (Efl.Object, Efl.Gfx, Efl.Ui.Drag)
|
2016-05-24 04:40:18 -07:00
|
|
|
{
|
2017-05-25 19:53:27 -07:00
|
|
|
[[Common class for part proxy objects for $Efl.Canvas.Layout.
|
|
|
|
|
|
|
|
As an @Efl.Part implementation class, all objects of this class are meant
|
|
|
|
to be used for one and only one function call. In pseudo-code, the use
|
|
|
|
of object of this type looks like the following:
|
|
|
|
layout.part("somepart").geometry_get(&x, &y, &w, &h);
|
|
|
|
|
|
|
|
@since 1.20
|
|
|
|
]]
|
|
|
|
methods {
|
|
|
|
@property state {
|
|
|
|
[[The name and value of the current state of this part (read-only).
|
|
|
|
|
|
|
|
This is the state name as it appears in EDC description blocks. A
|
|
|
|
state has both a name and a value (double). The default state is
|
|
|
|
"default" 0.0.
|
|
|
|
]]
|
|
|
|
get {}
|
|
|
|
values {
|
|
|
|
state: string("default"); [[The name of the state.]]
|
|
|
|
val: double; [[The value of the state.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-05-25 18:52:57 -07:00
|
|
|
implements {
|
2017-05-25 19:33:58 -07:00
|
|
|
Efl.Object.finalize;
|
|
|
|
Efl.Gfx.geometry { get; }
|
2017-05-30 07:13:02 -07:00
|
|
|
Efl.Ui.Drag.drag_value { set; get; }
|
|
|
|
Efl.Ui.Drag.drag_size { set; get; }
|
|
|
|
Efl.Ui.Drag.drag_dir { get; }
|
|
|
|
Efl.Ui.Drag.drag_step { set; get; }
|
|
|
|
Efl.Ui.Drag.drag_step_move;
|
|
|
|
Efl.Ui.Drag.drag_page { set; get; }
|
|
|
|
Efl.Ui.Drag.drag_page_move;
|
|
|
|
}
|
|
|
|
events {
|
|
|
|
/* FIXME: Are there really no events? */
|
2016-05-24 04:40:18 -07:00
|
|
|
}
|
|
|
|
}
|