Home  /  Autodocs  /  sketchboard.gadget

NAME

SGM_Clear
Set drawing area to current pen color.

SYNOPSIS

ULONG result = IDoMethodA(APTR obj, struct spGeneral* msg);

FUNCTION

This method clears the entire sketchboard to the current pen color.

Since V47 it clears the selection if there is one. Old applications that don't activate the select tool will not see a difference.

INPUTS

obj
sketchboard object pointer

msg
pointer to fully initialized struct spGeneral with the MethodID set to SGM_Clear (see <gadgets/sketchboard.h>)

RESULT

Returns 1 if changes were rendered or 0 if not.

SEE ALSO

intuition.library/DoGadgetMethodA()