April 25, 2024

Dynamic Windows Function [dw_draw_rect]

Syntax

void dw_draw_rect(HWND handle, HPIXMAP pixmap, int flags, int x, int y, int width, int height)

Parameters

HWND handle: Handle to the window.
HPIXMAP pixmap: Handle to the pixmap. (choose only one of these)
int flags: DW_DRAW_FILL (1) to fill the box or DW_DRAW_DEFAULT (0).
int x: X coordinate.
int y: Y coordinate.
int width: Width of rectangle.
int height: Height of rectangle.

Description

Draw a rectangle on a window (preferably a render window).

Remarks

As of version 2.3 you can OR the flags with DW_DRAW_NOAA to disable antialiased drawing to the surface.