Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Bookkeeping information about a loadable input method.
Synopsis
- newtype IMContextInfo = IMContextInfo (ManagedPtr IMContextInfo)
- newZeroIMContextInfo :: MonadIO m => m IMContextInfo
- clearIMContextInfoContextId :: MonadIO m => IMContextInfo -> m ()
- getIMContextInfoContextId :: MonadIO m => IMContextInfo -> m (Maybe Text)
- setIMContextInfoContextId :: MonadIO m => IMContextInfo -> CString -> m ()
- clearIMContextInfoContextName :: MonadIO m => IMContextInfo -> m ()
- getIMContextInfoContextName :: MonadIO m => IMContextInfo -> m (Maybe Text)
- setIMContextInfoContextName :: MonadIO m => IMContextInfo -> CString -> m ()
- clearIMContextInfoDefaultLocales :: MonadIO m => IMContextInfo -> m ()
- getIMContextInfoDefaultLocales :: MonadIO m => IMContextInfo -> m (Maybe Text)
- setIMContextInfoDefaultLocales :: MonadIO m => IMContextInfo -> CString -> m ()
- clearIMContextInfoDomain :: MonadIO m => IMContextInfo -> m ()
- getIMContextInfoDomain :: MonadIO m => IMContextInfo -> m (Maybe Text)
- setIMContextInfoDomain :: MonadIO m => IMContextInfo -> CString -> m ()
- clearIMContextInfoDomainDirname :: MonadIO m => IMContextInfo -> m ()
- getIMContextInfoDomainDirname :: MonadIO m => IMContextInfo -> m (Maybe Text)
- setIMContextInfoDomainDirname :: MonadIO m => IMContextInfo -> CString -> m ()
Exported types
newtype IMContextInfo Source #
Memory-managed wrapper type.
IMContextInfo (ManagedPtr IMContextInfo) |
Instances
Eq IMContextInfo Source # | |
Defined in GI.Gtk.Structs.IMContextInfo (==) :: IMContextInfo -> IMContextInfo -> Bool # (/=) :: IMContextInfo -> IMContextInfo -> Bool # | |
BoxedPtr IMContextInfo Source # | |
Defined in GI.Gtk.Structs.IMContextInfo boxedPtrCopy :: IMContextInfo -> IO IMContextInfo boxedPtrFree :: IMContextInfo -> IO () | |
CallocPtr IMContextInfo Source # | |
Defined in GI.Gtk.Structs.IMContextInfo boxedPtrCalloc :: IO (Ptr IMContextInfo) | |
ManagedPtrNewtype IMContextInfo Source # | |
Defined in GI.Gtk.Structs.IMContextInfo toManagedPtr :: IMContextInfo -> ManagedPtr IMContextInfo | |
tag ~ 'AttrSet => Constructible IMContextInfo tag Source # | |
Defined in GI.Gtk.Structs.IMContextInfo new :: MonadIO m => (ManagedPtr IMContextInfo -> IMContextInfo) -> [AttrOp IMContextInfo tag] -> m IMContextInfo |
newZeroIMContextInfo :: MonadIO m => m IMContextInfo Source #
Construct a IMContextInfo
struct initialized to zero.
Methods
Properties
contextId
The unique identification string of the input method.
clearIMContextInfoContextId :: MonadIO m => IMContextInfo -> m () Source #
Set the value of the “context_id
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#contextId
getIMContextInfoContextId :: MonadIO m => IMContextInfo -> m (Maybe Text) Source #
Get the value of the “context_id
” field.
When overloading is enabled, this is equivalent to
get
iMContextInfo #contextId
setIMContextInfoContextId :: MonadIO m => IMContextInfo -> CString -> m () Source #
Set the value of the “context_id
” field.
When overloading is enabled, this is equivalent to
set
iMContextInfo [ #contextId:=
value ]
contextName
The human-readable name of the input method.
clearIMContextInfoContextName :: MonadIO m => IMContextInfo -> m () Source #
Set the value of the “context_name
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#contextName
getIMContextInfoContextName :: MonadIO m => IMContextInfo -> m (Maybe Text) Source #
Get the value of the “context_name
” field.
When overloading is enabled, this is equivalent to
get
iMContextInfo #contextName
setIMContextInfoContextName :: MonadIO m => IMContextInfo -> CString -> m () Source #
Set the value of the “context_name
” field.
When overloading is enabled, this is equivalent to
set
iMContextInfo [ #contextName:=
value ]
defaultLocales
A colon-separated list of locales where this input method should be the default. The asterisk “*” sets the default for all locales.
clearIMContextInfoDefaultLocales :: MonadIO m => IMContextInfo -> m () Source #
Set the value of the “default_locales
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#defaultLocales
getIMContextInfoDefaultLocales :: MonadIO m => IMContextInfo -> m (Maybe Text) Source #
Get the value of the “default_locales
” field.
When overloading is enabled, this is equivalent to
get
iMContextInfo #defaultLocales
setIMContextInfoDefaultLocales :: MonadIO m => IMContextInfo -> CString -> m () Source #
Set the value of the “default_locales
” field.
When overloading is enabled, this is equivalent to
set
iMContextInfo [ #defaultLocales:=
value ]
domain
Translation domain to be used with dgettext()
clearIMContextInfoDomain :: MonadIO m => IMContextInfo -> m () Source #
Set the value of the “domain
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#domain
getIMContextInfoDomain :: MonadIO m => IMContextInfo -> m (Maybe Text) Source #
Get the value of the “domain
” field.
When overloading is enabled, this is equivalent to
get
iMContextInfo #domain
setIMContextInfoDomain :: MonadIO m => IMContextInfo -> CString -> m () Source #
Set the value of the “domain
” field.
When overloading is enabled, this is equivalent to
set
iMContextInfo [ #domain:=
value ]
domainDirname
Name of locale directory for use with bindtextdomain()
clearIMContextInfoDomainDirname :: MonadIO m => IMContextInfo -> m () Source #
Set the value of the “domain_dirname
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#domainDirname
getIMContextInfoDomainDirname :: MonadIO m => IMContextInfo -> m (Maybe Text) Source #
Get the value of the “domain_dirname
” field.
When overloading is enabled, this is equivalent to
get
iMContextInfo #domainDirname
setIMContextInfoDomainDirname :: MonadIO m => IMContextInfo -> CString -> m () Source #
Set the value of the “domain_dirname
” field.
When overloading is enabled, this is equivalent to
set
iMContextInfo [ #domainDirname:=
value ]