<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <link rel="Start" href="index.html"> <link rel="previous" href="GWindow.html"> <link rel="next" href="GRange.html"> <link rel="Up" href="index.html"> <title>LablGTK : GEdit</title> </head> <body> <div class="navbar"><a href="GWindow.html">Previous</a> <a href="index.html">Up</a> <a href="GRange.html">Next</a> </div> <center><h1>Module <a href="type_GEdit.html">GEdit</a></h1></center> <br> <pre><span class="keyword">module</span> GEdit: <code class="code">sig</code> <a href="GEdit.html">..</a> <code class="code">end</code></pre>Editable Widgets<br> <hr width="100%"> <br> Editable Widgets<br> <br> <a name="3_GtkEditable"></a> <h3>GtkEditable</h3><br> <pre><span class="keyword">class</span> <a name="TYPEeditable_signals"></a><a href="GEdit.editable_signals.html">editable_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEeditable">Gtk.editable</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.editable_signals.html">..</a> <code class="code">end</code></pre><div class="info"> </div> <br><pre><span class="keyword">class</span> <a name="TYPEeditable"></a><a href="GEdit.editable.html">editable</a> : <code class="type">[> <a href="Gtk.html#TYPEeditable">Gtk.editable</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.editable.html">..</a> <code class="code">end</code></pre><div class="info"> Interface for text-editing widgets </div> <br><br> <a name="3_GtkEntryGtkEntryCompletion"></a> <h3>GtkEntry & GtkEntryCompletion</h3><br> <pre><span class="keyword">class</span> <a name="TYPEentry_completion_signals"></a><a href="GEdit.entry_completion_signals.html">entry_completion_signals</a> : <code class="type">[> `entrycompletion ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.entry_completion_signals.html">..</a> <code class="code">end</code></pre><div class="info"> </div> <br><pre><span class="keyword">class</span> <a name="TYPEentry_completion"></a><a href="GEdit.entry_completion.html">entry_completion</a> : <code class="type">[> `celllayout | `entrycompletion ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.entry_completion.html">..</a> <code class="code">end</code></pre><div class="info"> </div> <br><pre><span class="keyword">class</span> <a name="TYPEentry_signals"></a><a href="GEdit.entry_signals.html">entry_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEentry">Gtk.entry</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.entry_signals.html">..</a> <code class="code">end</code></pre><div class="info"> </div> <br><pre><span class="keyword">class</span> <a name="TYPEentry"></a><a href="GEdit.entry.html">entry</a> : <code class="type">[> <a href="Gtk.html#TYPEentry">Gtk.entry</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.entry.html">..</a> <code class="code">end</code></pre><div class="info"> A single line text entry field </div> <br><pre><span class="keyword">val</span> <a name="VALentry"></a>entry : <code class="type">?text:string -><br> ?visibility:bool -><br> ?max_length:int -><br> ?activates_default:bool -><br> ?editable:bool -><br> ?has_frame:bool -><br> ?width_chars:int -><br> ?xalign:float -><br> ?width:int -><br> ?height:int -><br> ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GEdit.entry.html">entry</a></code></pre><div class="info"> <small>GTK documentation: <a href="file:///usr/share/gtk-doc/html/gtk/GtkEntry.html">GtkEntry</a></small></div> <pre><span class="keyword">val</span> <a name="VALentry_completion"></a>entry_completion : <code class="type">?model:#<a href="GTree.model.html">GTree.model</a> -><br> ?minimum_key_length:int -><br> ?entry:<a href="GEdit.entry.html">entry</a> -> unit -> <a href="GEdit.entry_completion.html">entry_completion</a></code></pre><div class="info"> <b>Since</b> GTK 2.4<br> <small>GTK documentation: <a href="file:///usr/share/gtk-doc/html/gtk/GtkEntryCompletion.html">GtkEntryCompletion</a></small></div> <br> <a name="4_GtkSpinButton"></a> <h4>GtkSpinButton</h4><br> <pre><span class="keyword">class</span> <a name="TYPEspin_button_signals"></a><a href="GEdit.spin_button_signals.html">spin_button_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEspin_button">Gtk.spin_button</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.spin_button_signals.html">..</a> <code class="code">end</code></pre><div class="info"> </div> <br><pre><span class="keyword">class</span> <a name="TYPEspin_button"></a><a href="GEdit.spin_button.html">spin_button</a> : <code class="type"><a href="Gtk.html#TYPEspin_button">Gtk.spin_button</a> <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.spin_button.html">..</a> <code class="code">end</code></pre><div class="info"> Retrieve an integer or floating-point number from the user </div> <br><pre><span class="keyword">val</span> <a name="VALspin_button"></a>spin_button : <code class="type">?adjustment:<a href="GData.adjustment.html">GData.adjustment</a> -><br> ?rate:float -><br> ?digits:int -><br> ?numeric:bool -><br> ?snap_to_ticks:bool -><br> ?update_policy:[ `ALWAYS | `IF_VALID ] -><br> ?value:float -><br> ?wrap:bool -><br> ?width:int -><br> ?height:int -><br> ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GEdit.spin_button.html">spin_button</a></code></pre><div class="info"> <small>GTK documentation: <a href="file:///usr/share/gtk-doc/html/gtk/GtkSpinButton.html">GtkSpinButton</a></small></div> <br> <a name="3_GtkCombo"></a> <h3>GtkCombo</h3><br> <pre><span class="keyword">class</span> <a name="TYPEcombo"></a><a href="GEdit.combo.html">combo</a> : <code class="type"><a href="Gtk.html#TYPEcombo">Gtk.combo</a> <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.combo.html">..</a> <code class="code">end</code></pre><div class="info"> A text entry field with a dropdown list </div> <br><pre><span class="keyword">val</span> <a name="VALcombo"></a>combo : <code class="type">?popdown_strings:string list -><br> ?allow_empty:bool -><br> ?case_sensitive:bool -><br> ?enable_arrow_keys:bool -><br> ?value_in_list:bool -><br> ?border_width:int -><br> ?width:int -><br> ?height:int -><br> ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GEdit.combo.html">combo</a></code></pre><div class="info"> <small>GTK documentation: <a href="file:///usr/share/gtk-doc/html/gtk/GtkCombo.html">GtkCombo</a></small></div> <br> <a name="3_GtkComboBox"></a> <h3>GtkComboBox</h3><br> <pre><span class="keyword">class</span> <a name="TYPEcombo_box_signals"></a><a href="GEdit.combo_box_signals.html">combo_box_signals</a> : <code class="type">[> <a href="Gtk.html#TYPEcombo_box">Gtk.combo_box</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.combo_box_signals.html">..</a> <code class="code">end</code></pre><div class="info"> </div> <br><pre><span class="keyword">class</span> <a name="TYPEcombo_box"></a><a href="GEdit.combo_box.html">combo_box</a> : <code class="type">[> <a href="Gtk.html#TYPEcombo_box">Gtk.combo_box</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.combo_box.html">..</a> <code class="code">end</code></pre><div class="info"> </div> <br><pre><span class="keyword">val</span> <a name="VALcombo_box"></a>combo_box : <code class="type">?model:#<a href="GTree.model.html">GTree.model</a> -><br> ?active:int -><br> ?add_tearoffs:bool -><br> ?focus_on_click:bool -><br> ?has_frame:bool -><br> ?wrap_width:int -><br> ?width:int -><br> ?height:int -><br> ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GEdit.combo_box.html">combo_box</a></code></pre><div class="info"> <b>Since</b> GTK 2.4<br> <small>GTK documentation: <a href="file:///usr/share/gtk-doc/html/gtk/GtkComboBox.html">GtkComboBox</a></small></div> <pre><span class="keyword">class</span> <a name="TYPEcombo_box_entry"></a><a href="GEdit.combo_box_entry.html">combo_box_entry</a> : <code class="type">[> <a href="Gtk.html#TYPEcombo_box_entry">Gtk.combo_box_entry</a> ] <a href="Gtk.html#TYPEobj">Gtk.obj</a> -> </code><code class="code">object</code> <a href="GEdit.combo_box_entry.html">..</a> <code class="code">end</code></pre><div class="info"> </div> <br><pre><span class="keyword">val</span> <a name="VALcombo_box_entry"></a>combo_box_entry : <code class="type">?model:#<a href="GTree.model.html">GTree.model</a> -><br> ?text_column:string <a href="GTree.html#TYPEcolumn">GTree.column</a> -><br> ?active:int -><br> ?add_tearoffs:bool -><br> ?focus_on_click:bool -><br> ?has_frame:bool -><br> ?wrap_width:int -><br> ?width:int -><br> ?height:int -><br> ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -> ?show:bool -> unit -> <a href="GEdit.combo_box_entry.html">combo_box_entry</a></code></pre><div class="info"> <b>Since</b> GTK 2.4<br> <small>GTK documentation: <a href="file:///usr/share/gtk-doc/html/gtk/GtkComboBoxEntry.html">GtkComboBoxEntry</a></small></div> <br> <a name="4_ConvenienceAPIfortextonlyComboBoxes"></a> <h4>Convenience API for text-only ComboBoxes</h4><br> <pre><span class="keyword">type</span> <a name="TYPEtext_combo"></a><code class="type">#<a href="GEdit.combo_box.html">combo_box</a></code> text_combo = <code class="type">(#<a href="GEdit.combo_box.html">combo_box</a> as 'a) * (<a href="GTree.list_store.html">GTree.list_store</a> * string <a href="GTree.html#TYPEcolumn">GTree.column</a>)</code> </pre> <pre><span class="keyword">val</span> <a name="VALtext_combo_add"></a>text_combo_add : <code class="type">#<a href="GEdit.combo_box.html">combo_box</a> <a href="GEdit.html#TYPEtext_combo">text_combo</a> -> string -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALtext_combo_get_active"></a>text_combo_get_active : <code class="type">#<a href="GEdit.combo_box.html">combo_box</a> <a href="GEdit.html#TYPEtext_combo">text_combo</a> -> string option</code></pre><pre><span class="keyword">val</span> <a name="VALcombo_box_text"></a>combo_box_text : <code class="type">?strings:string list -><br> ?use_markup:bool -><br> ?active:int -><br> ?add_tearoffs:bool -><br> ?focus_on_click:bool -><br> ?has_frame:bool -><br> ?wrap_width:int -><br> ?width:int -><br> ?height:int -><br> ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -><br> ?show:bool -> unit -> <a href="GEdit.combo_box.html">combo_box</a> <a href="GEdit.html#TYPEtext_combo">text_combo</a></code></pre><div class="info"> A convenience function for creating simple <a href="GEdit.html#VALcombo_box"><code class="code">GEdit.combo_box</code></a>. Creates a simple <a href="GTree.html#VALlist_store"><code class="code">GTree.list_store</code></a> with a single text column, adds <code class="code">strings</code> in it, creates a <a href="GTree.html#VALcell_renderer_text"><code class="code">GTree.cell_renderer_text</code></a> and connects it with the model.<br> <b>Since</b> GTK 2.4<br> <small>GTK documentation: <a href="file:///usr/share/gtk-doc/html/gtk/GtkComboBox.html">GtkComboBox</a></small></div> <pre><span class="keyword">val</span> <a name="VALcombo_box_entry_text"></a>combo_box_entry_text : <code class="type">?strings:string list -><br> ?active:int -><br> ?add_tearoffs:bool -><br> ?focus_on_click:bool -><br> ?has_frame:bool -><br> ?wrap_width:int -><br> ?width:int -><br> ?height:int -><br> ?packing:(<a href="GObj.widget.html">GObj.widget</a> -> unit) -><br> ?show:bool -> unit -> <a href="GEdit.combo_box_entry.html">combo_box_entry</a> <a href="GEdit.html#TYPEtext_combo">text_combo</a></code></pre><div class="info"> A convenience function. See <a href="GEdit.html#VALcombo_box_text"><code class="code">GEdit.combo_box_text</code></a><br> <b>Since</b> GTK 2.4<br> <small>GTK documentation: <a href="file:///usr/share/gtk-doc/html/gtk/GtkComboBoxEntry.html">GtkComboBoxEntry</a></small></div> </body></html>