FreeRDP
Loading...
Searching...
No Matches
gdi/brush.h
1
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
WINPR_ATTR_NODISCARD
36
FREERDP_LOCAL
const
char
* gdi_rop_to_string(UINT32 code);
37
38
WINPR_ATTR_NODISCARD
39
FREERDP_LOCAL
HGDI_BRUSH
gdi_CreateSolidBrush(UINT32 crColor);
40
41
WINPR_ATTR_NODISCARD
42
FREERDP_LOCAL
HGDI_BRUSH
gdi_CreatePatternBrush(
HGDI_BITMAP
hbmp);
43
44
WINPR_ATTR_NODISCARD
45
FREERDP_LOCAL
HGDI_BRUSH
gdi_CreateHatchBrush(
HGDI_BITMAP
hbmp);
46
47
WINPR_ATTR_NODISCARD
48
static
inline
UINT32 gdi_GetBrushStyle(
HGDI_DC
hdc)
49
{
50
if
(!hdc || !hdc->brush)
51
return
GDI_BS_NULL;
52
53
return
WINPR_ASSERTING_INT_CAST(UINT32, hdc->brush->style);
54
}
55
56
#ifdef __cplusplus
57
}
58
#endif
59
60
#endif
/* FREERDP_LIB_GDI_BRUSH_H */
GDI_BITMAP
Definition
include/freerdp/gdi/gdi.h:392
GDI_BRUSH
Definition
include/freerdp/gdi/gdi.h:438
GDI_DC
Definition
include/freerdp/gdi/gdi.h:458
libfreerdp
gdi
brush.h
Generated by
1.9.8