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.

  1. layoutSetAlignment :: PangoLayout -> LayoutAlignment -> IO ()

    pango Graphics.Rendering.Pango

    Set how this paragraph is aligned.

    • Sets the alignment for the layout (how partial lines are positioned within the horizontal space available.)

  2. layoutSetAttributes :: PangoLayout -> [PangoAttribute] -> IO ()

    pango Graphics.Rendering.Pango

    Set text attributes of the text in the layout.

    • This function replaces any text attributes that this layout contained, even those that were set by using layoutSetMarkup.

  3. layoutSetAutoDir :: PangoLayout -> Bool -> IO ()

    pango Graphics.Rendering.Pango

    Set if the base text direction should be overridden.

    • Sets whether to calculate the bidirectional base direction for the layout according to the contents of the layout; when this flag is on (the default), then paragraphs in layout that begin with strong right-to-left characters (Arabic and Hebrew principally), will have right-to-left layout, paragraphs with letters from other scripts will have left-to-right layout. Paragraphs with only neutral characters get their direction from the surrounding paragraphs.
    • When False, the choice between left-to-right and right-to-left layout is done by according to the base direction of the layout's PangoContext. (See contextSetTextDir).
    • When the auto-computed direction or a paragraph differs from the base direction of the context, then the interpretation of AlignLeft and AlignRight are swapped.

  4. layoutSetEllipsize :: PangoLayout -> EllipsizeMode -> IO ()

    pango Graphics.Rendering.Pango

    Set how long lines should be abbreviated.

  5. layoutSetFontDescription :: PangoLayout -> Maybe FontDescription -> IO ()

    pango Graphics.Rendering.Pango

    Set a specific font description for this layout.

    • Specifying Nothing will unset the current font description, that is, the PangoLayout will use the font description in the current PangoContext.

  6. layoutSetIndent :: PangoLayout -> Double -> IO ()

    pango Graphics.Rendering.Pango

    Set the indentation of this paragraph.

    • Sets the amount by which the first line should be indented. A negative value will produce a hanging indent, that is, all subsequent lines will be indented while the first line has full width.

  7. layoutSetJustify :: PangoLayout -> Bool -> IO ()

    pango Graphics.Rendering.Pango

    Set if text should be stretched to fit width.

    • Sets whether or not each complete line should be stretched to fill the entire width of the layout. This stretching is typically done by adding whitespace, but for some scripts (such as Arabic), the justification is done by extending the characters.
    • Note that as of Pango 1.4, this functionality is not yet implemented.

  8. layoutSetMarkup :: (GlibString markup, GlibString string) => PangoLayout -> markup -> IO string

    pango Graphics.Rendering.Pango

    Set the text of the layout, including attributes. The string may include Markup. To print markup characters like '<', or '-', apply escapeMarkup to the string first. The function returns the text that is actually shown.

  9. layoutSetMarkupWithAccel :: (GlibString markup, GlibString string) => PangoLayout -> markup -> IO (Char, string)

    pango Graphics.Rendering.Pango

    Set the string in the layout.

    • The string may include Markup. Furthermore, any underscore character indicates that the next character will be marked as accelerator (i.e. underlined). A literal underscore character can be produced by placing it twice in the string.
    • The character which follows the underscore is returned so it can be used to add the actual keyboard shortcut. The second element is the string after parsing.

  10. layoutSetSingleParagraphMode :: PangoLayout -> Bool -> IO ()

    pango Graphics.Rendering.Pango

    Honor newlines or not.

    • If honor 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.

Page 1417 of many | Previous | Next