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 {}
|
||||
values {
|
||||
version: ptr(const(Efl.Version)); [[Efl build version]]
|
||||
version: const(Efl.Version) @by_ref; [[Efl build version]]
|
||||
}
|
||||
}
|
||||
@property efl_version {
|
||||
|
@ -36,7 +36,7 @@ abstract Efl.App extends Efl.Loop implements Efl.Core.Command_Line
|
|||
]]
|
||||
get {}
|
||||
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 {
|
||||
[[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.]]
|
||||
return: ptr(Eina.Promise) @move; [[The new promise.]]
|
||||
Note: You should not use eina_promise_data_set as this function rely on controlling the promise data.]]
|
||||
return: Eina.Promise @move @by_ref; [[The new promise.]]
|
||||
}
|
||||
}
|
||||
implements {
|
||||
|
|
|
@ -23,7 +23,7 @@ mixin Efl.File requires Efl.Object {
|
|||
]]
|
||||
}
|
||||
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 {
|
||||
|
|
|
@ -35,7 +35,7 @@ interface Efl.File_Save {
|
|||
obligatory).]]
|
||||
@in key: string; [[The image key in the file (if an Eet one), or $null,
|
||||
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]]
|
||||
}
|
||||
|
|
|
@ -19,14 +19,14 @@ enum @beta Efl.Access.Text_Clip_Type
|
|||
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]]
|
||||
name: string; [[Text attribute name]]
|
||||
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]]
|
||||
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
|
||||
emit the event.]]
|
||||
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 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,
|
||||
|
@ -342,7 +342,7 @@ abstract Efl.Object
|
|||
event_callback_forwarder_del {
|
||||
[[Remove an event callback forwarder for a specified event and object.]]
|
||||
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]]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue