2016-04-19 08:25:40 -07:00
|
|
|
import edje_types;
|
|
|
|
|
2017-01-31 12:17:58 -08:00
|
|
|
class Elm.Layout (Elm.Widget, Efl.Part, Efl.Container, Efl.File,
|
2017-08-02 04:46:16 -07:00
|
|
|
Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Ui.Model.Factory.Connect,
|
|
|
|
Efl.Canvas.Layout_Calc)
|
2014-03-16 06:43:07 -07:00
|
|
|
{
|
2016-11-21 08:54:12 -08:00
|
|
|
[[Elementary layout class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_layout;
|
2014-03-16 06:43:07 -07:00
|
|
|
eo_prefix: elm_obj_layout;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_prefix: elm_layout;
|
2014-03-16 06:43:07 -07:00
|
|
|
data: Elm_Layout_Smart_Data;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property theme {
|
2014-03-16 06:43:07 -07:00
|
|
|
set {
|
2015-08-13 06:21:49 -07:00
|
|
|
[[Set the edje group from the elementary theme that will be used
|
|
|
|
as layout.
|
2014-03-16 06:43:07 -07:00
|
|
|
|
2015-08-13 06:21:49 -07:00
|
|
|
Note that $style will be the new style of $obj too, as in an
|
|
|
|
\@ref elm_object_style_set call.
|
|
|
|
]]
|
2016-11-21 08:54:12 -08:00
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-05-31 08:02:26 -07:00
|
|
|
klass: string; [[The class of the group.]]
|
|
|
|
group: string; [[The group.]]
|
|
|
|
style: string; [[The style to used.]]
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
sizing_eval {
|
2015-08-13 06:21:49 -07:00
|
|
|
[[Eval sizing.
|
2014-03-16 06:43:07 -07:00
|
|
|
|
2015-08-13 06:21:49 -07:00
|
|
|
Manually forces a sizing re-evaluation. This is useful when the
|
|
|
|
minimum size required by the edje theme of this layout has
|
|
|
|
changed. The change on the minimum size required by the edje
|
|
|
|
theme is not immediately reported to the elementary layout,
|
|
|
|
so one needs to call this function in order to tell the widget
|
|
|
|
(layout) that it needs to reevaluate its own size.
|
2014-03-16 06:43:07 -07:00
|
|
|
|
2015-08-13 06:21:49 -07:00
|
|
|
The minimum size of the theme is calculated based on minimum
|
|
|
|
size of parts, the size of elements inside containers like box
|
|
|
|
and table, etc. All of this can change due to state changes,
|
|
|
|
and that's when this function should be called.
|
2014-03-16 06:43:07 -07:00
|
|
|
|
2015-08-13 06:21:49 -07:00
|
|
|
Also note that a standard signal of "size,eval" "elm" emitted
|
|
|
|
from the edje object will cause this to happen too.
|
|
|
|
]]
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
sizing_restricted_eval {
|
2015-08-13 06:21:49 -07:00
|
|
|
[[Request sizing reevaluation, restricted to current width and/or
|
|
|
|
height.
|
2014-03-16 06:43:07 -07:00
|
|
|
|
2015-08-13 06:21:49 -07:00
|
|
|
Useful mostly when there are TEXTBLOCK parts defining the height
|
|
|
|
of the object and nothing else restricting it to a minimum width.
|
|
|
|
Calling this function will restrict the minimum size in the Edje
|
|
|
|
calculation to whatever size it the layout has at the moment.
|
2014-03-16 06:43:07 -07:00
|
|
|
|
2015-08-13 06:21:49 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-03-16 06:43:07 -07:00
|
|
|
params {
|
2015-08-13 06:21:49 -07:00
|
|
|
@in width: bool; [[Restrict minimum size to the current width.]]
|
|
|
|
@in height: bool; [[Restrict minimum size ot the current height.]]
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
}
|
2016-08-05 10:31:49 -07:00
|
|
|
signal_callback_add {
|
|
|
|
[[Add a callback for a (Edje) signal emitted by a layout widget's
|
|
|
|
underlying Edje object.
|
|
|
|
|
|
|
|
This function connects a callback function to a signal emitted by
|
|
|
|
the underlying Edje object of $obj. Globs are accepted in either
|
|
|
|
the emission or source strings.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
@in emission: string; [[The signal's name string.]]
|
|
|
|
@in source: string; [[The signal's source string.]]
|
|
|
|
@in func: Edje.Signal_Cb; [[The callback function to be executed
|
|
|
|
when the signal is emitted.]]
|
|
|
|
@in data: void_ptr @optional; [[A pointer to data to pass in to the
|
|
|
|
callback function.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
data_get @const {
|
|
|
|
[[Get the edje data from the given layout.
|
|
|
|
|
|
|
|
This function fetches data specified inside the edje theme of
|
|
|
|
this layout. This function return NULL if data is not found.
|
|
|
|
|
|
|
|
In EDC this comes from a data block within the group block that
|
|
|
|
$obj was loaded from.
|
|
|
|
]]
|
|
|
|
/* FIXME-doc
|
|
|
|
@code
|
|
|
|
collections {
|
|
|
|
group {
|
|
|
|
name: "a_group";
|
|
|
|
data {
|
|
|
|
item: "key1" "value1";
|
|
|
|
item: "key2" "value2";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@endcode
|
|
|
|
*/
|
|
|
|
return: string; [[The edje data string.]]
|
|
|
|
params {
|
|
|
|
@in key: string; [[The data key.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
signal_callback_del {
|
|
|
|
[[Remove a signal-triggered callback from a given layout widget.
|
|
|
|
|
|
|
|
This function removes the last callback attached to a signal
|
|
|
|
emitted by the undelying Edje object of $obj, with parameters
|
|
|
|
$emission, $source and $func matching exactly those passed to a
|
|
|
|
previous call to @.signal_callback_add. The data pointer that
|
|
|
|
was passed to this call will be returned.
|
|
|
|
]]
|
|
|
|
return: void_ptr; [[The data pointer of the signal callback (passed on
|
|
|
|
@.signal_callback_add) or $null on errors.]]
|
|
|
|
params {
|
|
|
|
@in emission: string; [[The signal's name string.]]
|
|
|
|
@in source: string; [[The signal's source string.]]
|
|
|
|
@in func: Edje.Signal_Cb; [[The callback function being executed
|
|
|
|
when the signal was emitted.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
signal_emit {
|
|
|
|
[[Send a (Edje) signal to a given layout widget's underlying Edje
|
|
|
|
object.
|
|
|
|
|
|
|
|
This function sends a signal to the underlying Edje object of
|
|
|
|
$obj. An Edje program on that Edje object's definition can
|
|
|
|
respond to a signal by specifying matching 'signal' and
|
|
|
|
'source' fields.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
@in emission: string; [[The signal's name string.]]
|
|
|
|
@in source: string; [[The signal's source string.]]
|
|
|
|
}
|
|
|
|
}
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.File.file { get; set; }
|
|
|
|
Efl.File.mmap { get; set; }
|
2016-06-17 01:26:08 -07:00
|
|
|
Efl.Canvas.Group.group_calculate;
|
2017-08-02 04:46:16 -07:00
|
|
|
Efl.Canvas.Layout_Calc.calc_freeze;
|
|
|
|
Efl.Canvas.Layout_Calc.calc_thaw;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.focus_direction;
|
|
|
|
Elm.Widget.sub_object_add;
|
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.focus_direction_manager_is;
|
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.focus_next;
|
|
|
|
Elm.Widget.disable;
|
|
|
|
Elm.Widget.sub_object_del;
|
|
|
|
Elm.Widget.on_focus;
|
2016-04-19 22:55:26 -07:00
|
|
|
Efl.Container.content_count;
|
2016-04-25 03:53:51 -07:00
|
|
|
Efl.Container.content_remove;
|
2016-04-19 22:55:26 -07:00
|
|
|
Efl.Container.content_iterate;
|
2016-12-27 10:15:41 -08:00
|
|
|
Efl.Container.content { get; set; }
|
2016-05-24 04:40:18 -07:00
|
|
|
Efl.Container.content_unset;
|
|
|
|
Efl.Part.part;
|
2017-01-31 12:17:58 -08:00
|
|
|
Efl.Ui.View.model { get; set; }
|
|
|
|
Efl.Ui.Model.Connect.connect;
|
|
|
|
Efl.Ui.Model.Factory.Connect.connect;
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
events {
|
2016-11-21 08:54:12 -08:00
|
|
|
theme,changed; [[Called when theme changed]]
|
2014-03-16 06:43:07 -07:00
|
|
|
}
|
|
|
|
}
|