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

Description

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

This widget should not be altered using the Grid and Container APIs, they are considered internal to this widget, using them externally will lead to unexpected results.

Synopsis

Exported types

newtype Keypad Source #

Memory-managed wrapper type.

Constructors

Keypad (ManagedPtr Keypad) 

Instances

Instances details
Eq Keypad Source # 
Instance details

Defined in GI.Handy.Objects.Keypad

Methods

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

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

GObject Keypad Source # 
Instance details

Defined in GI.Handy.Objects.Keypad

ManagedPtrNewtype Keypad Source # 
Instance details

Defined in GI.Handy.Objects.Keypad

Methods

toManagedPtr :: Keypad -> ManagedPtr Keypad

TypedObject Keypad Source # 
Instance details

Defined in GI.Handy.Objects.Keypad

Methods

glibType :: IO GType

HasParentTypes Keypad Source # 
Instance details

Defined in GI.Handy.Objects.Keypad

IsGValue (Maybe Keypad) Source #

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

Instance details

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

Defined in GI.Handy.Objects.Keypad

type ParentTypes Keypad = '[Grid, Container, Widget, Object, ImplementorIface, Buildable, Orientable]

class (GObject o, IsDescendantOf Keypad o) => IsKeypad o Source #

Type class for types which can be safely cast to Keypad, for instance with toKeypad.

Instances

Instances details
(GObject o, IsDescendantOf Keypad o) => IsKeypad o Source # 
Instance details

Defined in GI.Handy.Objects.Keypad

toKeypad :: (MonadIO m, IsKeypad o) => o -> m Keypad Source #

Cast to Keypad, 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, attach, attachNextTo, 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, insertColumn, insertNextTo, insertRow, 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, removeColumn, removeMnemonicLabel, removeRow, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, showSymbols, 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, getBaselineRow, getBorderWidth, getCanDefault, getCanFocus, getChildAt, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getColumnHomogeneous, getColumnSpacing, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEntry, 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, getOpacity, getOrientation, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRootWindow, getRowBaselinePosition, getRowHomogeneous, getRowSpacing, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.

Setters

setAccelPath, setAllocation, setAppPaintable, setBaselineRow, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setColumnHomogeneous, setColumnSpacing, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEntry, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setLeftAction, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setOrientation, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setRightAction, setRowBaselinePosition, setRowHomogeneous, setRowSpacing, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.

getEntry

keypadGetEntry Source #

Arguments

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

self: a Keypad

-> m Widget

Returns: the set Entry or NULL if no widget was set

Get the connected entry. See hdy_keypad_set_entry () for details

new

keypadNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Bool

onlyDigits: whether the keypad should show only digits or also extra buttons for #, *

-> Bool

showSymbols: whether the keypad should show the second line or only the main digit

-> m Keypad

Returns: the newly created Keypad widget

Create a new Keypad widget.

setEntry

keypadSetEntry Source #

Arguments

:: (HasCallStack, MonadIO m, IsKeypad a, IsEntry b) 
=> a

self: a Keypad

-> b

entry: a Entry

-> m () 

Binds a Entry to the keypad and it blocks every input which wouldn't be possible to type with with the keypad

setLeftAction

keypadSetLeftAction Source #

Arguments

:: (HasCallStack, MonadIO m, IsKeypad a, IsWidget b) 
=> a

self: a Keypad

-> b

widget: nullable: the widget which should be show in the left lower corner of Keypad

-> m () 

Sets the widget for the left lower corner of Keypad replacing the existing widget, if NULL it just removes whatever widget is there

setRightAction

keypadSetRightAction Source #

Arguments

:: (HasCallStack, MonadIO m, IsKeypad a, IsWidget b) 
=> a

self: a Keypad

-> b

widget: nullable: the widget which should be show in the right lower corner of Keypad

-> m () 

Sets the widget for the right lower corner of Keypad replacing the existing widget, if NULL it just removes whatever widget is there

showSymbols

keypadShowSymbols Source #

Arguments

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

self: a Keypad

-> Bool

visible: whether the second line on buttons should be shown or not

-> m () 

Sets the visibility of symbols (excluding the main digit) on each button in the Keypad

Properties

entry

No description available in the introspection data.

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, IsWidget 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 Widget Source #

Get the value of the “entry” property. When overloading is enabled, this is equivalent to

get keypad #entry

setKeypadEntry :: (MonadIO m, IsKeypad o, IsWidget a) => o -> a -> m () Source #

Set the value of the “entry” property. When overloading is enabled, this is equivalent to

set keypad [ #entry := value ]

leftAction

No description available in the introspection data.

constructKeypadLeftAction :: (IsKeypad o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “left-action” property. This is rarely needed directly, but it is used by new.

setKeypadLeftAction :: (MonadIO m, IsKeypad o, IsWidget a) => o -> a -> m () Source #

Set the value of the “left-action” property. When overloading is enabled, this is equivalent to

set keypad [ #leftAction := value ]

onlyDigits

No description available in the introspection data.

constructKeypadOnlyDigits :: (IsKeypad o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “only-digits” property. This is rarely needed directly, but it is used by new.

getKeypadOnlyDigits :: (MonadIO m, IsKeypad o) => o -> m Bool Source #

Get the value of the “only-digits” property. When overloading is enabled, this is equivalent to

get keypad #onlyDigits

setKeypadOnlyDigits :: (MonadIO m, IsKeypad o) => o -> Bool -> m () Source #

Set the value of the “only-digits” property. When overloading is enabled, this is equivalent to

set keypad [ #onlyDigits := value ]

rightAction

No description available in the introspection data.

constructKeypadRightAction :: (IsKeypad o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “right-action” property. This is rarely needed directly, but it is used by new.

setKeypadRightAction :: (MonadIO m, IsKeypad o, IsWidget a) => o -> a -> m () Source #

Set the value of the “right-action” property. When overloading is enabled, this is equivalent to

set keypad [ #rightAction := value ]

showSymbols

No description available in the introspection data.

constructKeypadShowSymbols :: (IsKeypad o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “show-symbols” property. This is rarely needed directly, but it is used by new.

getKeypadShowSymbols :: (MonadIO m, IsKeypad o) => o -> m Bool Source #

Get the value of the “show-symbols” property. When overloading is enabled, this is equivalent to

get keypad #showSymbols

setKeypadShowSymbols :: (MonadIO m, IsKeypad o) => o -> Bool -> m () Source #

Set the value of the “show-symbols” property. When overloading is enabled, this is equivalent to

set keypad [ #showSymbols := value ]