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

/* $Id: bin.gen_h,v 1.39 2001/02/09 20:21:43 kenelson Exp $ */

/* bin.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--/container.h>
#include <gtk/gtkbin.h>

namespace Gtk {
class Bin;
class Bin_Class;
}
namespace Gtk { Gtk::Bin *wrap (GtkBin *o); }
namespace Gtk
{
//: Signal Widget Container
//- Gtk_Bin is an abstract base class from which all classes holding
//- up to 1 widget inside of them.  It provides access to methods
//- relevent to a single object like add_label, add_pixmap, etc.
class Bin : public Container {

public:
  typedef Bin          CppObjectType;
  typedef Bin_Class    CppClassType;
  typedef GtkBin           BaseObjectType;
  typedef GtkBinClass      BaseClassType;

private:
  friend class Bin_Class;
  static CppClassType bin_class;

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

protected:
  void   initialize_class();
  explicit Bin(GtkBin *castitem);

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

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

  virtual ~Bin();

private:

public:




  // get_child() is convenience function to get c++ wrapper of
  // the contained widget. It may return NULL, if such item is not
  // available or if it does not have existing C++ wrapper.
  Gtk::Widget* get_child() const;

  //: Remove the contained object
  //- Since Gtk_Bin can only hold one object it is not necessary to
  //- specify which object to remove like other containers.
  void remove();

  void add_label(const string &label,
                    gfloat x=0.0,
                    gfloat y=0.5);

  void add_pixmap(const Gdk_Pixmap &pixmap,
                    const Gdk_Bitmap &bitmap);

  void add_pixlabel(const Gdk_Pixmap &pixmap,
                    const Gdk_Bitmap &bitmap,
                    const string &label,
                    gfloat x=0.0,
                    gfloat y=0.5);

  void add_pixlabel(const string &pixfile,
                    const string &label,
                    gfloat x=0.0,
                    gfloat y=0.5);
protected:
  Bin();

public:

protected:
  // impl functions

};

}


//+ PROPERTIES(Gtk_Bin)
//. name: child
//. type: Gtk_Widget*
//. get:
//. set:
//. desc:
#endif
