This method allocates space for an embedded struct gadget (defined in <intuition/intuition.h>) and initializes some of the attributes defined by gadgetclass.