Changeset 7e38970d in mainline for uspace/lib/ui/include/types/ui/cursor.h
- Timestamp:
- 2020-12-07T00:08:37Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25f26600
- Parents:
- 7a873f0 (diff), 8596474 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/include/types/ui/cursor.h
r7a873f0 r7e38970d 1 1 /* 2 * Copyright (c) 2008 Martin Decky 3 * Copyright (c) 2012 Petr Koupy 2 * Copyright (c) 2020 Jiri Svoboda 4 3 * All rights reserved. 5 4 * … … 28 27 */ 29 28 30 /** @addtogroup draw29 /** @addtogroup libui 31 30 * @{ 32 31 */ … … 34 33 */ 35 34 36 #ifndef GFX_H_37 #define GFX_H_35 #ifndef _LIBUI_TYPES_CURSOR_H_ 36 #define _LIBUI_TYPES_CURSOR_H_ 38 37 39 #include <stdint.h> 40 #include <stdbool.h> 41 #include <stddef.h> 42 #include <uchar.h> 38 /** Stock cursor types */ 39 typedef enum { 40 /** Standard arrow */ 41 ui_curs_arrow, 42 /** Double arrow pointing up and down */ 43 ui_curs_size_ud, 44 /** Double arrow pointing left and right */ 45 ui_curs_size_lr, 46 /** Double arrow pointing up-left and down-right */ 47 ui_curs_size_uldr, 48 /** Double arrow pointing up-right nad down-left */ 49 ui_curs_size_urdl 50 } ui_stock_cursor_t; 43 51 44 #define CURSOR_WIDTH 11 45 #define CURSOR_HEIGHT 18 46 47 #define FONT_GLYPHS 2899 48 #define FONT_WIDTH 8 49 #define FONT_SCANLINES 16 50 #define FONT_ASCENDER 12 51 52 extern uint8_t cursor_texture[]; 53 extern uint8_t cursor_mask[]; 54 55 extern uint16_t fb_font_glyph(const char32_t, bool *); 56 extern uint8_t fb_font[FONT_GLYPHS][FONT_SCANLINES]; 52 enum { 53 /** Number of stock cursor types */ 54 ui_curs_limit = ui_curs_size_urdl + 1 55 }; 57 56 58 57 #endif
Note:
See TracChangeset
for help on using the changeset viewer.