diff options
Diffstat (limited to 'src/lib/elementary/efl_selection_types.eot')
-rw-r--r-- | src/lib/elementary/efl_selection_types.eot | 59 |
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 0000000000..e5849597fd --- /dev/null +++ b/src/lib/elementary/efl_selection_types.eot @@ -0,0 +1,59 @@ +enum Efl.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 Efl.Selection_Format +{ + [[Selection format]] + targets = -1, [[For matching every possible atom]] + none = 0x0, [[Content is from outside of Elementary]] + 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 Efl.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 Efl.Selection_Data +{ + [[Structure holding the info about selected data]] + pos: Eina.Position2D; [[Coordinates of the drop (DND operations only)]] + format: Efl.Selection_Format; [[Format of the selection]] + content: Eina.Slice; [[Selection 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]] +} + +function Efl.Selection_Data_Ready { + [[Function pointer for getting selection]] + params { + @in obj: Efl.Object; [[Object which requested for the selection]] + @in seldata: ptr(Efl.Selection_Data); [[Selection data]] + } +}; + +struct Efl.Selection_Changed +{ + type: Efl.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]] +} |