| 1 |
/* Copyright (C) 1998-2002 The gtkmm Development Team |
| 2 |
* |
| 3 |
* This library is free software; you can redistribute it and/or |
| 4 |
* modify it under the terms of the GNU Lesser General Public |
| 5 |
* License as published by the Free Software Foundation; either |
| 6 |
* version 2.1 of the License, or (at your option) any later version. |
| 7 |
* |
| 8 |
* This library is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
* Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser General Public |
| 14 |
* License along with this library; if not, see <https://www.gnu.org/licenses/>. |
| 15 |
*/ |
| 16 |
|
| 17 |
// To exclude this file from the documentation when build-deprecated-api=false. |
| 18 |
_CONFIGINCLUDE(gtkmmconfig.h) |
| 19 |
|
| 20 |
#include <gtkmm/menuitem.h> |
| 21 |
_DEFS(gtkmm,gtk) |
| 22 |
_PINCLUDE(gtkmm/private/menuitem_p.h) |
| 23 |
|
| 24 |
#m4 _PUSH(SECTION_CC_PRE_INCLUDES) |
| 25 |
#undef GTK_DISABLE_DEPRECATED |
| 26 |
#define GDK_DISABLE_DEPRECATION_WARNINGS 1 |
| 27 |
#m4 _POP() |
| 28 |
|
| 29 |
namespace Gtk |
| 30 |
{ |
| 31 |
|
| 32 |
/** A special Gtk::MenuItem which is used to tear off and reattach its menu. |
| 33 |
* 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. |
| 34 |
* 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. |
| 35 |
* |
| 36 |
* @deprecated Menus are not meant to be torn around. There is no replacement. |
| 37 |
* |
| 38 |
* @ingroup Widgets |
| 39 |
* @ingroup Menus |
| 40 |
*/ |
| 41 |
class GTKMM_API TearoffMenuItem : public MenuItem |
| 42 |
{ |
| 43 |
_CLASS_GTKOBJECT(TearoffMenuItem,GtkTearoffMenuItem,GTK_TEAROFF_MENU_ITEM,Gtk::MenuItem,GtkMenuItem, , , GTKMM_API) |
| 44 |
_IS_DEPRECATED |
| 45 |
public: |
| 46 |
_CTOR_DEFAULT |
| 47 |
}; |
| 48 |
|
| 49 |
} //namespace Gtk |