Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PtTreeGetSelIndexes

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PtTreeGetSelIndexes

[Previous] [Contents] [Index] [Next]

PtTreeGetSelIndexes()

Fill a buffer with indexes

Synopsis:

unsigned short *PtTreeGetSelIndexes( 
                    PtWidget_t *widget, 
                    unsigned short *buffer );

Description:

This function fills a buffer with indexes of all the selected items in the PtTree widget. The first item in the widget has an index of 1, not 0.

  • If buffer is NULL, the function allocates a buffer using malloc(), and the buffer is zero-terminated.
  • If buffer is non-NULL, the function adds zero to the end only if there are no selected items in the widget.

Note: Items that belong to collapsed subtrees aren't included in the buffer.

Returns:

A pointer to the buffer.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtTree, PtTreeClearSelection(), PtTreeGetCurrent(), PtTreeGoto(), PtTreeItem_t, PtTreeRootItem(), PtTreeSelect(), PtTreeSelectedItems(), PtTreeSetSelIndexes(), PtTreeShow(), PtTreeUnselect(), PtTreeUnselectNonBrothers()


[Previous] [Contents] [Index] [Next]

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026