forked from enlightenment/efl
efl: replace usage of ptr() in all stable APIs
This commit is contained in:
parent
a5c7f92a52
commit
31658e6e14
|
@ -26,7 +26,7 @@ abstract Efl.App extends Efl.Loop implements Efl.Core.Command_Line
|
||||||
]]
|
]]
|
||||||
get {}
|
get {}
|
||||||
values {
|
values {
|
||||||
version: ptr(const(Efl.Version)); [[Efl build version]]
|
version: const(Efl.Version) @by_ref; [[Efl build version]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property efl_version {
|
@property efl_version {
|
||||||
|
@ -36,7 +36,7 @@ abstract Efl.App extends Efl.Loop implements Efl.Core.Command_Line
|
||||||
]]
|
]]
|
||||||
get {}
|
get {}
|
||||||
values {
|
values {
|
||||||
version: ptr(const(Efl.Version)); [[Efl version]]
|
version: const(Efl.Version) @by_ref; [[Efl version]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,8 +51,8 @@ abstract Efl.Loop_Consumer extends Efl.Object
|
||||||
promise_new @const {
|
promise_new @const {
|
||||||
[[Create a new promise with the scheduler coming from the loop provided by this object.
|
[[Create a new promise with the scheduler coming from the loop provided by this object.
|
||||||
|
|
||||||
Note: You should not use eina_promise_data_set as this function rely on controlling the promise data.]]
|
Note: You should not use eina_promise_data_set as this function rely on controlling the promise data.]]
|
||||||
return: ptr(Eina.Promise) @move; [[The new promise.]]
|
return: Eina.Promise @move @by_ref; [[The new promise.]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
implements {
|
implements {
|
||||||
|
|
|
@ -23,7 +23,7 @@ mixin Efl.File requires Efl.Object {
|
||||||
]]
|
]]
|
||||||
}
|
}
|
||||||
values {
|
values {
|
||||||
f: ptr(const(Eina.File)); [[The handle to the @Eina.File that will be used]]
|
f: const(Eina.File) @by_ref; [[The handle to the @Eina.File that will be used]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property file {
|
@property file {
|
||||||
|
|
|
@ -35,7 +35,7 @@ interface Efl.File_Save {
|
||||||
obligatory).]]
|
obligatory).]]
|
||||||
@in key: string; [[The image key in the file (if an Eet one), or $null,
|
@in key: string; [[The image key in the file (if an Eet one), or $null,
|
||||||
otherwise.]]
|
otherwise.]]
|
||||||
@in info: const(ptr(Efl.File_Save_Info)); [[The flags to be used ($null for defaults).]]
|
@in info: const(Efl.File_Save_Info) @by_ref; [[The flags to be used ($null for defaults).]]
|
||||||
}
|
}
|
||||||
return: bool; [[$true on success, $false otherwise]]
|
return: bool; [[$true on success, $false otherwise]]
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,14 +19,14 @@ enum @beta Efl.Access.Text_Clip_Type
|
||||||
both [[Both clip types]]
|
both [[Both clip types]]
|
||||||
}
|
}
|
||||||
|
|
||||||
struct @free(elm_atspi_text_text_attribute_free) Efl.Access.Text_Attribute
|
struct @beta @free(elm_atspi_text_text_attribute_free) Efl.Access.Text_Attribute
|
||||||
{
|
{
|
||||||
[[Text attribute]]
|
[[Text attribute]]
|
||||||
name: string; [[Text attribute name]]
|
name: string; [[Text attribute name]]
|
||||||
value: string; [[Text attribute value]]
|
value: string; [[Text attribute value]]
|
||||||
}
|
}
|
||||||
|
|
||||||
struct @free(elm_atspi_text_text_range_free) Efl.Access.Text_Range
|
struct @beta @free(elm_atspi_text_text_range_free) Efl.Access.Text_Range
|
||||||
{
|
{
|
||||||
[[Text range]]
|
[[Text range]]
|
||||||
start_offset: int; [[Range start offset]]
|
start_offset: int; [[Range start offset]]
|
||||||
|
|
|
@ -330,7 +330,7 @@ abstract Efl.Object
|
||||||
by inserting a handler at the right position in the stack of event handler on the object that
|
by inserting a handler at the right position in the stack of event handler on the object that
|
||||||
emit the event.]]
|
emit the event.]]
|
||||||
params {
|
params {
|
||||||
@in desc: ptr(const(Efl.Event_Description)); [[The description of the event to listen to]]
|
@in desc: const(Efl.Event_Description) @by_ref; [[The description of the event to listen to]]
|
||||||
@in priority: Efl.Callback_Priority; [[The priority at which to insert the event forwarder handler
|
@in priority: Efl.Callback_Priority; [[The priority at which to insert the event forwarder handler
|
||||||
in the existing list of handler on the source of event object. The lower the number, the higher
|
in the existing list of handler on the source of event object. The lower the number, the higher
|
||||||
the priority. As a shortcut @Efl.Callback_Priority_Before,
|
the priority. As a shortcut @Efl.Callback_Priority_Before,
|
||||||
|
@ -342,7 +342,7 @@ abstract Efl.Object
|
||||||
event_callback_forwarder_del {
|
event_callback_forwarder_del {
|
||||||
[[Remove an event callback forwarder for a specified event and object.]]
|
[[Remove an event callback forwarder for a specified event and object.]]
|
||||||
params {
|
params {
|
||||||
@in desc: ptr(const(Efl.Event_Description)); [[The description of the event to listen to]]
|
@in desc: const(Efl.Event_Description) @by_ref; [[The description of the event to listen to]]
|
||||||
@in new_obj: Efl.Object; [[The object to emit events from]]
|
@in new_obj: Efl.Object; [[The object to emit events from]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue