gi-handy-0.0.8: libhandy bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Handy.Objects.Dialer

Description

The Dialer widget is a keypad for entering numbers such as phone numbers or PIN codes.

Synopsis

Exported types

newtype Dialer Source #

Memory-managed wrapper type.

Constructors

Dialer (ManagedPtr Dialer) 

Instances

Instances details
Eq Dialer Source # 
Instance details

Defined in GI.Handy.Objects.Dialer

Methods

(==) :: Dialer -> Dialer -> Bool #

(/=) :: Dialer -> Dialer -> Bool #

GObject Dialer Source # 
Instance details

Defined in GI.Handy.Objects.Dialer

ManagedPtrNewtype Dialer Source # 
Instance details

Defined in GI.Handy.Objects.Dialer

Methods

toManagedPtr :: Dialer -> ManagedPtr Dialer

TypedObject Dialer Source # 
Instance details

Defined in GI.Handy.Objects.Dialer

Methods

glibType :: IO GType

HasParentTypes Dialer Source # 
Instance details

Defined in GI.Handy.Objects.Dialer

IsGValue (Maybe Dialer) Source #

Convert Dialer to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Handy.Objects.Dialer

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Dialer -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Dialer)

type ParentTypes Dialer Source # 
Instance details

Defined in GI.Handy.Objects.Dialer

type ParentTypes Dialer = '[Bin, Container, Widget, Object, ImplementorIface, Buildable]

class (GObject o, IsDescendantOf Dialer o) => IsDialer o Source #

Type class for types which can be safely cast to Dialer, for instance with toDialer.

Instances

Instances details
(GObject o, IsDescendantOf Dialer o) => IsDialer o Source # 
Instance details

Defined in GI.Handy.Objects.Dialer

toDialer :: (MonadIO m, IsDialer o) => o -> m Dialer Source #

Cast to Dialer, for types for which this is known to be safe. For general casts, use castTo.

Methods

Click to display all available methods, including inherited ones

Expand

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

dialerClearNumber Source #

Arguments

:: (HasCallStack, MonadIO m, IsDialer a) 
=> a

self: a Dialer

-> 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

dialerGetNumber Source #

Arguments

:: (HasCallStack, MonadIO m, IsDialer a) 
=> a

self: a Dialer

-> m Text

Returns: the current number in the display

Deprecated: (Since version 0.0.12)use Keypad instead

Get the currently displayed number.

getRelief

dialerGetRelief Source #

Arguments

:: (HasCallStack, MonadIO m, IsDialer a) 
=> a

self: The Dialer whose main buttons you want the ReliefStyle from

-> m ReliefStyle

Returns: The current ReliefStyle

Deprecated: (Since version 0.0.12)use Keypad instead

Returns the current relief style of the main buttons for the given Dialer.

getShowActionButtons

dialerGetShowActionButtons Source #

Arguments

:: (HasCallStack, MonadIO m, IsDialer a) 
=> a

self: a Dialer

-> 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

dialerNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Dialer

Returns: the newly created Dialer widget

Deprecated: (Since version 0.0.12)use Keypad instead

Create a new Dialer widget.

setNumber

dialerSetNumber Source #

Arguments

:: (HasCallStack, MonadIO m, IsDialer a) 
=> a

self: a Dialer

-> Text

number: the number to set

-> m () 

Deprecated: (Since version 0.0.12)use Keypad instead

Set the currently displayed number.

setRelief

dialerSetRelief Source #

Arguments

:: (HasCallStack, MonadIO m, IsDialer a) 
=> a

self: The Dialer whose main buttons you want to set relief styles of

-> ReliefStyle

relief: The ReliefStyle as described above

-> 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 #

Arguments

:: (HasCallStack, MonadIO m, IsDialer a) 
=> a

self: a Dialer

-> Bool

show: whether to show the buttons

-> 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.

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

submitted

type C_DialerSubmittedCallback = Ptr () -> CString -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type DialerSubmittedCallback Source #

Arguments

 = Text

number: The number at the time of activation.

-> IO () 

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.

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

symbolClicked

type C_DialerSymbolClickedCallback = Ptr () -> Int8 -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type DialerSymbolClickedCallback Source #

Arguments

 = Int8

button: The main symbol on the button that was clicked

-> IO () 

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

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