Appendix A: System Routines — Apps
315
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
OO_HasAttr
Declaration:
BOOL
OO_HasAttr
(pFrame
obj
, ULONG
selector
)
Category(ies):
Apps
Description:
Checks the inheritance hierarchy of object frame
obj
for the existence of
attribute
selector
.
Inputs:
obj
— Object frame pointer.
selector
— Attribute selector number.
Outputs:
Returns TRUE if attribute
selector
exists in object frame
obj
or somewhere
in its inheritance hierarchy. Otherwise returns FALSE.
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also: OO_CondGetAttr, OO_GetAppAttr, OO_GetAttr, OO_SetAppAttr,
OO_SetAttr
Example:
/* Does frame dispContextObj contain attribute OO_SPECIAL_FONT? */
if (OO_HasAttr(dispContextObj, OO_SPECIAL_FONT))
{
/* Use special font */
.
.
.
}