summaryrefslogtreecommitdiff
path: root/src/nigui/private/windows/windows.nim
diff options
context:
space:
mode:
authortrustable-code <krauter.simon@arcor.de>2018-12-06 21:09:47 +0100
committertrustable-code <krauter.simon@arcor.de>2018-12-06 21:09:47 +0100
commit6049a7e7cd89d0bdd758e93bf832ec5e657323bd (patch)
treed4b5b12b887a948afe77cfc287ed99d2b0d572fb /src/nigui/private/windows/windows.nim
parent3a3d374837dc04ab6c67794fe09798489beea9c4 (diff)
downloadNiGui-6049a7e7cd89d0bdd758e93bf832ec5e657323bd.tar.gz
NiGui-6049a7e7cd89d0bdd758e93bf832ec5e657323bd.zip
Add drawing methods drawEllipseArea(), drawEllipseOutline() and drawArcOutline()
Diffstat (limited to 'src/nigui/private/windows/windows.nim')
-rwxr-xr-xsrc/nigui/private/windows/windows.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nigui/private/windows/windows.nim b/src/nigui/private/windows/windows.nim
index 537a40f..f35e603 100755
--- a/src/nigui/private/windows/windows.nim
+++ b/src/nigui/private/windows/windows.nim
@@ -489,6 +489,9 @@ proc GdipDisposeImage*(image: pointer): int32 {.importc: "GdipDisposeImage", lib
proc GdipFillRectangleI*(graphics, brush: pointer, x, y, width, height: int32): int32 {.importc: "GdipFillRectangleI", libGdiplus.}
proc GdipDrawRectangleI*(graphics, pen: pointer, x, y, width, height: int32): int32 {.importc: "GdipDrawRectangleI", libGdiplus.}
proc GdipDrawLineI*(graphics, pen: pointer, x1, y1, x2, y2: int32): int32 {.importc: "GdipDrawLineI", libGdiplus.}
+proc GdipDrawArc*(graphics, pen: pointer, x, y, width, height, startAngle, sweepAngle: cfloat): int32 {.importc: "GdipDrawArc", libGdiplus.}
+proc GdipFillEllipseI*(graphics, brush: pointer, x, y, width, height: int32): int32 {.importc: "GdipFillEllipseI", libGdiplus.}
+proc GdipDrawEllipseI*(graphics, pen: pointer, x, y, width, height: int32): int32 {.importc: "GdipDrawEllipseI", libGdiplus.}
proc GdipCreateSolidFill*(color: ARGB, brush: var pointer): int32 {.importc: "GdipCreateSolidFill", libGdiplus.}
proc GdipDeleteBrush*(brush: pointer): int32 {.importc: "GdipDeleteBrush", libGdiplus.}
proc GdipCreatePen1*(color: ARGB, width: cfloat, unit: int32, pen: var pointer): int32 {.importc: "GdipCreatePen1", libGdiplus.}