/src/FreeRDP/libfreerdp/gdi/brush.h
Line | Count | Source (jump to first uncovered line) |
1 | | /** |
2 | | * FreeRDP: A Remote Desktop Protocol Implementation |
3 | | * GDI Brush Functions |
4 | | * |
5 | | * Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> |
6 | | * Copyright 2016 Armin Novak <armin.novak@thincast.com> |
7 | | * Copyright 2016 Thincast Technologies GmbH |
8 | | * |
9 | | * Licensed under the Apache License, Version 2.0 (the "License"); |
10 | | * you may not use this file except in compliance with the License. |
11 | | * You may obtain a copy of the License at |
12 | | * |
13 | | * http://www.apache.org/licenses/LICENSE-2.0 |
14 | | * |
15 | | * Unless required by applicable law or agreed to in writing, software |
16 | | * distributed under the License is distributed on an "AS IS" BASIS, |
17 | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
18 | | * See the License for the specific language governing permissions and |
19 | | * limitations under the License. |
20 | | */ |
21 | | |
22 | | #ifndef FREERDP_LIB_GDI_BRUSH_H |
23 | | #define FREERDP_LIB_GDI_BRUSH_H |
24 | | |
25 | | #include <winpr/cast.h> |
26 | | |
27 | | #include <freerdp/api.h> |
28 | | #include <freerdp/gdi/gdi.h> |
29 | | |
30 | | #ifdef __cplusplus |
31 | | extern "C" |
32 | | { |
33 | | #endif |
34 | | |
35 | | FREERDP_LOCAL const char* gdi_rop_to_string(UINT32 code); |
36 | | |
37 | | FREERDP_LOCAL HGDI_BRUSH gdi_CreateSolidBrush(UINT32 crColor); |
38 | | FREERDP_LOCAL HGDI_BRUSH gdi_CreatePatternBrush(HGDI_BITMAP hbmp); |
39 | | FREERDP_LOCAL HGDI_BRUSH gdi_CreateHatchBrush(HGDI_BITMAP hbmp); |
40 | | |
41 | | static INLINE UINT32 gdi_GetBrushStyle(HGDI_DC hdc) |
42 | 0 | { |
43 | 0 | if (!hdc || !hdc->brush) |
44 | 0 | return GDI_BS_NULL; |
45 | | |
46 | 0 | return WINPR_ASSERTING_INT_CAST(UINT32, hdc->brush->style); |
47 | 0 | } Unexecuted instantiation: bitmap.c:gdi_GetBrushStyle Unexecuted instantiation: gdi.c:gdi_GetBrushStyle Unexecuted instantiation: graphics.c:gdi_GetBrushStyle Unexecuted instantiation: shape.c:gdi_GetBrushStyle Unexecuted instantiation: brush.c:gdi_GetBrushStyle |
48 | | |
49 | | #ifdef __cplusplus |
50 | | } |
51 | | #endif |
52 | | |
53 | | #endif /* FREERDP_LIB_GDI_BRUSH_H */ |