Advertisement
Guest User

Untitled

a guest
Aug 10th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. // test_t is 4 bytes
  5. // lv_sb_mode_t is 1 byte
  6.  
  7. typedef enum
  8. {
  9.     SB_MODE_OFF     = 0x0,      /*Never show scrollbars*/
  10.     SB_MODE_ON      = 0x1,      /*Always show scrollbars*/
  11.     SB_MODE_DRAG = 0x2,     /*Show scrollbars when page is being dragged*/
  12.     SB_MODE_AUTO = 0x3,     /*Show scrollbars when the scrollable container is large enough to be scrolled*/
  13.     SB_MODE_HIDE = 0x4,     /*Hide the scroll bar temporally*/
  14.     SB_MODE_UNHIDE = 0x5,   /*Unhide the previously hidden scrollbar. Recover it's type too*/
  15. } test_t;
  16.  
  17. enum
  18. {
  19.     LV_SB_MODE_OFF  = 0x0,      /*Never show scrollbars*/
  20.     LV_SB_MODE_ON   = 0x1,      /*Always show scrollbars*/
  21.     LV_SB_MODE_DRAG = 0x2,      /*Show scrollbars when page is being dragged*/
  22.     LV_SB_MODE_AUTO = 0x3,      /*Show scrollbars when the scrollable container is large enough to be scrolled*/
  23.     LV_SB_MODE_HIDE = 0x4,      /*Hide the scroll bar temporally*/
  24.     LV_SB_MODE_UNHIDE = 0x5,    /*Unhide the previously hidden scrollbar. Recover it's type too*/
  25. };
  26. typedef uint8_t lv_sb_mode_t;
  27.  
  28. void rets(lv_sb_mode_t a);
  29.  
  30. int main(void) {
  31.    
  32.     rets(LV_SB_MODE_AUTO);
  33.    
  34.     return 0;
  35. }
  36.  
  37. void rets(lv_sb_mode_t a)
  38. {
  39.     printf("%d\r\n", a);
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement