Tizen Native API
|
Functions | |
Evas_Object * | elm_panes_add (Evas_Object *parent) |
Adds a new panes widget to the given parent Elementary (container) object. | |
void | elm_panes_fixed_set (Evas_Object *obj, Eina_Bool fixed) |
Sets whether the left and right panes resize homogeneously. | |
Eina_Bool | elm_panes_fixed_get (const Evas_Object *obj) |
Gets the resize mode for the panes of a given panes widget. | |
double | elm_panes_content_left_size_get (const Evas_Object *obj) |
Gets the size proportion of panes widget's left side. | |
void | elm_panes_content_left_size_set (Evas_Object *obj, double size) |
Sets the size proportion of the panes widget's left side. | |
double | elm_panes_content_right_size_get (const Evas_Object *obj) |
Gets the size proportion of the panes widget's right side. | |
void | elm_panes_content_right_size_set (Evas_Object *obj, double size) |
Sets the size proportion of the panes widget's right side. | |
void | elm_panes_horizontal_set (Evas_Object *obj, Eina_Bool horizontal) |
Sets the orientation of a given panes widget. | |
Eina_Bool | elm_panes_horizontal_get (const Evas_Object *obj) |
Gets the orientation of a given panes widget. |
The panes widget adds a draggable bar between two contents. When dragged this bar resizes contents' size.
Panes can be displayed vertically or horizontally, and contents size proportion can be customized (homogeneous by default).
This widget inherits from the Layout one, so that all the functions acting on it also work for panes objects.
This widget emits the following signals, besides the ones sent from Layout :
"press"
- The panes have been pressed (button isn't released yet)."unpressed"
- The panes are released after being pressed."clicked"
- The panes have been clicked."clicked,double"
- The panes have been double clicked.Available styles for it:
"default"
The default content parts of the panes widget that you can use are:
If panes are displayed vertically, left content is displayed on top.
Supported common elm_object APIs.
Evas_Object* elm_panes_add | ( | Evas_Object * | parent | ) |
Adds a new panes widget to the given parent Elementary (container) object.
This function inserts a new panes widget on the canvas.
[in] | parent | The parent object |
NULL
in case of an error double elm_panes_content_left_size_get | ( | const Evas_Object * | obj | ) |
Gets the size proportion of panes widget's left side.
[in] | obj | The panes object |
0.0
and 1.0
representing the size proportion of the left sidevoid elm_panes_content_left_size_set | ( | Evas_Object * | obj, |
double | size | ||
) |
Sets the size proportion of the panes widget's left side.
0.75
. This way, the right content is resized to 25% of the panes size.[in] | obj | The panes object |
[in] | size | The value between 0.0 and 1.0 representing the size proportion of the left side |
double elm_panes_content_right_size_get | ( | const Evas_Object * | obj | ) |
Gets the size proportion of the panes widget's right side.
[in] | obj | The panes object |
0.0
and 1.0
representing the size proportion of the right sidevoid elm_panes_content_right_size_set | ( | Evas_Object * | obj, |
double | size | ||
) |
Sets the size proportion of the panes widget's right side.
0.75
. This way, the left content is resized to 25% of the panes size.[in] | obj | The panes object |
[in] | size | The values between 0.0 and 1.0 representing the size proportion of the right side |
Eina_Bool elm_panes_fixed_get | ( | const Evas_Object * | obj | ) |
Gets the resize mode for the panes of a given panes widget.
[in] | obj | The panes object |
EINA_TRUE
if obj is set to be resized homogeneously, otherwise EINA_FALSE
void elm_panes_fixed_set | ( | Evas_Object * | obj, |
Eina_Bool | fixed | ||
) |
Sets whether the left and right panes resize homogeneously.
[in] | obj | The panes object |
[in] | fixed | If EINA_TRUE obj resizes the left and right panes homogeneously, otherwise EINA_FALSE to make use of the values specified in elm_panes_content_left_size_set() and elm_panes_content_right_size_set() to resize the left and right panes |
Eina_Bool elm_panes_horizontal_get | ( | const Evas_Object * | obj | ) |
Gets the orientation of a given panes widget.
[in] | obj | The panes object |
EINA_TRUE
, if obj is set to be horizontal, otherwise EINA_FALSE
if it's vertical (and on errors)void elm_panes_horizontal_set | ( | Evas_Object * | obj, |
Eina_Bool | horizontal | ||
) |
Sets the orientation of a given panes widget.
By default it's displayed horizontally.
[in] | obj | The panes object |
[in] | horizontal | If EINA_TRUE obj is horizontal, otherwise EINA_FALSE to make it vertical |