Functions |
Evas_Object * | elm_flip_add (Evas_Object *parent) |
| Adds a new flip to the parent.
|
Eina_Bool | elm_flip_front_visible_get (const Evas_Object *obj) |
| Gets the flip front visibility state.
|
void | elm_flip_perspective_set (Evas_Object *obj, Evas_Coord foc, Evas_Coord x, Evas_Coord y) |
| Sets the flip perspective.
|
void | elm_flip_go (Evas_Object *obj, Elm_Flip_Mode mode) |
| Runs the flip animation.
|
void | elm_flip_go_to (Evas_Object *obj, Eina_Bool front, Elm_Flip_Mode mode) |
| Runs the flip animation to the front or back.
|
void | elm_flip_interaction_set (Evas_Object *obj, Elm_Flip_Interaction mode) |
| Sets the interactive flip mode.
|
Elm_Flip_Interaction | elm_flip_interaction_get (const Evas_Object *obj) |
| Gets the interactive flip mode.
|
void | elm_flip_interaction_direction_enabled_set (Evas_Object *obj, Elm_Flip_Direction dir, Eina_Bool enabled) |
| Sets which directions of the flip respond to the interactive flip.
|
Eina_Bool | elm_flip_interaction_direction_enabled_get (Evas_Object *obj, Elm_Flip_Direction dir) |
| Gets the enabled state of that flip direction.
|
void | elm_flip_interaction_direction_hitsize_set (Evas_Object *obj, Elm_Flip_Direction dir, double hitsize) |
| Sets the amount of the flip that is sensitive to the interactive flip.
|
double | elm_flip_interaction_direction_hitsize_get (Evas_Object *obj, Elm_Flip_Direction dir) |
| Gets the amount of the flip that is sensitive to the interactive flip.
|
This widget holds 2
content objects(Evas_Object): one on the front and one on the back. It allows you to flip from front to back and vice-versa using various animations.
If either the front or back contents are not set, the flip treats that as transparent. So if you were to set the front content but not the back, and then call elm_flip_go() you would see whatever is below the flip.
For a list of supported animations see elm_flip_go().
Signals that you can add callbacks for are: "animate,begin" - When a flip animation is started "animate,done" - When a flip animation is finished
The default content parts of the flip widget that you can use are:
- "front" - The front content of the flip.
- "back" - The back content of the flip.
The functions meant to act on it works for mapbuf objects:
Enumeration Type Documentation
Enumeration of Elm Flip Direction type
- Enumerator:
ELM_FLIP_DIRECTION_UP |
Allows interaction with the top of the widget
|
ELM_FLIP_DIRECTION_DOWN |
Allows interaction with the bottom of the widget
|
ELM_FLIP_DIRECTION_LEFT |
Allows interaction with the left portion of the widget
|
ELM_FLIP_DIRECTION_RIGHT |
Allows interaction with the right portion of the widget
|
Function Documentation
Adds a new flip to the parent.
- Since :
- 2.3
- Parameters:
-
[in] | parent | The parent object |
- Returns:
- The new object, otherwise
NULL
if it cannot be created
Gets the flip front visibility state.
- Since :
- 2.3
- Parameters:
-
- Returns:
EINA_TRUE
if the front is showing, otherwise EINA_FALSE
if the back is showing
Runs the flip animation.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The flip object |
[in] | mode | The mode type |
- See also:
- elm_flip_go_to()
Runs the flip animation to the front or back.
- Since (EFL) :
- 1.7
- Since :
- 2.3
- Parameters:
-
[in] | obj | The flip object |
[in] | front | If EINA_TRUE it makes the front visible, otherwise EINA_FALSE to make the back visible |
[in] | mode | The mode type |
Sets which directions of the flip respond to the interactive flip.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The flip object |
[in] | dir | The direction to change |
[in] | enabled | The boolean value that indicates whether that direction is enabled |
- See also:
- elm_flip_interaction_set()
Gets the amount of the flip that is sensitive to the interactive flip.
This returns the amount of sensitive area set by elm_flip_interaction_direction_hitsize_set().
- Since :
- 2.3
- Parameters:
-
[in] | obj | The flip object |
[in] | dir | The direction to check |
- Returns:
- The size set for that direction
Sets the amount of the flip that is sensitive to the interactive flip.
This sets the amount of the flip that is sensitive to the interactive flip, with 0
representing no area in the flip and 1
representing the entire flip. There is however a consideration to be made. Basically, the area should never be smaller than the finger size set(as set in your Elementary configuration).
- Since :
- 2.3
- Parameters:
-
[in] | obj | The flip object |
[in] | dir | The direction to modify |
[in] | hitsize | The amount of that dimension (0.0 to 1.0 ) to use |
- See also:
- elm_flip_interaction_set()
Gets the interactive flip mode.
- Since :
- 2.3
- Parameters:
-
- Returns:
- The interactive flip mode
Sets the interactive flip mode.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The flip object |
[in] | mode | The interactive flip mode to use |
Sets the flip perspective.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The flip object |
[in] | foc | The coordinate to set the focus on |
[in] | x | The X coordinate |
[in] | y | The Y coordinate |