Ignore:
Timestamp:
2022-11-17T19:56:07Z (16 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
901b302
Parents:
5d62130
Message:

Implement text abbreviation

When rendering text, gfx_puttext can now abbreviate it with …
to fit within the specified width. Use on window captions.
Now Barber Pole can have a proper caption.

Note that now the caption is centered on the space between the left
edge and the buttons, instead on the entire title bar, so it
may look a little lopsided. It will look better once we put
something to the left side of the title bar.

File:
1 edited

Legend:

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

    r5d62130 ra130983  
    9494        /** Horizontal alignment */
    9595        gfx_halign_t halign;
    96         /** Justification width (for gfx_halign_justify) */
    97         gfx_coord_t justify_width;
     96        /** Width available for the text */
     97        gfx_coord_t width;
    9898        /** Vertical alignment */
    9999        gfx_valign_t valign;
Note: See TracChangeset for help on using the changeset viewer.