| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Handy.Objects.Keypad
Contents
Description
A keypad for dialing numbers
The HdyKeypad widget is a keypad for entering numbers such as phone numbers
or PIN codes.
CSS nodes
HdyKeypad has a single CSS node with name keypad.
Since: 1.0
Synopsis
- newtype Keypad = Keypad (ManagedPtr Keypad)
- class (GObject o, IsDescendantOf Keypad o) => IsKeypad o
- toKeypad :: (MonadIO m, IsKeypad o) => o -> m Keypad
- keypadGetColumnSpacing :: (HasCallStack, MonadIO m, IsKeypad a) => a -> m Word32
- keypadGetEndAction :: (HasCallStack, MonadIO m, IsKeypad a) => a -> m (Maybe Widget)
- keypadGetEntry :: (HasCallStack, MonadIO m, IsKeypad a) => a -> m Entry
- keypadGetLettersVisible :: (HasCallStack, MonadIO m, IsKeypad a) => a -> m Bool
- keypadGetRowSpacing :: (HasCallStack, MonadIO m, IsKeypad a) => a -> m Word32
- keypadGetStartAction :: (HasCallStack, MonadIO m, IsKeypad a) => a -> m (Maybe Widget)
- keypadGetSymbolsVisible :: (HasCallStack, MonadIO m, IsKeypad a) => a -> m Bool
- keypadNew :: (HasCallStack, MonadIO m) => Bool -> Bool -> m Keypad
- keypadSetColumnSpacing :: (HasCallStack, MonadIO m, IsKeypad a) => a -> Word32 -> m ()
- keypadSetEndAction :: (HasCallStack, MonadIO m, IsKeypad a, IsWidget b) => a -> Maybe b -> m ()
- keypadSetEntry :: (HasCallStack, MonadIO m, IsKeypad a, IsEntry b) => a -> Maybe b -> m ()
- keypadSetLettersVisible :: (HasCallStack, MonadIO m, IsKeypad a) => a -> Bool -> m ()
- keypadSetRowSpacing :: (HasCallStack, MonadIO m, IsKeypad a) => a -> Word32 -> m ()
- keypadSetStartAction :: (HasCallStack, MonadIO m, IsKeypad a, IsWidget b) => a -> Maybe b -> m ()
- keypadSetSymbolsVisible :: (HasCallStack, MonadIO m, IsKeypad a) => a -> Bool -> m ()
- constructKeypadColumnSpacing :: (IsKeypad o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getKeypadColumnSpacing :: (MonadIO m, IsKeypad o) => o -> m Word32
- setKeypadColumnSpacing :: (MonadIO m, IsKeypad o) => o -> Word32 -> m ()
- clearKeypadEndAction :: (MonadIO m, IsKeypad o) => o -> m ()
- constructKeypadEndAction :: (IsKeypad o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getKeypadEndAction :: (MonadIO m, IsKeypad o) => o -> m (Maybe Widget)
- setKeypadEndAction :: (MonadIO m, IsKeypad o, IsWidget a) => o -> a -> m ()
- clearKeypadEntry :: (MonadIO m, IsKeypad o) => o -> m ()
- constructKeypadEntry :: (IsKeypad o, MonadIO m, IsEntry a) => a -> m (GValueConstruct o)
- getKeypadEntry :: (MonadIO m, IsKeypad o) => o -> m Entry
- setKeypadEntry :: (MonadIO m, IsKeypad o, IsEntry a) => o -> a -> m ()
- constructKeypadLettersVisible :: (IsKeypad o, MonadIO m) => Bool -> m (GValueConstruct o)
- getKeypadLettersVisible :: (MonadIO m, IsKeypad o) => o -> m Bool
- setKeypadLettersVisible :: (MonadIO m, IsKeypad o) => o -> Bool -> m ()
- constructKeypadRowSpacing :: (IsKeypad o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getKeypadRowSpacing :: (MonadIO m, IsKeypad o) => o -> m Word32
- setKeypadRowSpacing :: (MonadIO m, IsKeypad o) => o -> Word32 -> m ()
- clearKeypadStartAction :: (MonadIO m, IsKeypad o) => o -> m ()
- constructKeypadStartAction :: (IsKeypad o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getKeypadStartAction :: (MonadIO m, IsKeypad o) => o -> m (Maybe Widget)
- setKeypadStartAction :: (MonadIO m, IsKeypad o, IsWidget a) => o -> a -> m ()
- constructKeypadSymbolsVisible :: (IsKeypad o, MonadIO m) => Bool -> m (GValueConstruct o)
- getKeypadSymbolsVisible :: (MonadIO m, IsKeypad o) => o -> m Bool
- setKeypadSymbolsVisible :: (MonadIO m, IsKeypad o) => o -> Bool -> m ()
Exported types
Memory-managed wrapper type.
Instances
| Eq Keypad Source # | |
| GObject Keypad Source # | |
Defined in GI.Handy.Objects.Keypad | |
| ManagedPtrNewtype Keypad Source # | |
Defined in GI.Handy.Objects.Keypad Methods toManagedPtr :: Keypad -> ManagedPtr Keypad | |
| TypedObject Keypad Source # | |
Defined in GI.Handy.Objects.Keypad | |
| HasParentTypes Keypad Source # | |
Defined in GI.Handy.Objects.Keypad | |
| IsGValue (Maybe Keypad) Source # | Convert |
Defined in GI.Handy.Objects.Keypad Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Keypad -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Keypad) | |
| type ParentTypes Keypad Source # | |
Defined in GI.Handy.Objects.Keypad type ParentTypes Keypad = '[Bin, Container, Widget, Object, ImplementorIface, Buildable] | |
class (GObject o, IsDescendantOf Keypad o) => IsKeypad o Source #
Instances
| (GObject o, IsDescendantOf Keypad o) => IsKeypad o Source # | |
Defined in GI.Handy.Objects.Keypad | |
Methods
Click to display all available methods, including inherited ones
Methods
activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, watchClosure.
Getters
getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getColumnSpacing, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEndAction, getEntry, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getLettersVisible, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRootWindow, getRowSpacing, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getStartAction, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getSymbolsVisible, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelPath, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setColumnSpacing, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEndAction, setEntry, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setLettersVisible, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setRowSpacing, setSensitive, setSizeRequest, setStartAction, setState, setStateFlags, setStyle, setSupportMultidevice, setSymbolsVisible, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
getColumnSpacing
keypadGetColumnSpacing Source #
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> m Word32 | Returns: the column spacing of |
Returns the amount of space between the columns of self.
Since: 1.0
getEndAction
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> m (Maybe Widget) | Returns: the end action widget |
Gets the widget for the lower right corner (or left, in RTL locales).
Since: 1.0
getEntry
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> m Entry | Returns: the entry set |
Gets the connected entry.
Since: 1.0
getLettersVisible
keypadGetLettersVisible Source #
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> m Bool | Returns: whether the letters below the digits should be visible |
Gets whether standard letters are displayed below the digits on the buttons.
Since: 1.0
getRowSpacing
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> m Word32 | Returns: the row spacing of |
Returns the amount of space between the rows of self.
Since: 1.0
getStartAction
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> m (Maybe Widget) | Returns: the start action widget |
Gets the widget for the lower left corner (or right, in RTL locales).
Since: 1.0
getSymbolsVisible
keypadGetSymbolsVisible Source #
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> m Bool | Returns: whether symboles are visible |
Gets whether symbols are displayed.
Since: 1.0
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Bool |
|
| -> Bool |
|
| -> m Keypad | Returns: the newly created |
Creates a new HdyKeypad.
Since: 1.0
setColumnSpacing
keypadSetColumnSpacing Source #
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Sets the amount of space between columns of self.
Since: 1.0
setEndAction
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a, IsWidget b) | |
| => a |
|
| -> Maybe b |
|
| -> m () |
Sets the widget for the lower right corner (or left, in RTL locales).
Since: 1.0
setEntry
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a, IsEntry b) | |
| => a |
|
| -> Maybe b |
|
| -> m () |
Binds entry to self.
Since: 1.0
setLettersVisible
keypadSetLettersVisible Source #
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether standard letters are displayed below the digits on the buttons.
Since: 1.0
setRowSpacing
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Sets the amount of space between rows of self.
Since: 1.0
setStartAction
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a, IsWidget b) | |
| => a |
|
| -> Maybe b |
|
| -> m () |
Sets the widget for the lower left corner (or right, in RTL locales).
Since: 1.0
setSymbolsVisible
keypadSetSymbolsVisible Source #
Arguments
| :: (HasCallStack, MonadIO m, IsKeypad a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether standard letters are displayed below the digits on the buttons.
Since: 1.0
Properties
columnSpacing
The amount of space between two consecutive columns.
Since: 1.0
constructKeypadColumnSpacing :: (IsKeypad o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “column-spacing” property. This is rarely needed directly, but it is used by new.
getKeypadColumnSpacing :: (MonadIO m, IsKeypad o) => o -> m Word32 Source #
Get the value of the “column-spacing” property.
When overloading is enabled, this is equivalent to
get keypad #columnSpacing
setKeypadColumnSpacing :: (MonadIO m, IsKeypad o) => o -> Word32 -> m () Source #
Set the value of the “column-spacing” property.
When overloading is enabled, this is equivalent to
setkeypad [ #columnSpacing:=value ]
endAction
The widget for the lower end corner of self.
Since: 1.0
clearKeypadEndAction :: (MonadIO m, IsKeypad o) => o -> m () Source #
Set the value of the “end-action” property to Nothing.
When overloading is enabled, this is equivalent to
clear #endAction
constructKeypadEndAction :: (IsKeypad o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “end-action” property. This is rarely needed directly, but it is used by new.
getKeypadEndAction :: (MonadIO m, IsKeypad o) => o -> m (Maybe Widget) Source #
Get the value of the “end-action” property.
When overloading is enabled, this is equivalent to
get keypad #endAction
setKeypadEndAction :: (MonadIO m, IsKeypad o, IsWidget a) => o -> a -> m () Source #
Set the value of the “end-action” property.
When overloading is enabled, this is equivalent to
setkeypad [ #endAction:=value ]
entry
The entry widget connected to the keypad.
The entry will block any input not possible to type with the keypad.
Since: 1.0
clearKeypadEntry :: (MonadIO m, IsKeypad o) => o -> m () Source #
Set the value of the “entry” property to Nothing.
When overloading is enabled, this is equivalent to
clear #entry
constructKeypadEntry :: (IsKeypad o, MonadIO m, IsEntry a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “entry” property. This is rarely needed directly, but it is used by new.
getKeypadEntry :: (MonadIO m, IsKeypad o) => o -> m Entry Source #
Get the value of the “entry” property.
When overloading is enabled, this is equivalent to
get keypad #entry
setKeypadEntry :: (MonadIO m, IsKeypad o, IsEntry a) => o -> a -> m () Source #
Set the value of the “entry” property.
When overloading is enabled, this is equivalent to
setkeypad [ #entry:=value ]
lettersVisible
Whether standard letters should be displayed below the digits on the buttons.
Since: 1.0
constructKeypadLettersVisible :: (IsKeypad o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “letters-visible” property. This is rarely needed directly, but it is used by new.
getKeypadLettersVisible :: (MonadIO m, IsKeypad o) => o -> m Bool Source #
Get the value of the “letters-visible” property.
When overloading is enabled, this is equivalent to
get keypad #lettersVisible
setKeypadLettersVisible :: (MonadIO m, IsKeypad o) => o -> Bool -> m () Source #
Set the value of the “letters-visible” property.
When overloading is enabled, this is equivalent to
setkeypad [ #lettersVisible:=value ]
rowSpacing
The amount of space between two consecutive rows.
Since: 1.0
constructKeypadRowSpacing :: (IsKeypad o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “row-spacing” property. This is rarely needed directly, but it is used by new.
getKeypadRowSpacing :: (MonadIO m, IsKeypad o) => o -> m Word32 Source #
Get the value of the “row-spacing” property.
When overloading is enabled, this is equivalent to
get keypad #rowSpacing
setKeypadRowSpacing :: (MonadIO m, IsKeypad o) => o -> Word32 -> m () Source #
Set the value of the “row-spacing” property.
When overloading is enabled, this is equivalent to
setkeypad [ #rowSpacing:=value ]
startAction
The widget for the lower start corner of self.
Since: 1.0
clearKeypadStartAction :: (MonadIO m, IsKeypad o) => o -> m () Source #
Set the value of the “start-action” property to Nothing.
When overloading is enabled, this is equivalent to
clear #startAction
constructKeypadStartAction :: (IsKeypad o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “start-action” property. This is rarely needed directly, but it is used by new.
getKeypadStartAction :: (MonadIO m, IsKeypad o) => o -> m (Maybe Widget) Source #
Get the value of the “start-action” property.
When overloading is enabled, this is equivalent to
get keypad #startAction
setKeypadStartAction :: (MonadIO m, IsKeypad o, IsWidget a) => o -> a -> m () Source #
Set the value of the “start-action” property.
When overloading is enabled, this is equivalent to
setkeypad [ #startAction:=value ]
symbolsVisible
Whether to display symbols.
This includes hash and asterisk buttons, and the plus symbol at the bottom of its 0 button.
Since: 1.0
constructKeypadSymbolsVisible :: (IsKeypad o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “symbols-visible” property. This is rarely needed directly, but it is used by new.
getKeypadSymbolsVisible :: (MonadIO m, IsKeypad o) => o -> m Bool Source #
Get the value of the “symbols-visible” property.
When overloading is enabled, this is equivalent to
get keypad #symbolsVisible
setKeypadSymbolsVisible :: (MonadIO m, IsKeypad o) => o -> Bool -> m () Source #
Set the value of the “symbols-visible” property.
When overloading is enabled, this is equivalent to
setkeypad [ #symbolsVisible:=value ]