gtk-sharp0.0.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.An Entry is a single-line text entry widget.This widget should be used to retrieve small amounts of text from the user. 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.
See also the widget for displaying and editing large amounts of text.
Gtk.WidgetGtk.EditableGLib.IWrapperGtk.CellEditableAtk.ImplementorGLib.IWrapperGLib.IWrapperSystem.IDisposableMethodSystem.Int32Add arbitrary text to the entry.
the text to add
The number of characters added.Use this method to insert a string at the current CursorPosition.MethodSystem.VoidSpecific implementation of Gtk.CellEditable.StartEditing for the Entry widget.MethodSystem.VoidSpecific implementation of Gtk.CellEditable.FinishEditing for the Entry widget.MethodSystem.VoidSpecific implementation of Gtk.CellEditable.RemoveWidget for the Entry widget.MethodSystem.VoidSpecific implementation of Gtk.Editable.SelectRegion for the Entry widget.MethodSystem.StringSpecific implementation of Gtk.Editable.GetChars for the Entry widget.
The index of the first character to get, (zero-indexed).
The index of the character to retrieve up to.
A string representing the characters from , up to, but not including . If is negative, then the the characters retrieved will be those characters from to the end of the text.MethodSystem.VoidSpecific implementation of Gtk.Editable.DeleteText for the Entry widget.MethodSystem.VoidSpecific implementation of Gtk.Editable.CopyClipboard for the Entry widget.MethodSystem.VoidSpecific implementation of Gtk.Editable.DeleteSelection for the Entry widget. Deletes the currently selected text from the Entry.MethodSystem.BooleanGet the the positions of the start and end of the current selection, if there is one.
output variable for the character index of the selection start
output variable for the character index of the end of the selection
if there is a selection, otherwise.MethodSystem.VoidCopies any selected text to the clipboard and deletes it from the entry.MethodSystem.VoidInserts text at a specific position in the Entry.
The text to add to the Entry
The length of the new text to add, in bytes.
An in/out parameter. The caller initializes it to the position at which to insert the text. After the call it points at the position after the newly inserted text.
Implements the Gtk.Editable.InsertText interface method for this Entry.MethodSystem.VoidCauses the contents of the clipboard to be pasted into the Entry at the current cursor position.MethodSystem.VoidObtains the position of the PangoLayout used to render text in the entry, in widget coordinates.
X offset output of the layout
Y offset output of the layout
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.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.MethodSystem.VoidDisposes the resources associated with the object.ConstructorInternal constructor
GLib type for the type
Creates a new instance of Entry, using the GLib-provided typeThis is a constructor used by derivative types of that would have their own GLib type assigned to it. This is not typically used by C# code.ConstructorInternal constructor
Pointer to the C object.
An instance of Entry, wrapping the C object.This is an internal constructor, and should not be used by user code.ConstructorConstruct a new entry widgetCreates an entry widget with empty contentsPropertySystem.UInt32The GLib Type for Gtk.EntryThe GLib Type for the Gtk.Entry class.PropertySystem.BooleanImplements the concrete version of Gtk.Editable.IsEditable, to determine if the text of the Entry can be edited.
true to allow editing of the Entry, false otherwise.
true if the Entry is editable, false otherwise.PropertySystem.Int32The position of the cursor.
the new cursor position, in characters.
the current cursor positionThe cursor is displayed before the character with the given (base 0) index in the widget. The value must be less than or equal to the number of characters in the widget. A value of -1 indicates that the position should be set after the last character in the entry. Note that this position is in characters, not in bytes. PropertyPango.LayoutGet the object used by this Entry for text layout.The Pango.Layout used to render the text of this entry.This property is read only.PropertySystem.BooleanDetermine whether to display characters entered, or whether to mask them.
true to display characters in the Entry, false to mask them
true if characters are being displayed, false if they are being masked.This property should be used to create entry widgets for sensitive data such as passwords.PropertySystem.Int32The maximum number of characters that can be placed in this Entry.
How many characters to limit this Entry to
The maximum number of characters that can currently be set in this Entry.This property can be useful for ensuring no more than a specific number of characters are put in an entry.PropertySystem.Int32The position of the cursor in the Entry's text.The current character of the cursor.Use this property to manipulate the position of the cursor - it is displayed before the character with the given (base 0) index in the widget. The value must be less than or equal to the number of characters in the widget. A value of -1 indicates that the position should be set after the last character in the entry. Note that this position is in characters, not in bytes.PropertySystem.Int32The length of the selected text.The number of selected characters.PropertySystem.StringManipulate the current text contents of an Entry.
The new string to display in the Entry - overwrites any existing text in the widget.
The current text in an Entry.PropertySystem.Int32To be addedTo be added: an object of type 'int'To be addedPropertySystem.Int32Changes the size request of the entry to be about the right size for characters.
Requested width, in characters
The number of characters requested.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.PropertySystem.BooleanWhether or not this Entry is editable. to make this Entry read-only, to allow editing. if this entry can be edited, otherwise.Set this property to false if you need to stop input into an Entry widget. For displaying textual data, it is more normal to use a instead.PropertySystem.BooleanDetermine whether to activate the 'default widget' in the window when the return key is pressed.
set to to activate the default button when enter is pressed, otherwise
if the default button will be activated, false otherwise.If the value is , pressing Enter in the entry will activate the default widget for the window containing the entry. This usually means that the dialog box containing the entry will be closed, since the default widget is usually one of the dialog buttons.
(For experts: if the value is , the entry calls on the containing the entry, in the default handler for the event).PropertySystem.BooleanWhether or not this Entry should be surrounded by a 3D frame. to surround this Entry in a frame (the default), otherwise.
if a frame surrounds this Entry, otherwiseUnless there is a very specific reason for doing so, this property is best left to its default to ensure consistency in Entry widgets across applications.EventImplements the WidgetRemoved method of the interface. This will effectively destroy the Entry.EventImplements the EditingDone method of the interface.EventConnect to this event to be notified when text is inserted into the Entry.EventConnect to this event to be notified when text is deleted from the Entry.EventWhen the contents of the Entry change, this event is fired.EventConnect to this event handler to be notified when the cursor of an Entry moves.Data pertaining to this event is passed with a .EventConnect to this event to be notified when the user 'cuts' a selection in the Entry.Connect to this event with a standard .EventConnect to this event to be notified when the user hits 'return'.Connect to this event with a standard .EventConnect to this event to find out when text is deleted from the Entry by the user.Data pertaining to this event is encapsulated in a .EventConnect to this event to be notified when the clipboard contents are pasted into this Entry.Connect to this event with a standard .EventConnect to this event to be notified when the contents of the Entry are copied to the clipboard.Connect to this event with a standard .EventTo be addedData pertaining to this event is encapsulated in a .EventConnect to this event to discover when the Overwrite state has been changed by the user. This is usually done by pressing the 'Insert' key on a keyboard.Connect to this event with a standard .EventConnect to this event to discover when text is inserted at the cursor position - usually when the user types something in.Data pertaining to this event is encapsulated in an .MethodSystem.VoidTo be added
To be added: an object of type 'string'
To be added: an object of type 'int&'
To be addedConstructorInternal constructor
GLib type for the type
Creates a new instance of Entry, using the GLib-provided typeThis is a constructor used by derivative types of that would have their own GLib type assigned to it. This is not typically used by C# code.