Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

tooltips.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  
00024 
00025 #ifndef INTI_GTK_TOOLTIPS_H
00026 #define INTI_GTK_TOOLTIPS_H
00027 
00028 #ifndef INTI_GTK_OBJECT_H
00029 #include <inti/gtk/object.h>
00030 #endif
00031 
00032 #ifndef __GTK_TOOLTIPS_H__
00033 #include <gtk/gtktooltips.h>
00034 #endif
00035 
00036 #ifndef  INTI_GTK_WIDGET_H
00037 #include <inti/gtk/widget.h>
00038 #endif
00039 
00040 namespace Inti {
00041 
00042 namespace Gtk {
00043 
00044 class Tooltips;
00045 class TooltipsClass;
00046 
00051  
00052 class TooltipsData
00053 {
00054         GtkTooltipsData data_;
00055 public:
00058 
00059         GtkTooltipsData* gtk_tooltips_data() const { return const_cast<GtkTooltipsData*>(&data_); }
00061 
00062         Tooltips* tooltips() const;
00064 
00065         String tip_text() const;
00067 
00068         String tip_private() const;
00072         
00074 };
00075 
00096 
00097 class Tooltips : public Object
00098 {
00099         friend class G::Object;
00100         friend class TooltipsClass;
00101 
00102         Tooltips(const Tooltips&);
00103         Tooltips& operator=(const Tooltips&);
00104         
00105 protected:
00108 
00109         explicit Tooltips(GtkTooltips *tooltips, bool reference = false);
00116         
00118         
00119 public:
00122 
00123         Tooltips();
00125         
00126         virtual ~Tooltips();
00128         
00132         
00133         GtkTooltips* gtk_tooltips() const { return (GtkTooltips*)instance; }
00135         
00136         GtkTooltipsClass* gtk_tooltips_class() const;
00138         
00139         operator GtkTooltips* () const;
00141 
00142         bool is_enabled() const;
00144 
00145         static TooltipsData* data_get(Widget& widget);
00149                 
00153 
00154         void enable();
00156         
00157         void disable();
00161         
00162         void set_tip(Widget& widget, const String& tip_text, const String& tip_private = 0);
00167                 
00168         void unset_tip(Widget& widget);
00171 
00172         void force_window();
00175                 
00177 };
00178 
00179 } // namespace Gtk
00180 
00181 } // namespace Inti
00182 
00183 #endif // INTI_GTK_TOOLTIPS_H
00184 
Main Page - Footer


Generated on Sun Sep 14 20:08:04 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002