2 * @defgroup Frame Frame
5 * @image html img/widget/frame/preview-00.png
6 * @image latex img/widget/frame/preview-00.eps
8 * @brief Frame is a widget that holds some content and has a title.
10 * The default look is a frame with a title, but Frame supports multiple
20 * Of all this styles only default shows the title.
22 * Smart callbacks one can listen to:
23 * - @c "clicked" - The user has clicked the frame's label
25 * Default content parts of the frame widget that you can use for are:
26 * @li "default" - A content of the frame
28 * Default text parts of the frame widget that you can use for are:
29 * @li "default" - Label of the frame
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
38 * For a detailed example see the @ref tutorial_frame.
44 * @brief Add a new frame to the parent
46 * @param parent The parent object
47 * @return The new object or NULL if it cannot be created
51 EAPI Evas_Object *elm_frame_add(Evas_Object *parent);
54 * @brief Toggle autocollapsing of a frame
55 * @param obj The frame
56 * @param autocollapse Whether to enable autocollapse
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.
64 EAPI void elm_frame_autocollapse_set(Evas_Object *obj, Eina_Bool autocollapse);
67 * @brief Determine autocollapsing of a frame
68 * @param obj The frame
69 * @return Whether autocollapse is enabled
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.
77 EAPI Eina_Bool elm_frame_autocollapse_get(const Evas_Object *obj);
80 * @brief Manually collapse a frame without animations
81 * @param obj The frame
82 * @param collapse true to collapse, false to expand
84 * Use this to toggle the collapsed state of a frame, bypassing animations.
88 EAPI void elm_frame_collapse_set(Evas_Object *obj, Eina_Bool collapse);
91 * @brief Determine the collapse state of a frame
92 * @param obj The frame
93 * @return true if collapsed, false otherwise
95 * Use this to determine the collapse state of a frame.
99 EAPI Eina_Bool elm_frame_collapse_get(const Evas_Object *obj);
102 * @brief Manually collapse a frame with animations
103 * @param obj The frame
104 * @param collapse true to collapse, false to expand
106 * Use this to toggle the collapsed state of a frame, triggering animations.
110 EAPI void elm_frame_collapse_go(Evas_Object *obj, Eina_Bool collapse);