Changeset ff6e91b in mainline for uspace/lib/ui/include


Ignore:
Timestamp:
2021-08-30T20:41:27Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
81ec7e1
Parents:
9b2e20c
Message:

Make use of code page 437 characters

To draw proper text boxes, for a nice round radio button light,
for a nice contiguous slider groove.

Location:
uspace/lib/ui/include
Files:
2 edited

Legend:

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

    r9b2e20c rff6e91b  
    4949} ui_fcircle_part_t;
    5050
     51/** Box characters for a particular box style.
     52 *
     53 * The first coordinate selects top, center, bottom,
     54 * the second coordinate selects left, center, right.
     55 * The top/bottom, left/right characters correpsond to corners,
     56 * the characters with one center coordinate correspond to edges:
     57 *
     58 *    0   1   2
     59 * 0 '+' '-' '+'
     60 * 1 ' |' ' ' '|'
     61 * 2 '+' '-' '+'
     62 *
     63 */
     64typedef struct {
     65        const char *c[3][3];
     66} ui_box_chars_t;
     67
     68/** Box style */
     69typedef enum {
     70        /** Single box */
     71        ui_box_single,
     72        /** Double box */
     73        ui_box_double
     74} ui_box_style_t;
     75
    5176#endif
    5277
  • uspace/lib/ui/include/ui/paint.h

    r9b2e20c rff6e91b  
    5555extern errno_t ui_paint_filled_circle(gfx_context_t *, gfx_coord2_t *,
    5656    gfx_coord_t, ui_fcircle_part_t);
     57extern errno_t ui_paint_text_box(ui_resource_t *, gfx_rect_t *,
     58    ui_box_style_t, gfx_color_t *);
    5759
    5860#endif
Note: See TracChangeset for help on using the changeset viewer.