Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdint.h>
- // test_t is 4 bytes
- // lv_sb_mode_t is 1 byte
- typedef enum
- {
- SB_MODE_OFF = 0x0, /*Never show scrollbars*/
- SB_MODE_ON = 0x1, /*Always show scrollbars*/
- SB_MODE_DRAG = 0x2, /*Show scrollbars when page is being dragged*/
- SB_MODE_AUTO = 0x3, /*Show scrollbars when the scrollable container is large enough to be scrolled*/
- SB_MODE_HIDE = 0x4, /*Hide the scroll bar temporally*/
- SB_MODE_UNHIDE = 0x5, /*Unhide the previously hidden scrollbar. Recover it's type too*/
- } test_t;
- enum
- {
- LV_SB_MODE_OFF = 0x0, /*Never show scrollbars*/
- LV_SB_MODE_ON = 0x1, /*Always show scrollbars*/
- LV_SB_MODE_DRAG = 0x2, /*Show scrollbars when page is being dragged*/
- LV_SB_MODE_AUTO = 0x3, /*Show scrollbars when the scrollable container is large enough to be scrolled*/
- LV_SB_MODE_HIDE = 0x4, /*Hide the scroll bar temporally*/
- LV_SB_MODE_UNHIDE = 0x5, /*Unhide the previously hidden scrollbar. Recover it's type too*/
- };
- typedef uint8_t lv_sb_mode_t;
- void rets(lv_sb_mode_t a);
- int main(void) {
- rets(LV_SB_MODE_AUTO);
- return 0;
- }
- void rets(lv_sb_mode_t a)
- {
- printf("%d\r\n", a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement