GMenu.TreeIter

Fields

None

Methods

get_alias ()

get_directory ()

get_entry ()

get_header ()

get_separator ()

next ()

Details

class GMenu.TreeIter
get_alias()
Returns:

An alias

Return type:

GMenu.TreeAlias

This method may only be called if GMenu.TreeIter.next() returned GMenu.TreeItemType.ALIAS.

get_directory()
Returns:

A directory

Return type:

GMenu.TreeDirectory

This method may only be called if GMenu.TreeIter.next() returned GMenu.TreeItemType.DIRECTORY.

get_entry()
Returns:

An entry

Return type:

GMenu.TreeEntry

This method may only be called if GMenu.TreeIter.next() returned GMenu.TreeItemType.ENTRY.

get_header()
Returns:

A header

Return type:

GMenu.TreeHeader

This method may only be called if GMenu.TreeIter.next() returned GMenu.TreeItemType.HEADER.

get_separator()
Returns:

A separator

Return type:

GMenu.TreeSeparator

This method may only be called if GMenu.TreeIter.next() returned GMenu.TreeItemType.SEPARATOR.

next()
Returns:

The type of the next item that can be retrived from the iterator

Return type:

GMenu.TreeItemType

Change the iterator to the next item, and return its type. If there are no more items, GMenu.TreeItemType.INVALID is returned.