From b4e85c954f2864d2648f2986fb389450f27d1e18 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Thu, 18 Apr 2019 17:08:47 +0200 Subject: [PATCH] elm_scroller_legacy: remove generated legacy include Instead replace with the type definitions in this place. It is not included from anywhere else, so it's fine. --- src/lib/elementary/elm_scroller_legacy.h | 40 +++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_scroller_legacy.h b/src/lib/elementary/elm_scroller_legacy.h index 6b40eff78f..b1ec21d223 100644 --- a/src/lib/elementary/elm_scroller_legacy.h +++ b/src/lib/elementary/elm_scroller_legacy.h @@ -1,4 +1,42 @@ -#include "elm_interface_scrollable.eo.legacy.h" +#ifndef _ELM_INTERFACE_SCROLLABLE_EO_TYPES +#define _ELM_INTERFACE_SCROLLABLE_EO_TYPES + +/** + * @brief Type that controls when scrollbars should appear. + * + * See also @ref elm_interface_scrollable_policy_set. + * + * @ingroup Elm_Scroller + */ +typedef enum +{ + ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */ + ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */ + ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */ + ELM_SCROLLER_POLICY_LAST /**< Sentinel value to indicate last enum field + * during iteration */ +} Elm_Scroller_Policy; + +/** + * @brief Type that controls how the content is scrolled. + * + * See also @ref elm_interface_scrollable_single_direction_set. + * + * @ingroup Elm_Scroller + */ +typedef enum +{ + ELM_SCROLLER_SINGLE_DIRECTION_NONE = 0, /**< Scroll every direction */ + ELM_SCROLLER_SINGLE_DIRECTION_SOFT, /**< Scroll single direction if the + * direction is certain */ + ELM_SCROLLER_SINGLE_DIRECTION_HARD, /**< Scroll only single direction */ + ELM_SCROLLER_SINGLE_DIRECTION_LAST /**< Sentinel value to indicate last enum + * field during iteration */ +} Elm_Scroller_Single_Direction; + + +#endif + #include "elm_scroller_eo.legacy.h" /**