Unit 'icon' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

NewDiskObject

Create an empty icon

Declaration

Source position: icon.pas line 369

function NewDiskObject(

  type_: LongInt

):PDiskObject;

Arguments

type_

  

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

Function result

Pointer to a struct DiskObject or nil in case of error. You can use IoErr() to retrieve the error code.

Description

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.

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

IoErr()

  

Return extra information from the system


Documentation generated on: 2021-07-30