This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch eolian/improvements
in repository efl.
View the commit online.
commit bb4789067c3cc1b8237441e29821f47df831d807
Author: Cedric BAIL <[email protected]>
AuthorDate: Tue Aug 18 23:09:10 2026 -0600
eo: annotate @nullable where the documentation already says NULL
Where a signature already said "or $NULL if not found" in prose, the
annotation makes the same statement machine-readable, so a binding can
emit an optional or a nullable reference instead of assuming every
pointer is valid. 38 such sites across Efl.Object, Efl.Gfx.Stack,
Efl.Gfx.Mapping, Efl.Canvas.Object, Efl.Canvas.Scene,
Efl.Canvas.Textblock, the animation classes, Efl.Input.Focus,
Efl.Input.State, Efl.File_Save, Efl.Loop_Consumer, Efl.Ui.L10n,
Efl.Ui.Popup, Efl.Ui.Selection and Efl.Ui.Spotlight.Container.
Six more are the other kind: places where NULL has always been legal and
nothing said so. Efl.Object's parent, name and provider_find return, and
Efl.Content's content, content_unset return and content,changed payload --
every one of which a caller meets on their first day.
The generated headers gained comments and nothing else: all generated
.eo.h/.eo.c files are byte-identical after stripping comments.
The hint is suppressed when the doc block already mentions NULL. Prose
that says *when* a value is NULL is more useful than a generic "May be
@c NULL." after it, so the hint now appears only on the six entities
that were silent. That also means the annotation can be applied broadly
without churning header text.
Co-Authored-By: Claude Opus 5 <[email protected]>
---
src/bin/eolian/docs.c | 62 ++++++++++++++++++----
src/bin/eolian/docs.h | 7 +++
src/bin/eolian/types.c | 4 +-
src/lib/ecore/efl_loop_consumer.eo | 4 +-
src/lib/efl/interfaces/efl_content.eo | 6 +--
src/lib/efl/interfaces/efl_file_save.eo | 4 +-
src/lib/efl/interfaces/efl_gfx_stack.eo | 4 +-
src/lib/elementary/efl_ui_l10n.eo | 4 +-
src/lib/elementary/efl_ui_popup.eo | 2 +-
src/lib/elementary/efl_ui_selection.eo | 2 +-
src/lib/elementary/efl_ui_spotlight_container.eo | 8 +--
src/lib/eo/efl_object.eo | 10 ++--
src/lib/evas/canvas/efl_canvas_animation.eo | 2 +-
src/lib/evas/canvas/efl_canvas_object.eo | 10 ++--
src/lib/evas/canvas/efl_canvas_rotate_animation.eo | 2 +-
src/lib/evas/canvas/efl_canvas_scale_animation.eo | 2 +-
src/lib/evas/canvas/efl_canvas_scene.eo | 8 +--
src/lib/evas/canvas/efl_canvas_textblock.eo | 2 +-
src/lib/evas/canvas/efl_gfx_mapping.eo | 12 ++---
src/lib/evas/canvas/efl_input_focus.eo | 2 +-
src/lib/evas/canvas/efl_input_state.eo | 4 +-
21 files changed, 105 insertions(+), 56 deletions(-)
diff --git a/src/bin/eolian/docs.c b/src/bin/eolian/docs.c
index 10ad86a725..19fb96e040 100644
--- a/src/bin/eolian/docs.c
+++ b/src/bin/eolian/docs.c
@@ -399,6 +399,51 @@ _gen_doc_buf(const Eolian_State *state, const Eolian_Documentation *doc,
return buf;
}
+/* The annotation exists so a reader of the header does not have to consult the
+ * .eo to learn that NULL is meaningful. When the prose already says so -- and it
+ * usually says *when*, which is more useful -- adding the hint just doubles up.
+ */
+/* Prose in the .eo does not reliably end in a period, so supply one rather than
+ * running the hint into the last word.
+ */
+static void
+_append_null_hint(Eina_Strbuf *buf)
+{
+ const char *txt = eina_strbuf_string_get(buf);
+ size_t len = eina_strbuf_length_get(buf);
+
+ if (len && isalnum((unsigned char) txt[len - 1]))
+ eina_strbuf_append_char(buf, '.');
+ eina_strbuf_append(buf, " May be @c NULL.");
+}
+
+Eina_Bool
+eo_gen_docs_mentions_null(const Eolian_Documentation *doc)
+{
+ const char *parts[2];
+ size_t i;
+
+ if (!doc) return EINA_FALSE;
+
+ parts[0] = eolian_documentation_summary_get(doc);
+ parts[1] = eolian_documentation_description_get(doc);
+
+ for (i = 0; i < EINA_C_ARRAY_LENGTH(parts); i++)
+ {
+ const char *p = parts[i];
+
+ while (p && (p = strcasestr(p, "null")))
+ {
+ /* $NULL in the .eo, and not the tail of some longer word */
+ if ((p[4] == '\0') || !isalnum((unsigned char) p[4]))
+ return EINA_TRUE;
+ p += 4;
+ }
+ }
+
+ return EINA_FALSE;
+}
+
Eina_Strbuf *
eo_gen_docs_full_gen(const Eolian_State *state, const Eolian_Documentation *doc,
const char *group, int indent)
@@ -421,9 +466,9 @@ eo_gen_docs_event_gen(const Eolian_State *state, const Eolian_Event *ev,
{
p = buf;
Eina_Stringshare *rts = eolian_type_c_type_get(rt);
- /* same reason as for parameters: say it in the header */
snprintf(buf, sizeof(buf), "@return %s%s", rts,
- eolian_event_is_nullable(ev) ? " May be @c NULL." : "");
+ (eolian_event_is_nullable(ev) &&
+ !eo_gen_docs_mentions_null(doc)) ? " May be @c NULL." : "");
eina_stringshare_del(rts);
}
@@ -662,11 +707,8 @@ eo_gen_docs_func_gen(const Eolian_State *state, const Eolian_Function *fid,
indent, curl, buf, wbuf);
}
- /* a reader of the header should not have to consult the .eo to learn
- * that NULL is a meaningful value here
- */
- if (eolian_parameter_is_nullable(par))
- eina_strbuf_append(buf, " May be @c NULL.");
+ if (eolian_parameter_is_nullable(par) && !eo_gen_docs_mentions_null(adoc))
+ _append_null_hint(buf);
eina_strbuf_append_char(buf, '\n');
if (!eina_iterator_next(itr, (void**)&par))
@@ -700,9 +742,9 @@ eo_gen_docs_func_gen(const Eolian_State *state, const Eolian_Function *fid,
const char *rsum = eolian_documentation_summary_get(rdoc);
_append_section(state, SUMMARY_OR_DEFAULT(rsum), indent,
curl, buf, wbuf);
- /* same reason as for parameters: say it in the header */
- if (eolian_function_return_is_nullable(fid, ftype))
- eina_strbuf_append(buf, " May be @c NULL.");
+ if (eolian_function_return_is_nullable(fid, ftype) &&
+ !eo_gen_docs_mentions_null(rdoc))
+ _append_null_hint(buf);
eina_strbuf_append_char(buf, '\n');
if (since)
{
diff --git a/src/bin/eolian/docs.h b/src/bin/eolian/docs.h
index 3438f5d293..4261b39a5e 100644
--- a/src/bin/eolian/docs.h
+++ b/src/bin/eolian/docs.h
@@ -40,3 +40,10 @@ Eina_Strbuf *eo_gen_docs_event_gen(const Eolian_State *state, const Eolian_Event
#endif
+/*
+ * @brief Whether a doc block already says NULL is meaningful.
+ *
+ * Used to keep the @nullable hint from doubling up on prose that already
+ * explains when the value is NULL.
+ */
+Eina_Bool eo_gen_docs_mentions_null(const Eolian_Documentation *doc);
diff --git a/src/bin/eolian/types.c b/src/bin/eolian/types.c
index d5c4ea2dd8..06bb213bb4 100644
--- a/src/bin/eolian/types.c
+++ b/src/bin/eolian/types.c
@@ -58,8 +58,8 @@ _type_generate(const Eolian_State *state, const Eolian_Typedecl *tp,
{
Eina_Strbuf *fbuf = eo_gen_docs_full_gen(state, fdoc, NULL,
strlen(nl));
- /* say it in the header, as for parameters and returns */
- if (fbuf && eolian_typedecl_struct_field_is_nullable(memb))
+ if (fbuf && eolian_typedecl_struct_field_is_nullable(memb) &&
+ !eo_gen_docs_mentions_null(fdoc))
{
const char *cl = strstr(eina_strbuf_string_get(fbuf), " */");
if (cl)
diff --git a/src/lib/ecore/efl_loop_consumer.eo b/src/lib/ecore/efl_loop_consumer.eo
index a028e5aff1..a3eb7fb83e 100644
--- a/src/lib/ecore/efl_loop_consumer.eo
+++ b/src/lib/ecore/efl_loop_consumer.eo
@@ -34,7 +34,7 @@ abstract Efl.Loop_Consumer extends Efl.Object
references to memory you give. Values will be automatically cleaned up using
\@ref eina_value_flush() once they are unused (no more future or futures returned a new value)]]
}
- return: future<any_value>; [[The future or $NULL on error.]]
+ return: future<any_value> @nullable; [[The future or $NULL on error.]]
}
future_rejected @const {
[[Creates a new future that is already rejected to a specified error using the @.loop.get.
@@ -47,7 +47,7 @@ abstract Efl.Loop_Consumer extends Efl.Object
params {
error: Eina.Error; [[An Eina_Error value]]
}
- return: future<Eina.Error>; [[The future or $NULL on error.]]
+ return: future<Eina.Error> @nullable; [[The future or $NULL on error.]]
}
promise_new @const {
[[Create a new promise with the scheduler coming from the loop provided by this object.
diff --git a/src/lib/efl/interfaces/efl_content.eo b/src/lib/efl/interfaces/efl_content.eo
index d23ac388a4..25f5fe4caa 100644
--- a/src/lib/efl/interfaces/efl_content.eo
+++ b/src/lib/efl/interfaces/efl_content.eo
@@ -20,17 +20,17 @@ interface Efl.Content
}
get {}
values {
- content: Efl.Gfx.Entity; [[The sub-object.]]
+ content: Efl.Gfx.Entity @nullable; [[The sub-object.]]
}
}
content_unset {
[[Remove the sub-object currently set as content of this object and return it.
This object becomes empty.
]]
- return: Efl.Gfx.Entity; [[Unswallowed object]]
+ return: Efl.Gfx.Entity @nullable; [[Unswallowed object]]
}
}
events {
- content,changed: Efl.Gfx.Entity; [[Sent after the content is set or unset using the current content object.]]
+ content,changed: Efl.Gfx.Entity @nullable; [[Sent after the content is set or unset using the current content object.]]
}
}
diff --git a/src/lib/efl/interfaces/efl_file_save.eo b/src/lib/efl/interfaces/efl_file_save.eo
index e53908f182..8b65ea44c9 100644
--- a/src/lib/efl/interfaces/efl_file_save.eo
+++ b/src/lib/efl/interfaces/efl_file_save.eo
@@ -30,9 +30,9 @@ interface Efl.File_Save {
params {
@in file: string; [[The filename to be used to save the image (extension
obligatory).]]
- @in key: string; [[The image key in the file (if an Eet one), or $null,
+ @in key: string @nullable; [[The image key in the file (if an Eet one), or $null,
otherwise.]]
- @in info: const(Efl.File_Save_Info) @by_ref; [[The flags to be used ($null for defaults).]]
+ @in info: const(Efl.File_Save_Info) @by_ref @nullable; [[The flags to be used ($null for defaults).]]
}
return: bool; [[$true on success, $false otherwise]]
}
diff --git a/src/lib/efl/interfaces/efl_gfx_stack.eo b/src/lib/efl/interfaces/efl_gfx_stack.eo
index 20b9bb173c..34461cc1e4 100644
--- a/src/lib/efl/interfaces/efl_gfx_stack.eo
+++ b/src/lib/efl/interfaces/efl_gfx_stack.eo
@@ -44,7 +44,7 @@ interface Efl.Gfx.Stack
get {
}
values {
- below: Efl.Gfx.Stack; [[The @Efl.Gfx.Stack object directly below $obj, if any,
+ below: Efl.Gfx.Stack @nullable; [[The @Efl.Gfx.Stack object directly below $obj, if any,
or $null, if none.]]
}
}
@@ -58,7 +58,7 @@ interface Efl.Gfx.Stack
get {
}
values {
- above: Efl.Gfx.Stack; [[The @Efl.Gfx.Stack object directly below $obj, if any,
+ above: Efl.Gfx.Stack @nullable; [[The @Efl.Gfx.Stack object directly below $obj, if any,
or $null, if none.]]
}
}
diff --git a/src/lib/elementary/efl_ui_l10n.eo b/src/lib/elementary/efl_ui_l10n.eo
index 8eec6e12d4..4f0b5e7011 100644
--- a/src/lib/elementary/efl_ui_l10n.eo
+++ b/src/lib/elementary/efl_ui_l10n.eo
@@ -22,7 +22,7 @@ interface @beta Efl.Ui.L10n
}
get {
values {
- domain: string @optional; [[A translation domain. If $null
+ domain: string @optional @nullable; [[A translation domain. If $null
this means the default domain is used.]]
}
return: string; [[This returns the untranslated value of $label.
@@ -31,7 +31,7 @@ interface @beta Efl.Ui.L10n
}
values {
label: string; [[A unique (untranslated) string.]]
- domain: string @optional; [[A translation domain. If $null this
+ domain: string @optional @nullable; [[A translation domain. If $null this
uses the default domain (eg. set by $textdomain()).]]
}
}
diff --git a/src/lib/elementary/efl_ui_popup.eo b/src/lib/elementary/efl_ui_popup.eo
index c49b834233..5b225d7f08 100644
--- a/src/lib/elementary/efl_ui_popup.eo
+++ b/src/lib/elementary/efl_ui_popup.eo
@@ -94,7 +94,7 @@ class Efl.Ui.Popup extends Efl.Ui.Layout_Base implements Efl.Content, Efl.Ui.Foc
get {
}
values {
- anchor: Efl.Canvas.Object; [[The object which Popup is following. By default this is $NULL.]]
+ anchor: Efl.Canvas.Object @nullable; [[The object which Popup is following. By default this is $NULL.]]
}
}
@property align_priority {
diff --git a/src/lib/elementary/efl_ui_selection.eo b/src/lib/elementary/efl_ui_selection.eo
index 2bd9c185e1..bedb8a518f 100644
--- a/src/lib/elementary/efl_ui_selection.eo
+++ b/src/lib/elementary/efl_ui_selection.eo
@@ -11,7 +11,7 @@ enum @beta Efl.Ui.Cnp_Buffer {
struct @beta Efl.Ui.Wm_Selection_Changed {
[[Information sent along the @[Efl.Ui.Selection.wm_selection,changed] event.]]
buffer : Efl.Ui.Cnp_Buffer; [[The system buffer that has changed.]]
- caused_by : Efl.Ui.Selection; [[The EFL widget that triggered the change. $NULL if it is not an EFL widget.]]
+ caused_by : Efl.Ui.Selection @nullable; [[The EFL widget that triggered the change. $NULL if it is not an EFL widget.]]
seat : uint; [[The seat that triggered the change.]]
}
diff --git a/src/lib/elementary/efl_ui_spotlight_container.eo b/src/lib/elementary/efl_ui_spotlight_container.eo
index fc05047e9d..12f5c808ef 100644
--- a/src/lib/elementary/efl_ui_spotlight_container.eo
+++ b/src/lib/elementary/efl_ui_spotlight_container.eo
@@ -36,12 +36,12 @@ class Efl.Ui.Spotlight.Container extends Efl.Ui.Widget implements Efl.Pack_Linea
]]
get {
values {
- spotlight_manager : Efl.Ui.Spotlight.Manager; [[The Spotlight Manager object or $NULL.]]
+ spotlight_manager : Efl.Ui.Spotlight.Manager @nullable; [[The Spotlight Manager object or $NULL.]]
}
}
set { }
values {
- spotlight_manager : Efl.Ui.Spotlight.Manager @move; [[The Spotlight Manager object or $NULL.]]
+ spotlight_manager : Efl.Ui.Spotlight.Manager @move @nullable; [[The Spotlight Manager object or $NULL.]]
}
}
@property indicator @beta {
@@ -52,12 +52,12 @@ class Efl.Ui.Spotlight.Container extends Efl.Ui.Widget implements Efl.Pack_Linea
]]
get {
values {
- indicator : Efl.Ui.Spotlight.Indicator; [[The Indicator object or $NULL.]]
+ indicator : Efl.Ui.Spotlight.Indicator @nullable; [[The Indicator object or $NULL.]]
}
}
set { }
values {
- indicator : Efl.Ui.Spotlight.Indicator @move; [[The Indicator object or $NULL.]]
+ indicator : Efl.Ui.Spotlight.Indicator @move @nullable; [[The Indicator object or $NULL.]]
}
}
@property active_element {
diff --git a/src/lib/eo/efl_object.eo b/src/lib/eo/efl_object.eo
index 663f0282de..82b3daf446 100644
--- a/src/lib/eo/efl_object.eo
+++ b/src/lib/eo/efl_object.eo
@@ -98,7 +98,7 @@ abstract Efl.Object
get {
}
values {
- parent: Efl.Object; [[The new parent.]]
+ parent: Efl.Object @nullable; [[The new parent.]]
}
}
@property name {
@@ -115,7 +115,7 @@ abstract Efl.Object
get {
}
values {
- name: string; [[The name.]]
+ name: string @nullable; [[The name.]]
}
}
@property comment {
@@ -220,13 +220,13 @@ abstract Efl.Object
params {
klass : const(Efl.Class); [[The class identifier to search for.]]
}
- return : Efl.Object; [[Object from the provider list.]]
+ return : Efl.Object @nullable; [[Object from the provider list.]]
}
constructor {
[[Implement this method to provide optional initialization code for your object.
See the Life Cycle section in this class' description.]]
- return: Efl.Object; [[The new object, can be $NULL if aborted.]]
+ return: Efl.Object @nullable; [[The new object, can be $NULL if aborted.]]
}
destructor {
[[Implement this method to provide deinitialization code for your object if you need it.
@@ -249,7 +249,7 @@ abstract Efl.Object
This is an optimization and implementing this method is optional if you
already perform all your initialization in the @.constructor method.
See the Life Cycle section in this class' description.]]
- return: Efl.Object; [[The new object. Return $NULL to abort object creation.]]
+ return: Efl.Object @nullable; [[The new object. Return $NULL to abort object creation.]]
}
invalidate {
[[Implement this method to perform special actions when your object loses
diff --git a/src/lib/evas/canvas/efl_canvas_animation.eo b/src/lib/evas/canvas/efl_canvas_animation.eo
index b7bcb0452f..c3bb5c8088 100644
--- a/src/lib/evas/canvas/efl_canvas_animation.eo
+++ b/src/lib/evas/canvas/efl_canvas_animation.eo
@@ -97,7 +97,7 @@ class Efl.Canvas.Animation extends Efl.Object implements Efl.Playable
get {
}
values {
- interpolator: Efl.Interpolator; [[Mapping function. By default it is $NULL (linear mapping).]]
+ interpolator: Efl.Interpolator @nullable; [[Mapping function. By default it is $NULL (linear mapping).]]
}
}
animation_apply {
diff --git a/src/lib/evas/canvas/efl_canvas_object.eo b/src/lib/evas/canvas/efl_canvas_object.eo
index 1ae85dd940..c54910c249 100644
--- a/src/lib/evas/canvas/efl_canvas_object.eo
+++ b/src/lib/evas/canvas/efl_canvas_object.eo
@@ -23,7 +23,7 @@ abstract Efl.Canvas.Object extends Efl.Loop_Consumer implements Efl.Gfx.Entity,
See @.pointer_mode.get and @.pointer_mode.set for more explanation.
]]
keys {
- dev: Efl.Input.Device; [[The pointer device to set/get the mode. Use $null for the default pointer.]]
+ dev: Efl.Input.Device @nullable; [[The pointer device to set/get the mode. Use $null for the default pointer.]]
}
values {
pointer_mode: Efl.Input.Object_Pointer_Mode; [[The pointer mode]]
@@ -211,7 +211,7 @@ abstract Efl.Canvas.Object extends Efl.Loop_Consumer implements Efl.Gfx.Entity,
seat_focus_check @beta {
[[ Check if this object is focused by a given seat ]]
params {
- @in seat: Efl.Input.Device; [[The seat to check if the object is focused. Use $null for the default seat.]]
+ @in seat: Efl.Input.Device @nullable; [[The seat to check if the object is focused. Use $null for the default seat.]]
}
return: bool; [[$true if focused or $false otherwise.]]
}
@@ -226,7 +226,7 @@ abstract Efl.Canvas.Object extends Efl.Loop_Consumer implements Efl.Gfx.Entity,
Note: The old focus APIs still work, however they will only act on the default seat.
]]
params {
- @in seat: Efl.Input.Device; [[The seat that should be added to the focus list. Use $null for the default
+ @in seat: Efl.Input.Device @nullable; [[The seat that should be added to the focus list. Use $null for the default
seat.]]
}
return: bool; [[$true if the focus has been set or $false otherwise.]]
@@ -236,7 +236,7 @@ abstract Efl.Canvas.Object extends Efl.Loop_Consumer implements Efl.Gfx.Entity,
[[ Remove a seat from the focus list.
]]
params {
- @in seat: Efl.Input.Device; [[The seat that should be removed from the focus list. Use $null for the
+ @in seat: Efl.Input.Device @nullable; [[The seat that should be removed from the focus list. Use $null for the
default seat.]]
}
return: bool; [[$true if the seat was removed from the focus list or $false otherwise.]]
@@ -387,7 +387,7 @@ abstract Efl.Canvas.Object extends Efl.Loop_Consumer implements Efl.Gfx.Entity,
get {
}
values {
- parent: Efl.Canvas.Object; [[The parent smart object of $obj or $null.]]
+ parent: Efl.Canvas.Object @nullable; [[The parent smart object of $obj or $null.]]
}
}
@property paragraph_direction {
diff --git a/src/lib/evas/canvas/efl_canvas_rotate_animation.eo b/src/lib/evas/canvas/efl_canvas_rotate_animation.eo
index aa79e28a2f..f0d480516d 100644
--- a/src/lib/evas/canvas/efl_canvas_rotate_animation.eo
+++ b/src/lib/evas/canvas/efl_canvas_rotate_animation.eo
@@ -30,7 +30,7 @@ class Efl.Canvas.Rotate_Animation extends Efl.Canvas.Animation
values {
from_degree: double; [[Initial rotation (from 0 to 360). 0 means no rotation.]]
to_degree: double; [[Ending rotation (from 0 to 360). 0 means no rotation.]]
- pivot: Efl.Canvas.Object; [[Object to use as pivot. $NULL means the animated object itself.]]
+ pivot: Efl.Canvas.Object @nullable; [[Object to use as pivot. $NULL means the animated object itself.]]
center_point: Eina.Vector2; [[Position in pixels of the pivot point inside the pivot object.
$[(0,0)] means the upper-left corner.]]
}
diff --git a/src/lib/evas/canvas/efl_canvas_scale_animation.eo b/src/lib/evas/canvas/efl_canvas_scale_animation.eo
index d0b890a2f4..d25f651adb 100644
--- a/src/lib/evas/canvas/efl_canvas_scale_animation.eo
+++ b/src/lib/evas/canvas/efl_canvas_scale_animation.eo
@@ -31,7 +31,7 @@ class Efl.Canvas.Scale_Animation extends Efl.Canvas.Animation
values {
from_scale: Eina.Vector2; [[Initial scale value.]]
to_scale: Eina.Vector2; [[Ending scale value.]]
- pivot: Efl.Canvas.Object; [[Object to use as pivot. $NULL means the animated object itself.]]
+ pivot: Efl.Canvas.Object @nullable; [[Object to use as pivot. $NULL means the animated object itself.]]
center_point: Eina.Vector2; [[Position in pixels of the pivot point inside the pivot object.
$[(0,0)] means the upper-left corner.]]
}
diff --git a/src/lib/evas/canvas/efl_canvas_scene.eo b/src/lib/evas/canvas/efl_canvas_scene.eo
index b31f0ba3b4..e489bea57c 100644
--- a/src/lib/evas/canvas/efl_canvas_scene.eo
+++ b/src/lib/evas/canvas/efl_canvas_scene.eo
@@ -172,7 +172,7 @@ interface Efl.Canvas.Scene
name: string; [[The name of the seat to find.]]
}
values {
- seat: Efl.Input.Device; [[The device or seat, $null if not found.]]
+ seat: Efl.Input.Device @nullable; [[The device or seat, $null if not found.]]
}
}
/* FIXME Efl.Input.Device is not stable yet*/
@@ -192,7 +192,7 @@ interface Efl.Canvas.Scene
id: int; [[The id of the seat to find.]]
}
values {
- seat: Efl.Input.Device; [[The seat or $null if not found.]]
+ seat: Efl.Input.Device @nullable; [[The seat or $null if not found.]]
}
}
/* FIXME Efl.Input.Device is not stable yet*/
@@ -208,7 +208,7 @@ interface Efl.Canvas.Scene
[[Get the default seat.]]
}
values {
- seat: Efl.Input.Device; [[The default seat or $null if one does not exist.]]
+ seat: Efl.Input.Device @nullable; [[The default seat or $null if one does not exist.]]
}
}
/* FIXME Efl.Input.Device is not stable yet*/
@@ -222,7 +222,7 @@ interface Efl.Canvas.Scene
return: bool; [[$true if a pointer exists for the given seat, otherwise $false.]]
}
keys {
- seat: Efl.Input.Device; [[The seat, or $null to use the default.]]
+ seat: Efl.Input.Device @nullable; [[The seat, or $null to use the default.]]
}
values {
pos: Eina.Position2D; [[The pointer position in pixels.]]
diff --git a/src/lib/evas/canvas/efl_canvas_textblock.eo b/src/lib/evas/canvas/efl_canvas_textblock.eo
index b4ef328c14..b242752df9 100644
--- a/src/lib/evas/canvas/efl_canvas_textblock.eo
+++ b/src/lib/evas/canvas/efl_canvas_textblock.eo
@@ -65,7 +65,7 @@ class Efl.Canvas.Textblock extends Efl.Canvas.Object implements Efl.Text,
set {}
get {}
values {
- delim: string; [[A null terminated string of delimiters, e.g ",|" or $null if empty.]]
+ delim: string @nullable; [[A null terminated string of delimiters, e.g ",|" or $null if empty.]]
}
}
@property newline_as_paragraph_separator {
diff --git a/src/lib/evas/canvas/efl_gfx_mapping.eo b/src/lib/evas/canvas/efl_gfx_mapping.eo
index f3ac8c3843..a5ded73f94 100644
--- a/src/lib/evas/canvas/efl_gfx_mapping.eo
+++ b/src/lib/evas/canvas/efl_gfx_mapping.eo
@@ -198,7 +198,7 @@ mixin Efl.Gfx.Mapping requires Efl.Object
]]
params {
degrees: double; [[CCW rotation in degrees.]]
- pivot: const(Efl.Gfx.Entity); [[A pivot object for the center point, can be $null.]]
+ pivot: const(Efl.Gfx.Entity) @nullable; [[A pivot object for the center point, can be $null.]]
cx: double; [[X relative coordinate of the center point.]]
cy: double; [[y relative coordinate of the center point.]]
}
@@ -221,7 +221,7 @@ mixin Efl.Gfx.Mapping requires Efl.Object
dx: double; [[Rotation in degrees around X axis (0 to 360).]]
dy: double; [[Rotation in degrees around Y axis (0 to 360).]]
dz: double; [[Rotation in degrees around Z axis (0 to 360).]]
- pivot: const(Efl.Gfx.Entity); [[A pivot object for the center point, can be $null.]]
+ pivot: const(Efl.Gfx.Entity) @nullable; [[A pivot object for the center point, can be $null.]]
cx: double; [[X relative coordinate of the center point.]]
cy: double; [[y relative coordinate of the center point.]]
cz: double; [[Z absolute coordinate of the center point.]]
@@ -244,7 +244,7 @@ mixin Efl.Gfx.Mapping requires Efl.Object
qy: double; [[The y component of the imaginary part of the quaternion.]]
qz: double; [[The z component of the imaginary part of the quaternion.]]
qw: double; [[The w component of the real part of the quaternion.]]
- pivot: const(Efl.Gfx.Entity); [[A pivot object for the center point, can be $null.]]
+ pivot: const(Efl.Gfx.Entity) @nullable; [[A pivot object for the center point, can be $null.]]
cx: double; [[X relative coordinate of the center point.]]
cy: double; [[y relative coordinate of the center point.]]
cz: double; [[Z absolute coordinate of the center point.]]
@@ -265,7 +265,7 @@ mixin Efl.Gfx.Mapping requires Efl.Object
params {
zoomx: double; [[Zoom in X direction]]
zoomy: double; [[Zoom in Y direction]]
- pivot: const(Efl.Gfx.Entity); [[A pivot object for the center point, can be $null.]]
+ pivot: const(Efl.Gfx.Entity) @nullable; [[A pivot object for the center point, can be $null.]]
cx: double; [[X relative coordinate of the center point.]]
cy: double; [[y relative coordinate of the center point.]]
}
@@ -288,7 +288,7 @@ mixin Efl.Gfx.Mapping requires Efl.Object
is $null then this object will be its own pivot.
]]
params {
- pivot: const(Efl.Gfx.Entity); [[A pivot object for the light point, can be $null.]]
+ pivot: const(Efl.Gfx.Entity) @nullable; [[A pivot object for the light point, can be $null.]]
lx: double; [[X relative coordinate in space of light point.]]
ly: double; [[Y relative coordinate in space of light point.]]
lz: double; [[Z absolute coordinate in space of light point.]]
@@ -322,7 +322,7 @@ mixin Efl.Gfx.Mapping requires Efl.Object
is $null then this object will be its own pivot.
]]
params {
- pivot: const(Efl.Gfx.Entity); [[A pivot object for the infinite point, can be $null.]]
+ pivot: const(Efl.Gfx.Entity) @nullable; [[A pivot object for the infinite point, can be $null.]]
px: double; [[The perspective distance X relative coordinate.]]
py: double; [[The perspective distance Y relative coordinate.]]
z0: double; [[The "0" Z plane value.]]
diff --git a/src/lib/evas/canvas/efl_input_focus.eo b/src/lib/evas/canvas/efl_input_focus.eo
index 5de997723f..f5f1919787 100644
--- a/src/lib/evas/canvas/efl_input_focus.eo
+++ b/src/lib/evas/canvas/efl_input_focus.eo
@@ -8,7 +8,7 @@ class Efl.Input.Focus extends Efl.Object implements Efl.Input.Event
@property object {
[[The focused object.]]
values {
- object: Efl.Object; [[The focused object, or $NULL if the event comes from the canvas.]]
+ object: Efl.Object @nullable; [[The focused object, or $NULL if the event comes from the canvas.]]
}
}
}
diff --git a/src/lib/evas/canvas/efl_input_state.eo b/src/lib/evas/canvas/efl_input_state.eo
index bc235158de..fc28deafa2 100644
--- a/src/lib/evas/canvas/efl_input_state.eo
+++ b/src/lib/evas/canvas/efl_input_state.eo
@@ -14,7 +14,7 @@ interface Efl.Input.State
get {}
keys {
mod: Efl.Input.Modifier; [[The modifier key to test.]]
- seat: const(Efl.Input.Device) @optional; [[The seat device, may be $null]]
+ seat: const(Efl.Input.Device) @optional @nullable; [[The seat device, may be $null]]
}
values {
is_set: bool; [[$true if the key modifier is pressed.]]
@@ -26,7 +26,7 @@ interface Efl.Input.State
get {}
keys {
lock: Efl.Input.Lock; [[The lock key to test.]]
- seat: const(Efl.Input.Device) @optional; [[The seat device, may be $null]]
+ seat: const(Efl.Input.Device) @optional @nullable; [[The seat device, may be $null]]
}
values {
is_set: bool; [[$true if the key lock is on.]]
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.