reaction-chooser
| AllocChooserNodeA() | CHOOSER_GetClass() | FreeChooserNode() | GetChooserNodeAttrsA() |
| SetChooserNodeAttrsA() |
AllocChooserNodeA()
Synopsis
struct Node * AllocChooserNodeA(
struct TagItem * tags );
struct Node * AllocChooserNode(
TAG tag, ... );
Function
Allocates and initializes a ChooserNode for use with the chooser.gadget label list.
Inputs
tags - TagItem array with CNA_* attributes.
Result
Pointer to the allocated node, or NULL on failure.
CHOOSER_GetClass()
Synopsis
Class * CHOOSER_GetClass();
Function
Returns a pointer to the chooser BOOPSI class.
Result
Pointer to the class, or NULL on failure.
FreeChooserNode()
Synopsis
void FreeChooserNode(
struct Node * node );
Function
Frees a ChooserNode previously allocated with AllocChooserNodeA.
Inputs
node - The node to free.
GetChooserNodeAttrsA()
Synopsis
void GetChooserNodeAttrsA(
struct Node * node,
struct TagItem * tags );
void GetChooserNodeAttrs(
struct Node * node,
TAG tag, ... );
Function
Gets attributes from a ChooserNode. Each tag's ti_Data is a pointer to an IPTR that receives the attribute value.
Inputs
node - The ChooserNode to query.
tags - TagItem array with CNA_* attribute IDs. ti_Data
points to storage for the returned value.
SetChooserNodeAttrsA()
Synopsis
void SetChooserNodeAttrsA(
struct Node * node,
struct TagItem * tags );
void SetChooserNodeAttrs(
struct Node * node,
TAG tag, ... );
Function
Sets attributes on an existing ChooserNode.
Inputs
node - The ChooserNode to modify. tags - TagItem array with CNA_* attributes.


