gi-poppler-0.18.11: Poppler 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.Poppler.Structs.TextSpan

Contents

Description

 

Synopsis

Exported types

newtype TextSpan Source #

Constructors

TextSpan (ManagedPtr TextSpan) 

Instances

BoxedObject TextSpan Source # 

Methods

boxedType :: TextSpan -> IO GType #

((~) * info (ResolveTextSpanMethod t TextSpan), MethodInfo * info TextSpan p) => IsLabel t (TextSpan -> p) Source # 

Methods

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

((~) * info (ResolveTextSpanMethod t TextSpan), MethodInfo * info TextSpan p) => IsLabelProxy t (TextSpan -> p) Source # 

Methods

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

HasAttributeList * TextSpan Source # 
((~) * signature (m Bool), MonadIO m) => MethodInfo * TextSpanIsSerifFontMethodInfo TextSpan signature Source # 
((~) * signature (m Bool), MonadIO m) => MethodInfo * TextSpanIsFixedWidthFontMethodInfo TextSpan signature Source # 
((~) * signature (m Bool), MonadIO m) => MethodInfo * TextSpanIsBoldFontMethodInfo TextSpan signature Source # 
((~) * signature (m Text), MonadIO m) => MethodInfo * TextSpanGetTextMethodInfo TextSpan signature Source # 
((~) * signature (m Text), MonadIO m) => MethodInfo * TextSpanGetFontNameMethodInfo TextSpan signature Source # 
((~) * signature (m Color), MonadIO m) => MethodInfo * TextSpanGetColorMethodInfo TextSpan signature Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * TextSpanFreeMethodInfo TextSpan signature Source # 
((~) * signature (m TextSpan), MonadIO m) => MethodInfo * TextSpanCopyMethodInfo TextSpan signature Source # 
type AttributeList TextSpan Source # 

Methods

copy

textSpanCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TextSpan

popplerTextSpan: a TextSpan

-> m TextSpan

Returns: A new TextSpan

Makes a copy of a text span.

Since: 0.26

free

data TextSpanFreeMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * TextSpanFreeMethodInfo TextSpan signature Source # 

textSpanFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TextSpan

popplerTextSpan: A TextSpan

-> m () 

Frees a text span.

Since: 0.26

getColor

textSpanGetColor Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TextSpan

popplerTextSpan: a TextSpan

-> m Color 

Obtains the color in which the text is to be rendered.

Since: 0.26

getFontName

textSpanGetFontName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TextSpan

popplerTextSpan: a TextSpan

-> m Text

Returns: A string containing the font name, or Nothing if a font is not defined.

Obtains the name of the font in which the span is to be rendered.

Since: 0.26

getText

textSpanGetText Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TextSpan

popplerTextSpan: a TextSpan

-> m Text

Returns: A string.

Obtains the text contained in the span.

Since: 0.26

isBoldFont

textSpanIsBoldFont Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TextSpan

popplerTextSpan: a TextSpan

-> m Bool

Returns: Whether the span uses bold font.

Check whether a text span is meant to be rendered using a bold font.

Since: 0.26

isFixedWidthFont

textSpanIsFixedWidthFont Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TextSpan

popplerTextSpan: a TextSpan

-> m Bool

Returns: Whether the span uses a fixed-width font.

Check wether a text span is meant to be rendered using a fixed-width font.

Since: 0.26

isSerifFont

textSpanIsSerifFont Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TextSpan

popplerTextSpan: a TextSpan

-> m Bool

Returns: Whether the span uses a serif font.

Check whether a text span is meant to be rendered using a serif font.

Since: 0.26