find_item_by_id


Description:

[ Version ( since = "1.4" ) ]
public unowned Menu? find_item_by_id (string id, out uint position)

Locates a menu item that matches id and sets the position within the resulting Menu to position.

If no match is found, null is returned.

Parameters:

this

a MenuManager

id

the identifier of the menu item

position

the position within the resulting menu

Returns:

a Menu if successful; otherwise null and position is unset.