gi-gtk3-3.0.44: Gtk 3.x bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.Gtk.Structs.IMContextInfo

Contents

- Exported types
- Methods
- Properties
  - contextId
  - contextName
  - defaultLocales
  - domain
  - domainDirname

Description

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.

Constructors

IMContextInfo (ManagedPtr IMContextInfo) |

#### Instances

Instances details

Eq IMContextInfo Source # |
Instance details Defined in GI.Gtk.Structs.IMContextInfo Methods (==) :: IMContextInfo -> IMContextInfo -> Bool Source # (/=) :: IMContextInfo -> IMContextInfo -> Bool Source #
BoxedPtr IMContextInfo Source # |
Instance details Defined in GI.Gtk.Structs.IMContextInfo Methods boxedPtrCopy :: IMContextInfo -> IO IMContextInfo Source # boxedPtrFree :: IMContextInfo -> IO () Source #
CallocPtr IMContextInfo Source # |
Instance details Defined in GI.Gtk.Structs.IMContextInfo Methods boxedPtrCalloc :: IO (Ptr IMContextInfo) Source #
ManagedPtrNewtype IMContextInfo Source # |
Instance details Defined in GI.Gtk.Structs.IMContextInfo Methods toManagedPtr :: IMContextInfo -> ManagedPtr IMContextInfo Source #
tag ~ 'AttrSet => Constructible IMContextInfo tag Source # |
Instance details Defined in GI.Gtk.Structs.IMContextInfo Methods new :: MonadIO m => (ManagedPtr IMContextInfo -> IMContextInfo) -> [AttrOp IMContextInfo tag] -> m IMContextInfo Source #

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 ]