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

GetAttr

Inquire the value of some attribute of an object.

Declaration

Source position: intuition.pas line 3917

function GetAttr(

  AttrID: LongWord;

  obj: PObject_;

  StoragePtr: PLongWord

):LongWord; overload;

function GetAttr(

  AttrID: LongWord;

  obj: PObject_;

  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