Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2021-09-03T09:27:57Z (6 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
81d3612
Parents:
f7c12b3
git-author:
Jiri Svoboda <jiri@…> (2021-09-02 17:26:05)
git-committer:
Jiri Svoboda <jiri@…> (2021-09-03 09:27:57)
Message:

Clarify right/bottom-aligned text position and fix off-by-ones

File:
1 edited

Legend:

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

    rf7c12b3 r400a16d  
    4242/** Text horizontal alignment */
    4343typedef enum {
    44         /** Align text left */
     44        /** Align text left (start at anchor point) */
    4545        gfx_halign_left,
    46         /** Align text on the center */
     46        /** Align text on the center (center around anchor point) */
    4747        gfx_halign_center,
    48         /** Align text right */
     48        /** Align text right (end just before anchor point) */
    4949        gfx_halign_right,
    5050        /** Justify text on both left and right edge */
     
    5454/** Text vertical alignment */
    5555typedef enum {
    56         /** Align top */
     56        /** Align top (starts at anchor point) */
    5757        gfx_valign_top,
    58         /** Align center */
     58        /** Align center (centered around anchor point) */
    5959        gfx_valign_center,
    60         /** Align bottom */
     60        /** Align bottom (end just before anchor point) */
    6161        gfx_valign_bottom,
    6262        /** Align to baseline */
Note: See TracChangeset for help on using the changeset viewer.