MenuAttributeIter.getNext

This function combines Menu.attributeIterNext with Menu.attributeIterGetName and Menu.attributeIterGetValue.

First the iterator is advanced to the next (possibly first) attribute. If that fails, then FALSE is returned and there are no other effects.

If successful, name and value are set to the name and value of the attribute that has just been advanced to. At this point, Menu.attributeIterGetName and Menu.attributeIterGetValue will return the same values again.

The value returned in name remains valid for as long as the iterator remains at the current position. The value returned in value must be unreffed using Variant.unref when it is no longer in use.

class MenuAttributeIter
bool
getNext
(
out string outName
,)

Parameters

outName string

the type of the attribute

value Variant

the attribute value

Return Value

Type: bool

TRUE on success, or FALSE if there is no additional attribute

Meta

Since

2.32