gtkEntryNew(show = TRUE)
gtkEntryNewWithBuffer(buffer, show = TRUE)
gtkEntryNewWithMaxLength(max = 0, show = TRUE)
gtkEntryGetBuffer(object)
gtkEntrySetBuffer(object, buffer)
gtkEntrySetText(object, text)
gtkEntryAppendText(object, text)
gtkEntryPrependText(object, text)
gtkEntrySetPosition(object, position)
gtkEntryGetText(object)
gtkEntryGetTextLength(object)
gtkEntrySelectRegion(object, start, end)
gtkEntrySetVisibility(object, visible)
gtkEntrySetInvisibleChar(object, ch)
gtkEntryUnsetInvisibleChar(object)
gtkEntrySetEditable(object, editable)
gtkEntrySetMaxLength(object, max)
gtkEntryGetActivatesDefault(object)
gtkEntryGetHasFrame(object)
gtkEntryGetInnerBorder(object)
gtkEntryGetWidthChars(object)
gtkEntrySetActivatesDefault(object, setting)
gtkEntrySetHasFrame(object, setting)
gtkEntrySetInnerBorder(object, border = NULL)
gtkEntrySetWidthChars(object, n.chars)
gtkEntryGetInvisibleChar(object)
gtkEntrySetAlignment(object, xalign)
gtkEntryGetAlignment(object)
gtkEntrySetOverwriteMode(object, overwrite)
gtkEntryGetOverwriteMode(object)
gtkEntryGetLayout(object)
gtkEntryGetLayoutOffsets(object)
gtkEntryLayoutIndexToTextIndex(object, layout.index)
gtkEntryTextIndexToLayoutIndex(object, text.index)
gtkEntryGetMaxLength(object)
gtkEntryGetVisibility(object)
gtkEntrySetCompletion(object, completion)
gtkEntryGetCompletion(object)
gtkEntrySetCursorHadjustment(object, adjustment)
gtkEntryGetCursorHadjustment(object)
gtkEntrySetProgressFraction(object, fraction)
gtkEntryGetProgressFraction(object)
gtkEntrySetProgressPulseStep(object, fraction)
gtkEntryGetProgressPulseStep(object)
gtkEntryProgressPulse(object)
gtkEntrySetIconFromPixbuf(object, icon.pos, pixbuf = NULL)
gtkEntrySetIconFromStock(object, icon.pos, stock.id = NULL)
gtkEntrySetIconFromIconName(object, icon.pos, icon.name = NULL)
gtkEntrySetIconFromGicon(object, icon.pos, icon = NULL)
gtkEntryGetIconStorageType(object, icon.pos)
gtkEntryGetIconPixbuf(object, icon.pos)
gtkEntryGetIconStock(object, icon.pos)
gtkEntryGetIconName(object, icon.pos)
gtkEntryGetIconGicon(object, icon.pos)
gtkEntrySetIconActivatable(object, icon.pos, activatable)
gtkEntryGetIconActivatable(object, icon.pos)
gtkEntrySetIconSensitive(object, icon.pos, sensitive)
gtkEntryGetIconSensitive(object, icon.pos)
gtkEntryGetIconAtPos(object, x, y)
gtkEntrySetIconTooltipText(object, icon.pos, tooltip = NULL)
gtkEntryGetIconTooltipText(object, icon.pos)
gtkEntrySetIconTooltipMarkup(object, icon.pos, tooltip = NULL)
gtkEntryGetIconTooltipMarkup(object, icon.pos)
gtkEntrySetIconDragSource(object, icon.pos, target.list, actions)
gtkEntryGetCurrentIconDragSource(object)
gtkEntryGetIconWindow(object, icon.pos)
gtkEntryGetTextWindow(object)
gtkEntry(max = 0, buffer, show = TRUE)
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkEntry +----GtkSpinButton
GtkBuildable
, GtkEditable
and GtkCellEditable
.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. When using an entry for passwords and other sensitive information,
it can be put into "password mode" using gtkEntrySetVisibility
.
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
gtkEntrySetInvisibleChar
. 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. Since 2.16, GtkEntry has the ability to display progress or activity
information behind the text. To make an entry display such information,
use gtkEntrySetProgressFraction
or gtkEntrySetProgressPulseStep
. 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 gtkEntrySetIconFromGicon
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 gtkEntrySetIconDragSource
. To set a tooltip on
an icon, use gtkEntrySetIconTooltipText
or the corresponding function
for markup. 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.gtkEntry
is the result of collapsing the constructors of GtkEntry
(gtkEntryNew
, gtkEntryNewWithMaxLength
, gtkEntryNewWithBuffer
) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.activate(entry, user.data)
gSignalEmitByName()
if they need to control activation
programmatically. The default bindings for this signal are all forms of the Enter key. entry
user.data
backspace(entry, user.data)
entry
user.data
copy-clipboard(entry, user.data)
entry
user.data
cut-clipboard(entry, user.data)
entry
user.data
delete-from-cursor(entry, type, count, user.data)
type
is GTK_DELETE_CHARS
, GTK+ deletes the selection
if there is one, otherwise it deletes the requested number
of characters. The default bindings for this signal are
Delete for deleting a character and Ctrl-Delete for
deleting a word. entry
type
GtkDeleteType
count
type
units to deleteuser.data
icon-press(entry, icon.pos, event, user.data)
entry
icon.pos
event
user.data
icon-release(entry, icon.pos, event, user.data)
entry
icon.pos
event
user.data
insert-at-cursor(entry, string, user.data)
entry
string
user.data
move-cursor(entry, step, count, extend.selection, user.data)
entry
, this signal causes
the viewport to be moved instead. Applications should not connect to it, but may emit it with
gSignalEmitByName()
if they need to control the cursor
programmatically. 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.
entry
step
GtkMovementStep
count
step
units to moveextend.selection
TRUE
if the move should extend the selectionuser.data
paste-clipboard(entry, user.data)
entry
user.data
populate-popup(entry, menu, user.data)
menu
. entry
menu
user.data
preedit-changed(entry, preedit, user.data)
entry
preedit
user.data
toggle-overwrite(entry, user.data)
entry
user.data
activates-default
[logical : Read / Write]buffer
[GtkEntryBuffer
: * : Read / Write / Construct]caps-lock-warning
[logical : Read / Write]cursor-position
[integer : Read]editable
[logical : Read / Write]has-frame
[logical : Read / Write]im-module
[character : * : Read / Write]GtkIMContext
. Setting this to a non-NULL
value overrides the
system-wide IM module setting. See the GtkSettings
"gtk-im-module"
property.
Default value: NULL Since 2.16 inner-border
[GtkBorder
: * : Read / Write]invisible-char
[numeric : Read / Write]"invisible-char"
property, GTK+ determines the character
to use from a list of possible candidates, depending on availability
in the current font. This style property allows the theme to prepend a character
to the list of candidates.
Default value: '*' Since 2.18 invisible-char-set
[logical : Read / Write]GtkEntry
.
Default value: FALSE Since 2.16 max-length
[integer : Read / Write]overwrite-mode
[logical : Read / Write]GtkEntry
.
Default value: FALSE Since 2.14 primary-icon-activatable
[logical : Read / Write]"icon-press"
and "icon-release"
signals only on sensitive, activatable icons. Sensitive, but non-activatable icons can be used for purely
informational purposes.
Default value: FALSE Since 2.16 primary-icon-gicon
[GIcon
: * : Read / Write]GIcon
to use for the primary icon for the entry.
Since 2.16 primary-icon-name
[character : * : Read / Write]primary-icon-pixbuf
[GdkPixbuf
: * : Read / Write]primary-icon-sensitive
[logical : Read / Write]"icon-press"
and "icon-release"
signals and
does not allow DND from insensitive icons. An icon should be set insensitive if the action that would trigger
when clicked is currently not available.
Default value: TRUE Since 2.16 primary-icon-stock
[character : * : Read / Write]primary-icon-storage-type
[GtkImageType
: Read]primary-icon-tooltip-markup
[character : * : Read / Write]gtkEntrySetIconTooltipMarkup
.
Default value: NULL Since 2.16 primary-icon-tooltip-text
[character : * : Read / Write]gtkEntrySetIconTooltipText
.
Default value: NULL Since 2.16 progress-fraction
[numeric : Read / Write]progress-pulse-step
[numeric : Read / Write]gtkEntryProgressPulse
.
Allowed values: [0,1] Default value: 0.1 Since 2.16 scroll-offset
[integer : Read]secondary-icon-activatable
[logical : Read / Write]"icon-press"
and "icon-release"
signals only on sensitive, activatable icons. Sensitive, but non-activatable icons can be used for purely
informational purposes.
Default value: FALSE Since 2.16 secondary-icon-gicon
[GIcon
: * : Read / Write]GIcon
to use for the secondary icon for the entry.
Since 2.16 secondary-icon-name
[character : * : Read / Write]secondary-icon-pixbuf
[GdkPixbuf
: * : Read / Write]secondary-icon-sensitive
[logical : Read / Write]"icon-press"
and "icon-release"
signals and
does not allow DND from insensitive icons. An icon should be set insensitive if the action that would trigger
when clicked is currently not available.
Default value: TRUE Since 2.16 secondary-icon-stock
[character : * : Read / Write]secondary-icon-storage-type
[GtkImageType
: Read]secondary-icon-tooltip-markup
[character : * : Read / Write]gtkEntrySetIconTooltipMarkup
.
Default value: NULL Since 2.16 secondary-icon-tooltip-text
[character : * : Read / Write]gtkEntrySetIconTooltipText
.
Default value: NULL Since 2.16 selection-bound
[integer : Read]shadow-type
[GtkShadowType
: Read / Write]"has-frame"
is set to TRUE
.
Default value: GTK_SHADOW_IN Since 2.12 text
[character : * : Read / Write]text-length
[numeric : Read]GtkEntry
.
Allowed values: <= 0="" 65535="" default value:="" since="" 2.14="" <="" dd=""> truncate-multiline
[logical : Read / Write]TRUE
, pasted multi-line text is truncated to the first line.
Default value: FALSE Since 2.10 visibility
[logical : Read / Write]width-chars
[integer : Read / Write]xalign
[numeric : Read / Write]icon-prelight
[logical : Read]inner-border
[GtkBorder
: * : Read]invisible-char
[numeric : Read]"invisible-char"
property, GTK+ determines the character
to use from a list of possible candidates, depending on availability
in the current font. This style property allows the theme to prepend a character
to the list of candidates.
Default value: 0 Since 2.18 progress-border
[GtkBorder
: * : Read]state-hint
[logical : Read]