Changeset a130983 in mainline for uspace/lib/ui/private/wdecor.h


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/private/wdecor.h

    r5d62130 ra130983  
    8080        /** Title bar rectangle */
    8181        gfx_rect_t title_bar_rect;
     82        /** Window caption rectangle */
     83        gfx_rect_t caption_rect;
    8284        /** Maximize button rectangle */
    8385        gfx_rect_t btn_max_rect;
Note: See TracChangeset for help on using the changeset viewer.