Tizen Native API
Floatingbutton

Functions

Eina_Bool eext_floatingbutton_pos_set (Eext_Floatingbutton *obj, Eext_Floatingbutton_Pos pos)
 Set the floatingbutton position.
Eext_Floatingbutton_Pos eext_floatingbutton_pos_get (const Eext_Floatingbutton *obj)
 Get the floatingbutton position.
void eext_floatingbutton_movement_block_set (Eext_Floatingbutton *obj, Eina_Bool block)
 Set whether floatingbutton can be moved or not.
Eina_Bool eext_floatingbutton_movement_block_get (const Eext_Floatingbutton *obj)
 Get movability for a given floatingbutton widget.
void eext_floatingbutton_mode_set (Eext_Floatingbutton *obj, Eext_Floatingbutton_Mode mode)
 Set floatingbutton mode.
Eext_Floatingbutton_Mode eext_floatingbutton_mode_get (const Eext_Floatingbutton *obj)
 Get floatingbutton mode.
Eina_Bool eext_floatingbutton_pos_bring_in (const Eext_Floatingbutton *obj, Eext_Floatingbutton_Pos pos)
 Set the floatingbutton position with animation.
Evas_Objecteext_floatingbutton_add (Evas_Object *parent)
 Add a new floatingbutton to the parent.

Widget to add floating area for buttons.

The Floatingbutton widget is not a real button, but only provides areas where application adds (maximum 2) buttons to.

This widget inherits from the Layout one, so that all the Layout functions can be used on it. However, it includes not only visible floating area, but invisible track for moving floating area, so there is a possibility that it works differently from that you intended.

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

  • "button1" - left area for button
  • "button2" - right area for button

Floatingbutton can be hidden by siganl emission.

  • show - elm_object_signal_emit(fb, "elm,state,show", "");
  • hide - elm_object_signal_emit(fb, "elm,state,hide", "");

Enumeration Type Documentation

Enumerator:
EEXT_FLOATINGBUTTON_MODE_DEFAULT 

allows all positions

EEXT_FLOATINGBUTTON_MODE_BOTH_SIDES 

allows LEFT and RIGHT positions only

EEXT_FLOATINGBUTTON_MODE_LAST 

indicates the last, do not use this

Positions where floatingbutton can be placed on

Enumerator:
EEXT_FLOATINGBUTTON_LEFT_OUT 

hides in the left, but small handler will show only

EEXT_FLOATINGBUTTON_LEFT 

shows all of buttons, but lies on the left

EEXT_FLOATINGBUTTON_CENTER 

shows all of buttons, but lies on the center

EEXT_FLOATINGBUTTON_RIGHT 

shows all of buttons, but lies on the right

EEXT_FLOATINGBUTTON_RIGHT_OUT 

hides in the right, but small handler will show only

EEXT_FLOATINGBUTTON_LAST 

indicates the last, do not use this


Function Documentation

Add a new floatingbutton to the parent.

Since :
2.4
Parameters:
[in]parentThe parent object
Returns:
The new object or NULL if it cannot be created
Eext_Floatingbutton_Mode eext_floatingbutton_mode_get ( const Eext_Floatingbutton *  obj)

Get floatingbutton mode.

See also:
eext_floatingbutton_mode_set()
Since :
2.4
Parameters:
[in]objThe floatingbutton object
void eext_floatingbutton_mode_set ( Eext_Floatingbutton *  obj,
Eext_Floatingbutton_Mode  mode 
)

Set floatingbutton mode.

Remarks:
Positions where floatingbutton can stop are restrained by mode.
Since :
2.4
Parameters:
[in]objThe floatingbutton object
[in]modefloatingbutton mode
Eina_Bool eext_floatingbutton_movement_block_get ( const Eext_Floatingbutton *  obj)

Get movability for a given floatingbutton widget.

Returns:
EINA_TRUE, if obj is set to be unmovable, EINA_FALSE, if it's movable.
See also:
eext_floatingbutton_movement_block_set()
Since :
2.4
Parameters:
[in]objThe floatingbutton object
void eext_floatingbutton_movement_block_set ( Eext_Floatingbutton *  obj,
Eina_Bool  block 
)

Set whether floatingbutton can be moved or not.

Remarks:
By default, floatingbutton are movable by user interaction.
Since :
2.4
Parameters:
[in]objThe floatingbutton object
[in]blockthe floatingbutton movability
Eina_Bool eext_floatingbutton_pos_bring_in ( const Eext_Floatingbutton *  obj,
Eext_Floatingbutton_Pos  pos 
)

Set the floatingbutton position with animation.

Remarks:
Move floatingbutton similar to eext_floatingbutton_pos_set(), but with animation.
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.
See also:
eext_floatingbutton_pos_set()
Since :
2.4
Parameters:
[in]objThe floatingbutton object
[in]posthe floatingbutton position
Eext_Floatingbutton_Pos eext_floatingbutton_pos_get ( const Eext_Floatingbutton *  obj)

Get the floatingbutton position.

Returns:
Floatingbutton position with Eext_Floatingbutton_Pos enumeration
See also:
eext_floatingbutton_pos_set()
Since :
2.4
Parameters:
[in]objThe floatingbutton object
Eina_Bool eext_floatingbutton_pos_set ( Eext_Floatingbutton *  obj,
Eext_Floatingbutton_Pos  pos 
)

Set the floatingbutton position.

Remarks:
The floatingbutton can be moved among predefined positions (LEFT_OUT, LEFT, CENTER, RIGHT, RIGHT_OUT), eext_floatingbutton_pos_set() moves floatingbutton to a given position immediately (without animation).
Returns:
EINA_TRUE on success, EINA_FALSE otherwise.
Since :
2.4
Parameters:
[in]objThe floatingbutton object
[in]posthe floatingbutton position