blob: 3a18e39d3a7da351376210aada9097592c90263b (
plain)
1
2
3
4
5
6
7
8
9
10
11
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
|
#pragma once
#include "../Color.hpp"
#include "../GraphicsBase.hpp"
#include "../Matrix.hpp"
#include "../Resource.hpp"
#include <memory>
#ifdef CRU_PLATFORM_WINDOWS
#ifdef CRU_PLATFORM_GRAPHICS_EXPORT_API
#define CRU_PLATFORM_GRAPHICS_API __declspec(dllexport)
#else
#define CRU_PLATFORM_GRAPHICS_API __declspec(dllimport)
#endif
#else
#define CRU_PLATFORM_GRAPHICS_API
#endif
namespace cru::platform::graphics {
// forward declarations
struct IGraphicsFactory;
struct IBrush;
struct ISolidColorBrush;
struct IFont;
struct IGeometry;
struct IGeometryBuilder;
struct IPainter;
struct ITextLayout;
struct TextHitTestResult {
gsl::index position;
bool trailing;
bool inside_text;
};
} // namespace cru::platform::graphics
|