Tizen Native API  5.0
Panel

A panel is an animated side-panel that contains a sub-object. It can be expanded or contracted by clicking the button on its edge.

panel_inheritance_tree.png

Orientations are as follows:

This widget inherits from the Layout one, so that all the functions acting on it also work for panel objects (since 1.8).

This widget emits the following signals, besides the ones sent from Elm_Layout:

Default content parts of the panel widget that you can use are:

Panel example shows one way to use this widget.

Functions

void elm_panel_orient_set (Elm_Panel *obj, Elm_Panel_Orient orient)
 Set the orientation of the panel.
Elm_Panel_Orient elm_panel_orient_get (const Elm_Panel *obj)
 Get the orientation of the panel.
void elm_panel_hidden_set (Elm_Panel *obj, Eina_Bool hidden)
 Set the state of the panel.
Eina_Bool elm_panel_hidden_get (const Elm_Panel *obj)
 Get the state of the panel.
void elm_panel_scrollable_set (Elm_Panel *obj, Eina_Bool scrollable)
 Set the scrollability of the panel.
Eina_Bool elm_panel_scrollable_get (const Elm_Panel *obj)
 Get the state of the scrollability.
void elm_panel_scrollable_content_size_set (Elm_Panel *obj, double ratio)
 Set the size of the scrollable panel.
double elm_panel_scrollable_content_size_get (const Elm_Panel *obj)
void elm_panel_toggle (Elm_Panel *obj)
 Toggle the hidden state of the panel from code.
Evas_Objectelm_panel_add (Evas_Object *parent)
 Adds a panel object.

Typedefs

typedef struct
_Elm_Panel_Scroll_Info 
Elm_Panel_Scroll_Info

Typedef Documentation

Panel scroll information

Since (EFL) :
1.11

Enumeration Type Documentation

Panel orientation mode

Enumerator:
ELM_PANEL_ORIENT_TOP 

Panel (dis)appears from the top

ELM_PANEL_ORIENT_BOTTOM 

Panel (dis)appears from the bottom

ELM_PANEL_ORIENT_LEFT 

Panel (dis)appears from the left

ELM_PANEL_ORIENT_RIGHT 

Panel (dis)appears from the right


Function Documentation

Adds a panel object.

Parameters:
parentThe parent object
Returns:
The panel object, or NULL on failure
Since :
2.3
Eina_Bool elm_panel_hidden_get ( const Elm_Panel *  obj)

Get the state of the panel.

Since :
2.3
Parameters:
[in]objThe object.
Returns:
If true, the panel will run the animation to disappear.
void elm_panel_hidden_set ( Elm_Panel *  obj,
Eina_Bool  hidden 
)

Set the state of the panel.

Since :
2.3
Parameters:
[in]objThe object.
[in]hiddenIf true, the panel will run the animation to disappear.
Elm_Panel_Orient elm_panel_orient_get ( const Elm_Panel *  obj)

Get the orientation of the panel.

Since :
2.3
Parameters:
[in]objThe object.
Returns:
The panel orientation.
void elm_panel_orient_set ( Elm_Panel *  obj,
Elm_Panel_Orient  orient 
)

Set the orientation of the panel.

Set from where the panel will (dis)appear.

Since :
2.3
Parameters:
[in]objThe object.
[in]orientThe panel orientation.
double elm_panel_scrollable_content_size_get ( const Elm_Panel *  obj)

Get the size of the scrollable panel.

Since (EFL) :
1.19
void elm_panel_scrollable_content_size_set ( Elm_Panel *  obj,
double  ratio 
)

Set the size of the scrollable panel.

Since :
2.3
Parameters:
[in]objThe object.
[in]ratio
Eina_Bool elm_panel_scrollable_get ( const Elm_Panel *  obj)

Get the state of the scrollability.

Since :
3.0
Parameters:
[in]objThe object.
Returns:
The scrollable state.
Since (EFL) :
1.12
void elm_panel_scrollable_set ( Elm_Panel *  obj,
Eina_Bool  scrollable 
)

Set the scrollability of the panel.

Since :
2.3
Parameters:
[in]objThe object.
[in]scrollableThe scrollable state.
void elm_panel_toggle ( Elm_Panel *  obj)

Toggle the hidden state of the panel from code.

Since :
2.3
Parameters:
[in]objThe object.