gi-gtksource-3.0.13: GtkSource bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GtkSource.Structs.Encoding

Contents

Description

 

Synopsis

Exported types

newtype Encoding Source #

Constructors

Encoding (ManagedPtr Encoding) 

Instances

BoxedObject Encoding Source # 

Methods

boxedType :: Encoding -> IO GType #

((~) * info (ResolveEncodingMethod t Encoding), MethodInfo * info Encoding p) => IsLabel t (Encoding -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Encoding -> p #

((~) * info (ResolveEncodingMethod t Encoding), MethodInfo * info Encoding p) => IsLabelProxy t (Encoding -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Encoding -> p #

HasAttributeList * Encoding Source # 
((~) * signature (m Text), MonadIO m) => MethodInfo * EncodingToStringMethodInfo Encoding signature Source # 
((~) * signature (m Text), MonadIO m) => MethodInfo * EncodingGetNameMethodInfo Encoding signature Source # 
((~) * signature (m Text), MonadIO m) => MethodInfo * EncodingGetCharsetMethodInfo Encoding signature Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * EncodingFreeMethodInfo Encoding signature Source # 
((~) * signature (m Encoding), MonadIO m) => MethodInfo * EncodingCopyMethodInfo Encoding signature Source # 
type AttributeList Encoding Source # 

Methods

copy

encodingCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Encoding

enc: a Encoding.

-> m Encoding

Returns: a copy of enc.

Used by language bindings.

Since: 3.14

free

data EncodingFreeMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * EncodingFreeMethodInfo Encoding signature Source # 

encodingFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Encoding

enc: a Encoding.

-> m () 

Used by language bindings.

Since: 3.14

getAll

encodingGetAll Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m [Encoding]

Returns: a list of all 'GI.GtkSource.Structs.Encoding.Encoding'\'s. Free with g_slist_free().

Gets all encodings.

Since: 3.14

getCharset

encodingGetCharset Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Encoding

enc: a Encoding.

-> m Text

Returns: the character set of the Encoding.

Gets the character set of the Encoding, such as "UTF-8" or "ISO-8859-1".

Since: 3.14

getCurrent

encodingGetCurrent Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Encoding

Returns: the current locale encoding.

Gets the Encoding for the current locale. See also getCharset.

Since: 3.14

getDefaultCandidates

encodingGetDefaultCandidates Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m [Encoding]

Returns: the list of default candidate encodings. Free with g_slist_free().

Gets the list of default candidate encodings to try when loading a file. See fileLoaderSetCandidateEncodings.

This function returns a different list depending on the current locale (i.e. language, country and default encoding). The UTF-8 encoding and the current locale encoding are guaranteed to be present in the returned list.

Since: 3.18

getFromCharset

encodingGetFromCharset Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

charset: a character set.

-> m (Maybe Encoding)

Returns: the corresponding Encoding, or Nothing if not found.

Gets a Encoding from a character set such as "UTF-8" or "ISO-8859-1".

Since: 3.14

getName

encodingGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Encoding

enc: a Encoding.

-> m Text

Returns: the name of the Encoding.

Gets the name of the Encoding such as "Unicode" or "Western".

Since: 3.14

getUtf8

encodingGetUtf8 Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Encoding

Returns: the UTF-8 encoding.

No description available in the introspection data.

Since: 3.14

toString

encodingToString Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Encoding

enc: a Encoding.

-> m Text

Returns: a string representation. Free with free when no longer needed.

No description available in the introspection data.

Since: 3.14