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

GI.Handy.Objects.Keypad

Description

No description available in the introspection data.

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

IsGValue Keypad Source #

Convert Keypad to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Handy.Objects.Keypad

Methods

toGValue :: Keypad -> IO GValue

fromGValue :: GValue -> IO Keypad

HasParentTypes Keypad Source # 
Instance details

Defined in GI.Handy.Objects.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

Overloaded methods

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 ]