createCircularRgn

Syntax

region createCircularRgn(int x, int y, int d)

Arguments

x
x defines abscissa (in DBUs) of upper-left corner of the bounding box (not the circle’s center!).
y
y defines ordinate (in DBUs) of upper-left corner of the bounding box (not the circle’s center!).
d
d defines the circle’s diameter

Return

Return a circular region (see comments)

Description

Allows to define a rounded circular visual region, that can be for instance handled by the functions refreshRgn or setDialogRegion

Example

setDialogRegion(createCircularRgn(20,20,200));

Also see

createEllipticRgn, createRectRgn, createRoundRectRgn, createCircularRgn, createPolyRgn, 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.

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