Unit 'Intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

GetAttr

Inquire the value of some attribute of an object.

Declaration

Source position: intuition.pas line 3296

function GetAttr(

  AttrID: LongWord;

  Object_: PObject_;

  StoragePtr: PIPTR

):LongWord; overload;

function GetAttr(

  AttrID: LongWord;

  Object_: PObject_;

  var Storage: NativeUInt

):LongWord; overload;

Arguments

AttrID

  

The attribute tag ID understood by the object's class

Object_

  

Abstract pointer to the boopsi object you are interested in

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

Object_

  

Abstract pointer to the boopsi object you are interested in

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