[scroller][patent] remove the acceleration because of patent.
[framework/uifw/elementary.git] / src / lib / elm_frame.h
1 /**
2  * @defgroup Frame Frame
3  * @ingroup Elementary
4  *
5  * @image html img/widget/frame/preview-00.png
6  * @image latex img/widget/frame/preview-00.eps
7  *
8  * @brief Frame is a widget that holds some content and has a title.
9  *
10  * The default look is a frame with a title, but Frame supports multiple
11  * styles:
12  * @li default
13  * @li pad_small
14  * @li pad_medium
15  * @li pad_large
16  * @li pad_huge
17  * @li outdent_top
18  * @li outdent_bottom
19  *
20  * Of all this styles only default shows the title.
21  *
22  * Smart callbacks one can listen to:
23  * - @c "clicked" - The user has clicked the frame's label
24  *
25  * Default content parts of the frame widget that you can use for are:
26  * @li "default" - A content of the frame
27  *
28  * Default text parts of the frame widget that you can use for are:
29  * @li "default" - Label of the frame
30  *
31  * Supported elm_object common APIs.
32  * @li @ref elm_object_part_text_set
33  * @li @ref elm_object_part_text_get
34  * @li @ref elm_object_part_content_set
35  * @li @ref elm_object_part_content_get
36  * @li @ref elm_object_part_content_unset
37  *
38  * For a detailed example see the @ref tutorial_frame.
39  *
40  * @{
41  */
42
43 /**
44  * @brief Add a new frame to the parent
45  *
46  * @param parent The parent object
47  * @return The new object or NULL if it cannot be created
48  *
49  * @ingroup Frame
50  */
51 EAPI Evas_Object                 *elm_frame_add(Evas_Object *parent);
52
53 /**
54  * @brief Toggle autocollapsing of a frame
55  * @param obj The frame
56  * @param autocollapse Whether to enable autocollapse
57  *
58  * When @p enable is EINA_TRUE, clicking a frame's label will collapse the frame
59  * vertically, shrinking it to the height of the label.
60  * By default, this is DISABLED.
61  *
62  * @ingroup Frame
63  */
64 EAPI void elm_frame_autocollapse_set(Evas_Object *obj, Eina_Bool autocollapse);
65
66 /**
67  * @brief Determine autocollapsing of a frame
68  * @param obj The frame
69  * @return Whether autocollapse is enabled
70  *
71  * When this returns EINA_TRUE, clicking a frame's label will collapse the frame
72  * vertically, shrinking it to the height of the label.
73  * By default, this is DISABLED.
74  *
75  * @ingroup Frame
76  */
77 EAPI Eina_Bool elm_frame_autocollapse_get(const Evas_Object *obj);
78
79 /**
80  * @brief Manually collapse a frame without animations
81  * @param obj The frame
82  * @param collapse true to collapse, false to expand
83  *
84  * Use this to toggle the collapsed state of a frame, bypassing animations.
85  *
86  * @ingroup Frame
87  */
88 EAPI void elm_frame_collapse_set(Evas_Object *obj, Eina_Bool collapse);
89
90 /**
91  * @brief Determine the collapse state of a frame
92  * @param obj The frame
93  * @return true if collapsed, false otherwise
94  *
95  * Use this to determine the collapse state of a frame.
96  *
97  * @ingroup Frame
98  */
99 EAPI Eina_Bool elm_frame_collapse_get(const Evas_Object *obj);
100
101 /**
102  * @brief Manually collapse a frame with animations
103  * @param obj The frame
104  * @param collapse true to collapse, false to expand
105  *
106  * Use this to toggle the collapsed state of a frame, triggering animations.
107  *
108  * @ingroup Frame
109  */
110 EAPI void elm_frame_collapse_go(Evas_Object *obj, Eina_Bool collapse);
111
112 /**
113  * @}
114  */