# Method GTK2.UiManager()->get_toplevels()

Method get_toplevels

  `array get_toplevels(int types)`

Description

  Obtains a list of all toplevel widgets of the requested types. Bitwise or of UI_MANAGER_ACCELERATOR, UI_MANAGER_AUTO, UI_MANAGER_MENU, UI_MANAGER_MENUBAR, UI_MANAGER_MENUITEM, UI_MANAGER_PLACEHOLDER, UI_MANAGER_POPUP, UI_MANAGER_SEPARATOR, UI_MANAGER_TOOLBAR and UI_MANAGER_TOOLITEM.