Unit 'intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

GetAttr

Inquire the value of some attribute of an object.

Declaration

Source position: intuition.pas line 4108

function GetAttr(

  attrID: LongWord;

  obj: POINTER;

  storagePtr: PULONG

):LongWord; overload;

function GetAttr(

  attrID: LongWord;

  obj: POINTER;

  var storage: LongWord

):LongWord; overload;

Arguments

attrID

  

The attribute tag ID understood by the object's class

storagePtr

  

A pointer to appropriate storage for the answer

Function result

Mostly True if the method is supported for the specified attribute and False if it isn't or the attribute can't be read at this time. See the classes documentation for details.

Arguments

attrID

  

The attribute tag ID understood by the object's class

Description

Inquires from the specified object the value of the specified attribute.

You always pass the address of a long variable, which will receive the same value that would be passed to SetAttrs() in the ti_Data portion of a TagItem element.

Not all attributes will respond to this function. Those that will are documented on a class-by-class basis.

This function sends OM_GET to the object.

See also

NewObject

  

Varargs version of NewObjectA()

DisposeObject

  

Deletes a 'boopsi' object.

SetAttrs

  

Varargs Version of SetAttrsA()

MakeClass

  

Create and initialize a boopsi class.


Documentation generated on: 2021-07-30