2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_CHECKBUTTON_H
4 #define _GTKMM_CHECKBUTTON_H
12 * Copyright (C) 1998-2002 The gtkmm Development Team
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
24 * You should have received a copy of the GNU Library General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 #include <gtkmm/togglebutton.h>
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 typedef struct _GtkCheckButton GtkCheckButton;
34 typedef struct _GtkCheckButtonClass GtkCheckButtonClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 { class CheckButton_Class; } // namespace Gtk
43 /** Create widgets with a discrete toggle button.
45 * A Gtk::CheckButton places a discrete Gtk::ToggleButton next to a widget,
46 * (usually a Gtk::Label). See Gtk::ToggleButton widgets for more
47 * information about toggle/check buttons. The important signal,
48 * signal_toggled() is also inherited from Gtk::ToggleButton.
53 class CheckButton : public ToggleButton
56 #ifndef DOXYGEN_SHOULD_SKIP_THIS
57 typedef CheckButton CppObjectType;
58 typedef CheckButton_Class CppClassType;
59 typedef GtkCheckButton BaseObjectType;
60 typedef GtkCheckButtonClass BaseClassType;
61 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63 virtual ~CheckButton();
65 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68 friend class CheckButton_Class;
69 static CppClassType checkbutton_class_;
72 CheckButton(const CheckButton&);
73 CheckButton& operator=(const CheckButton&);
76 explicit CheckButton(const Glib::ConstructParams& construct_params);
77 explicit CheckButton(GtkCheckButton* castitem);
79 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
82 #ifndef DOXYGEN_SHOULD_SKIP_THIS
83 static GType get_type() G_GNUC_CONST;
84 static GType get_base_type() G_GNUC_CONST;
87 ///Provides access to the underlying C GtkObject.
88 GtkCheckButton* gobj() { return reinterpret_cast<GtkCheckButton*>(gobject_); }
90 ///Provides access to the underlying C GtkObject.
91 const GtkCheckButton* gobj() const { return reinterpret_cast<GtkCheckButton*>(gobject_); }
95 //C++ methods used to invoke GTK+ virtual functions:
98 //GTK+ Virtual Functions (override these to change behaviour):
100 //Default Signal Handlers::
107 /** Create an empty check button.
108 * With an empty button, you can Gtk::Button::add() a widget such as a
109 * Gtk::Pixmap or Gtk::Box.
111 * If you just wish to add a Gtk::Label, you may want to use the
112 * Gtk::CheckButton(const Glib::ustring &label) constructor directly
117 /** Create a check button with a label.
118 * You won't be able to add a widget to this button since it already
119 * contains a Gtk::Label
121 explicit CheckButton(const Glib::ustring& label, bool mnemonic = false);
125 /** Emited on button redraw to update indicator.
126 * Triggered when the button is redrawn (e.g.after being toggled)
127 * Overload this signal if you want to implement your own check button
128 * look. Otherwise, you most likely don't care about it.
129 * The GdkRectangle specifies the area of the widget which will get
132 virtual void draw_indicator_vfunc(GdkRectangle* area);
138 } /* namespace Gtk */
143 /** @relates Gtk::CheckButton
144 * @param object The C instance
145 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
146 * @result A C++ instance that wraps this C instance.
148 Gtk::CheckButton* wrap(GtkCheckButton* object, bool take_copy = false);
150 #endif /* _GTKMM_CHECKBUTTON_H */