Tizen Native API
|
Functions | |
void | elm_panes_content_left_size_set (Elm_Panes *obj, double size) |
Set the size proportion of panes widget's left side. | |
double | elm_panes_content_left_size_get (const Elm_Panes *obj) |
Get the size proportion of panes widget's left side. | |
void | elm_panes_horizontal_set (Elm_Panes *obj, Eina_Bool horizontal) |
Set how to split and dispose each content. | |
Eina_Bool | elm_panes_horizontal_get (const Elm_Panes *obj) |
Get the split direction of a given panes widget. | |
void | elm_panes_fixed_set (Elm_Panes *obj, Eina_Bool fixed) |
Set whether the left and right panes can be resized by user interaction. | |
Eina_Bool | elm_panes_fixed_get (const Elm_Panes *obj) |
Get the resize mode for the panes of a given panes widget. | |
void | elm_panes_content_right_size_set (Elm_Panes *obj, double size) |
Set the size proportion of panes widget's right side. | |
double | elm_panes_content_right_size_get (const Elm_Panes *obj) |
Get the size proportion of panes widget's right side. | |
Evas_Object * | elm_panes_add (Evas_Object *parent) |
Add a new panes widget to the given parent Elementary (container) object. |
The panes widget adds a draggable bar between two contents. When dragged this bar will resize contents' size.
Panes can be split 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 has been pressed (button wasn't released yet)."unpress"
- The panes was released after being pressed."clicked"
- The panes has been clicked>"clicked,double"
- The panes has been double clicked
Available styles for it:
"default"
Default content parts of the panes widget that you can use are:
- "left" - A leftside content of the panes
- "right" - A rightside content of the panes
- "top" - A top content of the vertical panes
- "bottom" - A bottom content of the vertical panes
If panes are displayed vertically, left content will be displayed on top.
Supported elm_object common APIs.
Function Documentation
Evas_Object* elm_panes_add | ( | Evas_Object * | parent | ) |
Add a new panes widget to the given parent Elementary (container) object.
- Since :
- 2.3
- Parameters:
-
[in] parent The parent object.
- Returns:
- a new panes widget handle or
NULL
, on errors.
- Remarks:
- This function inserts a new panes widget on the canvas.
double elm_panes_content_left_size_get | ( | const Elm_Panes * | obj | ) |
Get the size proportion of panes widget's left side.
- Since :
- 2.3
- Returns:
- float value between 0.0 and 1.0 representing size proportion of left side.
- See also:
- elm_panes_content_left_size_set() for more details.
- Parameters:
-
[in] obj The elm panes object
void elm_panes_content_left_size_set | ( | Elm_Panes * | obj, |
double | size | ||
) |
Set the size proportion of panes widget's left side.
- Since :
- 2.3
- Remarks:
- By default it's homogeneous, i.e., both sides have the same size.
-
If something different is required, it can be set with this function. For example, if the left content should be displayed over 75% of the panes size,
size
should be passed as0.75
. This way, right content will be resized to 25% of panes size. - If displayed vertically, left content is displayed at top, and right content at bottom.
- This proportion will change when user drags the panes bar.
- See also:
- elm_panes_content_left_size_get()
- Parameters:
-
[in] obj The elm panes object [in] size Value between 0.0 and 1.0 representing size proportion of left side.
double elm_panes_content_right_size_get | ( | const Elm_Panes * | obj | ) |
Get the size proportion of panes widget's right side.
- Since :
- 2.3
- Returns:
- float value between 0.0 and 1.0 representing size proportion of right side.
- See also:
- elm_panes_content_right_size_set() for more details.
- Parameters:
-
[in] obj The elm panes object
void elm_panes_content_right_size_set | ( | Elm_Panes * | obj, |
double | size | ||
) |
Set the size proportion of panes widget's right side.
- Since :
- 2.3
- Remarks:
- By default it's homogeneous, i.e., both sides have the same size.
-
If something different is required, it can be set with this function. For example, if the right content should be displayed over 75% of the panes size,
size
should be passed as0.75
. This way, left content will be resized to 25% of panes size. - If displayed vertically, left content is displayed at top, and right content at bottom.
- This proportion will change when user drags the panes bar.
- See also:
- elm_panes_content_right_size_get()
- Parameters:
-
[in] obj The elm panes object [in] size Value between 0.0 and 1.0 representing size proportion of right side.
Eina_Bool elm_panes_fixed_get | ( | const Elm_Panes * | obj | ) |
Get the resize mode for the panes of a given panes widget.
- Since :
- 2.3
- Returns:
EINA_TRUE
, ifobj
is set to be resizable by user interaction.
- See also:
- elm_panes_fixed_set() for more details.
- elm_panes_content_left_size_get()
- elm_panes_content_right_size_get()
- Parameters:
-
[in] obj The elm panes object
void elm_panes_fixed_set | ( | Elm_Panes * | obj, |
Eina_Bool | fixed | ||
) |
Set whether the left and right panes can be resized by user interaction.
- Since :
- 2.3
- Remarks:
- By default panes' contents are resizable by user interaction.
- Parameters:
-
[in] obj The elm panes object [in] fixed Use EINA_TRUE
to fix the left and right panes sizes and make them not to be resized by user interaction. UseEINA_FALSE
to make them resizable.
Eina_Bool elm_panes_horizontal_get | ( | const Elm_Panes * | obj | ) |
Get the split direction of a given panes widget.
- Since :
- 2.3
- Returns:
EINA_TRUE
, ifobj
is set to be horizontal,EINA_FALSE
if it's vertical (and on errors).
- See also:
- elm_panes_horizontal_set() for more details.
- Parameters:
-
[in] obj The elm panes object
void elm_panes_horizontal_set | ( | Elm_Panes * | obj, |
Eina_Bool | horizontal | ||
) |
Set how to split and dispose each content.
- Since :
- 2.3
- Remarks:
- Use this function to change how your panes is to be disposed: vertically or horizontally. Horizontal panes have "top" and "bottom" contents, vertical panes have "left" and "right" contents.
- By default panes is in a vertical mode.
- See also:
- elm_panes_horizontal_get()
- Parameters:
-
[in] obj The elm panes object [in] horizontal Use EINA_TRUE
to makeobj
to split panes horizontally ("top" and "bottom" contents).EINA_FALSE
to make it vertically ("left" and "right" contents)