summaryrefslogtreecommitdiff
path: root/SharedGraphics/TextAlignment.h
blob: 9f77c671797551cc816a021f3eaff563d457c19c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

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

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