X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5693ba91e351b099892c16a809230017bffd6b2..f992f2ae260e437eeb729de602deee8bbef3b744:/interface/defs.h diff --git a/interface/defs.h b/interface/defs.h index 47fd6ffaac..61b05d3599 100644 --- a/interface/defs.h +++ b/interface/defs.h @@ -6,6 +6,49 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// +/** + Item kinds for use with wxMenu, wxMenuItem, and wxToolBar. + + @see wxMenu::Append(), wxMenuItem::wxMenuItem(), wxToolBar::AddTool() +*/ +enum wxItemKind +{ + wxITEM_SEPARATOR = -1, + + /** + Normal tool button / menu item. + + @see wxToolBar::AddTool(), wxMenu::AppendItem(). + */ + wxITEM_NORMAL, + + /** + Check (or toggle) tool button / menu item. + + @see wxToolBar::AddCheckTool(), wxMenu::AppendCheckItem(). + */ + wxITEM_CHECK, + + /** + Radio tool button / menu item. + + @see wxToolBar::AddRadioTool(), wxMenu::AppendRadioItem(). + */ + wxITEM_RADIO, + + /** + Normal tool button with a dropdown arrow next to it. Clicking the + dropdown arrow sends a @c wxEVT_COMMAND_TOOL_DROPDOWN_CLICKED event and may + also display the menu previously associated with the item with + wxToolBar::SetDropdownMenu(). Currently this type of tools is supported + under MSW and GTK. + */ + wxITEM_DROPDOWN, + + wxITEM_MAX +}; + + /** Paper size types for use with the printing framework. @@ -316,3 +359,4 @@ void wxVaCopy(va_list argptrDst, va_list argptrSrc); //@} +