Changeset a130983 in mainline for uspace/app/barber/barber.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/app/barber/barber.c

    r5d62130 ra130983  
    361361
    362362        ui_wnd_params_init(&params);
    363         params.caption = "";
     363        params.caption = "Barber Pole";
    364364        params.placement = ui_wnd_place_bottom_right;
    365365        /*
Note: See TracChangeset for help on using the changeset viewer.