summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_selection_types.eot
blob: cbe5e0dc7b739e0734f9066485d6afbeda590144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
enum @beta Efl.Ui.Selection_Type
{
   [[Selection type]]
   primary, [[Primary text selection (highlighted or selected text)]]
   secondary, [[Used when primary selection is in use]]
   dnd, [[Drag and Drop]]
   clipboard [[Clipboard selection (ctrl+C)]]
}

enum @beta Efl.Ui.Selection_Format
{
   [[Selection format]]
   targets = -1, [[For matching every possible atom]]
   none = 0x0, [[Content is from outside of EFL]]
   text = 0x01, [[Plain unformatted text: Used for things that don't want rich markup]]
   markup = 0x2, [[Edje textblock markup, including inline images]]
   image = 0x4, [[Images]]
   vcard = 0x08, [[Vcards]]
   html = 0x10 [[Raw HTML-like data (eg. webkit)]]
}

enum @beta Efl.Ui.Selection_Action
{
   [[Defines the kind of action associated with the drop data]]
   unknown, [[Action type is unknown]]
   copy, [[Copy the data]]
   move, [[Move the data]]
   private, [[Private action type]]
   ask, [[Ask the user what to do]]
   list, [[List the data]]
   link, [[Link the data]]
   description [[Describe the data]]
}

struct @beta Efl.Ui.Selection_Data
{
   [[Structure holding the info about selected data]]
   pos: Eina.Position2D; [[Coordinates of the drop (DND operations only)]]
   format: Efl.Ui.Selection_Format; [[Format of the selection]]
   content: Eina.Slice; [[Selection data]]
   action: Efl.Ui.Selection_Action; [[Action to perform with the data]]
   item: Efl.Object; [[Item under the drag position. It is only available for container]]
}

function @beta Efl.Ui.Selection_Data_Ready {
   [[Function pointer for getting selection]]
   params {
      @in obj: Efl.Object; [[Object which requested for the selection]]
      @in seldata: ptr(Efl.Ui.Selection_Data); [[Selection data]]
   }
};

struct @beta Efl.Ui.Selection_Changed
{
   [[Selection-changed specific information.]] // TODO: This needs to be filled in.
   type: Efl.Ui.Selection_Type; [[Selection type]]
   seat: int; [[The seat on which the selection changed, or NULL for "default"]]
   display: void_ptr; [[The display connection object, NULL under X11]]
   exist: bool; [[EINA_TRUE if the selection has an owner]]
}