2 * @defgroup Panes Panes
5 * @image html img/widget/panes/preview-00.png
6 * @image latex img/widget/panes/preview-00.eps width=\textwidth
8 * @image html img/panes.png
9 * @image latex img/panes.eps width=\textwidth
11 * The panes adds a draggable bar between two contents. When dragged
12 * this bar will resize contents size.
14 * Panes can be displayed vertically or horizontally, and contents
15 * size proportion can be customized (homogeneous by default).
17 * Smart callbacks one can listen to:
18 * - "press" - The panes has been pressed (button wasn't released yet).
19 * - "unpressed" - The panes was released after being pressed.
20 * - "clicked" - The panes has been clicked>
21 * - "clicked,double" - The panes has been double clicked
23 * Available styles for it:
26 * Default contents parts of the panes widget that you can use for are:
27 * @li "left" - A leftside content of the panes
28 * @li "right" - A rightside content of the panes
30 * If panes is displayed vertically, left content will be displayed at
33 * Here is an example on its usage:
34 * @li @ref panes_example
43 * Add a new panes widget to the given parent Elementary
46 * @param parent The parent object.
47 * @return a new panes widget handle or @c NULL, on errors.
49 * This function inserts a new panes widget on the canvas.
53 EAPI Evas_Object *elm_panes_add(Evas_Object *parent);
56 * Get the size proportion of panes widget's left side.
58 * @param obj The panes object.
59 * @return float value between 0.0 and 1.0 representing size proportion
62 * @see elm_panes_content_left_size_set() for more details.
66 EAPI double elm_panes_content_left_size_get(const Evas_Object *obj);
69 * Set the size proportion of panes widget's left side.
71 * @param obj The panes object.
72 * @param size Value between 0.0 and 1.0 representing size proportion
75 * By default it's homogeneous, i.e., both sides have the same size.
77 * If something different is required, it can be set with this function.
78 * For example, if the left content should be displayed over
79 * 75% of the panes size, @p size should be passed as @c 0.75.
80 * This way, right content will be resized to 25% of panes size.
82 * If displayed vertically, left content is displayed at top, and
83 * right content at bottom.
85 * @note This proportion will change when user drags the panes bar.
87 * @see elm_panes_content_left_size_get()
91 EAPI void elm_panes_content_left_size_set(Evas_Object *obj, double size);
94 * Set the orientation of a given panes widget.
96 * @param obj The panes object.
97 * @param horizontal Use @c EINA_TRUE to make @p obj to be
98 * @b horizontal, @c EINA_FALSE to make it @b vertical.
100 * Use this function to change how your panes is to be
101 * disposed: vertically or horizontally.
103 * By default it's displayed horizontally.
105 * @see elm_panes_horizontal_get()
109 EAPI void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal);
112 * Retrieve the orientation of a given panes widget.
114 * @param obj The panes object.
115 * @return @c EINA_TRUE, if @p obj is set to be @b horizontal,
116 * @c EINA_FALSE if it's @b vertical (and on errors).
118 * @see elm_panes_horizontal_set() for more details.
122 EAPI Eina_Bool elm_panes_horizontal_get(const Evas_Object *obj);
123 EAPI void elm_panes_fixed_set(Evas_Object *obj, Eina_Bool fixed);
124 EAPI Eina_Bool elm_panes_fixed_get(const Evas_Object *obj);