/* Copyright (C) 1998-2002 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ // To exclude this file from the documentation when build-deprecated-api=false. _CONFIGINCLUDE(gtkmmconfig.h) #include _DEFS(gtkmm,gtk) _PINCLUDE(gtkmm/private/menuitem_p.h) #m4 _PUSH(SECTION_CC_PRE_INCLUDES) #undef GTK_DISABLE_DEPRECATED #define GDK_DISABLE_DEPRECATION_WARNINGS 1 #m4 _POP() namespace Gtk { /** A special Gtk::MenuItem which is used to tear off and reattach its menu. * When its menu is shown normally, the Gtk::TearoffMenuItem is drawn as a dotted line indicating that the menu can be torn off. Activating it causes its menu to be torn off and displayed in its own window. * When its menu is shown as a tearoff menu, the Gtk::TearoffMenuItem is drawn as a dotted line which has a left pointing arrow graphic indicating that the tearoff menu can be reattached. Activating it will erase the tearoff menu window. * * @deprecated Menus are not meant to be torn around. There is no replacement. * * @ingroup Widgets * @ingroup Menus */ class GTKMM_API TearoffMenuItem : public MenuItem { _CLASS_GTKOBJECT(TearoffMenuItem,GtkTearoffMenuItem,GTK_TEAROFF_MENU_ITEM,Gtk::MenuItem,GtkMenuItem, , , GTKMM_API) _IS_DEPRECATED public: _CTOR_DEFAULT }; } //namespace Gtk