2019-01-18 05:22:23 -08:00
|
|
|
class Efl.Ui.Tags extends Efl.Ui.Layout implements Efl.Text, Efl.Ui.Format
|
2018-05-02 01:23:25 -07:00
|
|
|
{
|
|
|
|
[[Elementary Tags class]]
|
|
|
|
methods {
|
|
|
|
@property editable {
|
|
|
|
[[Control if the tags is to be editable or not.]]
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
editable: bool; [[If $true, user can add/delete item in tags, if not, the tags is non-editable.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property expanded {
|
|
|
|
[[Control the tags to expanded state.
|
|
|
|
|
|
|
|
In expanded state, the complete entry will be displayed.
|
|
|
|
Otherwise, only single line of the entry will be displayed.]]
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
expanded: bool; [[The value of expanded state. Set this to $true for expanded state. Set
|
|
|
|
this to $false for single line state.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property items {
|
|
|
|
[[Get a list of items in the tags]]
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
items: const(array<string>); [[The array of items, or NULL if none]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
|
|
|
Efl.Ui.Widget.widget_event;
|
|
|
|
Efl.Text.text { get; set; }
|
|
|
|
Efl.Ui.Format.format_cb { set; }
|
|
|
|
}
|
|
|
|
events {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
/* FIXME: Returning a basic type is not future-proof, better return a struct */
|
|
|
|
item,selected: string; [[Called when item was selected]]
|
|
|
|
item,added: string; [[Called when item was added]]
|
|
|
|
item,deleted: string; [[Called when item was deleted]]
|
|
|
|
item,clicked: string; [[Called when item was clicked]]
|
|
|
|
item,longpressed: string; [[Called when item got a longpress]]
|
|
|
|
expanded: void; [[Called when expanded]]
|
|
|
|
contracted: void; [[Called when contracted]]
|
|
|
|
/* FIXME: Not future-proof */
|
|
|
|
expand,state,changed: int; [[Called when expanded state changed]]
|
2018-05-02 01:23:25 -07:00
|
|
|
}
|
2019-01-23 11:55:44 -08:00
|
|
|
composite {
|
|
|
|
Efl.Text;
|
|
|
|
}
|
2018-05-02 01:23:25 -07:00
|
|
|
}
|