Mobile native

Panes

This feature is supported in mobile applications only.

A panes component adds a draggable bar between 2 sections of content. The sections are resized when the bar is dragged.

Figure: Panes component

Panes component

Creating Panes

To create a panes component, use the elm_panes_add() function:

Evas_Object *panes;

panes = elm_panes_add(parent);

Adding Content to the Panes

To add content to the panes, use the elm_object_part_content_set() function. The following example adds an object to the left pane:

elm_object_part_content_set(panes, "left", obj);

Setting Panes Options

To set the orientation of the panes, use the elm_panes_horizontal_set() function.

To set the size of the panes, use the elm_panes_content_left_size_set() and elm_panes_content_right_size_set() functions.

Listening to Signals

To receive notifications about the panes events, listen to the following signals:

  • press: The panes component has been pressed (but the press has not been released yet).
  • unpress: The press has been released.
  • clicked: The panes component has been clicked.
  • clicked,double: The panes component has been double-clicked.
Note
Except as noted, this content is licensed under LGPLv2.1+.
Go to top