www-content/pages/program_guide/containers/panes.txt

71 lines
2.4 KiB
Plaintext

~~Title: Panes Container PG~~
{{page>index}}
----
===== Panes Container =====
{{ :container_panes_tree.png }}{{ :container_panes.png }}
A panes widget adds a draggable bar between two sections of content. The
sections are resized when the bar is dragged.
=== Table of Contents ===
* [[/program_guide/containers/panes#Creating_Panes|Creating Panes]]
* [[/program_guide/containers/panes#Adding Content to the Panes|Adding Content to the Panes]]
* [[/program_guide/containers/panes#Setting_Panes_Options|Setting Panes Options]]
* [[/program_guide/containers/panes#Signals|Signals]]
=== Related Info ===
* [[https://build.enlightenment.org/job/nightly_elm_gcc_x86_64/lastSuccessfulBuild/artifact/doc/html/group__Panes.html|Panes Container API]]
* [[/tutorial/panes_tutorial|Panes Tutorial]]
* [[https://build.enlightenment.org/job/nightly_elm_gcc_x86_64/lastSuccessfulBuild/artifact/doc/html/panes_example.html|A Panes Example ]]
==== Creating a Panes ====
To create a panes widget, use the ''elm_panes_add()'' function:
<code c>
Evas_Object *panes = elm_panes_add(parent);
</code>
==== Adding Content to the Panes ====
To add content to the panes, use the ''elm_object_part_content_set()'' function.
The following code adds an object to the left pane:
<code c>
elm_object_part_content_set(panes, "left", obj);
</code>
Here, the 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.
==== 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.
==== Signals ====
The panes widget emits the following signals:
* ''"press"'': The panes widget has been pressed (but the press has not been released yet).
* ''"unpress"'': The press has been released.
* ''"clicked"'': The panes widget has been clicked.
* ''"clicked,double"'': The panes widget has been double-clicked.
\\
//**__[[https://build.enlightenment.org/job/nightly_elm_gcc_x86_64/lastSuccessfulBuild/artifact/doc/html/panes_example.html|A Panes Example ]]__**//
\\
----
{{page>index}}