52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
import edje_types;
|
|
|
|
class Efl.Canvas.Layout.Part (Efl.Object, Efl.Gfx.Entity, Efl.Ui.Drag)
|
|
{
|
|
[[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:
|
|
rect = layout.part("somepart").geometry_get();
|
|
|
|
@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, but this function will return "" if the part is
|
|
invalid.
|
|
]]
|
|
get {}
|
|
values {
|
|
state: string(""); [[The name of the state.]]
|
|
val: double(0.0); [[The value of the state.]]
|
|
}
|
|
}
|
|
@property part_type {
|
|
[[Type of this part in the layout.]]
|
|
get {
|
|
[[Returns the type of the part.]]
|
|
}
|
|
values {
|
|
type: Efl.Canvas.Layout.Part_Type(Efl.Canvas.Layout.Part_Type.none);
|
|
[[One of the types or $none if not an existing part.]]
|
|
}
|
|
}
|
|
}
|
|
implements {
|
|
Efl.Object.finalize;
|
|
Efl.Gfx.Entity.geometry { get; }
|
|
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;
|
|
}
|
|
}
|