a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 icon.library
  AddFreeList
  BumpRevision
  ChangeToSelectedIconColor
  DeleteDiskObject
  DrawIconStateA
  DupDiskObjectA
  FindToolType
  FreeDiskObject
  FreeFreeList
  GetDefDiskObject
  GetDiskObject
  GetDiskObjectNew
  GetIconRectangleA
  GetIconTagList
  IconControlA
  LayoutIconA
  MatchToolValue
  NewDiskObject
  PutDefDiskObject
  PutDiskObject
  PutIconTagList
Include
GuruMeditation
Docs » Autodocs » icon.library » NewDiskObject

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>

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

The Silents

ANA
TSL
AOA
SCX

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se