summaryrefslogtreecommitdiff
path: root/Libraries/LibDraw/TextAlignment.h
blob: b16987cfc7a9c1d98af651e5e51eb8642ae77e83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

enum class TextAlignment {
    TopLeft,
    CenterLeft,
    Center,
    CenterRight,
    TopRight,
};

inline bool is_right_text_alignment(TextAlignment alignment)
{
    switch (alignment) {
    case TextAlignment::CenterRight:
    case TextAlignment::TopRight:
        return true;
    default:
        return false;
    }
}