Main Page - Header
Author: The Inti Development Team

Reference Manual

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# checkbutton.h

Go to the documentation of this file.

    00001  /*  Inti: Integrated Foundation Classes
    00002  *  Copyright (C) 2002 The Inti Development Team.
    00003  *
    00004  *  This program is free software; you can redistribute it and/or modify
    00005  *  it under the terms of the GNU General Public License as published by
    00006  *  the Free Software Foundation; either version 2 of the License, or
    00007  *  (at your option) any later version.
    00008  *
    00009  *  This program is distributed in the hope that it will be useful,
    00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00012  *  GNU Library General Public License for more details.
    00013  *
    00014  *  You should have received a copy of the GNU Library General Public License
    00015  *  along with this program; if not, write to the Free Software
    00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00017  */
    00018
    00021
    00022 #ifndef INTI_GTK_CHECK_BUTTON_H
    00023 #define INTI_GTK_CHECK_BUTTON_H
    00024
    00025 #ifndef INTI_GTK_TOGGLE_BUTTON_H
    00026 #include <inti/gtk/togglebutton.h>
    00027 #endif
    00028
    00029 #ifndef __GTK_CHECK_BUTTON_H__
    00030 #include <gtk/gtkcheckbutton.h>
    00031 #endif
    00032
    00033 namespace Inti {
    00034
    00035 namespace Gtk {
    00036
    00037 class CheckButtonClass;
    00038
    00045
    00046 class CheckButton : public ToggleButton
    00047 {
    00048         friend class G::Object;
    00049         friend class CheckButtonClass;
    00050
    00051         CheckButton(const CheckButton&);
    00052         CheckButton& operator=(const CheckButton&);
    00053
    00054 protected:
    00057
    00058         explicit CheckButton(GtkCheckButton *check_button, bool reference = false);
    00065
    00067 //  Override this do_ method when you want to change the default behaviour of the GtkCheckButton.
    00068
    00069         virtual void do_draw_indicator(GdkRectangle *area);
    00070
    00071 public:
    00074
    00075         CheckButton();
    00077
    00078         explicit CheckButton(const String& label, bool use_underline = false);
    00085
    00086         virtual ~CheckButton();
    00088
    00092
    00093         GtkCheckButton* gtk_check_button() const { return (GtkCheckButton*)instance; }
    00095
    00096         GtkCheckButtonClass* gtk_check_button_class() const;
    00098
    00099         operator GtkCheckButton* () const;
    00101
    00103 };
    00104
    00105 } // namespace Gtk
    00106
    00107 } // namespace Inti
    00108
    00109 #endif // INTI_GTK_CHECK_BUTTON_H
    00110

Main Page - Footer