<--- Cannot embed stylesheet: [Errno 2] No such file or directory: '../../../aros.css' --->

reaction-chooser

Index


AllocChooserNodeA() CHOOSER_GetClass() FreeChooserNode() GetChooserNodeAttrsA()
HideChooser() SetChooserNodeAttrsA() ShowChooser()  

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.

HideChooser()

Synopsis

void HideChooser(
         Object * o,
         struct Window * w );

Function

Closes a list opened with ShowChooser() or by the user, without a pick.

Inputs

o - chooser.gadget object.
w - window the gadget is in.

See also

ShowChooser()


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.

ShowChooser()

Synopsis

BOOL ShowChooser(
         Object * o,
         struct Window * w,
         ULONG xpos,
         ULONG ypos );

Function

Opens the chooser's list at a position in the window, as if the
user had clicked the gadget. The pick is reported like a click.

Inputs

o    - chooser.gadget object, added to the window w.
w    - window the gadget is in.
xpos, ypos - top left corner of the list, window coordinates.

Result

TRUE if the list was opened.

See also

HideChooser()