--- Cannot embed stylesheet: [Errno 2] No such file or directory: '../../../aros.css' --->
| AllocChooserNodeA() | CHOOSER_GetClass() | FreeChooserNode() | GetChooserNodeAttrsA() |
| HideChooser() | SetChooserNodeAttrsA() | ShowChooser() |
struct Node * AllocChooserNodeA(
struct TagItem * tags );
struct Node * AllocChooserNode(
TAG tag, ... );
Allocates and initializes a ChooserNode for use with the chooser.gadget label list.
tags - TagItem array with CNA_* attributes.
Pointer to the allocated node, or NULL on failure.
Class * CHOOSER_GetClass();
Returns a pointer to the chooser BOOPSI class.
Pointer to the class, or NULL on failure.
void FreeChooserNode(
struct Node * node );
Frees a ChooserNode previously allocated with AllocChooserNodeA.
node - The node to free.
void GetChooserNodeAttrsA(
struct Node * node,
struct TagItem * tags );
void GetChooserNodeAttrs(
struct Node * node,
TAG tag, ... );
Gets attributes from a ChooserNode. Each tag's ti_Data is a pointer to an IPTR that receives the attribute value.
node - The ChooserNode to query.
tags - TagItem array with CNA_* attribute IDs. ti_Data
points to storage for the returned value.
void HideChooser(
Object * o,
struct Window * w );
Closes a list opened with ShowChooser() or by the user, without a pick.
o - chooser.gadget object. w - window the gadget is in.
void SetChooserNodeAttrsA(
struct Node * node,
struct TagItem * tags );
void SetChooserNodeAttrs(
struct Node * node,
TAG tag, ... );
Sets attributes on an existing ChooserNode.
node - The ChooserNode to modify. tags - TagItem array with CNA_* attributes.
BOOL ShowChooser(
Object * o,
struct Window * w,
ULONG xpos,
ULONG ypos );
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.
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.
TRUE if the list was opened.