Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Dialer = Dialer (ManagedPtr Dialer)
- class (GObject o, IsDescendantOf Dialer o) => IsDialer o
- toDialer :: (MonadIO m, IsDialer o) => o -> m Dialer
- noDialer :: Maybe 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 => Word32 -> IO (GValueConstruct o)
- getDialerColumnSpacing :: (MonadIO m, IsDialer o) => o -> m Word32
- setDialerColumnSpacing :: (MonadIO m, IsDialer o) => o -> Word32 -> m ()
- constructDialerNumber :: IsDialer o => Text -> IO (GValueConstruct o)
- getDialerNumber :: (MonadIO m, IsDialer o) => o -> m Text
- setDialerNumber :: (MonadIO m, IsDialer o) => o -> Text -> m ()
- constructDialerRelief :: IsDialer o => ReliefStyle -> IO (GValueConstruct o)
- getDialerRelief :: (MonadIO m, IsDialer o) => o -> m ReliefStyle
- setDialerRelief :: (MonadIO m, IsDialer o) => o -> ReliefStyle -> m ()
- constructDialerRowSpacing :: IsDialer o => Word32 -> IO (GValueConstruct o)
- getDialerRowSpacing :: (MonadIO m, IsDialer o) => o -> m Word32
- setDialerRowSpacing :: (MonadIO m, IsDialer o) => o -> Word32 -> m ()
- constructDialerShowActionButtons :: IsDialer o => Bool -> IO (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
GObject Dialer Source # | |
Defined in GI.Handy.Objects.Dialer gobjectType :: IO GType # | |
HasParentTypes Dialer Source # | |
Defined in GI.Handy.Objects.Dialer | |
type ParentTypes Dialer Source # | |
Defined in GI.Handy.Objects.Dialer type ParentTypes Dialer = Bin ': (Container ': (Widget ': (Object ': (ImplementorIface ': (Buildable ': ([] :: [Type])))))) |
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
clearNumber
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> m () |
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 |
Get the currently displayed number.
getRelief
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> m ReliefStyle | Returns: The current |
Returns the current relief style of the main buttons for the given
Dialer
.
getShowActionButtons
dialerGetShowActionButtons Source #
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> m Bool | Returns: whether the buttons are to be shown |
Get whether the submit and delete buttons are to be shown.
new
:: (HasCallStack, MonadIO m) | |
=> m Dialer | Returns: the newly created |
Create a new Dialer
widget.
setNumber
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> Text |
|
-> m () |
Set the currently displayed number.
setRelief
:: (HasCallStack, MonadIO m, IsDialer a) | |
=> a |
|
-> ReliefStyle |
|
-> m () |
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 () |
Set whether to show the submit and delete buttons.
Properties
columnSpacing
No description available in the introspection data.
constructDialerColumnSpacing :: IsDialer o => Word32 -> IO (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 => Text -> IO (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 => ReliefStyle -> IO (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 => Word32 -> IO (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 => Bool -> IO (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 “symbol-clicked
” 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 “symbol-clicked
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
dialer #symbolClicked callback