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 * Conversion parameters: 26 * inFile = GtkCellEditable.html 27 * outPack = gtk 28 * outFile = CellEditableIF 29 * strct = GtkCellEditable 30 * realStrct= 31 * ctorStrct= 32 * clss = CellEditableT 33 * interf = CellEditableIF 34 * class Code: No 35 * interface Code: No 36 * template for: 37 * extend = 38 * implements: 39 * prefixes: 40 * - gtk_cell_editable_ 41 * - gtk_ 42 * omit structs: 43 * omit prefixes: 44 * omit code: 45 * omit signals: 46 * imports: 47 * - gdk.Event 48 * structWrap: 49 * - GdkEvent* -> Event 50 * module aliases: 51 * local aliases: 52 * overrides: 53 */ 54 55 module gtk.CellEditableIF; 56 57 public import gtkc.gtktypes; 58 59 private import gtkc.gtk; 60 private import glib.ConstructionException; 61 private import gobject.ObjectG; 62 63 private import gobject.Signals; 64 public import gtkc.gdktypes; 65 66 private import gdk.Event; 67 68 69 70 71 /** 72 * Description 73 * The GtkCellEditable interface must be implemented for widgets 74 * to be usable when editing the contents of a GtkTreeView cell. 75 */ 76 public interface CellEditableIF 77 { 78 79 80 public GtkCellEditable* getCellEditableTStruct(); 81 82 /** the main Gtk struct as a void* */ 83 protected void* getStruct(); 84 85 86 /** 87 */ 88 89 void delegate(CellEditableIF)[] onEditingDoneListeners(); 90 /** 91 * This signal is a sign for the cell renderer to update its 92 * value from the cell_editable. 93 * Implementations of GtkCellEditable are responsible for 94 * emitting this signal when they are done editing, e.g. 95 * GtkEntry is emitting it when the user presses Enter. 96 * gtk_cell_editable_editing_done() is a convenience method 97 * for emitting GtkCellEditable::editing-done. 98 */ 99 void addOnEditingDone(void delegate(CellEditableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); 100 void delegate(CellEditableIF)[] onRemoveWidgetListeners(); 101 /** 102 * This signal is meant to indicate that the cell is finished 103 * editing, and the widget may now be destroyed. 104 * Implementations of GtkCellEditable are responsible for 105 * emitting this signal when they are done editing. It must 106 * be emitted after the "editing-done" signal, 107 * to give the cell renderer a chance to update the cell's value 108 * before the widget is removed. 109 * gtk_cell_editable_remove_widget() is a convenience method 110 * for emitting GtkCellEditable::remove-widget. 111 */ 112 void addOnRemoveWidget(void delegate(CellEditableIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0); 113 114 /** 115 * Begins editing on a cell_editable. event is the GdkEvent that began 116 * the editing process. It may be NULL, in the instance that editing was 117 * initiated through programatic means. 118 * Params: 119 * event = A GdkEvent, or NULL. [allow-none] 120 */ 121 public void startEditing(Event event); 122 123 /** 124 * Emits the "editing-done" signal. 125 */ 126 public void editingDone(); 127 128 /** 129 * Emits the "remove-widget" signal. 130 */ 131 public void removeWidget(); 132 }