Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e3918135d52936bad0ecc8654eedea12 > files > 281

Falcon-doc-0.9.6.8-1.fc15.noarch.rpm

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head><meta content="text/html;charset=&amp;quot;utf-8&amp;quot;" http-equiv="Content-type"/><link href="faldoc.css" rel="stylesheet" type="text/css"/><title> - Class GtkEntry</title></head><body class="faldoc"><ul class="navi_top"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="gtk.html">Up: The Falcon GTK Binding module</a></li>
         <li class="prev"><a href="gtk_GtkEditable.html">Previous: Class GtkEditable</a></li>
         <li class="next"><a href="gtk_GtkEntryBuffer.html">Next: Class GtkEntryBuffer</a></li>
         <li class="clear"></li>
         </ul><div id="page_body"><h1><span class="toc_number">10.54</span>Class GtkEntry</h1><p class="brief">A single line text entry field </p>
         <pre class="prototype">Class GtkEntry</pre>
         <p>The GtkEntry widget is a single line text entry widget. A fairly large set of key bindings are supported by default. If the entered text is longer than the allocation of the widget, the widget will scroll so that the cursor position is visible. </p>
<p>When using an entry for passwords and other sensitive information, it can be put into "password mode" using set_visibility(). In this mode, entered text is displayed using a 'invisible' character. By default, GTK+ picks the best invisible character that is available in the current font, but it can be changed with set_invisible_char(). Since 2.16, GTK+ displays a warning when Caps Lock or input methods might interfere with entering text in a password entry. The warning can be turned off with the "caps-lock-warning" property. </p>
<p>Since 2.16, GtkEntry has the ability to display progress or activity information behind the text. To make an entry display such information, use set_progress_fraction() or set_progress_pulse_step(). </p>
<p>Additionally, GtkEntry can show icons at either side of the entry. These icons can be activatable by clicking, can be set up as drag source and can have tooltips. To add an icon, use set_icon_from_gicon() or one of the various other functions that set an icon from a stock id, an icon name or a pixbuf. To trigger an action when the user clicks an icon, connect to the "icon-press" signal. To allow DND operations from an icon, use set_icon_drag_source(). To set a tooltip on an icon, use set_icon_tooltip_text() or the corresponding function for markup. </p>
<p>Note that functionality or information that is only available by clicking on an icon in an entry may not be accessible at all to users which are not able to use a mouse or other pointing device. It is therefore recommended that any such functionality should also be available by other means, e.g. via the context menu of the entry. </p>
<table class="members">
         <tbody><tr class="member_type"><td class="member_type" colspan="2">Methods</td></tr>
               <tr><td><a href="#get_activates_default">get_activates_default</a></td><td>Retrieves the value set by set_activates_default(). </td></tr>
               <tr><td><a href="#get_alignment">get_alignment</a></td><td>Gets the value set by gtk_entry_set_alignment(). </td></tr>
               <tr><td><a href="#get_buffer">get_buffer</a></td><td>Get the GtkEntryBuffer object which holds the text for this widget. </td></tr>
               <tr><td><a href="#get_cursor_hadjustment">get_cursor_hadjustment</a></td><td>Retrieves the horizontal cursor adjustment for the entry </td></tr>
               <tr><td><a href="#get_has_frame">get_has_frame</a></td><td>Gets the value set by gtk_entry_set_has_frame(). </td></tr>
               <tr><td><a href="#get_icon_activatable">get_icon_activatable</a></td><td>Returns whether the icon is activatable. </td></tr>
               <tr><td><a href="#get_icon_at_pos">get_icon_at_pos</a></td><td>Finds the icon at the given position and return its index. </td></tr>
               <tr><td><a href="#get_icon_name">get_icon_name</a></td><td>Retrieves the icon name used for the icon, or NULL if there is no icon or if the icon was set by some other method (e.g., by pixbuf, stock or gicon). </td></tr>
               <tr><td><a href="#get_icon_pixbuf">get_icon_pixbuf</a></td><td>Retrieves the image used for the icon. </td></tr>
               <tr><td><a href="#get_icon_sensitive">get_icon_sensitive</a></td><td>Returns whether the icon appears sensitive or insensitive. </td></tr>
               <tr><td><a href="#get_icon_stock">get_icon_stock</a></td><td>Retrieves the stock id used for the icon, or NULL if there is no icon or if the icon was set by some other method (e.g., by pixbuf, icon name or gicon). </td></tr>
               <tr><td><a href="#get_icon_storage_type">get_icon_storage_type</a></td><td>Gets the type of representation being used by the icon to store image data. </td></tr>
               <tr><td><a href="#get_icon_tooltip_markup">get_icon_tooltip_markup</a></td><td>Gets the contents of the tooltip on the icon at the specified position in entry. </td></tr>
               <tr><td><a href="#get_icon_tooltip_text">get_icon_tooltip_text</a></td><td>Gets the contents of the tooltip on the icon at the specified position in entry. </td></tr>
               <tr><td><a href="#get_invisible_char">get_invisible_char</a></td><td>Retrieves the character displayed in place of the real characters for entries with visibility set to false. </td></tr>
               <tr><td><a href="#get_layout_offsets">get_layout_offsets</a></td><td>Obtains the position of the PangoLayout used to render text in the entry, in widget coordinates. </td></tr>
               <tr><td><a href="#get_max_length">get_max_length</a></td><td>Retrieves the maximum allowed length of the text in entry. </td></tr>
               <tr><td><a href="#get_overwrite_mode">get_overwrite_mode</a></td><td>Gets the value set by gtk_entry_set_overwrite_mode(). </td></tr>
               <tr><td><a href="#get_progress_fraction">get_progress_fraction</a></td><td>Returns the current fraction of the task that's been completed. </td></tr>
               <tr><td><a href="#get_progress_pulse_step">get_progress_pulse_step</a></td><td>Retrieves the pulse step set with gtk_entry_set_progress_pulse_step(). </td></tr>
               <tr><td><a href="#get_text">get_text</a></td><td>Retrieves the contents of the entry widget. </td></tr>
               <tr><td><a href="#get_text_length">get_text_length</a></td><td>Retrieves the current length of the text in entry. </td></tr>
               <tr><td><a href="#get_visibility">get_visibility</a></td><td>Retrieves whether the text in entry is visible. </td></tr>
               <tr><td><a href="#get_width_chars">get_width_chars</a></td><td>Gets the value set by gtk_entry_set_width_chars(). </td></tr>
               <tr><td><a href="#layout_index_to_text_index">layout_index_to_text_index</a></td><td>Converts from a position in the entry contents (returned by gtk_entry_get_text()) to a position in the entry's PangoLayout (returned by gtk_entry_get_layout(), with text retrieved via pango_layout_get_text()). </td></tr>
               <tr><td><a href="#new_with_buffer">new_with_buffer</a></td><td>Creates a new entry with the specified text buffer. </td></tr>
               <tr><td><a href="#new_with_max_length">new_with_max_length</a></td><td>Creates a new GtkEntry widget with the given maximum length. </td></tr>
               <tr><td><a href="#progress_pulse">progress_pulse</a></td><td>Indicates that some progress is made, but you don't know how much. </td></tr>
               <tr><td><a href="#set_activates_default">set_activates_default</a></td><td>If setting is TRUE, pressing Enter in the entry will activate the default widget for the window containing the entry. </td></tr>
               <tr><td><a href="#set_alignment">set_alignment</a></td><td>Sets the alignment for the contents of the entry. </td></tr>
               <tr><td><a href="#set_buffer">set_buffer</a></td><td>Set the GtkEntryBuffer object which holds the text for this widget. </td></tr>
               <tr><td><a href="#set_cursor_hadjustment">set_cursor_hadjustment</a></td><td>Hooks up an adjustment to the cursor position in an entry, so that when the cursor is moved, the adjustment is scrolled to show that position. </td></tr>
               <tr><td><a href="#set_has_frame">set_has_frame</a></td><td>Sets whether the entry has a beveled frame around it. </td></tr>
               <tr><td><a href="#set_icon_activatable">set_icon_activatable</a></td><td>Sets whether the icon is activatable. </td></tr>
               <tr><td><a href="#set_icon_from_icon_name">set_icon_from_icon_name</a></td><td>Sets the icon shown in the entry at the specified position from the current icon theme. </td></tr>
               <tr><td><a href="#set_icon_from_pixbuf">set_icon_from_pixbuf</a></td><td>Sets the icon shown in the specified position using a pixbuf. </td></tr>
               <tr><td><a href="#set_icon_from_stock">set_icon_from_stock</a></td><td>Sets the icon shown in the entry at the specified position from a stock image. </td></tr>
               <tr><td><a href="#set_icon_sensitive">set_icon_sensitive</a></td><td>Sets the sensitivity for the specified icon. </td></tr>
               <tr><td><a href="#set_icon_tooltip_markup">set_icon_tooltip_markup</a></td><td>Sets tooltip as the contents of the tooltip for the icon at the specified position. </td></tr>
               <tr><td><a href="#set_icon_tooltip_text">set_icon_tooltip_text</a></td><td>Sets tooltip as the contents of the tooltip for the icon at the specified position. </td></tr>
               <tr><td><a href="#set_invisible_char">set_invisible_char</a></td><td>Sets the entry invisible char </td></tr>
               <tr><td><a href="#set_max_length">set_max_length</a></td><td>Sets the maximum allowed length of the contents of the widget. </td></tr>
               <tr><td><a href="#set_overwrite_mode">set_overwrite_mode</a></td><td>Sets whether the text is overwritten when typing in the GtkEntry. </td></tr>
               <tr><td><a href="#set_progress_fraction">set_progress_fraction</a></td><td>Causes the entry's progress indicator to "fill in" the given fraction of the bar. </td></tr>
               <tr><td><a href="#set_progress_pulse_step">set_progress_pulse_step</a></td><td>Sets the fraction of total entry width to move the progress bouncing block for each call to gtk_entry_progress_pulse(). </td></tr>
               <tr><td><a href="#set_text">set_text</a></td><td>Sets the text in the widget to the given value, replacing the current contents. </td></tr>
               <tr><td><a href="#set_visiblity">set_visiblity</a></td><td>Sets whether the contents of the entry are visible or not. </td></tr>
               <tr><td><a href="#set_width_chars">set_width_chars</a></td><td>Changes the size request of the entry to be about the right size for n_chars characters. </td></tr>
               <tr><td><a href="#signal_activate">signal_activate</a></td><td>A keybinding signal which gets emitted when the user activates the entry. </td></tr>
               <tr><td><a href="#signal_backspace">signal_backspace</a></td><td>The backspace signal is a keybinding signal which gets emitted when the user asks for it. </td></tr>
               <tr><td><a href="#signal_copy_clipboard">signal_copy_clipboard</a></td><td>The copy-clipboard signal is a keybinding signal which gets emitted to copy the selection to the clipboard. </td></tr>
               <tr><td><a href="#signal_cut_clipboard">signal_cut_clipboard</a></td><td>The cut-clipboard signal is a keybinding signal which gets emitted to cut the selection to the clipboard. </td></tr>
               <tr><td><a href="#signal_delete_from_cursor">signal_delete_from_cursor</a></td><td>The delete-from-cursor signal is a keybinding signal which gets emitted when the user initiates a text deletion. </td></tr>
               <tr><td><a href="#signal_icon_press">signal_icon_press</a></td><td>The ::icon-press signal is emitted when an activatable icon is clicked. </td></tr>
               <tr><td><a href="#signal_icon_release">signal_icon_release</a></td><td>The icon-release signal is emitted on the button release from a mouse click over an activatable icon. </td></tr>
               <tr><td><a href="#signal_insert_at_cursor">signal_insert_at_cursor</a></td><td>The insert-at-cursor signal is a keybinding signal which gets emitted when the user initiates the insertion of a fixed string at the cursor. </td></tr>
               <tr><td><a href="#signal_move_cursor">signal_move_cursor</a></td><td>The move-cursor signal is a keybinding signal which gets emitted when the user initiates a cursor movement. </td></tr>
               <tr><td><a href="#signal_paste_clipboard">signal_paste_clipboard</a></td><td>The paste-clipboard signal is a keybinding signal which gets emitted to paste the contents of the clipboard into the text view. </td></tr>
               <tr><td><a href="#signal_populate_popup">signal_populate_popup</a></td><td>The populate-popup signal gets emitted before showing the context menu of the entry. </td></tr>
               <tr><td><a href="#signal_preedit_changed">signal_preedit_changed</a></td><td>If an input method is used, the typed text will not immediately be committed to the buffer. So if you are interested in the text, connect to this signal. </td></tr>
               <tr><td><a href="#signal_toggle_overwrite">signal_toggle_overwrite</a></td><td>The toggle-overwrite signal is a keybinding signal which gets emitted to toggle the overwrite mode of the entry. </td></tr>
               <tr><td><a href="#text_index_to_layout_index">text_index_to_layout_index</a></td><td>Converts from a position in the entry's PangoLayout (returned by gtk_entry_get_layout()) to a position in the entry contents (returned by gtk_entry_get_text()). </td></tr>
               <tr><td><a href="#unset_invisible_char">unset_invisible_char</a></td><td>Unsets the invisible char previously set with set_invisible_char(). </td></tr>
               </tbody>
            </table>
         <h2>Methods</h2><h3><a name="get_activates_default">get_activates_default</a></h3><p class="brief">Retrieves the value set by set_activates_default(). </p>
         <pre class="prototype">GtkEntry.get_activates_default()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">(boolean) true if the entry will activate the default widget </td></tr>
               </tbody>
            </table>
         <h3><a name="get_alignment">get_alignment</a></h3><p class="brief">Gets the value set by gtk_entry_set_alignment(). </p>
         <pre class="prototype">GtkEntry.get_alignment()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the alignment </td></tr>
               </tbody>
            </table>
         <h3><a name="get_buffer">get_buffer</a></h3><p class="brief">Get the GtkEntryBuffer object which holds the text for this widget. </p>
         <pre class="prototype">GtkEntry.get_buffer()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">A GtkEntryBuffer object. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_cursor_hadjustment">get_cursor_hadjustment</a></h3><p class="brief">Retrieves the horizontal cursor adjustment for the entry </p>
         <pre class="prototype">GtkEntry.get_cursor_hadjustment()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the horizontal cursor adjustment, or NULL  if none has been set. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_has_frame">get_has_frame</a></h3><p class="brief">Gets the value set by gtk_entry_set_has_frame(). </p>
         <pre class="prototype">GtkEntry.get_has_frame()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">whether the entry has a beveled frame </td></tr>
               </tbody>
            </table>
         <h3><a name="get_icon_activatable">get_icon_activatable</a></h3><p class="brief">Returns whether the icon is activatable. </p>
         <pre class="prototype">GtkEntry.get_icon_activatable( icon_pos )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">TRUE if the icon is activatable. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_icon_at_pos">get_icon_at_pos</a></h3><p class="brief">Finds the icon at the given position and return its index. </p>
         <pre class="prototype">GtkEntry.get_icon_at_pos( x, y )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">x</td><td class="content"> the x coordinate of the position to find </td></tr>
               <tr class="param"><td class="name">y</td><td class="content"> the y coordinate of the position to find </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">the index of the icon at the given position, or -1. </td></tr>
               </tbody>
            </table>
         <p>If x, y doesn't lie inside an icon, -1 is returned. This function is intended for use in a "query-tooltip" signal handler. </p>
<h3><a name="get_icon_name">get_icon_name</a></h3><p class="brief">Retrieves the icon name used for the icon, or NULL if there is no icon or if the icon was set by some other method (e.g., by pixbuf, stock or gicon). </p>
         <pre class="prototype">GtkEntry.get_icon_name( icon_pos )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">An icon name, or NULL if no icon is set or if the icon wasn't set from an icon name </td></tr>
               </tbody>
            </table>
         <h3><a name="get_icon_pixbuf">get_icon_pixbuf</a></h3><p class="brief">Retrieves the image used for the icon. </p>
         <pre class="prototype">GtkEntry.get_icon_pixbuf( icon_pos )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">A GdkPixbuf, or NULL if no icon is set for this position. </td></tr>
               </tbody>
            </table>
         <p>Unlike the other methods of setting and getting icon data, this method will work regardless of whether the icon was set using a GdkPixbuf, a GIcon, a stock item, or an icon name. </p>
<h3><a name="get_icon_sensitive">get_icon_sensitive</a></h3><p class="brief">Returns whether the icon appears sensitive or insensitive. </p>
         <pre class="prototype">GtkEntry.get_icon_sensitive( icon_pos )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">TRUE if the icon is sensitive. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_icon_stock">get_icon_stock</a></h3><p class="brief">Retrieves the stock id used for the icon, or NULL if there is no icon or if the icon was set by some other method (e.g., by pixbuf, icon name or gicon). </p>
         <pre class="prototype">GtkEntry.get_icon_stock( icon_pos )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">A stock id, or NULL if no icon is set or if the icon wasn't set from a stock id. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_icon_storage_type">get_icon_storage_type</a></h3><p class="brief">Gets the type of representation being used by the icon to store image data. </p>
         <pre class="prototype">GtkEntry.get_icon_storage_type( icon_pos )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">image representation being used </td></tr>
               </tbody>
            </table>
         <p>If the icon has no image data, the return value will be GTK_IMAGE_EMPTY. </p>
<h3><a name="get_icon_tooltip_markup">get_icon_tooltip_markup</a></h3><p class="brief">Gets the contents of the tooltip on the icon at the specified position in entry. </p>
         <pre class="prototype">GtkEntry.get_icon_tooltip_markup( icon_pos )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">the tooltip text, or NULL. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_icon_tooltip_text">get_icon_tooltip_text</a></h3><p class="brief">Gets the contents of the tooltip on the icon at the specified position in entry. </p>
         <pre class="prototype">GtkEntry.get_icon_tooltip_text( icon_pos )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">the tooltip text, or NULL. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_invisible_char">get_invisible_char</a></h3><p class="brief">Retrieves the character displayed in place of the real characters for entries with visibility set to false. </p>
         <pre class="prototype">GtkEntry.get_invisible_char()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the current invisible char, or "", if the entry does not show invisible text at all. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_layout_offsets">get_layout_offsets</a></h3><p class="brief">Obtains the position of the PangoLayout used to render text in the entry, in widget coordinates. </p>
         <pre class="prototype">GtkEntry.get_layout_offsets()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">an array ( X offset, Y offset ). </td></tr>
               </tbody>
            </table>
         <p>Useful if you want to line up the text in an entry with some other text, e.g. when using the entry to implement editable cells in a sheet widget. </p>
<p>Also useful to convert mouse events into coordinates inside the PangoLayout, e.g. to take some action if some part of the entry text is clicked. </p>
<p>Note that as the user scrolls around in the entry the offsets will change; you'll need to connect to the "notify::scroll-offset" signal to track this. Remember when using the PangoLayout functions you need to convert to and from pixels using PANGO_PIXELS() or PANGO_SCALE. </p>
<p>Keep in mind that the layout text may contain a preedit string, so gtk_entry_layout_index_to_text_index() and gtk_entry_text_index_to_layout_index() are needed to convert byte indices in the layout to byte indices in the entry contents. </p>
<h3><a name="get_max_length">get_max_length</a></h3><p class="brief">Retrieves the maximum allowed length of the text in entry. </p>
         <pre class="prototype">GtkEntry.get_max_length()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the maximum allowed number of characters in GtkEntry, or 0 if there is no maximum. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_overwrite_mode">get_overwrite_mode</a></h3><p class="brief">Gets the value set by gtk_entry_set_overwrite_mode(). </p>
         <pre class="prototype">GtkEntry.get_overwrite_mode()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">whether the text is overwritten when typing. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_progress_fraction">get_progress_fraction</a></h3><p class="brief">Returns the current fraction of the task that's been completed. </p>
         <pre class="prototype">GtkEntry.get_progress_fraction()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">a fraction from 0.0 to 1.0 </td></tr>
               </tbody>
            </table>
         <h3><a name="get_progress_pulse_step">get_progress_pulse_step</a></h3><p class="brief">Retrieves the pulse step set with gtk_entry_set_progress_pulse_step(). </p>
         <pre class="prototype">GtkEntry.get_progress_pulse_step()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">a fraction from 0.0 to 1.0 </td></tr>
               </tbody>
            </table>
         <h3><a name="get_text">get_text</a></h3><p class="brief">Retrieves the contents of the entry widget. </p>
         <pre class="prototype">GtkEntry.get_text()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the contents of the widget as a string. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_text_length">get_text_length</a></h3><p class="brief">Retrieves the current length of the text in entry. </p>
         <pre class="prototype">GtkEntry.get_text_length()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">the current number of characters in GtkEntry, or 0 if there are none. </td></tr>
               </tbody>
            </table>
         <h3><a name="get_visibility">get_visibility</a></h3><p class="brief">Retrieves whether the text in entry is visible. </p>
         <pre class="prototype">GtkEntry.get_visibility()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">TRUE if the text is currently visible </td></tr>
               </tbody>
            </table>
         <h3><a name="get_width_chars">get_width_chars</a></h3><p class="brief">Gets the value set by gtk_entry_set_width_chars(). </p>
         <pre class="prototype">GtkEntry.get_width_chars()</pre>
         <table class="prototype">
         <tbody><tr class="return"><td class="name">Return</td><td class="content">number of chars to request space for, or negative if unset </td></tr>
               </tbody>
            </table>
         <h3><a name="layout_index_to_text_index">layout_index_to_text_index</a></h3><p class="brief">Converts from a position in the entry contents (returned by gtk_entry_get_text()) to a position in the entry's PangoLayout (returned by gtk_entry_get_layout(), with text retrieved via pango_layout_get_text()). </p>
         <pre class="prototype">GtkEntry.layout_index_to_text_index( layout_index )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">layout_index</td><td class="content"> byte index into the entry layout text </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">byte index into the entry contents </td></tr>
               </tbody>
            </table>
         <h3><a name="new_with_buffer">new_with_buffer</a></h3><p class="brief">Creates a new entry with the specified text buffer. </p>
         <pre class="prototype">GtkEntry.new_with_buffer( buffer )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">buffer</td><td class="content"> The GtkEntryBuffer to use for the new GtkEntry. </td></tr>
               </tbody>
            </table>
         <h3><a name="new_with_max_length">new_with_max_length</a></h3><p class="brief">Creates a new GtkEntry widget with the given maximum length. </p>
         <pre class="prototype">GtkEntry.new_with_max_length( max )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">max</td><td class="content"> the maximum length of the entry, or 0 for no maximum. (other than the maximum length of entries.) The value passed in will be clamped to the range 0-65536. </td></tr>
               </tbody>
            </table>
         <p>gtk_entry_new_with_max_length has been deprecated since version 2.0 and should not be used in newly-written code. Use gtk_entry_set_max_length() instead. </p>
<h3><a name="progress_pulse">progress_pulse</a></h3><p class="brief">Indicates that some progress is made, but you don't know how much. </p>
         <pre class="prototype">GtkEntry.progress_pulse()</pre>
         <p>Causes the entry's progress indicator to enter "activity mode," where a block bounces back and forth. Each call to gtk_entry_progress_pulse() causes the block to move by a little bit (the amount of movement per pulse is determined by gtk_entry_set_progress_pulse_step()). </p>
<h3><a name="set_activates_default">set_activates_default</a></h3><p class="brief">If setting is TRUE, pressing Enter in the entry will activate the default widget for the window containing the entry. </p>
         <pre class="prototype">GtkEntry.set_activates_default( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> TRUE to activate window's default widget on Enter keypress </td></tr>
               </tbody>
            </table>
         <p>This usually means that the dialog box containing the entry will be closed, since the default widget is usually one of the dialog buttons. </p>
<p>(For experts: if setting is TRUE, the entry calls gtk_window_activate_default() on the window containing the entry, in the default handler for the "activate" signal.) </p>
<h3><a name="set_alignment">set_alignment</a></h3><p class="brief">Sets the alignment for the contents of the entry. </p>
         <pre class="prototype">GtkEntry.set_alignment( xalign )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">xalign</td><td class="content"> The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts </td></tr>
               </tbody>
            </table>
         <p>This controls the horizontal positioning of the contents when the displayed text is shorter than the width of the entry. </p>
<h3><a name="set_buffer">set_buffer</a></h3><p class="brief">Set the GtkEntryBuffer object which holds the text for this widget. </p>
         <pre class="prototype">GtkEntry.set_buffer( buffer )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">buffer</td><td class="content"> a GtkEntryBuffer </td></tr>
               </tbody>
            </table>
         <h3><a name="set_cursor_hadjustment">set_cursor_hadjustment</a></h3><p class="brief">Hooks up an adjustment to the cursor position in an entry, so that when the cursor is moved, the adjustment is scrolled to show that position. </p>
         <pre class="prototype">GtkEntry.set_cursor_hadjustment( adjustment )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">adjustment</td><td class="content"> an adjustment which should be adjusted when the cursor is moved, or NULL </td></tr>
               </tbody>
            </table>
         <p>See gtk_scrolled_window_get_hadjustment() for a typical way of obtaining the adjustment. </p>
<p>The adjustment has to be in pixel units and in the same coordinate system as the entry. </p>
<h3><a name="set_has_frame">set_has_frame</a></h3><p class="brief">Sets whether the entry has a beveled frame around it. </p>
         <pre class="prototype">GtkEntry.set_has_frame( setting )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">setting</td><td class="content"> new value (boolean). </td></tr>
               </tbody>
            </table>
         <h3><a name="set_icon_activatable">set_icon_activatable</a></h3><p class="brief">Sets whether the icon is activatable. </p>
         <pre class="prototype">GtkEntry.set_icon_activatable( icon_pos, activatable )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="param"><td class="name">activatable</td><td class="content"> TRUE if the icon should be activatable. </td></tr>
               </tbody>
            </table>
         <h3><a name="set_icon_from_icon_name">set_icon_from_icon_name</a></h3><p class="brief">Sets the icon shown in the entry at the specified position from the current icon theme. </p>
         <pre class="prototype">GtkEntry.set_icon_from_icon_name( icon_pos, icon_name )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> The position at which to set the icon (GtkEntryIconPosition). </td></tr>
               <tr class="param"><td class="name">icon_name</td><td class="content"> An icon name, or NULL. </td></tr>
               </tbody>
            </table>
         <p>If the icon name isn't known, a "broken image" icon will be displayed instead. </p>
<p>If icon_name is NULL, no icon will be shown in the specified position. </p>
<h3><a name="set_icon_from_pixbuf">set_icon_from_pixbuf</a></h3><p class="brief">Sets the icon shown in the specified position using a pixbuf. </p>
         <pre class="prototype">GtkEntry.set_icon_from_pixbuf( icon_pos, pixbuf )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="param"><td class="name">pixbuf</td><td class="content"> A GdkPixbuf, or NULL. </td></tr>
               </tbody>
            </table>
         <p>If pixbuf is NULL, no icon will be shown in the specified position. </p>
<h3><a name="set_icon_from_stock">set_icon_from_stock</a></h3><p class="brief">Sets the icon shown in the entry at the specified position from a stock image. </p>
         <pre class="prototype">GtkEntry.set_icon_from_stock( icon_pos, stock_id )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="param"><td class="name">stock_id</td><td class="content"> The name of the stock item, or NULL. </td></tr>
               </tbody>
            </table>
         <p>If stock_id is NULL, no icon will be shown in the specified position. </p>
<h3><a name="set_icon_sensitive">set_icon_sensitive</a></h3><p class="brief">Sets the sensitivity for the specified icon. </p>
         <pre class="prototype">GtkEntry.set_icon_sensitive( icon_pos, sensitive )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="param"><td class="name">sensitive</td><td class="content"> Specifies whether the icon should appear sensitive or insensitive </td></tr>
               </tbody>
            </table>
         <h3><a name="set_icon_tooltip_markup">set_icon_tooltip_markup</a></h3><p class="brief">Sets tooltip as the contents of the tooltip for the icon at the specified position. </p>
         <pre class="prototype">GtkEntry.set_icon_tooltip_markup( icon_pos, tooltip )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="param"><td class="name">tooltip</td><td class="content"> the contents of the tooltip for the icon, or NULL. </td></tr>
               </tbody>
            </table>
         <p>tooltip is assumed to be marked up with the Pango text markup language. </p>
<p>Use NULL for tooltip to remove an existing tooltip. </p>
<p>See also gtk_widget_set_tooltip_markup() and gtk_enty_set_icon_tooltip_text(). </p>
<h3><a name="set_icon_tooltip_text">set_icon_tooltip_text</a></h3><p class="brief">Sets tooltip as the contents of the tooltip for the icon at the specified position. </p>
         <pre class="prototype">GtkEntry.set_icon_tooltip_text( icon_pos, tooltip )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">icon_pos</td><td class="content"> Icon position (GtkEntryIconPosition). </td></tr>
               <tr class="param"><td class="name">tooltip</td><td class="content"> the contents of the tooltip for the icon, or NULL. </td></tr>
               </tbody>
            </table>
         <p>Use NULL for tooltip to remove an existing tooltip. </p>
<h3><a name="set_invisible_char">set_invisible_char</a></h3><p class="brief">Sets the entry invisible char </p>
         <pre class="prototype">GtkEntry.set_invisible_char( ch )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">ch</td><td class="content"> a character </td></tr>
               </tbody>
            </table>
         <p>Sets the character to use in place of the actual text when set_visibility() has been called to set text visibility to false. i.e. this is the character used in "password mode" to show the user how many characters have been typed. By default, GTK+ picks the best invisible char available in the current font. If you set the invisible char to "", then the user will get no feedback at all; there will be no text on the screen as they type. </p>
<h3><a name="set_max_length">set_max_length</a></h3><p class="brief">Sets the maximum allowed length of the contents of the widget. </p>
         <pre class="prototype">GtkEntry.set_max_length( max )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">max</td><td class="content"> the maximum length of the entry, or 0 for no maximum. (other than the maximum length of entries.) </td></tr>
               </tbody>
            </table>
         <p>The value passed in will be clamped to the range 0-65536. </p>
<p>If the current contents are longer than the given length, then they will be truncated to fit. </p>
<h3><a name="set_overwrite_mode">set_overwrite_mode</a></h3><p class="brief">Sets whether the text is overwritten when typing in the GtkEntry. </p>
         <pre class="prototype">GtkEntry.set_overwrite_mode( overwrite )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">overwrite</td><td class="content"> new value (boolean). </td></tr>
               </tbody>
            </table>
         <h3><a name="set_progress_fraction">set_progress_fraction</a></h3><p class="brief">Causes the entry's progress indicator to "fill in" the given fraction of the bar. </p>
         <pre class="prototype">GtkEntry.set_progress_fraction( fraction )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">fraction</td><td class="content"> fraction of the task that's been completed. </td></tr>
               </tbody>
            </table>
         <p>The fraction should be between 0.0 and 1.0, inclusive. </p>
<h3><a name="set_progress_pulse_step">set_progress_pulse_step</a></h3><p class="brief">Sets the fraction of total entry width to move the progress bouncing block for each call to gtk_entry_progress_pulse(). </p>
         <pre class="prototype">GtkEntry.set_progress_pulse_step( fraction )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">fraction</td><td class="content"> fraction between 0.0 and 1.0 </td></tr>
               </tbody>
            </table>
         <h3><a name="set_text">set_text</a></h3><p class="brief">Sets the text in the widget to the given value, replacing the current contents. </p>
         <pre class="prototype">GtkEntry.set_text( text )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">text</td><td class="content"> the new text </td></tr>
               </tbody>
            </table>
         <h3><a name="set_visiblity">set_visiblity</a></h3><p class="brief">Sets whether the contents of the entry are visible or not. </p>
         <pre class="prototype">GtkEntry.set_visiblity( visible )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">visible</td><td class="content"> (boolean) true if the contents of the entry are displayed as plaintext </td></tr>
               </tbody>
            </table>
         <p>When visibility is set to false, characters are displayed as the invisible char, and will also appear that way when the text in the entry widget is copied elsewhere. </p>
<p>By default, GTK+ picks the best invisible character available in the current font, but it can be changed with set_invisible_char(). </p>
<h3><a name="set_width_chars">set_width_chars</a></h3><p class="brief">Changes the size request of the entry to be about the right size for n_chars characters. </p>
         <pre class="prototype">GtkEntry.set_width_chars( n_chars )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">n_chars</td><td class="content"> width in chars </td></tr>
               </tbody>
            </table>
         <p>Note that it changes the size request, the size can still be affected by how you pack the widget into containers. If n_chars is -1, the size reverts to the default entry size. </p>
<h3><a name="signal_activate">signal_activate</a></h3><p class="brief">A keybinding signal which gets emitted when the user activates the entry. </p>
         <pre class="prototype">GtkEntry.signal_activate()</pre>
         <p>Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control activation programmatically. </p>
<p>The default bindings for this signal are all forms of the Enter key. </p>
<h3><a name="signal_backspace">signal_backspace</a></h3><p class="brief">The backspace signal is a keybinding signal which gets emitted when the user asks for it. </p>
         <pre class="prototype">GtkEntry.signal_backspace()</pre>
         <p>The default bindings for this signal are Backspace and Shift-Backspace. </p>
<h3><a name="signal_copy_clipboard">signal_copy_clipboard</a></h3><p class="brief">The copy-clipboard signal is a keybinding signal which gets emitted to copy the selection to the clipboard. </p>
         <pre class="prototype">GtkEntry.signal_copy_clipboard()</pre>
         <p>The default bindings for this signal are Ctrl-c and Ctrl-Insert. </p>
<h3><a name="signal_cut_clipboard">signal_cut_clipboard</a></h3><p class="brief">The cut-clipboard signal is a keybinding signal which gets emitted to cut the selection to the clipboard. </p>
         <pre class="prototype">GtkEntry.signal_cut_clipboard()</pre>
         <p>The default bindings for this signal are Ctrl-x and Shift-Delete. </p>
<h3><a name="signal_delete_from_cursor">signal_delete_from_cursor</a></h3><p class="brief">The delete-from-cursor signal is a keybinding signal which gets emitted when the user initiates a text deletion. </p>
         <pre class="prototype">GtkEntry.signal_delete_from_cursor()</pre>
         <p>If the type is GTK_DELETE_CHARS, GTK+ deletes the selection if there is one, otherwise it deletes the requested number of characters. </p>
<p>The default bindings for this signal are Delete for deleting a character and Ctrl-Delete for deleting a word. </p>
<h3><a name="signal_icon_press">signal_icon_press</a></h3><p class="brief">The ::icon-press signal is emitted when an activatable icon is clicked. </p>
         <pre class="prototype">GtkEntry.signal_icon_press()</pre>
         <p class='note'><b>Note:</b> Currently <b>not</b> implemented. </p>
<h3><a name="signal_icon_release">signal_icon_release</a></h3><p class="brief">The icon-release signal is emitted on the button release from a mouse click over an activatable icon. </p>
         <pre class="prototype">GtkEntry.signal_icon_release()</pre>
         <p class='note'><b>Note:</b> Currently <b>not</b> implemented. </p>
<h3><a name="signal_insert_at_cursor">signal_insert_at_cursor</a></h3><p class="brief">The insert-at-cursor signal is a keybinding signal which gets emitted when the user initiates the insertion of a fixed string at the cursor. </p>
         <pre class="prototype">GtkEntry.signal_insert_at_cursor()</pre>
         <p>This signal has no default bindings. </p>
<h3><a name="signal_move_cursor">signal_move_cursor</a></h3><p class="brief">The move-cursor signal is a keybinding signal which gets emitted when the user initiates a cursor movement. </p>
         <pre class="prototype">GtkEntry.signal_move_cursor()</pre>
         <p>If the cursor is not visible in entry, this signal causes the viewport to be moved instead. </p>
<p>Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically. </p>
<p>The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without the Shift modifer does not. There are too many key combinations to list them all here. </p>
<p>- Arrow keys move by individual characters/lines <ul><li>Ctrl-arrow key combinations move by words/paragraphs </li><li>Home/End keys move to the ends of the buffer </li></ul></p>
<h3><a name="signal_paste_clipboard">signal_paste_clipboard</a></h3><p class="brief">The paste-clipboard signal is a keybinding signal which gets emitted to paste the contents of the clipboard into the text view. </p>
         <pre class="prototype">GtkEntry.signal_paste_clipboard()</pre>
         <p>The default bindings for this signal are Ctrl-v and Shift-Insert. </p>
<h3><a name="signal_populate_popup">signal_populate_popup</a></h3><p class="brief">The populate-popup signal gets emitted before showing the context menu of the entry. </p>
         <pre class="prototype">GtkEntry.signal_populate_popup()</pre>
         <p>If you need to add items to the context menu, connect to this signal and append your menuitems to the menu. </p>
<h3><a name="signal_preedit_changed">signal_preedit_changed</a></h3><p class="brief">If an input method is used, the typed text will not immediately be committed to the buffer. So if you are interested in the text, connect to this signal. </p>
         <pre class="prototype">GtkEntry.signal_preedit_changed()</pre>
         <h3><a name="signal_toggle_overwrite">signal_toggle_overwrite</a></h3><p class="brief">The toggle-overwrite signal is a keybinding signal which gets emitted to toggle the overwrite mode of the entry. </p>
         <pre class="prototype">GtkEntry.signal_toggle_overwrite()</pre>
         <p>The default bindings for this signal is Insert. </p>
<h3><a name="text_index_to_layout_index">text_index_to_layout_index</a></h3><p class="brief">Converts from a position in the entry's PangoLayout (returned by gtk_entry_get_layout()) to a position in the entry contents (returned by gtk_entry_get_text()). </p>
         <pre class="prototype">GtkEntry.text_index_to_layout_index( text_index )</pre>
         <table class="prototype">
         <tbody><tr class="param"><td class="name">text_index</td><td class="content"> byte index into the entry contents </td></tr>
               <tr class="return"><td class="name">Return</td><td class="content">byte index into the entry layout text </td></tr>
               </tbody>
            </table>
         <h3><a name="unset_invisible_char">unset_invisible_char</a></h3><p class="brief">Unsets the invisible char previously set with set_invisible_char(). </p>
         <pre class="prototype">GtkEntry.unset_invisible_char()</pre>
         <p>So that the default invisible char is used again. </p>
</div><ul class="navi_bottom"><li class="top"><a href="index.html">Top: Table of contents</a></li>
         <li class="up"><a href="gtk.html">Up: The Falcon GTK Binding module</a></li>
         <li class="prev"><a href="gtk_GtkEditable.html">Previous: Class GtkEditable</a></li>
         <li class="next"><a href="gtk_GtkEntryBuffer.html">Next: Class GtkEntryBuffer</a></li>
         <li class="clear"></li>
         </ul><div class="signature">Made with <a href="faldoc 3.0">http://www.falconpl.org</a></div></body></html>