Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
layoutSetLineSpacing :: (HasCallStack, MonadIO m, IsLayout a) => a -> Float -> m ()gi-pango GI.Pango.Objects.Layout Sets a factor for line spacing. Typical values are: 0, 1, 1.5, 2. The default values is 0. If factor is non-zero, lines are placed so that baseline2 = baseline1 + factor * height2 where height2 is the line height of the second line (as determined by the font(s)). In this case, the spacing set with layoutSetSpacing is ignored. If factor is zero (the default), spacing is applied as before. Note: for semantics that are closer to the CSS line-height property, see attrLineHeightNew. Since: 1.44
layoutSetMarkup :: (HasCallStack, MonadIO m, IsLayout a) => a -> Text -> Int32 -> m ()gi-pango GI.Pango.Objects.Layout Sets the layout text and attribute list from marked-up text. See Pango Markup). Replaces the current text and attribute list. This is the same as layoutSetMarkupWithAccel, but the markup text isn't scanned for accelerators.
-
gi-pango GI.Pango.Objects.Layout Sets the layout text and attribute list from marked-up text. See Pango Markup). Replaces the current text and attribute list. If accelMarker is nonzero, the given character will mark the character following it as an accelerator. For example, accelMarker might be an ampersand or underscore. All characters marked as an accelerator will receive a UnderlineLow attribute, and the first character so marked will be returned in accelChar. Two accelMarker characters following each other produce a single literal accelMarker character.
layoutSetSingleParagraphMode :: (HasCallStack, MonadIO m, IsLayout a) => a -> Bool -> m ()gi-pango GI.Pango.Objects.Layout Sets the single paragraph mode of layout. If setting is True, do not treat newlines and similar characters as paragraph separators; instead, keep all text in a single paragraph, and display a glyph for paragraph separator characters. Used when you want to allow editing of newlines on a single text line. The default value is False.
layoutSetSpacing :: (HasCallStack, MonadIO m, IsLayout a) => a -> Int32 -> m ()gi-pango GI.Pango.Objects.Layout Sets the amount of spacing in Pango units between the lines of the layout. When placing lines with spacing, Pango arranges things so that line2.top = line1.bottom + spacing The default value is 0. Note: Since 1.44, Pango is using the line height (as determined by the font) for placing lines when the line spacing factor is set to a non-zero value with layoutSetLineSpacing. In that case, the spacing set with this function is ignored. Note: for semantics that are closer to the CSS line-height property, see attrLineHeightNew.
layoutSetTabs :: (HasCallStack, MonadIO m, IsLayout a) => a -> Maybe TabArray -> m ()gi-pango GI.Pango.Objects.Layout Sets the tabs to use for layout, overriding the default tabs. PangoLayout will place content at the next tab position whenever it meets a Tab character (U+0009). By default, tabs are every 8 spaces. If tabs is Nothing, the default tabs are reinstated. tabs is copied into the layout; you must free your copy of tabs yourself. Note that tabs and justification conflict with each other: Justification will move content away from its tab-aligned positions. The same is true for alignments other than AlignmentLeft.
layoutSetText :: (HasCallStack, MonadIO m, IsLayout a) => a -> Text -> Int32 -> m ()gi-pango GI.Pango.Objects.Layout Sets the text of the layout. This function validates text and renders invalid UTF-8 with a placeholder glyph. Note that if you have used layoutSetMarkup or layoutSetMarkupWithAccel on layout before, you may want to call layoutSetAttributes to clear the attributes set on the layout from the markup as this function does not clear attributes.
layoutSetWidth :: (HasCallStack, MonadIO m, IsLayout a) => a -> Int32 -> m ()gi-pango GI.Pango.Objects.Layout Sets the width to which the lines of the PangoLayout should wrap or ellipsized. The default value is -1: no width set.
layoutSetWrap :: (HasCallStack, MonadIO m, IsLayout a) => a -> WrapMode -> m ()gi-pango GI.Pango.Objects.Layout Sets the wrap mode. The wrap mode only has effect if a width is set on the layout with layoutSetWidth. To turn off wrapping, set the width to -1. The default value is WrapModeWord.
rendererSetAlpha :: (HasCallStack, MonadIO m, IsRenderer a) => a -> RenderPart -> Word16 -> m ()gi-pango GI.Pango.Objects.Renderer Sets the alpha for part of the rendering. Note that the alpha may only be used if a color is specified for part as well. Since: 1.38