Ignore:
Timestamp:
2020-12-07T00:08:37Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
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.
Message:

Merge branch 'jxsvoboda-gfx' into master

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/include/types/ui/cursor.h

    r7a873f0 r7e38970d  
    11/*
    2  * Copyright (c) 2008 Martin Decky
    3  * Copyright (c) 2012 Petr Koupy
     2 * Copyright (c) 2020 Jiri Svoboda
    43 * All rights reserved.
    54 *
     
    2827 */
    2928
    30 /** @addtogroup draw
     29/** @addtogroup libui
    3130 * @{
    3231 */
     
    3433 */
    3534
    36 #ifndef GFX_H_
    37 #define GFX_H_
     35#ifndef _LIBUI_TYPES_CURSOR_H_
     36#define _LIBUI_TYPES_CURSOR_H_
    3837
    39 #include <stdint.h>
    40 #include <stdbool.h>
    41 #include <stddef.h>
    42 #include <uchar.h>
     38/** Stock cursor types */
     39typedef 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;
    4351
    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];
     52enum {
     53        /** Number of stock cursor types */
     54        ui_curs_limit = ui_curs_size_urdl + 1
     55};
    5756
    5857#endif
Note: See TracChangeset for help on using the changeset viewer.