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


   NAME
        NewDiskObject -- Create an empty icon (V44)

   SYNOPSIS
        icon = NewDiskObject(type)
        D0                   D0

        struct diskobject * newdiskobject(long type);

   FUNCTION
        This function is used to create an "empty" diskobject
        structure, which has no image data associated with it.
        Still, all the necessary structures are in place,
        you just have to fill them in.

   INPUTS
        type -- Icon type to create, this must be one of WBDISK,
            WBDRAWER, WBTOOL, WBPROJECT, WBGARBAGE, WBDEVICE or WBKICK.

   RESULT
        icon -- Pointer to a struct diskobject or null in case of error.
            You can use ioerr() to retrieve the error code.

   NOTES
        The diskobject returned by this function will have a zero
        width and height image in the do_gadget.gadgetrender member
        and the do_Gadget.Width/do_Gadget.Height members will both
        be 0, too.

   SEE ALSO
        dos.library/ioerr
        workbench/icon.h
        workbench/workbench.h