Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Gtk::TearoffMenuItem Class Reference

A GtkTearoffMenuItem C++ wrapper class. More...

#include <xfc/gtk/tearoffmenuitem.hh>

Inheritance diagram for Xfc::Gtk::TearoffMenuItem:

Xfc::Gtk::MenuItem Xfc::Gtk::Item Xfc::Gtk::Bin Xfc::Gtk::Container Xfc::Gtk::Widget Xfc::Gtk::Object Xfc::Atk::Implementor Xfc::G::Object Xfc::G::TypeInterface Xfc::G::TypeInstance Xfc::G::TypeInstance Xfc::Trackable Xfc::Trackable List of all members.

Public Member Functions

Accessors

Detailed Description

A GtkTearoffMenuItem C++ wrapper class.

TearoffMenuItem is a special MenuItem which is used to tear off and reattach its menu. When its menu is shown normally, the 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 as a tearoff menu. When its menu is shown as a tearoff menu, the 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.

See also: the MenuItem and Menu HOWTOs and example.


Constructor & Destructor Documentation

Xfc::Gtk::TearoffMenuItem::TearoffMenuItem ( GtkTearoffMenuItem *  tearoff_menu_item,
bool  owns_reference = false 
) [explicit, protected]

Construct a new TearoffMenuItem from an existing GtkTearoffMenuItem.

Parameters:
tearoff_menu_item A pointer to a GtkTearoffMenuItem.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The tearoff_menu_item can be a newly created GtkTearoffMenuItem or an existing GtkTearoffMenuItem (see G::Object::Object).

Xfc::Gtk::TearoffMenuItem::TearoffMenuItem ( GtkTearoffMenuItem *  tearoff_menu_item,
bool  owns_reference = false 
) [explicit, protected]

Construct a new TearoffMenuItem from an existing GtkTearoffMenuItem.

Parameters:
tearoff_menu_item A pointer to a GtkTearoffMenuItem.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The tearoff_menu_item can be a newly created GtkTearoffMenuItem or an existing GtkTearoffMenuItem (see G::Object::Object).


The documentation for this class was generated from the following file: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3