22#ifndef FREERDP_LIB_GDI_BRUSH_H
23#define FREERDP_LIB_GDI_BRUSH_H
25#include <winpr/cast.h>
27#include <freerdp/api.h>
28#include <freerdp/gdi/gdi.h>
36 FREERDP_LOCAL
const char* gdi_rop_to_string(UINT32 code);
39 FREERDP_LOCAL HGDI_BRUSH gdi_CreateSolidBrush(UINT32 crColor);
42 FREERDP_LOCAL HGDI_BRUSH gdi_CreatePatternBrush(HGDI_BITMAP hbmp);
45 FREERDP_LOCAL HGDI_BRUSH gdi_CreateHatchBrush(HGDI_BITMAP hbmp);
48 static inline UINT32 gdi_GetBrushStyle(HGDI_DC hdc)
50 if (!hdc || !hdc->brush)
53 return WINPR_ASSERTING_INT_CAST(UINT32, hdc->brush->style);