[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

The IM_ERASE method tells an image to erase itself.  The Intuition
function EraseImage() uses this method.  IM_ERASE receives the following
parameters:

    struct impErase
    {
        ULONG MethodID;
        struct RastPort *imp_RPort;
        struct
        {
            WORD X;
            WORD Y;
        } imp_Offset;
    };

The mytextlabelclass example doesn't know anything about this method, so
it blindly passes this message on to the superclass.  The superclass,
imageclass, will call the graphics.library function EraseRect() using the
dimensions found in the imageclass object's Image structure.