createPolyRgn

Syntax

region createPolyRgn(int fill_mode,int x1, int y1, int x2, int y2, ..., int xn, int yn)

Arguments

fill_mode
Use either the predefined constant ALTERNATE or WINDING to set this parameter. Then FM will either fill or not overlapping areas.
x1,y1, x2,y2, ..., xn,yn
At least three coordinate pairs must be defined.

Return

Return a polygonal region (see comments).

Example

setDialogRegion(createPolyRgn(WINDING,6,50,45,6,100,30,95,87,36,102));

Also see

createCircularRgn, createEllipticRgn, createRectRgn, createRoundRectRgn, createCircularRgn, refreshRgn, setDialogRegion

Comments

"region" correspond to a particular FM type or object that might need to be better documented or defined. You can't directly cast it to an integer, despite it behaves like an integer.

The previous example doesn't work properly. Fix ?

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.