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