summaryrefslogtreecommitdiff
path: root/src/lib/elm_panes_eo.h
blob: 1b69edec516f791387b1620908b14de31f1f7299 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#define ELM_OBJ_PANES_CLASS elm_obj_panes_class_get()

const Eo_Class *elm_obj_panes_class_get(void) EINA_CONST;

extern EAPI Eo_Op ELM_OBJ_PANES_BASE_ID;

enum
{
   ELM_OBJ_PANES_SUB_ID_CONTENT_LEFT_SIZE_GET,
   ELM_OBJ_PANES_SUB_ID_CONTENT_LEFT_SIZE_SET,
   ELM_OBJ_PANES_SUB_ID_CONTENT_RIGHT_SIZE_GET,
   ELM_OBJ_PANES_SUB_ID_CONTENT_RIGHT_SIZE_SET,
   ELM_OBJ_PANES_SUB_ID_HORIZONTAL_SET,
   ELM_OBJ_PANES_SUB_ID_HORIZONTAL_GET,
   ELM_OBJ_PANES_SUB_ID_FIXED_SET,
   ELM_OBJ_PANES_SUB_ID_FIXED_GET,
   ELM_OBJ_PANES_SUB_ID_LAST
};

#define ELM_OBJ_PANES_ID(sub_id) (ELM_OBJ_PANES_BASE_ID + sub_id)


/**
 * @def elm_obj_panes_content_left_size_get
 * @since 1.8
 *
 * Get the size proportion of panes widget's left side.
 *
 * @param[out] ret
 *
 * @see elm_panes_content_left_size_get
 *
 * @ingroup Panes
 */
#define elm_obj_panes_content_left_size_get(ret) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_CONTENT_LEFT_SIZE_GET), EO_TYPECHECK(double *, ret)

/**
 * @def elm_obj_panes_content_left_size_set
 * @since 1.8
 *
 * Set the size proportion of panes widget's left side.
 *
 * @param[in] size
 *
 * @see elm_panes_content_left_size_set
 *
 * @ingroup Panes
 */
#define elm_obj_panes_content_left_size_set(size) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_CONTENT_LEFT_SIZE_SET), EO_TYPECHECK(double, size)

/**
 * @def elm_obj_panes_content_right_size_get
 * @since 1.8
 *
 * Get the size proportion of panes widget's right side.
 *
 * @param[out] ret
 *
 * @see elm_panes_content_right_size_get
 *
 * @ingroup Panes
 */
#define elm_obj_panes_content_right_size_get(ret) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_CONTENT_RIGHT_SIZE_GET), EO_TYPECHECK(double *, ret)

/**
 * @def elm_obj_panes_content_right_size_set
 * @since 1.8
 *
 * Set the size proportion of panes widget's right side.
 *
 * @param[in] size
 *
 * @see elm_panes_content_right_size_set
 *
 * @ingroup Panes
 */
#define elm_obj_panes_content_right_size_set(size) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_CONTENT_RIGHT_SIZE_SET), EO_TYPECHECK(double, size)

/**
 * @def elm_obj_panes_horizontal_set
 * @since 1.8
 *
 * Set how to split and dispose each content.
 *
 * @param[in] horizontal
 *
 * @see elm_panes_horizontal_set
 *
 * @ingroup Panes
 */
#define elm_obj_panes_horizontal_set(horizontal) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_HORIZONTAL_SET), EO_TYPECHECK(Eina_Bool, horizontal)

/**
 * @def elm_obj_panes_horizontal_get
 * @since 1.8
 *
 * Retrieve the split direction of a given panes widget.
 *
 * @param[out] ret
 *
 * @see elm_panes_horizontal_get
 *
 * @ingroup Panes
 */
#define elm_obj_panes_horizontal_get(ret) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_HORIZONTAL_GET), EO_TYPECHECK(Eina_Bool *, ret)

/**
 * @def elm_obj_panes_fixed_set
 * @since 1.8
 *
 * Set whether the left and right panes can be resized by user interaction.
 *
 * @param[in] fixed
 *
 * @see elm_panes_fixed_set
 *
 * @ingroup Panes
 */
#define elm_obj_panes_fixed_set(fixed) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_FIXED_SET), EO_TYPECHECK(Eina_Bool, fixed)

/**
 * @def elm_obj_panes_fixed_get
 * @since 1.8
 *
 * Retrieve the resize mode for the panes of a given panes widget.
 *
 * @param[out] ret
 *
 * @see elm_panes_fixed_get
 *
 * @ingroup Panes
 */
#define elm_obj_panes_fixed_get(ret) ELM_OBJ_PANES_ID(ELM_OBJ_PANES_SUB_ID_FIXED_GET), EO_TYPECHECK(Eina_Bool *, ret)