| 1 | // LAF Gfx Library | 
|---|
| 2 | // Copyright (C) 2019-2021  Igara Studio S.A. | 
|---|
| 3 | // | 
|---|
| 4 | // This file is released under the terms of the MIT license. | 
|---|
| 5 | // Read LICENSE.txt for more information. | 
|---|
| 6 |  | 
|---|
| 7 | #ifndef GFX_REGION_H_INCLUDED | 
|---|
| 8 | #define GFX_REGION_H_INCLUDED | 
|---|
| 9 | #pragma once | 
|---|
| 10 |  | 
|---|
| 11 | #include "gfx/rect.h" | 
|---|
| 12 | #include <vector> | 
|---|
| 13 | #include <iterator> | 
|---|
| 14 |  | 
|---|
| 15 | #if LAF_SKIA | 
|---|
| 16 | // There is a header file on Skia (SkTFitsIn.h) that uses | 
|---|
| 17 | // std::numeric_limits<>::max() and fails if we don't undef the | 
|---|
| 18 | // max() macro. | 
|---|
| 19 | #if LAF_WINDOWS | 
|---|
| 20 | #undef max | 
|---|
| 21 | #endif | 
|---|
| 22 |  | 
|---|
| 23 | #include "gfx/region_skia.h" | 
|---|
| 24 | #elif LAF_PIXMAN | 
|---|
| 25 | #include "gfx/region_pixman.h" | 
|---|
| 26 | #elif LAF_WINDOWS | 
|---|
| 27 | #include "gfx/region_win.h" | 
|---|
| 28 | #endif | 
|---|
| 29 |  | 
|---|
| 30 | #endif | 
|---|
| 31 |  | 
|---|