summaryrefslogtreecommitdiff
path: root/doc/elementary/flip.rst
blob: 0e3ae830d57be03676d68e42e8e1aace2b773794 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
.. currentmodule:: efl.elementary

Flip
####

.. image:: /images/flip-preview.png


Widget description
==================

This widget holds two content :py:class:`efl.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 will treat that
as transparent. So if you were to set the front content but not the back,
and then call :py:meth:`Flip.go` you would see whatever is below the flip.

For a list of supported animations see :py:meth:`Flip.go`.


Emitted signals
===============

- ``animate,begin`` - when a flip animation was started
- ``animate,done`` - when a flip animation is finished


Layout content parts
====================

- ``front`` - A front content of the flip
- ``back`` - A back content of the flip


Enumerations
============

.. _Elm_Flip_Direction:

Flip directions
---------------

.. data:: ELM_FLIP_DIRECTION_UP

    Allows interaction with the top of the widget.

.. data:: ELM_FLIP_DIRECTION_DOWN

    Allows interaction with the bottom of the widget.

.. data:: ELM_FLIP_DIRECTION_LEFT

    Allows interaction with the left portion of

    the widget.
.. data:: ELM_FLIP_DIRECTION_RIGHT

    Allows interaction with the right portion of

    the widget.


.. _Elm_Flip_Interaction:

Flip interaction modes
----------------------

.. data:: ELM_FLIP_INTERACTION_NONE

    No interaction is allowed

.. data:: ELM_FLIP_INTERACTION_ROTATE

    Interaction will cause rotate animation

.. data:: ELM_FLIP_INTERACTION_CUBE

    Interaction will cause cube animation

.. data:: ELM_FLIP_INTERACTION_PAGE

    Interaction will cause page animation


.. _Elm_Flip_Mode:

Flip types
----------

.. data:: ELM_FLIP_ROTATE_Y_CENTER_AXIS

    Rotate the currently visible content around a vertical axis in the
    middle of its width, the other content is shown as the other side of the
    flip.

.. data:: ELM_FLIP_ROTATE_X_CENTER_AXIS

    Rotate the currently visible content around a horizontal axis in the
    middle of its height, the other content is shown as the other side of
    the flip.

.. data:: ELM_FLIP_ROTATE_XZ_CENTER_AXIS

    Rotate the currently visible content around a diagonal axis in the
    middle of its width, the other content is shown as the other side of the
    flip.

.. data:: ELM_FLIP_ROTATE_YZ_CENTER_AXIS

    Rotate the currently visible content around a diagonal axis in the
    middle of its height, the other content is shown as the other side of
    the flip.

.. data:: ELM_FLIP_CUBE_LEFT

    Rotate the currently visible content to the left as if the flip was a
    cube, the other content is show as the right face of the cube.

.. data:: ELM_FLIP_CUBE_RIGHT

    Rotate the currently visible content to the right as if the flip was a
    cube, the other content is show as the left face of the cube.

.. data:: ELM_FLIP_CUBE_UP

    Rotate the currently visible content up as if the flip was a cube, the
    other content is show as the bottom face of the cube.

.. data:: ELM_FLIP_CUBE_DOWN

    Rotate the currently visible content down as if the flip was a cube, the
    other content is show as the upper face of the cube.

.. data:: ELM_FLIP_PAGE_LEFT

    Move the currently visible content to the left as if the flip was a
    book, the other content is shown as the page below that.

.. data:: ELM_FLIP_PAGE_RIGHT

    Move the currently visible content to the right as if the flip was a
    book, the other content is shown as the page below that.

.. data:: ELM_FLIP_PAGE_UP

    Move the currently visible content up as if the flip was a book, the
    other content is shown as the page below that.

.. data:: ELM_FLIP_PAGE_DOWN

    Move the currently visible content down as if the flip was a book, the
    other content is shown as the page below that.


Inheritance diagram
===================

.. inheritance-diagram:: Flip
    :parts: 2


.. autoclass:: Flip