else if((argc == 4) || IS_A_FLOAT(argv, 0) && IS_A_FLOAT(argv, 1)
IS_A_FLOAT(argv, 2) && IS_A_FLOAT(argv, 3)) {
w = (int)atom_getintarg(0, argc, argv);
h = (int)atom_getintarg(1, argc, argv);
min = (double)atom_getfloatarg(2, argc, argv);
max = (double)atom_getfloatarg(3, argc, argv);
}
And an equivalent for the other gui objects.
Subject: Re: [PD] gui object arguments
Date: August 7, 2013 2:42:33 AM EDT
On 08/07/13 07:49, Dan Wilcox wrote:
Do any of the pd gui / iem gui objects take creation args? Forgive me if
I missed this in the help patches.
all of them do, as this is the way how they keep their properties when
loading a patch.
on the downside, most of these arguments are not really meant for humans
to parse/write.
and afair, they don't support "short lists" of arguments (so you have to
specify all arguments, or a rather longish subset)
fgmasdr
IOhannes
--------
Dan Wilcox
@danomatika