summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_selection_types.eot
diff options
context:
space:
mode:
authorThiep Ha <thiepha@gmail.com>2018-01-08 19:13:10 +0900
committerThiep Ha <thiepha@gmail.com>2018-01-11 17:56:24 +0900
commit763daa870e4013361727be61798f11ffc9ad2594 (patch)
tree1dd99f1555bfc4d765dc967472beccd5632d8c63 /src/lib/elementary/efl_selection_types.eot
parent1b4f330c9c4dea9b08fb227cfca1f69fe59fccd3 (diff)
cnp_dnd: add selection manager
Selection manager implements functions for selection (cnp) and drag and drop. All objects can uses it APIs. It also supports multi-seat.
Diffstat (limited to 'src/lib/elementary/efl_selection_types.eot')
-rw-r--r--src/lib/elementary/efl_selection_types.eot59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_selection_types.eot b/src/lib/elementary/efl_selection_types.eot
new file mode 100644
index 0000000..b7ec99d
--- /dev/null
+++ b/src/lib/elementary/efl_selection_types.eot
@@ -0,0 +1,59 @@
1enum Efl.Selection.Type
2{
3 [[Selection type]]
4 primary, [[Primary text selection (highlighted or selected text)]]
5 secondary, [[Used when primary selection is in use]]
6 dnd, [[Drag and Drop]]
7 clipboard [[Clipboard selection (ctrl+C)]]
8}
9
10enum Efl.Selection.Format
11{
12 [[Selection format]]
13 targets = -1, [[For matching every possible atom]]
14 none = 0x0, [[Content is from outside of Elementary]]
15 text = 0x01, [[Plain unformatted text: Used for things that don't want rich markup]]
16 markup = 0x2, [[Edje textblock markup, including inline images]]
17 image = 0x4, [[Images]]
18 vcard = 0x08, [[Vcards]]
19 html = 0x10 [[Raw HTML-like data (eg. webkit)]]
20}
21
22enum Efl.Selection.Action
23{
24 [[Defines the kind of action associated with the drop data]]
25 unknown, [[Action type is unknown]]
26 copy, [[Copy the data]]
27 move, [[Move the data]]
28 private, [[Private action type]]
29 ask, [[Ask the user what to do]]
30 list, [[List the data]]
31 link, [[Link the data]]
32 description [[Describe the data]]
33}
34
35struct Efl.Selection.Data
36{
37 [[Structure holding the info about selected data]]
38 pos: Eina.Position2D; [[Coordinates of the drop (DND operations only)]]
39 format: Efl.Selection.Format; [[Format of the selection]]
40 data: Eina.Slice; [[Selection data]]
41 action: Efl.Selection.Action; [[Action to perform with the data]]
42 item: Efl.Object; [[Item under the drag position. It is only available for container]]
43}
44
45function Efl.Selection.Data_Ready {
46 [[Function pointer for getting selection]]
47 params {
48 @in obj: Efl.Object; [[Object which requested for the selection]]
49 @in seldata: ptr(Efl.Selection.Data); [[Selection data]]
50 }
51};
52
53struct Efl.Selection.Changed
54{
55 type: Efl.Selection.Type; [[Selection type]]
56 seat: int; [[The seat on which the selection changed, or NULL for "default"]]
57 display: void_ptr; [[The display connection object, NULL under X11]]
58 exist: bool; [[EINA_TRUE if the selection has an owner]]
59}