summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_interface_fileselector.h
blob: 2e015553245aea572d04c3e57c19f35ab8f4e997 (plain) (blame)
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
61
62
63
64
65
66
67
68
69
70
71
#ifndef ELM_INTEFARCE_FILESELECTOR_H
#define ELM_INTEFARCE_FILESELECTOR_H

#ifdef EFL_EO_API_SUPPORT
#include "elm_interface_fileselector_eo.h"
#endif
#ifndef EFL_NOLEGACY_API_SUPPORT
#include "elm_interface_fileselector_eo.legacy.h"
#endif

#define ELM_FILESELECTOR_INTERFACE_CHECK(obj, ...) \
  if (EINA_UNLIKELY(!efl_isa(obj, ELM_INTERFACE_FILESELECTOR_INTERFACE))) \
    { \
       ERR("The object (%p) doesn't implement the Elementary fileselector" \
            " interface", obj); \
       if (getenv("ELM_ERROR_ABORT")) abort(); \
       return __VA_ARGS__; \
    }

void
_elm_fileselector_path_set_internal(Evas_Object *obj, const char *path);

const char *
_elm_fileselector_path_get_internal(const Evas_Object *obj);

Eina_Bool
_elm_fileselector_selected_set_internal(Evas_Object *obj, const char *_path);

const char *
_elm_fileselector_selected_get_internal(const Evas_Object *obj);

const Eina_List *
_elm_fileselector_selected_paths_get_internal(const Evas_Object* obj);


void
_elm_fileselector_entry_path_set_internal(Evas_Object *obj, const char *path);

const char *
_elm_fileselector_entry_path_get_internal(const Evas_Object *obj);

Eina_Bool
_elm_fileselector_entry_selected_set_internal(Evas_Object *obj, const char *path);

const char *
_elm_fileselector_entry_selected_get_internal(const Evas_Object *obj);


void
_elm_fileselector_button_path_set_internal(Evas_Object *obj, const char *path);

const char *
_elm_fileselector_button_path_get_internal(const Evas_Object *obj);

Eina_Bool
_elm_fileselector_button_selected_set_internal(Evas_Object *obj, const char *_path);

const char *
_elm_fileselector_button_selected_get_internal(const Evas_Object *obj);

const Eina_List *
_elm_fileselector_button_selected_paths_get_internal(const Evas_Object *obj);


void
_event_to_legacy_call(Eo *obj, const Efl_Event_Description *evt_desc, void *event_info);

void
_model_event_call(Eo *obj, const Efl_Event_Description *evt_desc, Efl_Model *model, const char *path);

#endif