gi-pango-1.0.25: Pango bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Pango.Structs.LogAttr

Description

The PangoLogAttr structure stores information about the attributes of a single character.

Synopsis

Exported types

newtype LogAttr Source #

Memory-managed wrapper type.

Constructors

LogAttr (ManagedPtr LogAttr) 

Instances

Instances details
Eq LogAttr Source # 
Instance details

Defined in GI.Pango.Structs.LogAttr

Methods

(==) :: LogAttr -> LogAttr -> Bool #

(/=) :: LogAttr -> LogAttr -> Bool #

BoxedPtr LogAttr Source # 
Instance details

Defined in GI.Pango.Structs.LogAttr

CallocPtr LogAttr Source # 
Instance details

Defined in GI.Pango.Structs.LogAttr

ManagedPtrNewtype LogAttr Source # 
Instance details

Defined in GI.Pango.Structs.LogAttr

tag ~ 'AttrSet => Constructible LogAttr tag Source # 
Instance details

Defined in GI.Pango.Structs.LogAttr

Methods

new :: MonadIO m => (ManagedPtr LogAttr -> LogAttr) -> [AttrOp LogAttr tag] -> m LogAttr #

newZeroLogAttr :: MonadIO m => m LogAttr Source #

Construct a LogAttr struct initialized to zero.

Methods

Properties

backspaceDeletesCharacter

if set, backspace deletes one character rather than the entire grapheme cluster. This field is only meaningful on grapheme boundaries (where isCursorPosition is set). In some languages, the full grapheme (e.g. letter + diacritics) is considered a unit, while in others, each decomposed character in the grapheme is a unit. In the default implementation of [funcbreak], this bit is set on all grapheme boundaries except those following Latin, Cyrillic or Greek base characters.

getLogAttrBackspaceDeletesCharacter :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “backspace_deletes_character” field. When overloading is enabled, this is equivalent to

get logAttr #backspaceDeletesCharacter

setLogAttrBackspaceDeletesCharacter :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “backspace_deletes_character” field. When overloading is enabled, this is equivalent to

set logAttr [ #backspaceDeletesCharacter := value ]

breakInsertsHyphen

when breaking lines before this char, insert a hyphen. Since: 1.50

getLogAttrBreakInsertsHyphen :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “break_inserts_hyphen” field. When overloading is enabled, this is equivalent to

get logAttr #breakInsertsHyphen

setLogAttrBreakInsertsHyphen :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “break_inserts_hyphen” field. When overloading is enabled, this is equivalent to

set logAttr [ #breakInsertsHyphen := value ]

breakRemovesPreceding

when breaking lines before this char, remove the preceding char. Since 1.50

getLogAttrBreakRemovesPreceding :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “break_removes_preceding” field. When overloading is enabled, this is equivalent to

get logAttr #breakRemovesPreceding

setLogAttrBreakRemovesPreceding :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “break_removes_preceding” field. When overloading is enabled, this is equivalent to

set logAttr [ #breakRemovesPreceding := value ]

isCharBreak

if set, can break here when doing character wrapping

getLogAttrIsCharBreak :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_char_break” field. When overloading is enabled, this is equivalent to

get logAttr #isCharBreak

setLogAttrIsCharBreak :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_char_break” field. When overloading is enabled, this is equivalent to

set logAttr [ #isCharBreak := value ]

isCursorPosition

if set, cursor can appear in front of character. i.e. this is a grapheme boundary, or the first character in the text. This flag implements Unicode's Grapheme Cluster Boundaries semantics.

getLogAttrIsCursorPosition :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_cursor_position” field. When overloading is enabled, this is equivalent to

get logAttr #isCursorPosition

setLogAttrIsCursorPosition :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_cursor_position” field. When overloading is enabled, this is equivalent to

set logAttr [ #isCursorPosition := value ]

isExpandableSpace

is a whitespace character that can possibly be expanded for justification purposes. (Since: 1.18)

getLogAttrIsExpandableSpace :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_expandable_space” field. When overloading is enabled, this is equivalent to

get logAttr #isExpandableSpace

setLogAttrIsExpandableSpace :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_expandable_space” field. When overloading is enabled, this is equivalent to

set logAttr [ #isExpandableSpace := value ]

isLineBreak

if set, can break line in front of character

getLogAttrIsLineBreak :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_line_break” field. When overloading is enabled, this is equivalent to

get logAttr #isLineBreak

setLogAttrIsLineBreak :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_line_break” field. When overloading is enabled, this is equivalent to

set logAttr [ #isLineBreak := value ]

isMandatoryBreak

if set, must break line in front of character

getLogAttrIsMandatoryBreak :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_mandatory_break” field. When overloading is enabled, this is equivalent to

get logAttr #isMandatoryBreak

setLogAttrIsMandatoryBreak :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_mandatory_break” field. When overloading is enabled, this is equivalent to

set logAttr [ #isMandatoryBreak := value ]

isSentenceBoundary

is a sentence boundary. There are two ways to divide sentences. The first assigns all inter-sentence whitespace/control/format chars to some sentence, so all chars are in some sentence; isSentenceBoundary denotes the boundaries there. The second way doesn't assign between-sentence spaces, etc. to any sentence, so isSentenceStart/isSentenceEnd mark the boundaries of those sentences.

getLogAttrIsSentenceBoundary :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_sentence_boundary” field. When overloading is enabled, this is equivalent to

get logAttr #isSentenceBoundary

setLogAttrIsSentenceBoundary :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_sentence_boundary” field. When overloading is enabled, this is equivalent to

set logAttr [ #isSentenceBoundary := value ]

isSentenceEnd

is first char after a sentence. Note that in degenerate cases, you could have both isSentenceStart and isSentenceEnd set for some character. (e.g. no space after a period, so the next sentence starts right away)

getLogAttrIsSentenceEnd :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_sentence_end” field. When overloading is enabled, this is equivalent to

get logAttr #isSentenceEnd

setLogAttrIsSentenceEnd :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_sentence_end” field. When overloading is enabled, this is equivalent to

set logAttr [ #isSentenceEnd := value ]

isSentenceStart

is first character in a sentence

getLogAttrIsSentenceStart :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_sentence_start” field. When overloading is enabled, this is equivalent to

get logAttr #isSentenceStart

setLogAttrIsSentenceStart :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_sentence_start” field. When overloading is enabled, this is equivalent to

set logAttr [ #isSentenceStart := value ]

isWhite

is whitespace character

getLogAttrIsWhite :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_white” field. When overloading is enabled, this is equivalent to

get logAttr #isWhite

setLogAttrIsWhite :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_white” field. When overloading is enabled, this is equivalent to

set logAttr [ #isWhite := value ]

isWordBoundary

is a word boundary, as defined by UAX29. More specifically, means that this is not a position in the middle of a word. For example, both sides of a punctuation mark are considered word boundaries. This flag is particularly useful when selecting text word-by-word. This flag implements Unicode's Word Boundaries semantics. (Since: 1.22)

getLogAttrIsWordBoundary :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_word_boundary” field. When overloading is enabled, this is equivalent to

get logAttr #isWordBoundary

setLogAttrIsWordBoundary :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_word_boundary” field. When overloading is enabled, this is equivalent to

set logAttr [ #isWordBoundary := value ]

isWordEnd

is first non-word char after a word Note that in degenerate cases, you could have both isWordStart and isWordEnd set for some character.

getLogAttrIsWordEnd :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_word_end” field. When overloading is enabled, this is equivalent to

get logAttr #isWordEnd

setLogAttrIsWordEnd :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_word_end” field. When overloading is enabled, this is equivalent to

set logAttr [ #isWordEnd := value ]

isWordStart

is first character in a word

getLogAttrIsWordStart :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “is_word_start” field. When overloading is enabled, this is equivalent to

get logAttr #isWordStart

setLogAttrIsWordStart :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “is_word_start” field. When overloading is enabled, this is equivalent to

set logAttr [ #isWordStart := value ]

reserved

No description available in the introspection data.

getLogAttrReserved :: MonadIO m => LogAttr -> m Word32 Source #

Get the value of the “reserved” field. When overloading is enabled, this is equivalent to

get logAttr #reserved

setLogAttrReserved :: MonadIO m => LogAttr -> Word32 -> m () Source #

Set the value of the “reserved” field. When overloading is enabled, this is equivalent to

set logAttr [ #reserved := value ]