Logo Search packages:      
Sourcecode: ardour version File versions  Download package

item.h

// -*- c++ -*-
//  Generated by gtkmmproc from ./../item.gen_h -- DO NOT MODIFY!
#ifndef _GTKMM_ITEM_H
#define _GTKMM_ITEM_H

/* $Id: item.h,v 1.2 2003/06/17 16:37:40 pbd Exp $ */

/* item.h
 *
 * Copyright (C) 1998-1999 The Gtk-- Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <gtk--/bin.h>
#include <gtk/gtkitem.h>

namespace Gtk {
class Item;
class Item_Class;
}
namespace Gtk { Gtk::Item *wrap (GtkItem *o); }
namespace Gtk
{
//: Abstract base class for {\class Gtk::MenuItem}, {\class Gtk::ListItem} and {\class Gtk::TreeItem}.
//- The {\class Gtk::Item} widget is an abstract base class for {Gtk::MenuItem}, {Gtk::ListItem} and
//- {Gtk::TreeItem}.
class Item : public Bin {

public:
  typedef Item          CppObjectType;
  typedef Item_Class    CppClassType;
  typedef GtkItem           BaseObjectType;
  typedef GtkItemClass      BaseClassType;

private:
  friend class Item_Class;
  static CppClassType item_class;

  Item(const Item&);
  Item& operator=(const Item&); // not implemented

protected:
  void   initialize_class();
  explicit Item(GtkItem *castitem);

public:
  static GtkType get_type();
  GtkItem* gtkobj()             { return (GtkItem*)(gtkobject); }
  const GtkItem* gtkobj() const { return (GtkItem*)(gtkobject); }
  static bool isA(Object *checkcast);

  // Hook for proxies
  static const char* const signal_names[];

  virtual ~Item();

private:

public:

  //- This class can be considered as a virtual base class.
  //- Only the signals it provides are of any interest.
  //- You don't want to instantiate any objects of that class.



  //: Triggered when the item is selected

  //: Triggered when the item is deselected

  //: Triggered when the item is toggled


protected:
  Item();

public:

  union
    {
      CppObjectType * item_self;
      Gtk::EmitProxySignal0<void,CppObjectType,BaseObjectType,0,&gtk_item_select> select;
      Gtk::EmitProxySignal0<void,CppObjectType,BaseObjectType,1,&gtk_item_deselect> deselect;
      Gtk::EmitProxySignal0<void,CppObjectType,BaseObjectType,2,&gtk_item_toggle> toggle;
    };

protected:
  // impl functions
    virtual void select_impl();
    virtual void deselect_impl();
    virtual void toggle_impl();

};

}


#endif

Generated by  Doxygen 1.6.0   Back to index