I want to retrieve all selected, i don't find it in the documentation.
Is it possible ?
You can use open tree API to handle the issue: function find_item_by_state(n_mask) - returns an array of items with specified state. States descrption
is also present in the product documentation:
0 bit - last item in the block,
1 bit - reserved,
2 bit - item is selected,
3 bit - item is opened,
4 bit - item is node,
5 bit - item is root,
6 bit - item is mouseovered
So in you case mask should have 2nd bit set, and n_mask value will be 4.