Debian Codegraph @

gtk/src/celleditable.hg

raw
1 /* Copyright (C) 1998-2002 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 _CONFIGINCLUDE(gtkmmconfig.h)
18
19 #include <glibmm/interface.h>
20 _DEFS(gtkmm,gtk)
21 _PINCLUDE(glibmm/private/interface_p.h)
22
23 #ifndef DOXYGEN_SHOULD_SKIP_THIS
24 extern "C"
25 {
26 typedef struct _GtkCellEditableIface GtkCellEditableIface;
27 typedef union _GdkEvent GdkEvent;
28 }
29 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
30
31
32 namespace Gtk
33 {
34
35 /** Interface for widgets which are used for editing cells.
36 * The CellEditable interface must be implemented for widgets to be usable when editing the contents of a TreeView cell.
37 */
38 class GTKMM_API CellEditable : public Glib::Interface
39 {
40 _CLASS_INTERFACE(CellEditable,GtkCellEditable,GTK_CELL_EDITABLE,GtkCellEditableIface, , , GTKMM_API)
41
42 public:
43 _WRAP_METHOD(void start_editing(GdkEvent* event), gtk_cell_editable_start_editing)
44 _WRAP_METHOD(void editing_done(), gtk_cell_editable_editing_done)
45 _WRAP_METHOD(void remove_widget(), gtk_cell_editable_remove_widget)
46
47 _WRAP_SIGNAL(void editing_done(), "editing_done")
48 _WRAP_SIGNAL(void remove_widget(), "remove_widget")
49
50 _WRAP_PROPERTY("editing-canceled", bool)
51
52 protected:
53 _WRAP_VFUNC(void start_editing(GdkEvent* event), start_editing)
54 };
55
56 } // namespace Gtk