libgnomeuimm 2.28.0
icon-textitem.h
Go to the documentation of this file.
1// -*- c++ -*-
2// Generated by gtkmmproc -- DO NOT MODIFY!
3#ifndef _LIBGNOMEUIMM_ICON_TEXTITEM_H
4#define _LIBGNOMEUIMM_ICON_TEXTITEM_H
5
6
7#include <glibmm.h>
8
9/* $Id: icon-textitem.hg,v 1.5 2002/09/16 12:18:30 murrayc Exp $ */
10
11
12/* icon-textitem.hg
13 *
14 * Copyright (C) 1999-2002 The libgnomeuimm Development Team
15 *
16 * This library is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Lesser General Public
18 * License as published by the Free Software Foundation; either
19 * version 2.1 of the License, or (at your option) any later version.
20 *
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
25 *
26 * You should have received a copy of the GNU Lesser General Public
27 * License along with this library; if not, write to the Free
28 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 */
30
31#include <libgnomecanvasmm/item.h>
33#include <libgnomeuimm/entry.h>
34#include <gtkmm/entry.h>
35
36
37#ifndef DOXYGEN_SHOULD_SKIP_THIS
38typedef struct _GnomeIconTextItem GnomeIconTextItem;
39typedef struct _GnomeIconTextItemClass GnomeIconTextItemClass;
40#endif /* DOXYGEN_SHOULD_SKIP_THIS */
41
42
43namespace Gnome
44{
45
46namespace UI
47{ class IconTextItem_Class; } // namespace UI
48
49} // namespace Gnome
50namespace Gnome
51{
52
53namespace UI
54{
55
56
58{
59 public:
60#ifndef DOXYGEN_SHOULD_SKIP_THIS
61 typedef IconTextItem CppObjectType;
62 typedef IconTextItem_Class CppClassType;
63 typedef GnomeIconTextItem BaseObjectType;
64 typedef GnomeIconTextItemClass BaseClassType;
65#endif /* DOXYGEN_SHOULD_SKIP_THIS */
66
67 virtual ~IconTextItem();
68
69#ifndef DOXYGEN_SHOULD_SKIP_THIS
70
71private:
72 friend class IconTextItem_Class;
73 static CppClassType icontextitem_class_;
74
75 // noncopyable
77 IconTextItem& operator=(const IconTextItem&);
78
79protected:
80 explicit IconTextItem(const Glib::ConstructParams& construct_params);
81 explicit IconTextItem(GnomeIconTextItem* castitem);
82
83#endif /* DOXYGEN_SHOULD_SKIP_THIS */
84
85public:
86#ifndef DOXYGEN_SHOULD_SKIP_THIS
87 static GType get_type() G_GNUC_CONST;
88
89
90 static GType get_base_type() G_GNUC_CONST;
91#endif
92
94 GnomeIconTextItem* gobj() { return reinterpret_cast<GnomeIconTextItem*>(gobject_); }
95
97 const GnomeIconTextItem* gobj() const { return reinterpret_cast<GnomeIconTextItem*>(gobject_); }
98
99
100public:
101 //C++ methods used to invoke GTK+ virtual functions:
102#ifdef GLIBMM_VFUNCS_ENABLED
103#endif //GLIBMM_VFUNCS_ENABLED
104
105protected:
106 //GTK+ Virtual Functions (override these to change behaviour):
107#ifdef GLIBMM_VFUNCS_ENABLED
108#endif //GLIBMM_VFUNCS_ENABLED
109
110 //Default Signal Handlers::
111#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
112 virtual bool on_text_changed();
113 virtual void on_height_changed();
114 virtual void on_width_changed();
115 virtual void on_editing_started();
116 virtual void on_editing_stopped();
117 virtual void on_selection_started();
118 virtual void on_selection_stopped();
119#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
120
121
122private:
123
124
125public:
126 IconTextItem(Gnome::Canvas::Group& parent);
127 IconTextItem(Gnome::Canvas::Group& parent, int x, int y, int width,
128 const Glib::ustring& fontname, const Glib::ustring& text,
129 bool is_editable = true);
130
131
132 void set_xy(int x, int y);
133
134 void select(bool select = true);
135
136 void focus(bool focused = true);
137
138 Glib::ustring get_text() const;
139
141
142 void stop_editing(bool accept = true);
143
144 Glib::RefPtr<Gtk::Editable> get_editable();
145
146 Glib::RefPtr<const Gtk::Editable> get_editable() const;
147
148
154 Glib::SignalProxy0< bool > signal_text_changed();
155
156
162 Glib::SignalProxy0< void > signal_height_changed();
163
164
170 Glib::SignalProxy0< void > signal_width_changed();
171
172
178 Glib::SignalProxy0< void > signal_editing_started();
179
180
186 Glib::SignalProxy0< void > signal_editing_stopped();
187
188
194 Glib::SignalProxy0< void > signal_selection_started();
195
196
202 Glib::SignalProxy0< void > signal_selection_stopped();
203
204
205};
206
207} /* namespace UI */
208} /* namespace Gnome */
209
210
211namespace Glib
212{
221 Gnome::UI::IconTextItem* wrap(GnomeIconTextItem* object, bool take_copy = false);
222} //namespace Glib
223
224
225#endif /* _LIBGNOMEUIMM_ICON_TEXTITEM_H */
226
Definition: icon-textitem.h:58
void focus(bool focused=true)
const GnomeIconTextItem * gobj() const
Provides access to the underlying C GtkObject.
Definition: icon-textitem.h:97
virtual void on_selection_started()
GnomeIconTextItem * gobj()
Provides access to the underlying C GtkObject.
Definition: icon-textitem.h:94
Glib::RefPtr< Gtk::Editable > get_editable()
Glib::ustring get_text() const
Glib::SignalProxy0< void > signal_editing_started()
Glib::RefPtr< const Gtk::Editable > get_editable() const
virtual void on_selection_stopped()
virtual bool on_text_changed()
Glib::SignalProxy0< void > signal_width_changed()
Glib::SignalProxy0< void > signal_editing_stopped()
virtual void on_width_changed()
Glib::SignalProxy0< void > signal_selection_started()
void set_xy(int x, int y)
void select(bool select=true)
Glib::SignalProxy0< void > signal_height_changed()
virtual void on_height_changed()
Gnome::UI::IconTextItem * wrap(GnomeIconTextItem *object, bool take_copy=false)
A Glib::wrap() method for this object.
Glib::SignalProxy0< void > signal_selection_stopped()
IconTextItem(Gnome::Canvas::Group &parent)
void stop_editing(bool accept=true)
Glib::SignalProxy0< bool > signal_text_changed()
virtual void on_editing_stopped()
virtual void on_editing_started()
IconTextItem(Gnome::Canvas::Group &parent, int x, int y, int width, const Glib::ustring &fontname, const Glib::ustring &text, bool is_editable=true)
Definition: about.h:306
Definition: about.h:46