Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The Dialer
widget is a keypad for entering numbers such as phone numbers
or PIN codes.
Synopsis
- newtype Dialer = Dialer (ManagedPtr Dialer)
- class (GObject o, IsDescendantOf Dialer o) => IsDialer o
- toDialer :: (MonadIO m, IsDialer o) => o -> m Dialer
- dialerClearNumber :: (HasCallStack, MonadIO m, IsDialer a) => a -> m ()
- dialerGetNumber :: (HasCallStack, MonadIO m, IsDialer a) => a -> m Text
- dialerGetRelief :: (HasCallStack, MonadIO m, IsDialer a) => a -> m ReliefStyle
- dialerGetShowActionButtons :: (HasCallStack, MonadIO m, IsDialer a) => a -> m Bool
- dialerNew :: (HasCallStack, MonadIO m) => m Dialer
- dialerSetNumber :: (HasCallStack, MonadIO m, IsDialer a) => a -> Text -> m ()
- dialerSetRelief :: (HasCallStack, MonadIO m, IsDialer a) => a -> ReliefStyle -> m ()
- dialerSetShowActionButtons :: (HasCallStack, MonadIO m, IsDialer a) => a -> Bool -> m ()
- constructDialerColumnSpacing :: (IsDialer o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getDialerColumnSpacing :: (MonadIO m, IsDialer o) => o -> m Word32
- setDialerColumnSpacing :: (MonadIO m, IsDialer o) => o -> Word32 -> m ()
- constructDialerNumber :: (IsDialer o, MonadIO m) => Text -> m (GValueConstruct o)
- getDialerNumber :: (MonadIO m, IsDialer o) => o -> m Text
- setDialerNumber :: (MonadIO m, IsDialer o) => o -> Text -> m ()
- constructDialerRelief :: (IsDialer o, MonadIO m) => ReliefStyle -> m (GValueConstruct o)
- getDialerRelief :: (MonadIO m, IsDialer o) => o -> m ReliefStyle
- setDialerRelief :: (MonadIO m, IsDialer o) => o -> ReliefStyle -> m ()
- constructDialerRowSpacing :: (IsDialer o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getDialerRowSpacing :: (MonadIO m, IsDialer o) => o -> m Word32
- setDialerRowSpacing :: (MonadIO m, IsDialer o) => o -> Word32 -> m ()
- constructDialerShowActionButtons :: (IsDialer o, MonadIO m) => Bool -> m (GValueConstruct o)
- getDialerShowActionButtons :: (MonadIO m, IsDialer o) => o -> m Bool
- setDialerShowActionButtons :: (MonadIO m, IsDialer o) => o -> Bool -> m ()
- type C_DialerDeletedCallback = Ptr () -> Ptr () -> IO ()
- type DialerDeletedCallback = IO ()
- afterDialerDeleted :: (IsDialer a, MonadIO m) => a -> DialerDeletedCallback -> m SignalHandlerId
- genClosure_DialerDeleted :: MonadIO m => DialerDeletedCallback -> m (GClosure C_DialerDeletedCallback)
- mk_DialerDeletedCallback :: C_DialerDeletedCallback -> IO (FunPtr C_DialerDeletedCallback)
- noDialerDeletedCallback :: Maybe DialerDeletedCallback
- onDialerDeleted :: (IsDialer a, MonadIO m) => a -> DialerDeletedCallback -> m SignalHandlerId
- wrap_DialerDeletedCallback :: DialerDeletedCallback -> C_DialerDeletedCallback
- type C_DialerSubmittedCallback = Ptr () -> CString -> Ptr () -> IO ()
- type DialerSubmittedCallback = Text -> IO ()
- afterDialerSubmitted :: (IsDialer a, MonadIO m) => a -> DialerSubmittedCallback -> m SignalHandlerId
- genClosure_DialerSubmitted :: MonadIO m => DialerSubmittedCallback -> m (GClosure C_DialerSubmittedCallback)
- mk_DialerSubmittedCallback :: C_DialerSubmittedCallback -> IO (FunPtr C_DialerSubmittedCallback)
- noDialerSubmittedCallback :: Maybe DialerSubmittedCallback
- onDialerSubmitted :: (IsDialer a, MonadIO m) => a -> DialerSubmittedCallback -> m SignalHandlerId
- wrap_DialerSubmittedCallback :: DialerSubmittedCallback -> C_DialerSubmittedCallback
- type C_DialerSymbolClickedCallback = Ptr () -> Int8 -> Ptr () -> IO ()
- type DialerSymbolClickedCallback = Int8 -> IO ()
- afterDialerSymbolClicked :: (IsDialer a, MonadIO m) => a -> DialerSymbolClickedCallback -> m SignalHandlerId
- genClosure_DialerSymbolClicked :: MonadIO m => DialerSymbolClickedCallback -> m (GClosure C_DialerSymbolClickedCallback)
- mk_DialerSymbolClickedCallback :: C_DialerSymbolClickedCallback -> IO (FunPtr C_DialerSymbolClickedCallback)
- noDialerSymbolClickedCallback :: Maybe DialerSymbolClickedCallback
- onDialerSymbolClicked :: (IsDialer a, MonadIO m) => a -> DialerSymbolClickedCallback -> m SignalHandlerId
- wrap_DialerSymbolClickedCallback :: DialerSymbolClickedCallback -> C_DialerSymbolClickedCallback
Exported types
Memory-managed wrapper type.
Instances
Eq Dialer Source # | |
GObject Dialer Source # | |
Defined in GI.Handy.Objects.Dialer | |
ManagedPtrNewtype Dialer Source # | |
Defined in GI.Handy.Objects.Dialer toManagedPtr :: Dialer -> ManagedPtr Dialer | |
TypedObject Dialer Source # | |
Defined in GI.Handy.Objects.Dialer | |
HasParentTypes Dialer Source # | |
Defined in GI.Handy.Objects.Dialer | |
IsGValue (Maybe Dialer) Source # | Convert |
Defined in GI.Handy.Objects.Dialer gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Dialer -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Dialer) | |
type ParentTypes Dialer Source # | |
Defined in GI.Handy.Objects.Dialer |
class (GObject o, IsDescendantOf Dialer o) => IsDialer o Source #
Instances
(GObject o, IsDescendantOf Dialer o) => IsDialer o Source # | |
Defined in GI.Handy.Objects.Dialer |
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, clearNumber, 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, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getNumber, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRelief, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getShowActionButtons, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelPath, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setNumber, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setRelief, setResizeMode, setSensitive, setShowActionButtons, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
clearNumber
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> m () |
Deprecated: (Since version 0.0.12)use Keypad
instead
Set the current number to the empty string. When the number is already cleared no action is performed.
getNumber
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> m Text | Returns: the current number in the display |
Deprecated: (Since version 0.0.12)use Keypad
instead
Get the currently displayed number.
getRelief
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> m ReliefStyle | Returns: The current |
getShowActionButtons
dialerGetShowActionButtons Source #
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> m Bool | Returns: whether the buttons are to be shown |
Deprecated: (Since version 0.0.12)use Keypad
instead
Get whether the submit and delete buttons are to be shown.
new
:: (HasCallStack, MonadIO m) | |
=> m Dialer | Returns: the newly created |
setNumber
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> Text |
|
-> m () |
Deprecated: (Since version 0.0.12)use Keypad
instead
Set the currently displayed number.
setRelief
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> ReliefStyle |
|
-> m () |
Deprecated: (Since version 0.0.12)use Keypad
instead
Sets the relief style of the edges of the main buttons for the given
Dialer
widget.
Two styles exist, ReliefStyleNormal
and ReliefStyleNone
.
The default style is, as one can guess, ReliefStyleNormal
.
setShowActionButtons
dialerSetShowActionButtons Source #
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> Bool |
|
-> m () |
Deprecated: (Since version 0.0.12)use Keypad
instead
Set whether to show the submit and delete buttons.
Properties
columnSpacing
No description available in the introspection data.
constructDialerColumnSpacing :: (IsDialer 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
.
getDialerColumnSpacing :: (MonadIO m, IsDialer o) => o -> m Word32 Source #
Get the value of the “column-spacing
” property.
When overloading is enabled, this is equivalent to
get
dialer #columnSpacing
setDialerColumnSpacing :: (MonadIO m, IsDialer o) => o -> Word32 -> m () Source #
Set the value of the “column-spacing
” property.
When overloading is enabled, this is equivalent to
set
dialer [ #columnSpacing:=
value ]
number
No description available in the introspection data.
constructDialerNumber :: (IsDialer o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “number
” property. This is rarely needed directly, but it is used by new
.
getDialerNumber :: (MonadIO m, IsDialer o) => o -> m Text Source #
Get the value of the “number
” property.
When overloading is enabled, this is equivalent to
get
dialer #number
setDialerNumber :: (MonadIO m, IsDialer o) => o -> Text -> m () Source #
Set the value of the “number
” property.
When overloading is enabled, this is equivalent to
set
dialer [ #number:=
value ]
relief
The relief style of the edges of the main buttons.
constructDialerRelief :: (IsDialer o, MonadIO m) => ReliefStyle -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “relief
” property. This is rarely needed directly, but it is used by new
.
getDialerRelief :: (MonadIO m, IsDialer o) => o -> m ReliefStyle Source #
Get the value of the “relief
” property.
When overloading is enabled, this is equivalent to
get
dialer #relief
setDialerRelief :: (MonadIO m, IsDialer o) => o -> ReliefStyle -> m () Source #
Set the value of the “relief
” property.
When overloading is enabled, this is equivalent to
set
dialer [ #relief:=
value ]
rowSpacing
No description available in the introspection data.
constructDialerRowSpacing :: (IsDialer 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
.
getDialerRowSpacing :: (MonadIO m, IsDialer o) => o -> m Word32 Source #
Get the value of the “row-spacing
” property.
When overloading is enabled, this is equivalent to
get
dialer #rowSpacing
setDialerRowSpacing :: (MonadIO m, IsDialer o) => o -> Word32 -> m () Source #
Set the value of the “row-spacing
” property.
When overloading is enabled, this is equivalent to
set
dialer [ #rowSpacing:=
value ]
showActionButtons
No description available in the introspection data.
constructDialerShowActionButtons :: (IsDialer o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-action-buttons
” property. This is rarely needed directly, but it is used by new
.
getDialerShowActionButtons :: (MonadIO m, IsDialer o) => o -> m Bool Source #
Get the value of the “show-action-buttons
” property.
When overloading is enabled, this is equivalent to
get
dialer #showActionButtons
setDialerShowActionButtons :: (MonadIO m, IsDialer o) => o -> Bool -> m () Source #
Set the value of the “show-action-buttons
” property.
When overloading is enabled, this is equivalent to
set
dialer [ #showActionButtons:=
value ]
Signals
deleted
type C_DialerDeletedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DialerDeletedCallback = IO () Source #
This signal is emitted when the dialer's 'deleted' button is clicked to delete the last symbol.
afterDialerDeleted :: (IsDialer a, MonadIO m) => a -> DialerDeletedCallback -> m SignalHandlerId Source #
Connect a signal handler for the deleted signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dialer #deleted callback
genClosure_DialerDeleted :: MonadIO m => DialerDeletedCallback -> m (GClosure C_DialerDeletedCallback) Source #
Wrap the callback into a GClosure
.
mk_DialerDeletedCallback :: C_DialerDeletedCallback -> IO (FunPtr C_DialerDeletedCallback) Source #
Generate a function pointer callable from C code, from a C_DialerDeletedCallback
.
noDialerDeletedCallback :: Maybe DialerDeletedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DialerDeletedCallback
onDialerDeleted :: (IsDialer a, MonadIO m) => a -> DialerDeletedCallback -> m SignalHandlerId Source #
Connect a signal handler for the deleted signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dialer #deleted callback
wrap_DialerDeletedCallback :: DialerDeletedCallback -> C_DialerDeletedCallback Source #
Wrap a DialerDeletedCallback
into a C_DialerDeletedCallback
.
submitted
type C_DialerSubmittedCallback = Ptr () -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DialerSubmittedCallback Source #
This signal is emitted when the dialer's 'dial' button is activated. Connect to this signal to perform to get notified when the user wants to submit the dialed number.
afterDialerSubmitted :: (IsDialer a, MonadIO m) => a -> DialerSubmittedCallback -> m SignalHandlerId Source #
Connect a signal handler for the submitted signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dialer #submitted callback
genClosure_DialerSubmitted :: MonadIO m => DialerSubmittedCallback -> m (GClosure C_DialerSubmittedCallback) Source #
Wrap the callback into a GClosure
.
mk_DialerSubmittedCallback :: C_DialerSubmittedCallback -> IO (FunPtr C_DialerSubmittedCallback) Source #
Generate a function pointer callable from C code, from a C_DialerSubmittedCallback
.
noDialerSubmittedCallback :: Maybe DialerSubmittedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DialerSubmittedCallback
onDialerSubmitted :: (IsDialer a, MonadIO m) => a -> DialerSubmittedCallback -> m SignalHandlerId Source #
Connect a signal handler for the submitted signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dialer #submitted callback
wrap_DialerSubmittedCallback :: DialerSubmittedCallback -> C_DialerSubmittedCallback Source #
Wrap a DialerSubmittedCallback
into a C_DialerSubmittedCallback
.
symbolClicked
type C_DialerSymbolClickedCallback = Ptr () -> Int8 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DialerSymbolClickedCallback Source #
This signal is emitted when one of the symbol buttons (0-9, # or *) is clicked. Connect to this signal to find out which button was pressed. This doesn't take any cycling modes into account. So the button with "*" and "+" on it will always send "*". Delete and Submit buttons will not trigger this signal.
afterDialerSymbolClicked :: (IsDialer a, MonadIO m) => a -> DialerSymbolClickedCallback -> m SignalHandlerId Source #
Connect a signal handler for the symbolClicked signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
dialer #symbolClicked callback
genClosure_DialerSymbolClicked :: MonadIO m => DialerSymbolClickedCallback -> m (GClosure C_DialerSymbolClickedCallback) Source #
Wrap the callback into a GClosure
.
mk_DialerSymbolClickedCallback :: C_DialerSymbolClickedCallback -> IO (FunPtr C_DialerSymbolClickedCallback) Source #
Generate a function pointer callable from C code, from a C_DialerSymbolClickedCallback
.
noDialerSymbolClickedCallback :: Maybe DialerSymbolClickedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DialerSymbolClickedCallback
onDialerSymbolClicked :: (IsDialer a, MonadIO m) => a -> DialerSymbolClickedCallback -> m SignalHandlerId Source #
Connect a signal handler for the symbolClicked signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
dialer #symbolClicked callback