Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfxfont/include/types/gfx/text.h

    r400a16d ra130983  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3737#define _TYPES_GFX_TEXT_H
    3838
     39#include <stdbool.h>
    3940#include <types/gfx/coord.h>
    4041#include <types/gfx/color.h>
     
    6667/** Text formatting */
    6768typedef struct {
     69        /** Text font */
     70        struct gfx_font *font;
    6871        /** Text color */
    6972        gfx_color_t *color;
    7073        /** Horizontal alignment */
    7174        gfx_halign_t halign;
    72         /** Justification width (for gfx_halign_justify) */
    73         gfx_coord_t justify_width;
     75        /** Width available for the text */
     76        gfx_coord_t width;
    7477        /** Vertical alignment */
    7578        gfx_valign_t valign;
     79        /** Abbreviate the text with ellipsis if it does not fit @c width */
     80        bool abbreviate;
     81        /** Underline */
     82        bool underline;
    7683} gfx_text_fmt_t;
    7784
Note: See TracChangeset for help on using the changeset viewer.