CodingStyle.hxx 10.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
//
// Created by csi on 11/24/18.
//

#ifndef ENHANCEDCONSOLETEXT_CODINGSTYLE_HXX
#define ENHANCEDCONSOLETEXT_CODINGSTYLE_HXX

#include "EnhancedConsoleText.hxx"

namespace EnhancedConsoleText::CodingStyle {

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
    inline void normalTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Left, FrontColor::NoColor);
    }

    inline void blueNormalTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Blue);
    }

    inline void greenNormalTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Green);
    }

    inline void yellowNormalTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Yellow);
    }

    inline void redNormalTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Red);
    }

    inline void cyanNormalTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Cyan);
    }

    inline void magentaNormalTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Magenta);
    }

    inline void normalBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Left, FrontColor::NoColor);
    }

    inline void blueBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Blue);
    }

    inline void greenBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Green);
    }

    inline void yellowBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Yellow);
    }

    inline void redBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Red);
    }

    inline void cyanBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Cyan);
    }

    inline void magentaBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Magenta);
    }

    inline void normalCenteredTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Center, FrontColor::NoColor);
    }

    inline void blueCenteredTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Blue);
    }

    inline void greenCenteredTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Green);
    }

    inline void yellowCenteredTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Yellow);
    }

    inline void redCenteredTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Red);
    }

    inline void cyanCenteredTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Cyan);
    }

    inline void magentaCenteredTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Magenta);
    }

    inline void normalCenteredBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Center, FrontColor::NoColor);
    }

    inline void blueCenteredBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Blue);
    }

    inline void greenCenteredBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Green);
    }

    inline void yellowCenteredBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Yellow);
    }

    inline void redCenteredBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Red);
    }

    inline void cyanCenteredBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Cyan);
    }

    inline void magentaCenteredBoldTextPrint(const std::string &content) {
        EnhancedConsoleText::print(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Magenta);
    }

124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
    inline void normalTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Left, FrontColor::NoColor);
    }

    inline void blueNormalTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Blue);
    }

    inline void greenNormalTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Green);
    }

    inline void yellowNormalTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Yellow);
    }

    inline void redNormalTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Red);
    }

    inline void cyanNormalTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Cyan);
    }

    inline void magentaNormalTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Left, FrontColor::Magenta);
    }

    inline void normalBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Left, FrontColor::NoColor);
    }

    inline void blueBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Blue);
    }

    inline void greenBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Green);
    }

    inline void yellowBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Yellow);
    }

    inline void redBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Red);
    }

    inline void cyanBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Cyan);
    }

    inline void magentaBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Left, FrontColor::Magenta);
    }

    inline void normalCenteredTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Center, FrontColor::NoColor);
    }

    inline void blueCenteredTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Blue);
    }

    inline void greenCenteredTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Green);
    }

    inline void yellowCenteredTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Yellow);
    }

    inline void redCenteredTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Red);
    }

    inline void cyanCenteredTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Cyan);
    }

    inline void magentaCenteredTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Reset, LineAlignment::Center, FrontColor::Magenta);
    }

    inline void normalCenteredBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Center, FrontColor::NoColor);
    }

    inline void blueCenteredBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Blue);
    }

    inline void greenCenteredBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Green);
    }

    inline void yellowCenteredBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Yellow);
    }

    inline void redCenteredBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Red);
    }

    inline void cyanCenteredBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Cyan);
    }

    inline void magentaCenteredBoldTextPrintln(const std::string &content) {
        EnhancedConsoleText::println(content, FontEffect::Bold, LineAlignment::Center, FrontColor::Magenta);
    }
}

#endif //ENHANCEDCONSOLETEXT_CODINGSTYLE_HXX