Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- getActivatesDefault
- getAlignment
- getAttributes
- getBuffer
- getCompletion
- getCurrentIconDragSource
- getCursorHadjustment
- getHasFrame
- getIconActivatable
- getIconArea
- getIconAtPos
- getIconGicon
- getIconName
- getIconPixbuf
- getIconSensitive
- getIconStock
- getIconStorageType
- getIconTooltipMarkup
- getIconTooltipText
- getInnerBorder
- getInputHints
- getInputPurpose
- getInvisibleChar
- getLayout
- getLayoutOffsets
- getMaxLength
- getMaxWidthChars
- getOverwriteMode
- getPlaceholderText
- getProgressFraction
- getProgressPulseStep
- getTabs
- getText
- getTextArea
- getTextLength
- getVisibility
- getWidthChars
- grabFocusWithoutSelecting
- imContextFilterKeypress
- layoutIndexToTextIndex
- new
- newWithBuffer
- progressPulse
- resetImContext
- setActivatesDefault
- setAlignment
- setAttributes
- setBuffer
- setCompletion
- setCursorHadjustment
- setHasFrame
- setIconActivatable
- setIconDragSource
- setIconFromGicon
- setIconFromIconName
- setIconFromPixbuf
- setIconFromStock
- setIconSensitive
- setIconTooltipMarkup
- setIconTooltipText
- setInnerBorder
- setInputHints
- setInputPurpose
- setInvisibleChar
- setMaxLength
- setMaxWidthChars
- setOverwriteMode
- setPlaceholderText
- setProgressFraction
- setProgressPulseStep
- setTabs
- setText
- setVisibility
- setWidthChars
- textIndexToLayoutIndex
- unsetInvisibleChar
- Properties
- activatesDefault
- attributes
- buffer
- capsLockWarning
- completion
- cursorPosition
- editable
- hasFrame
- imModule
- innerBorder
- inputHints
- inputPurpose
- invisibleChar
- invisibleCharSet
- maxLength
- maxWidthChars
- overwriteMode
- placeholderText
- populateAll
- primaryIconActivatable
- primaryIconGicon
- primaryIconName
- primaryIconPixbuf
- primaryIconSensitive
- primaryIconStock
- primaryIconStorageType
- primaryIconTooltipMarkup
- primaryIconTooltipText
- progressFraction
- progressPulseStep
- scrollOffset
- secondaryIconActivatable
- secondaryIconGicon
- secondaryIconName
- secondaryIconPixbuf
- secondaryIconSensitive
- secondaryIconStock
- secondaryIconStorageType
- secondaryIconTooltipMarkup
- secondaryIconTooltipText
- selectionBound
- shadowType
- tabs
- text
- textLength
- truncateMultiline
- visibility
- widthChars
- xalign
- Signals
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.
When using an entry for passwords and other sensitive information,
it can be put into “password mode” using entrySetVisibility
.
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
entrySetInvisibleChar
. 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
Entry
: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 entrySetProgressFraction
or entrySetProgressPulseStep
.
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 entrySetIconFromGicon
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 Entry
::icon-press
signal. To allow DND operations
from an icon, use entrySetIconDragSource
. To set a tooltip on
an icon, use entrySetIconTooltipText
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.
CSS nodes
plain code
entry ├── image.left ├── image.right ├── undershoot.left ├── undershoot.right ├── [selection] ├── [progress[.pulse]] ╰── [window.popup]
GtkEntry has a main node with the name entry. Depending on the properties of the entry, the style classes .read-only and .flat may appear. The style classes .warning and .error may also be used with entries.
When the entry shows icons, it adds subnodes with the name image and the style class .left or .right, depending on where the icon appears.
When the entry has a selection, it adds a subnode with the name selection.
When the entry shows progress, it adds a subnode with the name progress. The node has the style class .pulse when the shown progress is pulsing.
The CSS node for a context menu is added as a subnode below entry as well.
The undershoot nodes are used to draw the underflow indication when content is scrolled out of view. These nodes get the .left and .right style classes added depending on where the indication is drawn.
When touch is used and touch selection handles are shown, they are using CSS nodes with name cursor-handle. They get the .top or .bottom style class depending on where they are shown in relation to the selection. If there is just a single handle for the text cursor, it gets the style class .insertion-cursor.
- newtype Entry = Entry (ManagedPtr Entry)
- class GObject o => IsEntry o
- toEntry :: (MonadIO m, IsEntry o) => o -> m Entry
- noEntry :: Maybe Entry
- entryGetActivatesDefault :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Bool
- entryGetAlignment :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Float
- entryGetAttributes :: (HasCallStack, MonadIO m, IsEntry a) => a -> m (Maybe AttrList)
- entryGetBuffer :: (HasCallStack, MonadIO m, IsEntry a) => a -> m EntryBuffer
- entryGetCompletion :: (HasCallStack, MonadIO m, IsEntry a) => a -> m EntryCompletion
- entryGetCurrentIconDragSource :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Int32
- entryGetCursorHadjustment :: (HasCallStack, MonadIO m, IsEntry a) => a -> m (Maybe Adjustment)
- entryGetHasFrame :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Bool
- entryGetIconActivatable :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> m Bool
- entryGetIconArea :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> m Rectangle
- entryGetIconAtPos :: (HasCallStack, MonadIO m, IsEntry a) => a -> Int32 -> Int32 -> m Int32
- entryGetIconGicon :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> m (Maybe Icon)
- entryGetIconName :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> m (Maybe Text)
- entryGetIconPixbuf :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> m (Maybe Pixbuf)
- entryGetIconSensitive :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> m Bool
- entryGetIconStock :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> m Text
- entryGetIconStorageType :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> m ImageType
- entryGetIconTooltipMarkup :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> m (Maybe Text)
- entryGetIconTooltipText :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> m (Maybe Text)
- entryGetInnerBorder :: (HasCallStack, MonadIO m, IsEntry a) => a -> m (Maybe Border)
- entryGetInputHints :: (HasCallStack, MonadIO m, IsEntry a) => a -> m [InputHints]
- entryGetInputPurpose :: (HasCallStack, MonadIO m, IsEntry a) => a -> m InputPurpose
- entryGetInvisibleChar :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Char
- entryGetLayout :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Layout
- entryGetLayoutOffsets :: (HasCallStack, MonadIO m, IsEntry a) => a -> m (Int32, Int32)
- entryGetMaxLength :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Int32
- entryGetMaxWidthChars :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Int32
- entryGetOverwriteMode :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Bool
- entryGetPlaceholderText :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Text
- entryGetProgressFraction :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Double
- entryGetProgressPulseStep :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Double
- entryGetTabs :: (HasCallStack, MonadIO m, IsEntry a) => a -> m (Maybe TabArray)
- entryGetText :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Text
- entryGetTextArea :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Rectangle
- entryGetTextLength :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Word16
- entryGetVisibility :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Bool
- entryGetWidthChars :: (HasCallStack, MonadIO m, IsEntry a) => a -> m Int32
- entryGrabFocusWithoutSelecting :: (HasCallStack, MonadIO m, IsEntry a) => a -> m ()
- entryImContextFilterKeypress :: (HasCallStack, MonadIO m, IsEntry a) => a -> EventKey -> m Bool
- entryLayoutIndexToTextIndex :: (HasCallStack, MonadIO m, IsEntry a) => a -> Int32 -> m Int32
- entryNew :: (HasCallStack, MonadIO m) => m Entry
- entryNewWithBuffer :: (HasCallStack, MonadIO m, IsEntryBuffer a) => a -> m Entry
- entryProgressPulse :: (HasCallStack, MonadIO m, IsEntry a) => a -> m ()
- entryResetImContext :: (HasCallStack, MonadIO m, IsEntry a) => a -> m ()
- entrySetActivatesDefault :: (HasCallStack, MonadIO m, IsEntry a) => a -> Bool -> m ()
- entrySetAlignment :: (HasCallStack, MonadIO m, IsEntry a) => a -> Float -> m ()
- entrySetAttributes :: (HasCallStack, MonadIO m, IsEntry a) => a -> AttrList -> m ()
- entrySetBuffer :: (HasCallStack, MonadIO m, IsEntry a, IsEntryBuffer b) => a -> b -> m ()
- entrySetCompletion :: (HasCallStack, MonadIO m, IsEntry a, IsEntryCompletion b) => a -> Maybe b -> m ()
- entrySetCursorHadjustment :: (HasCallStack, MonadIO m, IsEntry a, IsAdjustment b) => a -> Maybe b -> m ()
- entrySetHasFrame :: (HasCallStack, MonadIO m, IsEntry a) => a -> Bool -> m ()
- entrySetIconActivatable :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> Bool -> m ()
- entrySetIconDragSource :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> TargetList -> [DragAction] -> m ()
- entrySetIconFromGicon :: (HasCallStack, MonadIO m, IsEntry a, IsIcon b) => a -> EntryIconPosition -> Maybe b -> m ()
- entrySetIconFromIconName :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> Maybe Text -> m ()
- entrySetIconFromPixbuf :: (HasCallStack, MonadIO m, IsEntry a, IsPixbuf b) => a -> EntryIconPosition -> Maybe b -> m ()
- entrySetIconFromStock :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> Maybe Text -> m ()
- entrySetIconSensitive :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> Bool -> m ()
- entrySetIconTooltipMarkup :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> Maybe Text -> m ()
- entrySetIconTooltipText :: (HasCallStack, MonadIO m, IsEntry a) => a -> EntryIconPosition -> Maybe Text -> m ()
- entrySetInnerBorder :: (HasCallStack, MonadIO m, IsEntry a) => a -> Maybe Border -> m ()
- entrySetInputHints :: (HasCallStack, MonadIO m, IsEntry a) => a -> [InputHints] -> m ()
- entrySetInputPurpose :: (HasCallStack, MonadIO m, IsEntry a) => a -> InputPurpose -> m ()
- entrySetInvisibleChar :: (HasCallStack, MonadIO m, IsEntry a) => a -> Char -> m ()
- entrySetMaxLength :: (HasCallStack, MonadIO m, IsEntry a) => a -> Int32 -> m ()
- entrySetMaxWidthChars :: (HasCallStack, MonadIO m, IsEntry a) => a -> Int32 -> m ()
- entrySetOverwriteMode :: (HasCallStack, MonadIO m, IsEntry a) => a -> Bool -> m ()
- entrySetPlaceholderText :: (HasCallStack, MonadIO m, IsEntry a) => a -> Maybe Text -> m ()
- entrySetProgressFraction :: (HasCallStack, MonadIO m, IsEntry a) => a -> Double -> m ()
- entrySetProgressPulseStep :: (HasCallStack, MonadIO m, IsEntry a) => a -> Double -> m ()
- entrySetTabs :: (HasCallStack, MonadIO m, IsEntry a) => a -> TabArray -> m ()
- entrySetText :: (HasCallStack, MonadIO m, IsEntry a) => a -> Text -> m ()
- entrySetVisibility :: (HasCallStack, MonadIO m, IsEntry a) => a -> Bool -> m ()
- entrySetWidthChars :: (HasCallStack, MonadIO m, IsEntry a) => a -> Int32 -> m ()
- entryTextIndexToLayoutIndex :: (HasCallStack, MonadIO m, IsEntry a) => a -> Int32 -> m Int32
- entryUnsetInvisibleChar :: (HasCallStack, MonadIO m, IsEntry a) => a -> m ()
- constructEntryActivatesDefault :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryActivatesDefault :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryActivatesDefault :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- constructEntryAttributes :: IsEntry o => AttrList -> IO (GValueConstruct o)
- getEntryAttributes :: (MonadIO m, IsEntry o) => o -> m (Maybe AttrList)
- setEntryAttributes :: (MonadIO m, IsEntry o) => o -> AttrList -> m ()
- constructEntryBuffer :: (IsEntry o, IsEntryBuffer a) => a -> IO (GValueConstruct o)
- getEntryBuffer :: (MonadIO m, IsEntry o) => o -> m EntryBuffer
- setEntryBuffer :: (MonadIO m, IsEntry o, IsEntryBuffer a) => o -> a -> m ()
- constructEntryCapsLockWarning :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryCapsLockWarning :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryCapsLockWarning :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- clearEntryCompletion :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntryCompletion :: (IsEntry o, IsEntryCompletion a) => a -> IO (GValueConstruct o)
- getEntryCompletion :: (MonadIO m, IsEntry o) => o -> m EntryCompletion
- setEntryCompletion :: (MonadIO m, IsEntry o, IsEntryCompletion a) => o -> a -> m ()
- getEntryCursorPosition :: (MonadIO m, IsEntry o) => o -> m Int32
- constructEntryEditable :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryEditable :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryEditable :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- constructEntryHasFrame :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryHasFrame :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryHasFrame :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- clearEntryImModule :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntryImModule :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntryImModule :: (MonadIO m, IsEntry o) => o -> m (Maybe Text)
- setEntryImModule :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- clearEntryInnerBorder :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntryInnerBorder :: IsEntry o => Border -> IO (GValueConstruct o)
- getEntryInnerBorder :: (MonadIO m, IsEntry o) => o -> m (Maybe Border)
- setEntryInnerBorder :: (MonadIO m, IsEntry o) => o -> Border -> m ()
- constructEntryInputHints :: IsEntry o => [InputHints] -> IO (GValueConstruct o)
- getEntryInputHints :: (MonadIO m, IsEntry o) => o -> m [InputHints]
- setEntryInputHints :: (MonadIO m, IsEntry o) => o -> [InputHints] -> m ()
- constructEntryInputPurpose :: IsEntry o => InputPurpose -> IO (GValueConstruct o)
- getEntryInputPurpose :: (MonadIO m, IsEntry o) => o -> m InputPurpose
- setEntryInputPurpose :: (MonadIO m, IsEntry o) => o -> InputPurpose -> m ()
- constructEntryInvisibleChar :: IsEntry o => Word32 -> IO (GValueConstruct o)
- getEntryInvisibleChar :: (MonadIO m, IsEntry o) => o -> m Word32
- setEntryInvisibleChar :: (MonadIO m, IsEntry o) => o -> Word32 -> m ()
- constructEntryInvisibleCharSet :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryInvisibleCharSet :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryInvisibleCharSet :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- constructEntryMaxLength :: IsEntry o => Int32 -> IO (GValueConstruct o)
- getEntryMaxLength :: (MonadIO m, IsEntry o) => o -> m Int32
- setEntryMaxLength :: (MonadIO m, IsEntry o) => o -> Int32 -> m ()
- constructEntryMaxWidthChars :: IsEntry o => Int32 -> IO (GValueConstruct o)
- getEntryMaxWidthChars :: (MonadIO m, IsEntry o) => o -> m Int32
- setEntryMaxWidthChars :: (MonadIO m, IsEntry o) => o -> Int32 -> m ()
- constructEntryOverwriteMode :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryOverwriteMode :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryOverwriteMode :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- clearEntryPlaceholderText :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntryPlaceholderText :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntryPlaceholderText :: (MonadIO m, IsEntry o) => o -> m Text
- setEntryPlaceholderText :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- constructEntryPopulateAll :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryPopulateAll :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryPopulateAll :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- constructEntryPrimaryIconActivatable :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryPrimaryIconActivatable :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryPrimaryIconActivatable :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- clearEntryPrimaryIconGicon :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntryPrimaryIconGicon :: (IsEntry o, IsIcon a) => a -> IO (GValueConstruct o)
- getEntryPrimaryIconGicon :: (MonadIO m, IsEntry o) => o -> m (Maybe Icon)
- setEntryPrimaryIconGicon :: (MonadIO m, IsEntry o, IsIcon a) => o -> a -> m ()
- clearEntryPrimaryIconName :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntryPrimaryIconName :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntryPrimaryIconName :: (MonadIO m, IsEntry o) => o -> m (Maybe Text)
- setEntryPrimaryIconName :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- clearEntryPrimaryIconPixbuf :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntryPrimaryIconPixbuf :: (IsEntry o, IsPixbuf a) => a -> IO (GValueConstruct o)
- getEntryPrimaryIconPixbuf :: (MonadIO m, IsEntry o) => o -> m (Maybe Pixbuf)
- setEntryPrimaryIconPixbuf :: (MonadIO m, IsEntry o, IsPixbuf a) => o -> a -> m ()
- constructEntryPrimaryIconSensitive :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryPrimaryIconSensitive :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryPrimaryIconSensitive :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- clearEntryPrimaryIconStock :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntryPrimaryIconStock :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntryPrimaryIconStock :: (MonadIO m, IsEntry o) => o -> m (Maybe Text)
- setEntryPrimaryIconStock :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- getEntryPrimaryIconStorageType :: (MonadIO m, IsEntry o) => o -> m ImageType
- clearEntryPrimaryIconTooltipMarkup :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntryPrimaryIconTooltipMarkup :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntryPrimaryIconTooltipMarkup :: (MonadIO m, IsEntry o) => o -> m (Maybe Text)
- setEntryPrimaryIconTooltipMarkup :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- clearEntryPrimaryIconTooltipText :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntryPrimaryIconTooltipText :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntryPrimaryIconTooltipText :: (MonadIO m, IsEntry o) => o -> m (Maybe Text)
- setEntryPrimaryIconTooltipText :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- constructEntryProgressFraction :: IsEntry o => Double -> IO (GValueConstruct o)
- getEntryProgressFraction :: (MonadIO m, IsEntry o) => o -> m Double
- setEntryProgressFraction :: (MonadIO m, IsEntry o) => o -> Double -> m ()
- constructEntryProgressPulseStep :: IsEntry o => Double -> IO (GValueConstruct o)
- getEntryProgressPulseStep :: (MonadIO m, IsEntry o) => o -> m Double
- setEntryProgressPulseStep :: (MonadIO m, IsEntry o) => o -> Double -> m ()
- getEntryScrollOffset :: (MonadIO m, IsEntry o) => o -> m Int32
- constructEntrySecondaryIconActivatable :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntrySecondaryIconActivatable :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntrySecondaryIconActivatable :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- clearEntrySecondaryIconGicon :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntrySecondaryIconGicon :: (IsEntry o, IsIcon a) => a -> IO (GValueConstruct o)
- getEntrySecondaryIconGicon :: (MonadIO m, IsEntry o) => o -> m (Maybe Icon)
- setEntrySecondaryIconGicon :: (MonadIO m, IsEntry o, IsIcon a) => o -> a -> m ()
- clearEntrySecondaryIconName :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntrySecondaryIconName :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntrySecondaryIconName :: (MonadIO m, IsEntry o) => o -> m (Maybe Text)
- setEntrySecondaryIconName :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- clearEntrySecondaryIconPixbuf :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntrySecondaryIconPixbuf :: (IsEntry o, IsPixbuf a) => a -> IO (GValueConstruct o)
- getEntrySecondaryIconPixbuf :: (MonadIO m, IsEntry o) => o -> m (Maybe Pixbuf)
- setEntrySecondaryIconPixbuf :: (MonadIO m, IsEntry o, IsPixbuf a) => o -> a -> m ()
- constructEntrySecondaryIconSensitive :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntrySecondaryIconSensitive :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntrySecondaryIconSensitive :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- clearEntrySecondaryIconStock :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntrySecondaryIconStock :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntrySecondaryIconStock :: (MonadIO m, IsEntry o) => o -> m (Maybe Text)
- setEntrySecondaryIconStock :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- getEntrySecondaryIconStorageType :: (MonadIO m, IsEntry o) => o -> m ImageType
- clearEntrySecondaryIconTooltipMarkup :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntrySecondaryIconTooltipMarkup :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntrySecondaryIconTooltipMarkup :: (MonadIO m, IsEntry o) => o -> m (Maybe Text)
- setEntrySecondaryIconTooltipMarkup :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- clearEntrySecondaryIconTooltipText :: (MonadIO m, IsEntry o) => o -> m ()
- constructEntrySecondaryIconTooltipText :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntrySecondaryIconTooltipText :: (MonadIO m, IsEntry o) => o -> m (Maybe Text)
- setEntrySecondaryIconTooltipText :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- getEntrySelectionBound :: (MonadIO m, IsEntry o) => o -> m Int32
- constructEntryShadowType :: IsEntry o => ShadowType -> IO (GValueConstruct o)
- getEntryShadowType :: (MonadIO m, IsEntry o) => o -> m ShadowType
- setEntryShadowType :: (MonadIO m, IsEntry o) => o -> ShadowType -> m ()
- constructEntryTabs :: IsEntry o => TabArray -> IO (GValueConstruct o)
- getEntryTabs :: (MonadIO m, IsEntry o) => o -> m (Maybe TabArray)
- setEntryTabs :: (MonadIO m, IsEntry o) => o -> TabArray -> m ()
- constructEntryText :: IsEntry o => Text -> IO (GValueConstruct o)
- getEntryText :: (MonadIO m, IsEntry o) => o -> m Text
- setEntryText :: (MonadIO m, IsEntry o) => o -> Text -> m ()
- getEntryTextLength :: (MonadIO m, IsEntry o) => o -> m Word32
- constructEntryTruncateMultiline :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryTruncateMultiline :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryTruncateMultiline :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- constructEntryVisibility :: IsEntry o => Bool -> IO (GValueConstruct o)
- getEntryVisibility :: (MonadIO m, IsEntry o) => o -> m Bool
- setEntryVisibility :: (MonadIO m, IsEntry o) => o -> Bool -> m ()
- constructEntryWidthChars :: IsEntry o => Int32 -> IO (GValueConstruct o)
- getEntryWidthChars :: (MonadIO m, IsEntry o) => o -> m Int32
- setEntryWidthChars :: (MonadIO m, IsEntry o) => o -> Int32 -> m ()
- constructEntryXalign :: IsEntry o => Float -> IO (GValueConstruct o)
- getEntryXalign :: (MonadIO m, IsEntry o) => o -> m Float
- setEntryXalign :: (MonadIO m, IsEntry o) => o -> Float -> m ()
- type C_EntryActivateCallback = Ptr () -> Ptr () -> IO ()
- type EntryActivateCallback = IO ()
- afterEntryActivate :: (IsEntry a, MonadIO m) => a -> EntryActivateCallback -> m SignalHandlerId
- genClosure_EntryActivate :: EntryActivateCallback -> IO Closure
- mk_EntryActivateCallback :: C_EntryActivateCallback -> IO (FunPtr C_EntryActivateCallback)
- noEntryActivateCallback :: Maybe EntryActivateCallback
- onEntryActivate :: (IsEntry a, MonadIO m) => a -> EntryActivateCallback -> m SignalHandlerId
- wrap_EntryActivateCallback :: EntryActivateCallback -> Ptr () -> Ptr () -> IO ()
- type C_EntryBackspaceCallback = Ptr () -> Ptr () -> IO ()
- type EntryBackspaceCallback = IO ()
- afterEntryBackspace :: (IsEntry a, MonadIO m) => a -> EntryBackspaceCallback -> m SignalHandlerId
- genClosure_EntryBackspace :: EntryBackspaceCallback -> IO Closure
- mk_EntryBackspaceCallback :: C_EntryBackspaceCallback -> IO (FunPtr C_EntryBackspaceCallback)
- noEntryBackspaceCallback :: Maybe EntryBackspaceCallback
- onEntryBackspace :: (IsEntry a, MonadIO m) => a -> EntryBackspaceCallback -> m SignalHandlerId
- wrap_EntryBackspaceCallback :: EntryBackspaceCallback -> Ptr () -> Ptr () -> IO ()
- type C_EntryCopyClipboardCallback = Ptr () -> Ptr () -> IO ()
- type EntryCopyClipboardCallback = IO ()
- afterEntryCopyClipboard :: (IsEntry a, MonadIO m) => a -> EntryCopyClipboardCallback -> m SignalHandlerId
- genClosure_EntryCopyClipboard :: EntryCopyClipboardCallback -> IO Closure
- mk_EntryCopyClipboardCallback :: C_EntryCopyClipboardCallback -> IO (FunPtr C_EntryCopyClipboardCallback)
- noEntryCopyClipboardCallback :: Maybe EntryCopyClipboardCallback
- onEntryCopyClipboard :: (IsEntry a, MonadIO m) => a -> EntryCopyClipboardCallback -> m SignalHandlerId
- wrap_EntryCopyClipboardCallback :: EntryCopyClipboardCallback -> Ptr () -> Ptr () -> IO ()
- type C_EntryCutClipboardCallback = Ptr () -> Ptr () -> IO ()
- type EntryCutClipboardCallback = IO ()
- afterEntryCutClipboard :: (IsEntry a, MonadIO m) => a -> EntryCutClipboardCallback -> m SignalHandlerId
- genClosure_EntryCutClipboard :: EntryCutClipboardCallback -> IO Closure
- mk_EntryCutClipboardCallback :: C_EntryCutClipboardCallback -> IO (FunPtr C_EntryCutClipboardCallback)
- noEntryCutClipboardCallback :: Maybe EntryCutClipboardCallback
- onEntryCutClipboard :: (IsEntry a, MonadIO m) => a -> EntryCutClipboardCallback -> m SignalHandlerId
- wrap_EntryCutClipboardCallback :: EntryCutClipboardCallback -> Ptr () -> Ptr () -> IO ()
- type C_EntryDeleteFromCursorCallback = Ptr () -> CUInt -> Int32 -> Ptr () -> IO ()
- type EntryDeleteFromCursorCallback = DeleteType -> Int32 -> IO ()
- afterEntryDeleteFromCursor :: (IsEntry a, MonadIO m) => a -> EntryDeleteFromCursorCallback -> m SignalHandlerId
- genClosure_EntryDeleteFromCursor :: EntryDeleteFromCursorCallback -> IO Closure
- mk_EntryDeleteFromCursorCallback :: C_EntryDeleteFromCursorCallback -> IO (FunPtr C_EntryDeleteFromCursorCallback)
- noEntryDeleteFromCursorCallback :: Maybe EntryDeleteFromCursorCallback
- onEntryDeleteFromCursor :: (IsEntry a, MonadIO m) => a -> EntryDeleteFromCursorCallback -> m SignalHandlerId
- wrap_EntryDeleteFromCursorCallback :: EntryDeleteFromCursorCallback -> Ptr () -> CUInt -> Int32 -> Ptr () -> IO ()
- type C_EntryIconPressCallback = Ptr () -> CUInt -> Ptr EventButton -> Ptr () -> IO ()
- type EntryIconPressCallback = EntryIconPosition -> EventButton -> IO ()
- afterEntryIconPress :: (IsEntry a, MonadIO m) => a -> EntryIconPressCallback -> m SignalHandlerId
- genClosure_EntryIconPress :: EntryIconPressCallback -> IO Closure
- mk_EntryIconPressCallback :: C_EntryIconPressCallback -> IO (FunPtr C_EntryIconPressCallback)
- noEntryIconPressCallback :: Maybe EntryIconPressCallback
- onEntryIconPress :: (IsEntry a, MonadIO m) => a -> EntryIconPressCallback -> m SignalHandlerId
- wrap_EntryIconPressCallback :: EntryIconPressCallback -> Ptr () -> CUInt -> Ptr EventButton -> Ptr () -> IO ()
- type C_EntryIconReleaseCallback = Ptr () -> CUInt -> Ptr EventButton -> Ptr () -> IO ()
- type EntryIconReleaseCallback = EntryIconPosition -> EventButton -> IO ()
- afterEntryIconRelease :: (IsEntry a, MonadIO m) => a -> EntryIconReleaseCallback -> m SignalHandlerId
- genClosure_EntryIconRelease :: EntryIconReleaseCallback -> IO Closure
- mk_EntryIconReleaseCallback :: C_EntryIconReleaseCallback -> IO (FunPtr C_EntryIconReleaseCallback)
- noEntryIconReleaseCallback :: Maybe EntryIconReleaseCallback
- onEntryIconRelease :: (IsEntry a, MonadIO m) => a -> EntryIconReleaseCallback -> m SignalHandlerId
- wrap_EntryIconReleaseCallback :: EntryIconReleaseCallback -> Ptr () -> CUInt -> Ptr EventButton -> Ptr () -> IO ()
- type C_EntryInsertAtCursorCallback = Ptr () -> CString -> Ptr () -> IO ()
- type EntryInsertAtCursorCallback = Text -> IO ()
- afterEntryInsertAtCursor :: (IsEntry a, MonadIO m) => a -> EntryInsertAtCursorCallback -> m SignalHandlerId
- genClosure_EntryInsertAtCursor :: EntryInsertAtCursorCallback -> IO Closure
- mk_EntryInsertAtCursorCallback :: C_EntryInsertAtCursorCallback -> IO (FunPtr C_EntryInsertAtCursorCallback)
- noEntryInsertAtCursorCallback :: Maybe EntryInsertAtCursorCallback
- onEntryInsertAtCursor :: (IsEntry a, MonadIO m) => a -> EntryInsertAtCursorCallback -> m SignalHandlerId
- wrap_EntryInsertAtCursorCallback :: EntryInsertAtCursorCallback -> Ptr () -> CString -> Ptr () -> IO ()
- type C_EntryMoveCursorCallback = Ptr () -> CUInt -> Int32 -> CInt -> Ptr () -> IO ()
- type EntryMoveCursorCallback = MovementStep -> Int32 -> Bool -> IO ()
- afterEntryMoveCursor :: (IsEntry a, MonadIO m) => a -> EntryMoveCursorCallback -> m SignalHandlerId
- genClosure_EntryMoveCursor :: EntryMoveCursorCallback -> IO Closure
- mk_EntryMoveCursorCallback :: C_EntryMoveCursorCallback -> IO (FunPtr C_EntryMoveCursorCallback)
- noEntryMoveCursorCallback :: Maybe EntryMoveCursorCallback
- onEntryMoveCursor :: (IsEntry a, MonadIO m) => a -> EntryMoveCursorCallback -> m SignalHandlerId
- wrap_EntryMoveCursorCallback :: EntryMoveCursorCallback -> Ptr () -> CUInt -> Int32 -> CInt -> Ptr () -> IO ()
- type C_EntryPasteClipboardCallback = Ptr () -> Ptr () -> IO ()
- type EntryPasteClipboardCallback = IO ()
- afterEntryPasteClipboard :: (IsEntry a, MonadIO m) => a -> EntryPasteClipboardCallback -> m SignalHandlerId
- genClosure_EntryPasteClipboard :: EntryPasteClipboardCallback -> IO Closure
- mk_EntryPasteClipboardCallback :: C_EntryPasteClipboardCallback -> IO (FunPtr C_EntryPasteClipboardCallback)
- noEntryPasteClipboardCallback :: Maybe EntryPasteClipboardCallback
- onEntryPasteClipboard :: (IsEntry a, MonadIO m) => a -> EntryPasteClipboardCallback -> m SignalHandlerId
- wrap_EntryPasteClipboardCallback :: EntryPasteClipboardCallback -> Ptr () -> Ptr () -> IO ()
- type C_EntryPopulatePopupCallback = Ptr () -> Ptr Widget -> Ptr () -> IO ()
- type EntryPopulatePopupCallback = Widget -> IO ()
- afterEntryPopulatePopup :: (IsEntry a, MonadIO m) => a -> EntryPopulatePopupCallback -> m SignalHandlerId
- genClosure_EntryPopulatePopup :: EntryPopulatePopupCallback -> IO Closure
- mk_EntryPopulatePopupCallback :: C_EntryPopulatePopupCallback -> IO (FunPtr C_EntryPopulatePopupCallback)
- noEntryPopulatePopupCallback :: Maybe EntryPopulatePopupCallback
- onEntryPopulatePopup :: (IsEntry a, MonadIO m) => a -> EntryPopulatePopupCallback -> m SignalHandlerId
- wrap_EntryPopulatePopupCallback :: EntryPopulatePopupCallback -> Ptr () -> Ptr Widget -> Ptr () -> IO ()
- type C_EntryPreeditChangedCallback = Ptr () -> CString -> Ptr () -> IO ()
- type EntryPreeditChangedCallback = Text -> IO ()
- afterEntryPreeditChanged :: (IsEntry a, MonadIO m) => a -> EntryPreeditChangedCallback -> m SignalHandlerId
- genClosure_EntryPreeditChanged :: EntryPreeditChangedCallback -> IO Closure
- mk_EntryPreeditChangedCallback :: C_EntryPreeditChangedCallback -> IO (FunPtr C_EntryPreeditChangedCallback)
- noEntryPreeditChangedCallback :: Maybe EntryPreeditChangedCallback
- onEntryPreeditChanged :: (IsEntry a, MonadIO m) => a -> EntryPreeditChangedCallback -> m SignalHandlerId
- wrap_EntryPreeditChangedCallback :: EntryPreeditChangedCallback -> Ptr () -> CString -> Ptr () -> IO ()
- type C_EntryToggleOverwriteCallback = Ptr () -> Ptr () -> IO ()
- type EntryToggleOverwriteCallback = IO ()
- afterEntryToggleOverwrite :: (IsEntry a, MonadIO m) => a -> EntryToggleOverwriteCallback -> m SignalHandlerId
- genClosure_EntryToggleOverwrite :: EntryToggleOverwriteCallback -> IO Closure
- mk_EntryToggleOverwriteCallback :: C_EntryToggleOverwriteCallback -> IO (FunPtr C_EntryToggleOverwriteCallback)
- noEntryToggleOverwriteCallback :: Maybe EntryToggleOverwriteCallback
- onEntryToggleOverwrite :: (IsEntry a, MonadIO m) => a -> EntryToggleOverwriteCallback -> m SignalHandlerId
- wrap_EntryToggleOverwriteCallback :: EntryToggleOverwriteCallback -> Ptr () -> Ptr () -> IO ()
Exported types
Methods
getActivatesDefault
entryGetActivatesDefault Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Bool | Returns: |
Retrieves the value set by entrySetActivatesDefault
.
getAlignment
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Float | Returns: the alignment |
Gets the value set by entrySetAlignment
.
Since: 2.4
getAttributes
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m (Maybe AttrList) | Returns: the attribute list, or |
Gets the attribute list that was set on the entry using
entrySetAttributes
, if any.
Since: 3.6
getBuffer
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m EntryBuffer | Returns: A |
Get the EntryBuffer
object which holds the text for
this widget.
Since: 2.18
getCompletion
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m EntryCompletion | Returns: The auxiliary completion object currently
in use by |
Returns the auxiliary completion object currently in use by entry
.
Since: 2.4
getCurrentIconDragSource
entryGetCurrentIconDragSource Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Int32 | Returns: index of the icon which is the source of the current DND operation, or -1. |
Returns the index of the icon which is the source of the current DND operation, or -1.
This function is meant to be used in a Widget
::drag-data-get
callback.
Since: 2.16
getCursorHadjustment
entryGetCursorHadjustment Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m (Maybe Adjustment) | Returns: the horizontal cursor adjustment, or |
Retrieves the horizontal cursor adjustment for the entry.
See entrySetCursorHadjustment
.
Since: 2.12
getHasFrame
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Bool | Returns: whether the entry has a beveled frame |
Gets the value set by entrySetHasFrame
.
getIconActivatable
entryGetIconActivatable Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> m Bool | Returns: |
Returns whether the icon is activatable.
Since: 2.16
getIconArea
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> m Rectangle |
Gets the area where entry’s icon at iconPos
is drawn.
This function is useful when drawing something to the
entry in a draw callback.
If the entry is not realized or has no icon at the given position,
iconArea
is filled with zeros.
See also entryGetTextArea
Since: 3.0
getIconAtPos
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m Int32 | Returns: the index of the icon at the given position, or -1 |
Finds the icon at the given position and return its index. The
position’s coordinates are relative to the entry
’s top left corner.
If x
, y
doesn’t lie inside an icon, -1 is returned.
This function is intended for use in a Widget
::query-tooltip
signal handler.
Since: 2.16
getIconGicon
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> m (Maybe Icon) | Returns: A |
getIconName
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> m (Maybe Text) | Returns: An icon name, or |
Retrieves the icon name used for the icon, or Nothing
if there is
no icon or if the icon was set by some other method (e.g., by
pixbuf, stock or gicon).
Since: 2.16
getIconPixbuf
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> m (Maybe Pixbuf) | Returns: A |
getIconSensitive
entryGetIconSensitive Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> m Bool | Returns: |
Returns whether the icon appears sensitive or insensitive.
Since: 2.16
getIconStock
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> m Text | Returns: A stock id, or |
Deprecated: (Since version 3.10)Use entryGetIconName
instead.
Retrieves the stock id used for the icon, or Nothing
if there is
no icon or if the icon was set by some other method (e.g., by
pixbuf, icon name or gicon).
Since: 2.16
getIconStorageType
entryGetIconStorageType Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> m ImageType | Returns: image representation being used |
Gets the type of representation being used by the icon
to store image data. If the icon has no image data,
the return value will be ImageTypeEmpty
.
Since: 2.16
getIconTooltipMarkup
entryGetIconTooltipMarkup Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> m (Maybe Text) | Returns: the tooltip text, or |
Gets the contents of the tooltip on the icon at the specified
position in entry
.
Since: 2.16
getIconTooltipText
entryGetIconTooltipText Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> m (Maybe Text) | Returns: the tooltip text, or |
Gets the contents of the tooltip on the icon at the specified
position in entry
.
Since: 2.16
getInnerBorder
Deprecated: (Since version 3.4)Use the standard border and padding CSS properties (through objects like StyleContext
and CssProvider
); the value returned by this function is ignored by Entry
.
This function returns the entry’s Entry
:inner-border
property. See
entrySetInnerBorder
for more information.
Since: 2.10
getInputHints
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m [InputHints] |
Gets the value of the Entry
:input-hints
property.
Since: 3.6
getInputPurpose
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m InputPurpose |
Gets the value of the Entry
:input-purpose
property.
Since: 3.6
getInvisibleChar
entryGetInvisibleChar Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Char | Returns: the current invisible char, or 0, if the entry does not show invisible text at all. |
Retrieves the character displayed in place of the real characters
for entries with visibility set to false. See entrySetInvisibleChar
.
getLayout
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Layout | Returns: the |
Gets the Layout
used to display the entry.
The layout is useful to e.g. convert text positions to
pixel positions, in combination with entryGetLayoutOffsets
.
The returned layout is owned by the entry and must not be
modified or freed by the caller.
Keep in mind that the layout text may contain a preedit string, so
entryLayoutIndexToTextIndex
and
entryTextIndexToLayoutIndex
are needed to convert byte
indices in the layout to byte indices in the entry contents.
getLayoutOffsets
entryGetLayoutOffsets Source #
Obtains the position of the Layout
used to render text
in the entry, in widget coordinates. 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
Layout
, e.g. to take some action if some part of the entry text
is clicked.
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 Layout
functions you need to convert to and from pixels using
PANGO_PIXELS()
or SCALE
.
Keep in mind that the layout text may contain a preedit string, so
entryLayoutIndexToTextIndex
and
entryTextIndexToLayoutIndex
are needed to convert byte
indices in the layout to byte indices in the entry contents.
getMaxLength
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Int32 | Returns: the maximum allowed number of characters
in |
Retrieves the maximum allowed length of the text in
entry
. See entrySetMaxLength
.
This is equivalent to:
C code
GtkEntryBuffer *buffer; buffer = gtk_entry_get_buffer (entry); gtk_entry_buffer_get_max_length (buffer);
getMaxWidthChars
entryGetMaxWidthChars Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Int32 | Returns: the maximum width of the entry, in characters |
Retrieves the desired maximum width of entry
, in characters.
See entrySetMaxWidthChars
.
Since: 3.12
getOverwriteMode
entryGetOverwriteMode Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Bool | Returns: whether the text is overwritten when typing. |
Gets the value set by entrySetOverwriteMode
.
Since: 2.14
getPlaceholderText
entryGetPlaceholderText Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Text | Returns: a pointer to the placeholder text as a string. This string points to internally allocated storage in the widget and must not be freed, modified or stored. |
Retrieves the text that will be displayed when entry
is empty and unfocused
Since: 3.2
getProgressFraction
entryGetProgressFraction Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Double | Returns: a fraction from 0.0 to 1.0 |
Returns the current fraction of the task that’s been completed.
See entrySetProgressFraction
.
Since: 2.16
getProgressPulseStep
entryGetProgressPulseStep Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Double | Returns: a fraction from 0.0 to 1.0 |
Retrieves the pulse step set with entrySetProgressPulseStep
.
Since: 2.16
getTabs
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m (Maybe TabArray) | Returns: the tabstops, or |
Gets the tabstops that were set on the entry using entrySetTabs
, if
any.
Since: 3.10
getText
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Text | Returns: a pointer to the contents of the widget as a string. This string points to internally allocated storage in the widget and must not be freed, modified or stored. |
Retrieves the contents of the entry widget.
See also editableGetChars
.
This is equivalent to:
C code
GtkEntryBuffer *buffer; buffer = gtk_entry_get_buffer (entry); gtk_entry_buffer_get_text (buffer);
getTextArea
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Rectangle |
Gets the area where the entry’s text is drawn. This function is useful when drawing something to the entry in a draw callback.
If the entry is not realized, textArea
is filled with zeros.
See also entryGetIconArea
.
Since: 3.0
getTextLength
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Word16 | Returns: the current number of characters
in |
Retrieves the current length of the text in
entry
.
This is equivalent to:
C code
GtkEntryBuffer *buffer; buffer = gtk_entry_get_buffer (entry); gtk_entry_buffer_get_length (buffer);
Since: 2.14
getVisibility
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Bool | Returns: |
Retrieves whether the text in entry
is visible. See
entrySetVisibility
.
getWidthChars
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m Int32 | Returns: number of chars to request space for, or negative if unset |
Gets the value set by entrySetWidthChars
.
grabFocusWithoutSelecting
entryGrabFocusWithoutSelecting Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m () |
Causes entry
to have keyboard focus.
It behaves like widgetGrabFocus
,
except that it doesn't select the contents of the entry.
You only want to call this on some special entries
which the user usually doesn't want to replace all text in,
such as search-as-you-type entries.
Since: 3.16
imContextFilterKeypress
entryImContextFilterKeypress Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EventKey |
|
-> m Bool | Returns: |
Allow the Entry
input method to internally handle key press
and release events. If this function returns True
, then no further
processing should be done for this key event. See
iMContextFilterKeypress
.
Note that you are expected to call this function from your handler
when overriding key event handling. This is needed in the case when
you need to insert your own key handling between the input method
and the default key event handling of the Entry
.
See textViewResetImContext
for an example of use.
Since: 2.22
layoutIndexToTextIndex
entryLayoutIndexToTextIndex Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Int32 |
|
-> m Int32 | Returns: byte index into the entry contents |
Converts from a position in the entry’s Layout
(returned by
entryGetLayout
) to a position in the entry contents
(returned by entryGetText
).
new
newWithBuffer
:: (HasCallStack, MonadIO m, IsEntryBuffer a) | |
=> a |
|
-> m Entry | Returns: a new |
Creates a new entry with the specified text buffer.
Since: 2.18
progressPulse
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m () |
Indicates that some progress is made, but you don’t know how much.
Causes the entry’s progress indicator to enter “activity mode,”
where a block bounces back and forth. Each call to
entryProgressPulse
causes the block to move by a little bit
(the amount of movement per pulse is determined by
entrySetProgressPulseStep
).
Since: 2.16
resetImContext
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m () |
Reset the input method context of the entry if needed.
This can be necessary in the case where modifying the buffer would confuse on-going input method behavior.
Since: 2.22
setActivatesDefault
entrySetActivatesDefault Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Bool |
|
-> m () |
If setting
is True
, 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 setting
is True
, the entry calls
windowActivateDefault
on the window containing the entry, in
the default handler for the Entry
::activate
signal.)
setAlignment
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Float |
|
-> m () |
Sets the alignment for the contents of the entry. This controls the horizontal positioning of the contents when the displayed text is shorter than the width of the entry.
Since: 2.4
setAttributes
Sets a AttrList
; the attributes in the list are applied to the
entry text.
Since: 3.6
setBuffer
:: (HasCallStack, MonadIO m, IsEntry a, IsEntryBuffer b) | |
=> a |
|
-> b |
|
-> m () |
Set the EntryBuffer
object which holds the text for
this widget.
Since: 2.18
setCompletion
:: (HasCallStack, MonadIO m, IsEntry a, IsEntryCompletion b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets completion
to be the auxiliary completion object to use with entry
.
All further configuration of the completion mechanism is done on
completion
using the EntryCompletion
API. Completion is disabled if
completion
is set to Nothing
.
Since: 2.4
setCursorHadjustment
entrySetCursorHadjustment Source #
:: (HasCallStack, MonadIO m, IsEntry a, IsAdjustment b) | |
=> a |
|
-> Maybe b |
|
-> m () |
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.
See scrolledWindowGetHadjustment
for a typical way of obtaining
the adjustment.
The adjustment has to be in pixel units and in the same coordinate system as the entry.
Since: 2.12
setHasFrame
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the entry has a beveled frame around it.
setIconActivatable
entrySetIconActivatable Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> Bool |
|
-> m () |
Sets whether the icon is activatable.
Since: 2.16
setIconDragSource
entrySetIconDragSource Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> TargetList |
|
-> [DragAction] |
|
-> m () |
Sets up the icon at the given position so that GTK+ will start a drag operation when the user clicks and drags the icon.
To handle the drag operation, you need to connect to the usual
Widget
::drag-data-get
(or possibly Widget
::drag-data-delete
)
signal, and use entryGetCurrentIconDragSource
in
your signal handler to find out if the drag was started from
an icon.
By default, GTK+ uses the icon as the drag icon. You can use the
Widget
::drag-begin
signal to set a different icon. Note that you
have to use g_signal_connect_after()
to ensure that your signal handler
gets executed after the default handler.
Since: 2.16
setIconFromGicon
entrySetIconFromGicon Source #
:: (HasCallStack, MonadIO m, IsEntry a, IsIcon b) | |
=> a |
|
-> EntryIconPosition |
|
-> Maybe b |
|
-> m () |
Sets the icon shown in the entry at the specified position from the current icon theme. If the icon isn’t known, a “broken image” icon will be displayed instead.
If icon
is Nothing
, no icon will be shown in the specified position.
Since: 2.16
setIconFromIconName
entrySetIconFromIconName Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> Maybe Text |
|
-> m () |
Sets the icon shown in the entry at the specified position from the current icon theme.
If the icon name isn’t known, a “broken image” icon will be displayed instead.
If iconName
is Nothing
, no icon will be shown in the specified position.
Since: 2.16
setIconFromPixbuf
entrySetIconFromPixbuf Source #
:: (HasCallStack, MonadIO m, IsEntry a, IsPixbuf b) | |
=> a |
|
-> EntryIconPosition |
|
-> Maybe b | |
-> m () |
Sets the icon shown in the specified position using a pixbuf.
If pixbuf
is Nothing
, no icon will be shown in the specified position.
Since: 2.16
setIconFromStock
entrySetIconFromStock Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> Maybe Text |
|
-> m () |
Deprecated: (Since version 3.10)Use entrySetIconFromIconName
instead.
Sets the icon shown in the entry at the specified position from a stock image.
If stockId
is Nothing
, no icon will be shown in the specified position.
Since: 2.16
setIconSensitive
entrySetIconSensitive Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> Bool |
|
-> m () |
Sets the sensitivity for the specified icon.
Since: 2.16
setIconTooltipMarkup
entrySetIconTooltipMarkup Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> Maybe Text |
|
-> m () |
Sets tooltip
as the contents of the tooltip for the icon at
the specified position. tooltip
is assumed to be marked up with
the [Pango text markup language][PangoMarkupFormat].
Use Nothing
for tooltip
to remove an existing tooltip.
See also widgetSetTooltipMarkup
and
entrySetIconTooltipText
.
Since: 2.16
setIconTooltipText
entrySetIconTooltipText Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> EntryIconPosition |
|
-> Maybe Text |
|
-> m () |
Sets tooltip
as the contents of the tooltip for the icon
at the specified position.
Use Nothing
for tooltip
to remove an existing tooltip.
See also widgetSetTooltipText
and
entrySetIconTooltipMarkup
.
Since: 2.16
setInnerBorder
Deprecated: (Since version 3.4)Use the standard border and padding CSS properties (through objects like StyleContext
and CssProvider
); the value set with this function is ignored by Entry
.
Sets entry
’s inner-border property to border
, or clears it if Nothing
is passed. The inner-border is the area around the entry’s text, but
inside its frame.
If set, this property overrides the inner-border style property. Overriding the style-provided border is useful when you want to do in-place editing of some text in a canvas or list widget, where pixel-exact positioning of the entry is important.
Since: 2.10
setInputHints
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> [InputHints] |
|
-> m () |
Sets the Entry
:input-hints
property, which
allows input methods to fine-tune their behaviour.
Since: 3.6
setInputPurpose
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> InputPurpose |
|
-> m () |
Sets the Entry
:input-purpose
property which
can be used by on-screen keyboards and other input
methods to adjust their behaviour.
Since: 3.6
setInvisibleChar
entrySetInvisibleChar Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Char |
|
-> m () |
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. By default, GTK+
picks the best invisible char available in the current font. 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.
setMaxLength
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the maximum allowed length of the contents of the widget. If the current contents are longer than the given length, then they will be truncated to fit.
This is equivalent to:
C code
GtkEntryBuffer *buffer; buffer = gtk_entry_get_buffer (entry); gtk_entry_buffer_set_max_length (buffer, max);
setMaxWidthChars
entrySetMaxWidthChars Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the desired maximum width in characters of entry
.
Since: 3.12
setOverwriteMode
entrySetOverwriteMode Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the text is overwritten when typing in the Entry
.
Since: 2.14
setPlaceholderText
entrySetPlaceholderText Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets text to be displayed in entry
when it is empty and unfocused.
This can be used to give a visual hint of the expected contents of
the Entry
.
Note that since the placeholder text gets removed when the entry received focus, using this feature is a bit problematic if the entry is given the initial focus in a window. Sometimes this can be worked around by delaying the initial focus setting until the first key event arrives.
Since: 3.2
setProgressFraction
entrySetProgressFraction Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Double |
|
-> m () |
Causes the entry’s progress indicator to “fill in” the given fraction of the bar. The fraction should be between 0.0 and 1.0, inclusive.
Since: 2.16
setProgressPulseStep
entrySetProgressPulseStep Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Double |
|
-> m () |
Sets the fraction of total entry width to move the progress
bouncing block for each call to entryProgressPulse
.
Since: 2.16
setTabs
Sets a TabArray
; the tabstops in the array are applied to the entry
text.
Since: 3.10
setText
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Text |
|
-> m () |
Sets the text in the widget to the given value, replacing the current contents.
See entryBufferSetText
.
setVisibility
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the contents of the entry are visible or not.
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.
By default, GTK+ picks the best invisible character available
in the current font, but it can be changed with
entrySetInvisibleChar
.
Note that you probably want to set Entry
:input-purpose
to InputPurposePassword
or InputPurposePin
to
inform input methods about the purpose of this entry,
in addition to setting visibility to False
.
setWidthChars
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Int32 |
|
-> m () |
Changes the size request of the entry to be about the right size
for nChars
characters. Note that it changes the size
request, the size can still be affected by
how you pack the widget into containers. If nChars
is -1, the
size reverts to the default entry size.
textIndexToLayoutIndex
entryTextIndexToLayoutIndex Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> Int32 |
|
-> m Int32 | Returns: byte index into the entry layout text |
Converts from a position in the entry contents (returned
by entryGetText
) to a position in the
entry’s Layout
(returned by entryGetLayout
,
with text retrieved via layoutGetText
).
unsetInvisibleChar
entryUnsetInvisibleChar Source #
:: (HasCallStack, MonadIO m, IsEntry a) | |
=> a |
|
-> m () |
Unsets the invisible char previously set with
entrySetInvisibleChar
. So that the
default invisible char is used again.
Since: 2.16
Properties
activatesDefault
constructEntryActivatesDefault :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
attributes
constructEntryAttributes :: IsEntry o => AttrList -> IO (GValueConstruct o) Source #
buffer
constructEntryBuffer :: (IsEntry o, IsEntryBuffer a) => a -> IO (GValueConstruct o) Source #
getEntryBuffer :: (MonadIO m, IsEntry o) => o -> m EntryBuffer Source #
setEntryBuffer :: (MonadIO m, IsEntry o, IsEntryBuffer a) => o -> a -> m () Source #
capsLockWarning
constructEntryCapsLockWarning :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
completion
clearEntryCompletion :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntryCompletion :: (IsEntry o, IsEntryCompletion a) => a -> IO (GValueConstruct o) Source #
getEntryCompletion :: (MonadIO m, IsEntry o) => o -> m EntryCompletion Source #
setEntryCompletion :: (MonadIO m, IsEntry o, IsEntryCompletion a) => o -> a -> m () Source #
cursorPosition
editable
constructEntryEditable :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
hasFrame
constructEntryHasFrame :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
imModule
clearEntryImModule :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntryImModule :: IsEntry o => Text -> IO (GValueConstruct o) Source #
innerBorder
clearEntryInnerBorder :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntryInnerBorder :: IsEntry o => Border -> IO (GValueConstruct o) Source #
inputHints
constructEntryInputHints :: IsEntry o => [InputHints] -> IO (GValueConstruct o) Source #
getEntryInputHints :: (MonadIO m, IsEntry o) => o -> m [InputHints] Source #
setEntryInputHints :: (MonadIO m, IsEntry o) => o -> [InputHints] -> m () Source #
inputPurpose
constructEntryInputPurpose :: IsEntry o => InputPurpose -> IO (GValueConstruct o) Source #
getEntryInputPurpose :: (MonadIO m, IsEntry o) => o -> m InputPurpose Source #
setEntryInputPurpose :: (MonadIO m, IsEntry o) => o -> InputPurpose -> m () Source #
invisibleChar
constructEntryInvisibleChar :: IsEntry o => Word32 -> IO (GValueConstruct o) Source #
invisibleCharSet
constructEntryInvisibleCharSet :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
maxLength
constructEntryMaxLength :: IsEntry o => Int32 -> IO (GValueConstruct o) Source #
maxWidthChars
constructEntryMaxWidthChars :: IsEntry o => Int32 -> IO (GValueConstruct o) Source #
overwriteMode
constructEntryOverwriteMode :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
placeholderText
clearEntryPlaceholderText :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntryPlaceholderText :: IsEntry o => Text -> IO (GValueConstruct o) Source #
populateAll
constructEntryPopulateAll :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
primaryIconActivatable
constructEntryPrimaryIconActivatable :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
primaryIconGicon
clearEntryPrimaryIconGicon :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntryPrimaryIconGicon :: (IsEntry o, IsIcon a) => a -> IO (GValueConstruct o) Source #
primaryIconName
clearEntryPrimaryIconName :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntryPrimaryIconName :: IsEntry o => Text -> IO (GValueConstruct o) Source #
primaryIconPixbuf
clearEntryPrimaryIconPixbuf :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntryPrimaryIconPixbuf :: (IsEntry o, IsPixbuf a) => a -> IO (GValueConstruct o) Source #
primaryIconSensitive
constructEntryPrimaryIconSensitive :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
primaryIconStock
clearEntryPrimaryIconStock :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntryPrimaryIconStock :: IsEntry o => Text -> IO (GValueConstruct o) Source #
primaryIconStorageType
primaryIconTooltipMarkup
clearEntryPrimaryIconTooltipMarkup :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntryPrimaryIconTooltipMarkup :: IsEntry o => Text -> IO (GValueConstruct o) Source #
primaryIconTooltipText
clearEntryPrimaryIconTooltipText :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntryPrimaryIconTooltipText :: IsEntry o => Text -> IO (GValueConstruct o) Source #
progressFraction
constructEntryProgressFraction :: IsEntry o => Double -> IO (GValueConstruct o) Source #
progressPulseStep
constructEntryProgressPulseStep :: IsEntry o => Double -> IO (GValueConstruct o) Source #
scrollOffset
secondaryIconActivatable
constructEntrySecondaryIconActivatable :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
secondaryIconGicon
clearEntrySecondaryIconGicon :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntrySecondaryIconGicon :: (IsEntry o, IsIcon a) => a -> IO (GValueConstruct o) Source #
secondaryIconName
clearEntrySecondaryIconName :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntrySecondaryIconName :: IsEntry o => Text -> IO (GValueConstruct o) Source #
secondaryIconPixbuf
clearEntrySecondaryIconPixbuf :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntrySecondaryIconPixbuf :: (IsEntry o, IsPixbuf a) => a -> IO (GValueConstruct o) Source #
secondaryIconSensitive
constructEntrySecondaryIconSensitive :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
secondaryIconStock
clearEntrySecondaryIconStock :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntrySecondaryIconStock :: IsEntry o => Text -> IO (GValueConstruct o) Source #
secondaryIconStorageType
secondaryIconTooltipMarkup
clearEntrySecondaryIconTooltipMarkup :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntrySecondaryIconTooltipMarkup :: IsEntry o => Text -> IO (GValueConstruct o) Source #
secondaryIconTooltipText
clearEntrySecondaryIconTooltipText :: (MonadIO m, IsEntry o) => o -> m () Source #
constructEntrySecondaryIconTooltipText :: IsEntry o => Text -> IO (GValueConstruct o) Source #
selectionBound
shadowType
constructEntryShadowType :: IsEntry o => ShadowType -> IO (GValueConstruct o) Source #
getEntryShadowType :: (MonadIO m, IsEntry o) => o -> m ShadowType Source #
setEntryShadowType :: (MonadIO m, IsEntry o) => o -> ShadowType -> m () Source #
tabs
constructEntryTabs :: IsEntry o => TabArray -> IO (GValueConstruct o) Source #
text
constructEntryText :: IsEntry o => Text -> IO (GValueConstruct o) Source #
textLength
truncateMultiline
constructEntryTruncateMultiline :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
visibility
constructEntryVisibility :: IsEntry o => Bool -> IO (GValueConstruct o) Source #
widthChars
constructEntryWidthChars :: IsEntry o => Int32 -> IO (GValueConstruct o) Source #
xalign
constructEntryXalign :: IsEntry o => Float -> IO (GValueConstruct o) Source #
Signals
activate
type EntryActivateCallback = IO () Source #
afterEntryActivate :: (IsEntry a, MonadIO m) => a -> EntryActivateCallback -> m SignalHandlerId Source #
onEntryActivate :: (IsEntry a, MonadIO m) => a -> EntryActivateCallback -> m SignalHandlerId Source #
wrap_EntryActivateCallback :: EntryActivateCallback -> Ptr () -> Ptr () -> IO () Source #
backspace
type EntryBackspaceCallback = IO () Source #
afterEntryBackspace :: (IsEntry a, MonadIO m) => a -> EntryBackspaceCallback -> m SignalHandlerId Source #
mk_EntryBackspaceCallback :: C_EntryBackspaceCallback -> IO (FunPtr C_EntryBackspaceCallback) Source #
onEntryBackspace :: (IsEntry a, MonadIO m) => a -> EntryBackspaceCallback -> m SignalHandlerId Source #
wrap_EntryBackspaceCallback :: EntryBackspaceCallback -> Ptr () -> Ptr () -> IO () Source #
copyClipboard
type EntryCopyClipboardCallback = IO () Source #
afterEntryCopyClipboard :: (IsEntry a, MonadIO m) => a -> EntryCopyClipboardCallback -> m SignalHandlerId Source #
mk_EntryCopyClipboardCallback :: C_EntryCopyClipboardCallback -> IO (FunPtr C_EntryCopyClipboardCallback) Source #
onEntryCopyClipboard :: (IsEntry a, MonadIO m) => a -> EntryCopyClipboardCallback -> m SignalHandlerId Source #
wrap_EntryCopyClipboardCallback :: EntryCopyClipboardCallback -> Ptr () -> Ptr () -> IO () Source #
cutClipboard
type EntryCutClipboardCallback = IO () Source #
afterEntryCutClipboard :: (IsEntry a, MonadIO m) => a -> EntryCutClipboardCallback -> m SignalHandlerId Source #
mk_EntryCutClipboardCallback :: C_EntryCutClipboardCallback -> IO (FunPtr C_EntryCutClipboardCallback) Source #
onEntryCutClipboard :: (IsEntry a, MonadIO m) => a -> EntryCutClipboardCallback -> m SignalHandlerId Source #
wrap_EntryCutClipboardCallback :: EntryCutClipboardCallback -> Ptr () -> Ptr () -> IO () Source #
deleteFromCursor
type EntryDeleteFromCursorCallback = DeleteType -> Int32 -> IO () Source #
afterEntryDeleteFromCursor :: (IsEntry a, MonadIO m) => a -> EntryDeleteFromCursorCallback -> m SignalHandlerId Source #
mk_EntryDeleteFromCursorCallback :: C_EntryDeleteFromCursorCallback -> IO (FunPtr C_EntryDeleteFromCursorCallback) Source #
onEntryDeleteFromCursor :: (IsEntry a, MonadIO m) => a -> EntryDeleteFromCursorCallback -> m SignalHandlerId Source #
wrap_EntryDeleteFromCursorCallback :: EntryDeleteFromCursorCallback -> Ptr () -> CUInt -> Int32 -> Ptr () -> IO () Source #
iconPress
type C_EntryIconPressCallback = Ptr () -> CUInt -> Ptr EventButton -> Ptr () -> IO () Source #
type EntryIconPressCallback = EntryIconPosition -> EventButton -> IO () Source #
afterEntryIconPress :: (IsEntry a, MonadIO m) => a -> EntryIconPressCallback -> m SignalHandlerId Source #
mk_EntryIconPressCallback :: C_EntryIconPressCallback -> IO (FunPtr C_EntryIconPressCallback) Source #
onEntryIconPress :: (IsEntry a, MonadIO m) => a -> EntryIconPressCallback -> m SignalHandlerId Source #
wrap_EntryIconPressCallback :: EntryIconPressCallback -> Ptr () -> CUInt -> Ptr EventButton -> Ptr () -> IO () Source #
iconRelease
type C_EntryIconReleaseCallback = Ptr () -> CUInt -> Ptr EventButton -> Ptr () -> IO () Source #
type EntryIconReleaseCallback = EntryIconPosition -> EventButton -> IO () Source #
afterEntryIconRelease :: (IsEntry a, MonadIO m) => a -> EntryIconReleaseCallback -> m SignalHandlerId Source #
mk_EntryIconReleaseCallback :: C_EntryIconReleaseCallback -> IO (FunPtr C_EntryIconReleaseCallback) Source #
onEntryIconRelease :: (IsEntry a, MonadIO m) => a -> EntryIconReleaseCallback -> m SignalHandlerId Source #
wrap_EntryIconReleaseCallback :: EntryIconReleaseCallback -> Ptr () -> CUInt -> Ptr EventButton -> Ptr () -> IO () Source #
insertAtCursor
type EntryInsertAtCursorCallback = Text -> IO () Source #
afterEntryInsertAtCursor :: (IsEntry a, MonadIO m) => a -> EntryInsertAtCursorCallback -> m SignalHandlerId Source #
mk_EntryInsertAtCursorCallback :: C_EntryInsertAtCursorCallback -> IO (FunPtr C_EntryInsertAtCursorCallback) Source #
onEntryInsertAtCursor :: (IsEntry a, MonadIO m) => a -> EntryInsertAtCursorCallback -> m SignalHandlerId Source #
wrap_EntryInsertAtCursorCallback :: EntryInsertAtCursorCallback -> Ptr () -> CString -> Ptr () -> IO () Source #
moveCursor
type EntryMoveCursorCallback = MovementStep -> Int32 -> Bool -> IO () Source #
afterEntryMoveCursor :: (IsEntry a, MonadIO m) => a -> EntryMoveCursorCallback -> m SignalHandlerId Source #
mk_EntryMoveCursorCallback :: C_EntryMoveCursorCallback -> IO (FunPtr C_EntryMoveCursorCallback) Source #
onEntryMoveCursor :: (IsEntry a, MonadIO m) => a -> EntryMoveCursorCallback -> m SignalHandlerId Source #
wrap_EntryMoveCursorCallback :: EntryMoveCursorCallback -> Ptr () -> CUInt -> Int32 -> CInt -> Ptr () -> IO () Source #
pasteClipboard
type EntryPasteClipboardCallback = IO () Source #
afterEntryPasteClipboard :: (IsEntry a, MonadIO m) => a -> EntryPasteClipboardCallback -> m SignalHandlerId Source #
mk_EntryPasteClipboardCallback :: C_EntryPasteClipboardCallback -> IO (FunPtr C_EntryPasteClipboardCallback) Source #
onEntryPasteClipboard :: (IsEntry a, MonadIO m) => a -> EntryPasteClipboardCallback -> m SignalHandlerId Source #
wrap_EntryPasteClipboardCallback :: EntryPasteClipboardCallback -> Ptr () -> Ptr () -> IO () Source #
populatePopup
type EntryPopulatePopupCallback = Widget -> IO () Source #
afterEntryPopulatePopup :: (IsEntry a, MonadIO m) => a -> EntryPopulatePopupCallback -> m SignalHandlerId Source #
mk_EntryPopulatePopupCallback :: C_EntryPopulatePopupCallback -> IO (FunPtr C_EntryPopulatePopupCallback) Source #
onEntryPopulatePopup :: (IsEntry a, MonadIO m) => a -> EntryPopulatePopupCallback -> m SignalHandlerId Source #
wrap_EntryPopulatePopupCallback :: EntryPopulatePopupCallback -> Ptr () -> Ptr Widget -> Ptr () -> IO () Source #
preeditChanged
type EntryPreeditChangedCallback = Text -> IO () Source #
afterEntryPreeditChanged :: (IsEntry a, MonadIO m) => a -> EntryPreeditChangedCallback -> m SignalHandlerId Source #
mk_EntryPreeditChangedCallback :: C_EntryPreeditChangedCallback -> IO (FunPtr C_EntryPreeditChangedCallback) Source #
onEntryPreeditChanged :: (IsEntry a, MonadIO m) => a -> EntryPreeditChangedCallback -> m SignalHandlerId Source #
wrap_EntryPreeditChangedCallback :: EntryPreeditChangedCallback -> Ptr () -> CString -> Ptr () -> IO () Source #
toggleOverwrite
type EntryToggleOverwriteCallback = IO () Source #
afterEntryToggleOverwrite :: (IsEntry a, MonadIO m) => a -> EntryToggleOverwriteCallback -> m SignalHandlerId Source #
mk_EntryToggleOverwriteCallback :: C_EntryToggleOverwriteCallback -> IO (FunPtr C_EntryToggleOverwriteCallback) Source #
onEntryToggleOverwrite :: (IsEntry a, MonadIO m) => a -> EntryToggleOverwriteCallback -> m SignalHandlerId Source #
wrap_EntryToggleOverwriteCallback :: EntryToggleOverwriteCallback -> Ptr () -> Ptr () -> IO () Source #