gi-handy-0.0.6: 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.Dialer

Description

No description available in the introspection data.

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 #

IsGValue Dialer Source #

Convert Dialer to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Handy.Objects.Dialer

GObject Dialer Source # 
Instance details

Defined in GI.Handy.Objects.Dialer

Methods

gobjectType :: IO GType #

HasParentTypes Dialer Source # 
Instance details

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

noDialer :: Maybe Dialer Source #

A convenience alias for Nothing :: Maybe Dialer.

Methods

Overloaded methods

clearNumber

dialerClearNumber Source #

Arguments

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

self: a Dialer

-> m () 

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

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

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

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

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

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

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

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

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

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