aboutsummaryrefslogtreecommitdiff
path: root/src/core/lv_obj_scroll.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lv_obj_scroll.h')
-rw-r--r--src/core/lv_obj_scroll.h31
1 files changed, 4 insertions, 27 deletions
diff --git a/src/core/lv_obj_scroll.h b/src/core/lv_obj_scroll.h
index 0114a3b65..e0984aedc 100644
--- a/src/core/lv_obj_scroll.h
+++ b/src/core/lv_obj_scroll.h
@@ -28,32 +28,20 @@ extern "C" {
/*Can't include lv_obj.h because it includes this header file*/
/** Scrollbar modes: shows when should the scrollbars be visible*/
-enum _lv_scrollbar_mode_t {
+typedef enum {
LV_SCROLLBAR_MODE_OFF, /**< Never show scrollbars*/
LV_SCROLLBAR_MODE_ON, /**< Always show scrollbars*/
LV_SCROLLBAR_MODE_ACTIVE, /**< Show scroll bars when object is being scrolled*/
LV_SCROLLBAR_MODE_AUTO, /**< Show scroll bars when the content is large enough to be scrolled*/
-};
-
-#ifdef DOXYGEN
-typedef _lv_scrollbar_mode_t lv_scrollbar_mode_t;
-#else
-typedef uint8_t lv_scrollbar_mode_t;
-#endif /*DOXYGEN*/
+} lv_scrollbar_mode_t;
/** Scroll span align options. Tells where to align the snappable children when scroll stops.*/
-enum _lv_scroll_snap_t {
+typedef enum {
LV_SCROLL_SNAP_NONE, /**< Do not align, leave where it is*/
LV_SCROLL_SNAP_START, /**< Align to the left/top*/
LV_SCROLL_SNAP_END, /**< Align to the right/bottom*/
LV_SCROLL_SNAP_CENTER /**< Align to the center*/
-};
-
-#ifdef DOXYGEN
-typedef _lv_scroll_snap_t lv_scroll_snap_t;
-#else
-typedef uint8_t lv_scroll_snap_t;
-#endif /*DOXYGEN*/
+} lv_scroll_snap_t;
/**********************
* GLOBAL PROTOTYPES
@@ -258,17 +246,6 @@ void lv_obj_scroll_to_view(lv_obj_t * obj, lv_anim_enable_t anim_en);
void lv_obj_scroll_to_view_recursive(lv_obj_t * obj, lv_anim_enable_t anim_en);
/**
- * Low level function to scroll by given x and y coordinates.
- * `LV_EVENT_SCROLL` is sent.
- * @param obj pointer to an object to scroll
- * @param x pixels to scroll horizontally
- * @param y pixels to scroll vertically
- * @return `LV_RESULT_INVALID`: to object was deleted in `LV_EVENT_SCROLL`;
- * `LV_RESULT_OK`: if the object is still valid
- */
-lv_result_t _lv_obj_scroll_by_raw(lv_obj_t * obj, int32_t x, int32_t y);
-
-/**
* Tell whether an object is being scrolled or not at this moment
* @param obj pointer to an object
* @return true: `obj` is being scrolled