Changeset a130983 in mainline for uspace/lib/ui/src/paint.c


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/src/paint.c

    r5d62130 ra130983  
    922922        tfmt.color = fmt->color;
    923923        tfmt.halign = fmt->halign;
    924         tfmt.justify_width = fmt->justify_width;
     924        tfmt.width = fmt->width;
    925925        tfmt.valign = fmt->valign;
    926926        tfmt.underline = false;
Note: See TracChangeset for help on using the changeset viewer.