1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module gtk.CellEditableIF;
26 
27 private import gdk.Event;
28 private import gobject.Signals;
29 public  import gtkc.gdktypes;
30 private import gtkc.gtk;
31 public  import gtkc.gtktypes;
32 
33 
34 /**
35  * The #GtkCellEditable interface must be implemented for widgets to be usable
36  * when editing the contents of a #GtkTreeView cell.
37  */
38 public interface CellEditableIF{
39 	/** Get the main Gtk struct */
40 	public GtkCellEditable* getCellEditableStruct();
41 
42 	/** the main Gtk struct as a void* */
43 	protected void* getStruct();
44 
45 	/**
46 	 */
47 
48 	/**
49 	 * Emits the #GtkCellEditable::editing-done signal.
50 	 */
51 	public void editingDone();
52 
53 	/**
54 	 * Emits the #GtkCellEditable::remove-widget signal.
55 	 */
56 	public void removeWidget();
57 
58 	/**
59 	 * Begins editing on a @cell_editable. @event is the #GdkEvent that began
60 	 * the editing process. It may be %NULL, in the instance that editing was
61 	 * initiated through programatic means.
62 	 *
63 	 * Params:
64 	 *     event = A #GdkEvent, or %NULL
65 	 */
66 	public void startEditing(Event event);
67 	@property void delegate(CellEditableIF)[] onEditingDoneListeners();
68 	/**
69 	 * This signal is a sign for the cell renderer to update its
70 	 * value from the @cell_editable.
71 	 *
72 	 * Implementations of #GtkCellEditable are responsible for
73 	 * emitting this signal when they are done editing, e.g.
74 	 * #GtkEntry is emitting it when the user presses Enter.
75 	 *
76 	 * gtk_cell_editable_editing_done() is a convenience method
77 	 * for emitting #GtkCellEditable::editing-done.
78 	 */
79 	void addOnEditingDone(void delegate(CellEditableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
80 
81 	@property void delegate(CellEditableIF)[] onRemoveWidgetListeners();
82 	/**
83 	 * This signal is meant to indicate that the cell is finished
84 	 * editing, and the widget may now be destroyed.
85 	 *
86 	 * Implementations of #GtkCellEditable are responsible for
87 	 * emitting this signal when they are done editing. It must
88 	 * be emitted after the #GtkCellEditable::editing-done signal,
89 	 * to give the cell renderer a chance to update the cell's value
90 	 * before the widget is removed.
91 	 *
92 	 * gtk_cell_editable_remove_widget() is a convenience method
93 	 * for emitting #GtkCellEditable::remove-widget.
94 	 */
95 	void addOnRemoveWidget(void delegate(CellEditableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
96 
97 }