efl: rename Efl.Selection.* -> Efl.Selection_*

This commit is contained in:
Xavi Artigas 2018-05-23 11:43:22 +02:00 committed by Daniel Kolesa
parent f78c5f3e6c
commit 0e848ccf2d
7 changed files with 45 additions and 45 deletions

View File

@ -7,8 +7,8 @@ mixin Efl.Selection {
selection_set { selection_set {
[[Set the selection data to the object]] [[Set the selection data to the object]]
params { params {
@in type: Efl.Selection.Type; [[Selection Type]] @in type: Efl.Selection_Type; [[Selection Type]]
@in format: Efl.Selection.Format; [[Selection Format]] @in format: Efl.Selection_Format; [[Selection Format]]
@in data: Eina.Slice; @in data: Eina.Slice;
@in seat: uint;[[Specified seat for multiple seats case.]] @in seat: uint;[[Specified seat for multiple seats case.]]
} }
@ -17,29 +17,29 @@ mixin Efl.Selection {
selection_get { selection_get {
[[Get the data from the object that has selection]] [[Get the data from the object that has selection]]
params { params {
@in type: Efl.Selection.Type; [[Selection Type]] @in type: Efl.Selection_Type; [[Selection Type]]
@in format: Efl.Selection.Format; [[Selection Format]] @in format: Efl.Selection_Format; [[Selection Format]]
@in data_func: Efl.Selection.Data_Ready; [[Data ready function pointer]] @in data_func: Efl.Selection_Data_Ready; [[Data ready function pointer]]
@in seat: uint;[[Specified seat for multiple seats case.]] @in seat: uint;[[Specified seat for multiple seats case.]]
} }
} }
selection_clear { selection_clear {
[[Clear the selection data from the object]] [[Clear the selection data from the object]]
params { params {
@in type: Efl.Selection.Type; [[Selection Type]] @in type: Efl.Selection_Type; [[Selection Type]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }
} }
has_owner { has_owner {
[[Determine whether the selection data has owner]] [[Determine whether the selection data has owner]]
params { params {
@in type: Efl.Selection.Type; [[Selection type]] @in type: Efl.Selection_Type; [[Selection type]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }
return: bool; [[EINA_TRUE if there is object owns selection, otherwise EINA_FALSE]] return: bool; [[EINA_TRUE if there is object owns selection, otherwise EINA_FALSE]]
} }
} }
events { events {
selection,changed: Efl.Selection.Changed; [[Called when display server's selection has changed]] selection,changed: Efl.Selection_Changed; [[Called when display server's selection has changed]]
} }
} }

View File

@ -6,8 +6,8 @@ class Efl.Selection_Manager (Efl.Object) {
[[Set selection]] [[Set selection]]
params { params {
@in owner: Efl.Object; [[Seleciton owner]] @in owner: Efl.Object; [[Seleciton owner]]
@in type: Efl.Selection.Type; [[Selection type]] @in type: Efl.Selection_Type; [[Selection type]]
@in format: Efl.Selection.Format; [[Selection format]] @in format: Efl.Selection_Format; [[Selection format]]
@in data: Eina.Slice; [[Selection data]] @in data: Eina.Slice; [[Selection data]]
@in seat: uint @optional;[[Specified seat for multiple seats case.]] @in seat: uint @optional;[[Specified seat for multiple seats case.]]
} }
@ -17,16 +17,16 @@ class Efl.Selection_Manager (Efl.Object) {
[[Get selection]] [[Get selection]]
params { params {
@in request: const(Efl.Object); [[Seleciton owner]] @in request: const(Efl.Object); [[Seleciton owner]]
@in type: Efl.Selection.Type; [[Selection type]] @in type: Efl.Selection_Type; [[Selection type]]
@in format: Efl.Selection.Format; [[Selection Format]] @in format: Efl.Selection_Format; [[Selection Format]]
@in data_func: Efl.Selection.Data_Ready; [[Data ready function pointer]] @in data_func: Efl.Selection_Data_Ready; [[Data ready function pointer]]
@in seat: uint @optional;[[Specified seat for multiple seats case.]] @in seat: uint @optional;[[Specified seat for multiple seats case.]]
} }
} }
selection_clear @beta { selection_clear @beta {
params { params {
@in owner: Efl.Object; [[Seleciton owner]] @in owner: Efl.Object; [[Seleciton owner]]
@in type: Efl.Selection.Type; [[Selection type]] @in type: Efl.Selection_Type; [[Selection type]]
@in seat: uint @optional; [[Specified seat for multiple seats case.]] @in seat: uint @optional; [[Specified seat for multiple seats case.]]
} }
} }
@ -34,7 +34,7 @@ class Efl.Selection_Manager (Efl.Object) {
[[Check if the request object has selection or not]] [[Check if the request object has selection or not]]
params { params {
@in request: Efl.Object; [[Request object]] @in request: Efl.Object; [[Request object]]
@in type: Efl.Selection.Type; [[Selection type]] @in type: Efl.Selection_Type; [[Selection type]]
@in seat: uint @optional; [[Specified seat for multiple seats case.]] @in seat: uint @optional; [[Specified seat for multiple seats case.]]
} }
return: bool; [[EINA_TRUE if the request object has selection, otherwise, EINA_FALSE]] return: bool; [[EINA_TRUE if the request object has selection, otherwise, EINA_FALSE]]
@ -48,9 +48,9 @@ class Efl.Selection_Manager (Efl.Object) {
]] ]]
params { params {
@in drag_obj: Efl.Object; [[Drag object]] @in drag_obj: Efl.Object; [[Drag object]]
@in format: Efl.Selection.Format; [[Data format]] @in format: Efl.Selection_Format; [[Data format]]
@in data: Eina.Slice; [[Data to transfer]] @in data: Eina.Slice; [[Data to transfer]]
@in action: Efl.Selection.Action; [[Action when data is transferred]] @in action: Efl.Selection_Action; [[Action when data is transferred]]
@in icon_func: Efl.Dnd.Drag_Icon_Create; [[Function pointer to create icon]] @in icon_func: Efl.Dnd.Drag_Icon_Create; [[Function pointer to create icon]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }
@ -59,7 +59,7 @@ class Efl.Selection_Manager (Efl.Object) {
[[This sets the action for the drag]] [[This sets the action for the drag]]
params { params {
@in drag_obj: Efl.Object; [[Drag object]] @in drag_obj: Efl.Object; [[Drag object]]
@in action: Efl.Selection.Action; [[Drag action]] @in action: Efl.Selection_Action; [[Drag action]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }
} }
@ -102,7 +102,7 @@ class Efl.Selection_Manager (Efl.Object) {
- EFL_UI_DND_DROP_DRAG_DROP.]] - EFL_UI_DND_DROP_DRAG_DROP.]]
params { params {
@in target_obj: Efl.Object; [[Drop target]] @in target_obj: Efl.Object; [[Drop target]]
@in format: Efl.Selection.Format; [[Accepted data format]] @in format: Efl.Selection_Format; [[Accepted data format]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }
return: bool; [[$true on success, $false otherwise]] return: bool; [[$true on success, $false otherwise]]
@ -111,7 +111,7 @@ class Efl.Selection_Manager (Efl.Object) {
[[Remove a dropable target]] [[Remove a dropable target]]
params { params {
@in target_obj: Efl.Object; [[Drop target]] @in target_obj: Efl.Object; [[Drop target]]
@in format: Efl.Selection.Format; [[Accepted data format]] @in format: Efl.Selection_Format; [[Accepted data format]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }
} }
@ -119,7 +119,7 @@ class Efl.Selection_Manager (Efl.Object) {
[[Add dropable target for a container in which items can drop to it]] [[Add dropable target for a container in which items can drop to it]]
params { params {
@in cont: Efl.Object; [[Container object]] @in cont: Efl.Object; [[Container object]]
@in format: Efl.Selection.Format; [[Accepted data formats]] @in format: Efl.Selection_Format; [[Accepted data formats]]
@in item_func: Efl.Dnd.Item_Get; [[Get item at specific position]] @in item_func: Efl.Dnd.Item_Get; [[Get item at specific position]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }

View File

@ -1,4 +1,4 @@
enum Efl.Selection.Type enum Efl.Selection_Type
{ {
[[Selection type]] [[Selection type]]
primary, [[Primary text selection (highlighted or selected text)]] primary, [[Primary text selection (highlighted or selected text)]]
@ -7,7 +7,7 @@ enum Efl.Selection.Type
clipboard [[Clipboard selection (ctrl+C)]] clipboard [[Clipboard selection (ctrl+C)]]
} }
enum Efl.Selection.Format enum Efl.Selection_Format
{ {
[[Selection format]] [[Selection format]]
targets = -1, [[For matching every possible atom]] targets = -1, [[For matching every possible atom]]
@ -19,7 +19,7 @@ enum Efl.Selection.Format
html = 0x10 [[Raw HTML-like data (eg. webkit)]] html = 0x10 [[Raw HTML-like data (eg. webkit)]]
} }
enum Efl.Selection.Action enum Efl.Selection_Action
{ {
[[Defines the kind of action associated with the drop data]] [[Defines the kind of action associated with the drop data]]
unknown, [[Action type is unknown]] unknown, [[Action type is unknown]]
@ -32,27 +32,27 @@ enum Efl.Selection.Action
description [[Describe the data]] description [[Describe the data]]
} }
struct Efl.Selection.Data struct Efl.Selection_Data
{ {
[[Structure holding the info about selected data]] [[Structure holding the info about selected data]]
pos: Eina.Position2D; [[Coordinates of the drop (DND operations only)]] pos: Eina.Position2D; [[Coordinates of the drop (DND operations only)]]
format: Efl.Selection.Format; [[Format of the selection]] format: Efl.Selection_Format; [[Format of the selection]]
content: Eina.Slice; [[Selection data]] content: Eina.Slice; [[Selection data]]
action: Efl.Selection.Action; [[Action to perform with the data]] action: Efl.Selection_Action; [[Action to perform with the data]]
item: Efl.Object; [[Item under the drag position. It is only available for container]] item: Efl.Object; [[Item under the drag position. It is only available for container]]
} }
function Efl.Selection.Data_Ready { function Efl.Selection_Data_Ready {
[[Function pointer for getting selection]] [[Function pointer for getting selection]]
params { params {
@in obj: Efl.Object; [[Object which requested for the selection]] @in obj: Efl.Object; [[Object which requested for the selection]]
@in seldata: ptr(Efl.Selection.Data); [[Selection data]] @in seldata: ptr(Efl.Selection_Data); [[Selection data]]
} }
}; };
struct Efl.Selection.Changed struct Efl.Selection_Changed
{ {
type: Efl.Selection.Type; [[Selection type]] type: Efl.Selection_Type; [[Selection type]]
seat: int; [[The seat on which the selection changed, or NULL for "default"]] seat: int; [[The seat on which the selection changed, or NULL for "default"]]
display: void_ptr; [[The display connection object, NULL under X11]] display: void_ptr; [[The display connection object, NULL under X11]]
exist: bool; [[EINA_TRUE if the selection has an owner]] exist: bool; [[EINA_TRUE if the selection has an owner]]

View File

@ -11,9 +11,9 @@ mixin Efl.Ui.Dnd {
- EFL_UI_DND_EVENT_DRAG_DONE - EFL_UI_DND_EVENT_DRAG_DONE
]] ]]
params { params {
@in format: Efl.Selection.Format; [[The data format]] @in format: Efl.Selection_Format; [[The data format]]
@in data: Eina.Slice; [[The drag data]] @in data: Eina.Slice; [[The drag data]]
@in action: Efl.Selection.Action; [[Action when data is transferred]] @in action: Efl.Selection_Action; [[Action when data is transferred]]
@in icon_func: Efl.Dnd.Drag_Icon_Create; [[Function pointer to create icon]] @in icon_func: Efl.Dnd.Drag_Icon_Create; [[Function pointer to create icon]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }
@ -21,7 +21,7 @@ mixin Efl.Ui.Dnd {
drag_action_set { drag_action_set {
[[Set the action for the drag]] [[Set the action for the drag]]
params { params {
@in action: Efl.Selection.Action; [[Drag action]] @in action: Efl.Selection_Action; [[Drag action]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }
} }
@ -39,14 +39,14 @@ mixin Efl.Ui.Dnd {
- EFL_UI_DND_EVENT_DRAG_POS - EFL_UI_DND_EVENT_DRAG_POS
- EFL_UI_DND_EVENT_DRAG_DROP.]] - EFL_UI_DND_EVENT_DRAG_DROP.]]
params { params {
@in format: Efl.Selection.Format; [[Accepted data format]] @in format: Efl.Selection_Format; [[Accepted data format]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }
} }
drop_target_del { drop_target_del {
[[Delete the dropable status from object]] [[Delete the dropable status from object]]
params { params {
@in format: Efl.Selection.Format; [[Accepted data format]] @in format: Efl.Selection_Format; [[Accepted data format]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }
} }
@ -58,6 +58,6 @@ mixin Efl.Ui.Dnd {
drag,enter: void; [[called when the drag object enters this object]] drag,enter: void; [[called when the drag object enters this object]]
drag,leave: void; [[called when the drag object leaves this object]] drag,leave: void; [[called when the drag object leaves this object]]
drag,pos: Efl.Dnd.Drag_Pos; [[called when the drag object changes drag position]] drag,pos: Efl.Dnd.Drag_Pos; [[called when the drag object changes drag position]]
drag,drop: Efl.Selection.Data; [[called when the drag object dropped on this object]] drag,drop: Efl.Selection_Data; [[called when the drag object dropped on this object]]
} }
} }

View File

@ -34,7 +34,7 @@ mixin Efl.Ui.Dnd_Container {
} }
drop_item_add { drop_item_add {
params { params {
@in format: Efl.Selection.Format; [[Accepted data formats]] @in format: Efl.Selection_Format; [[Accepted data formats]]
@in item_func: Efl.Dnd.Item_Get; [[Get item at specific position]] @in item_func: Efl.Dnd.Item_Get; [[Get item at specific position]]
@in seat: uint; [[Specified seat for multiple seats case.]] @in seat: uint; [[Specified seat for multiple seats case.]]
} }

View File

@ -14,9 +14,9 @@ function Efl.Dnd.Drag_Data_Get {
[[Function pointer for getting data and format at the drag side.]] [[Function pointer for getting data and format at the drag side.]]
params { params {
@in obj: Efl.Canvas.Object; [[The container object]] @in obj: Efl.Canvas.Object; [[The container object]]
@out format: Efl.Selection.Format; [[Data format]] @out format: Efl.Selection_Format; [[Data format]]
@out drag_data: Eina.Rw_Slice; [[Data]] @out drag_data: Eina.Rw_Slice; [[Data]]
@out action: Efl.Selection.Action; [[The drag action]] @out action: Efl.Selection_Action; [[The drag action]]
} }
}; };
@ -46,13 +46,13 @@ struct Efl.Dnd.Drag_Accept {
struct Efl.Dnd.Drag_Pos { struct Efl.Dnd.Drag_Pos {
pos: Eina.Position2D; [[Evas Coordinate]] pos: Eina.Position2D; [[Evas Coordinate]]
action: Efl.Selection.Action; [[The drag action]] action: Efl.Selection_Action; [[The drag action]]
format: Efl.Selection.Format; [[The drag format]] format: Efl.Selection_Format; [[The drag format]]
item: Efl.Canvas.Object; [[The item object. It is only available for container object.]] item: Efl.Canvas.Object; [[The item object. It is only available for container object.]]
} }
struct Efl.Dnd.Drag_Item_Container_Drop { struct Efl.Dnd.Drag_Item_Container_Drop {
item: Efl.Canvas.Object; [[The item object]] item: Efl.Canvas.Object; [[The item object]]
data: Efl.Selection.Data; [[The selection data]] data: Efl.Selection_Data; [[The selection data]]
pos: Eina.Position2D; [[Position relative to item (left (-1), middle (0), right (1)]] pos: Eina.Position2D; [[Position relative to item (left (-1), middle (0), right (1)]]
} }

View File

@ -59,7 +59,7 @@ class Efl.Ui.Text (Efl.Ui.Layout.Object, Elm.Interface_Scrollable, Efl.Ui.Clicka
} }
} }
@property cnp_mode { @property cnp_mode {
/* FIXME: Efl.Selection.Format does not allow markup without images! */ /* FIXME: Efl.Selection_Format does not allow markup without images! */
set { set {
[[Control pasting of text and images for the widget. [[Control pasting of text and images for the widget.
@ -78,7 +78,7 @@ class Efl.Ui.Text (Efl.Ui.Layout.Object, Elm.Interface_Scrollable, Efl.Ui.Clicka
]] ]]
} }
values { values {
format: Efl.Selection.Format; [[Format for copy & paste.]] format: Efl.Selection_Format; [[Format for copy & paste.]]
} }
} }
@property input_panel_language { @property input_panel_language {