| ||||||||||
| ||||||||||
| ||||||||||
Description | ||||||||||
A single line text entry field | ||||||||||
Synopsis | ||||||||||
Detail | ||||||||||
The Entry 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. | ||||||||||
Class Hierarchy | ||||||||||
| GObject | +----Object | +----Widget | +----Entry | +----SpinButton | ||||||||||
Types | ||||||||||
data Entry | ||||||||||
| ||||||||||
class WidgetClass o => EntryClass o | ||||||||||
| ||||||||||
castToEntry :: GObjectClass obj => obj -> Entry | ||||||||||
toEntry :: EntryClass o => o -> Entry | ||||||||||
Constructors | ||||||||||
entryNew :: IO Entry | ||||||||||
Creates a new Entry widget. | ||||||||||
Methods | ||||||||||
entrySetText :: EntryClass self => self -> String -> IO () | ||||||||||
Sets the text in the widget to the given value, replacing the current contents. | ||||||||||
entryGetText :: EntryClass self => self -> IO String | ||||||||||
Retrieves the contents of the entry widget. See also editableGetChars. | ||||||||||
entryAppendText :: EntryClass self => self -> String -> IO () | ||||||||||
Appends the given text to the contents of the widget.
| ||||||||||
entryPrependText :: EntryClass self => self -> String -> IO () | ||||||||||
Prepends the given text to the contents of the widget.
| ||||||||||
entrySetVisibility | ||||||||||
| ||||||||||
entryGetVisibility | ||||||||||
| ||||||||||
entrySetInvisibleChar :: EntryClass self => self -> Char -> IO () | ||||||||||
Sets the character to use in place of the actual text when entrySetVisibility 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. The default invisible char is an asterisk ('*'). If you set the invisible char to '\0', then the user will get no feedback at all; there will be no text on the screen as they type. | ||||||||||
entryGetInvisibleChar | ||||||||||
| ||||||||||
entrySetMaxLength | ||||||||||
| ||||||||||
entryGetMaxLength | ||||||||||
| ||||||||||
entryGetActivatesDefault | ||||||||||
| ||||||||||
entrySetActivatesDefault | ||||||||||
| ||||||||||
entryGetHasFrame | ||||||||||
| ||||||||||
entrySetHasFrame :: EntryClass self => self -> Bool -> IO () | ||||||||||
Sets whether the entry has a beveled frame around it. | ||||||||||
entryGetWidthChars | ||||||||||
| ||||||||||
entrySetWidthChars | ||||||||||
| ||||||||||
entrySetAlignment | ||||||||||
| ||||||||||
entryGetAlignment | ||||||||||
| ||||||||||
entrySetCompletion :: EntryClass self => self -> EntryCompletion -> IO () | ||||||||||
Sets the auxiliary completion object to use with the entry. All further configuration of the completion mechanism is done on completion using the EntryCompletion API.
| ||||||||||
entryGetCompletion | ||||||||||
| ||||||||||
Attributes | ||||||||||
entryCursorPosition :: EntryClass self => ReadAttr self Int | ||||||||||
The current position of the insertion cursor in chars. Allowed values: [0,65535] Default value: 0 | ||||||||||
entrySelectionBound :: EntryClass self => ReadAttr self Int | ||||||||||
The position of the opposite end of the selection from the cursor in chars. Allowed values: [0,65535] Default value: 0 | ||||||||||
entryEditable :: EntryClass self => Attr self Bool | ||||||||||
Whether the entry contents can be edited. Default value: True | ||||||||||
entryMaxLength :: EntryClass self => Attr self Int | ||||||||||
Maximum number of characters for this entry. Zero if no maximum. Allowed values: [0,65535] Default value: 0 | ||||||||||
entryVisibility :: EntryClass self => Attr self Bool | ||||||||||
False displays the "invisible char" instead of the actual text (password mode). Default value: True | ||||||||||
entryHasFrame :: EntryClass self => Attr self Bool | ||||||||||
False removes outside bevel from entry. Default value: True | ||||||||||
entryInvisibleChar :: EntryClass self => Attr self Char | ||||||||||
The character to use when masking entry contents (in "password mode"). Default value: '*' | ||||||||||
entryActivatesDefault :: EntryClass self => Attr self Bool | ||||||||||
Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed. Default value: False | ||||||||||
entryWidthChars :: EntryClass self => Attr self Int | ||||||||||
Number of characters to leave space for in the entry. Allowed values: >= -1 Default value: -1 | ||||||||||
entryScrollOffset :: EntryClass self => ReadAttr self Int | ||||||||||
Number of pixels of the entry scrolled off the screen to the left. Allowed values: >= 0 Default value: 0 | ||||||||||
entryText :: EntryClass self => Attr self String | ||||||||||
The contents of the entry. Default value: "" | ||||||||||
entryXalign :: EntryClass self => Attr self Float | ||||||||||
The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts. Allowed values: [0,1] Default value: 0 | ||||||||||
entryAlignment :: EntryClass self => Attr self Float | ||||||||||
'alignment' property. See entryGetAlignment and entrySetAlignment | ||||||||||
entryCompletion :: EntryClass self => Attr self EntryCompletion | ||||||||||
'completion' property. See entryGetCompletion and entrySetCompletion | ||||||||||
Signals | ||||||||||
onEntryActivate :: EntryClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||||||
Emitted when the user presses return within the Entry field. | ||||||||||
afterEntryActivate :: EntryClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||||||
onCopyClipboard :: EntryClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||||||
Emitted when the current selection has been copied to the clipboard. | ||||||||||
afterCopyClipboard :: EntryClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||||||
onCutClipboard :: EntryClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||||||
Emitted when the current selection has been cut to the clipboard. | ||||||||||
afterCutClipboard :: EntryClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||||||
onPasteClipboard :: EntryClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||||||
Emitted when the current selection has been pasted from the clipboard. | ||||||||||
afterPasteClipboard :: EntryClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||||||
onToggleOverwrite :: EntryClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||||||
Emitted when the user changes from overwriting to inserting. | ||||||||||
afterToggleOverwrite :: EntryClass ec => ec -> IO () -> IO (ConnectId ec) | ||||||||||
Produced by Haddock version 0.8 |