2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_STATUSBAR_H
4 #define _GTKMM_STATUSBAR_H
13 * Copyright (C) 1998-2002 The gtkmm Development Team
15 * This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Library General Public
17 * License as published by the Free Software Foundation; either
18 * version 2 of the License, or (at your option) any later version.
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Library General Public License for more details.
25 * You should have received a copy of the GNU Library General Public
26 * License along with this library; if not, write to the Free
27 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 #include <gtkmm/box.h>
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 typedef struct _GtkStatusbar GtkStatusbar;
35 typedef struct _GtkStatusbarClass GtkStatusbarClass;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
40 { class Statusbar_Class; } // namespace Gtk
44 /** Text status indicator
45 * This widget is used to display status information.
46 * Messages are pushed and poped onto a message stack.
47 * When text is pushed it replaces the old contents.
48 * The old text is restored when popped.
50 * It derives from Gtk::HBox so that additional information can be added
56 class Statusbar : public HBox
59 #ifndef DOXYGEN_SHOULD_SKIP_THIS
60 typedef Statusbar CppObjectType;
61 typedef Statusbar_Class CppClassType;
62 typedef GtkStatusbar BaseObjectType;
63 typedef GtkStatusbarClass BaseClassType;
64 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71 friend class Statusbar_Class;
72 static CppClassType statusbar_class_;
75 Statusbar(const Statusbar&);
76 Statusbar& operator=(const Statusbar&);
79 explicit Statusbar(const Glib::ConstructParams& construct_params);
80 explicit Statusbar(GtkStatusbar* castitem);
82 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
85 #ifndef DOXYGEN_SHOULD_SKIP_THIS
86 static GType get_type() G_GNUC_CONST;
87 static GType get_base_type() G_GNUC_CONST;
90 ///Provides access to the underlying C GtkObject.
91 GtkStatusbar* gobj() { return reinterpret_cast<GtkStatusbar*>(gobject_); }
93 ///Provides access to the underlying C GtkObject.
94 const GtkStatusbar* gobj() const { return reinterpret_cast<GtkStatusbar*>(gobject_); }
98 //C++ methods used to invoke GTK+ virtual functions:
99 #ifdef GLIBMM_VFUNCS_ENABLED
100 #endif //GLIBMM_VFUNCS_ENABLED
103 //GTK+ Virtual Functions (override these to change behaviour):
104 #ifdef GLIBMM_VFUNCS_ENABLED
105 #endif //GLIBMM_VFUNCS_ENABLED
107 //Default Signal Handlers::
108 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
109 virtual void on_text_pushed(guint context_id, const Glib::ustring& text);
110 virtual void on_text_popped(guint context_id, const Glib::ustring& text);
111 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
121 /** Returns: an integer id
122 * @param context_description Textual description of what context
123 * the new message is being used in.
124 * @return An integer id.
126 guint get_context_id(const Glib::ustring& context_description);
127 guint push(const Glib::ustring& text, guint context_id = 0);
129 /** Removes the first message in the Gtk::StatusBar's stack
130 * with the given context id.
132 * Note that this may not change the displayed message, if
133 * the message at the top of the stack has a different
135 * @param context_id A context identifier.
137 void pop(guint context_id = 0);
138 void remove_message(guint message_id, guint context_id = 0);
140 /** Sets whether the statusbar has a resize grip.
141 * <tt>true</tt> by default.
142 * @param setting <tt>true</tt> to have a resize grip.
144 void set_has_resize_grip(bool setting = true);
146 /** Returns: <tt>true</tt> if the statusbar has a resize grip.
147 * @return <tt>true</tt> if the statusbar has a resize grip.
149 bool get_has_resize_grip() const;
154 * <tt>void on_my_%text_pushed(guint context_id, const Glib::ustring& text)</tt>
157 Glib::SignalProxy2< void,guint,const Glib::ustring& > signal_text_pushed();
162 * <tt>void on_my_%text_popped(guint context_id, const Glib::ustring& text)</tt>
165 Glib::SignalProxy2< void,guint,const Glib::ustring& > signal_text_popped();
168 #ifdef GLIBMM_PROPERTIES_ENABLED
169 /** Whether the statusbar has a grip for resizing the toplevel.
171 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
172 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
173 * the value of the property changes.
175 Glib::PropertyProxy<bool> property_has_resize_grip() ;
176 #endif //#GLIBMM_PROPERTIES_ENABLED
178 #ifdef GLIBMM_PROPERTIES_ENABLED
179 /** Whether the statusbar has a grip for resizing the toplevel.
181 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
182 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
183 * the value of the property changes.
185 Glib::PropertyProxy_ReadOnly<bool> property_has_resize_grip() const;
186 #endif //#GLIBMM_PROPERTIES_ENABLED
191 } /* namespace Gtk */
196 /** A Glib::wrap() method for this object.
198 * @param object The C instance.
199 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
200 * @result A C++ instance that wraps this C instance.
202 * @relates Gtk::Statusbar
204 Gtk::Statusbar* wrap(GtkStatusbar* object, bool take_copy = false);
208 #endif /* _GTKMM_STATUSBAR_H */