aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/Base.h
blob: c338139455284c9e6ea055478277e0303e67fa19 (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
#pragma once
#include <cru/platform/Base.h>          // IWYU pragma: export
#include <cru/platform/Color.h>         // IWYU pragma: export
#include <cru/platform/GraphicsBase.h>  // IWYU pragma: export
#include <cru/platform/Matrix.h>        // IWYU pragma: export

#ifdef CRU_IS_DLL
#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 IImage;
struct IImageFactory;
struct IPainter;
struct ITextLayout;

struct TextHitTestResult {
  Index position;
  bool trailing;
  bool inside_text;
};
}  // namespace cru::platform::graphics