Kawe Mazidjatari 04bee896be Fix string/wstring type conflict
cppkore uses string/wstring as StringBase while we use std::string/std::wstring as string/wstring. Changed all types in cppkore to String/WString instead.
2022-05-21 21:51:35 +02:00

26 lines
842 B
C++

#pragma once
#include <memory>
#include "DrawingBase.h"
#include "Font.h"
#include "StringBase.h"
#include "TextFormatFlags.h"
#undef DrawText
namespace Drawing
{
// Provides methods for rendering text using GDI.
class TextRenderer
{
TextRenderer() = delete;
~TextRenderer() = delete;
public:
// Draws the specified text at the specified bounds using the provided color and format flags.
static void DrawText(HDC hDC, const String& Text, Font& Font, Rectangle Bounds, Color ForeColor, TextFormatFlags Flags = TextFormatFlags::Default);
// Draws the specified text at the specified bounds using the provided color and format flags.
static void DrawText(std::unique_ptr<Drawing::Graphics>& Graphics, const String& Text, Font& Font, Rectangle Bounds, Color ForeColor, TextFormatFlags Flags = TextFormatFlags::Default);
};
}