2018-04-12 05:09:38 -07:00
|
|
|
struct Efl.Ui.Stack.Event_Loaded {
|
|
|
|
[[Information of loaded event.]]
|
|
|
|
content: Efl.Canvas.Object; [[Loaded content.]]
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Efl.Ui.Stack.Event_Unloaded {
|
|
|
|
[[Information of unloaded event.]]
|
|
|
|
content: Efl.Canvas.Object; [[Unloaded content.]]
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Efl.Ui.Stack.Event_Activated {
|
|
|
|
[[Information of activated event.]]
|
|
|
|
content: Efl.Canvas.Object; [[Activated content.]]
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Efl.Ui.Stack.Event_Deactivated {
|
|
|
|
[[Information of deactivated event.]]
|
|
|
|
content: Efl.Canvas.Object; [[Deactivated content.]]
|
|
|
|
}
|
|
|
|
|
2018-04-06 09:15:31 -07:00
|
|
|
class Efl.Ui.Stack (Efl.Ui.Layout.Object)
|
2018-04-12 05:09:38 -07:00
|
|
|
{
|
|
|
|
[[Stack widget.
|
|
|
|
|
|
|
|
Stack widget arranges objects in stack structure by pushing and poping them.
|
|
|
|
]]
|
|
|
|
methods {
|
|
|
|
push {
|
|
|
|
[[Pushes a new object to the top of the stack and shows it.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
@in content: Efl.Canvas.Object;
|
|
|
|
[[The pushed object which becomes the top content of the stack.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pop {
|
|
|
|
[[Pops the top content from the stack and deletes it.
|
|
|
|
]]
|
|
|
|
return: Efl.Canvas.Object;
|
|
|
|
[[The top content which is removed from the stack.]]
|
|
|
|
}
|
|
|
|
insert_before {
|
|
|
|
[[Inserts an object before the given base content in the stack.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
@in base_content: Efl.Canvas.Object;
|
|
|
|
[[$content is inserted before this $base_content.]]
|
|
|
|
@in content: Efl.Canvas.Object;
|
|
|
|
[[The inserted object in the stack.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
insert_after {
|
|
|
|
[[Inserts an object after the given base content in the stack.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
@in base_content: Efl.Canvas.Object;
|
|
|
|
[[$content is inserted after this $base_content.]]
|
|
|
|
@in content: Efl.Canvas.Object;
|
|
|
|
[[The inserted object in the stack.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
insert_at {
|
|
|
|
[[Inserts an object at the given place in the stack.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
@in index: int;
|
|
|
|
[[The index of the inserted object in the stack.
|
|
|
|
$index begins from bottom to top of the stack.
|
|
|
|
$index of the bottom content is 0.
|
|
|
|
]]
|
|
|
|
@in content: Efl.Canvas.Object;
|
|
|
|
[[The inserted object in the stack.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
remove {
|
|
|
|
[[Removes the given content in the stack.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
@in content: Efl.Canvas.Object;
|
|
|
|
[[The removed content from the stack.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
remove_at {
|
|
|
|
[[Removes a content matched to the given index in the stack.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
@in index: int;
|
|
|
|
[[The index of the removed object in the stack.
|
|
|
|
$index begins from bottom to top of the stack.
|
|
|
|
$index of the bottom content is 0.
|
|
|
|
]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
index_get {
|
|
|
|
[[Gets the index of the given content in the stack.
|
|
|
|
The index begins from bottom to top of the stack.
|
|
|
|
The index of the bottom content is 0.
|
|
|
|
]]
|
|
|
|
return: int;
|
|
|
|
[[The index of $content in the stack.]]
|
|
|
|
params {
|
|
|
|
@in content: Efl.Canvas.Object;
|
|
|
|
[[The content matched to the index to be returned in the stack.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
content_get {
|
|
|
|
[[Gets the content matched to the given index in the stack.
|
|
|
|
]]
|
|
|
|
return: Efl.Canvas.Object;
|
|
|
|
[[The content matched to $index in the stack.]]
|
|
|
|
params {
|
|
|
|
@in index: int;
|
|
|
|
[[The index of the content to be returned in the stack.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
top {
|
|
|
|
[[Gets the top content in the stack.
|
|
|
|
]]
|
|
|
|
return: Efl.Canvas.Object; [[The top content in the stack.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
|
|
|
Efl.Object.constructor;
|
|
|
|
}
|
|
|
|
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
|
|
|
loaded: Efl.Ui.Stack.Event_Loaded; [[Called when content is loaded right before transition.]]
|
|
|
|
unloaded: Efl.Ui.Stack.Event_Unloaded; [[Called when content is unloaded right after being deactivated.]]
|
|
|
|
activated: Efl.Ui.Stack.Event_Activated; [[Called when content is activated right after transition.]]
|
|
|
|
deactivated: Efl.Ui.Stack.Event_Deactivated; [[Called when content is deactivated right after transition.]]
|
2018-04-12 05:09:38 -07:00
|
|
|
}
|
|
|
|
}
|