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.
toFontsetSimple :: (MonadIO m, IsFontsetSimple o) => o -> m FontsetSimplegi-pango GI.Pango.Objects.FontsetSimple Cast to FontsetSimple, for types for which this is known to be safe. For general casts, use castTo.
layoutSetAlignment :: (HasCallStack, MonadIO m, IsLayout a) => a -> Alignment -> m ()gi-pango GI.Pango.Objects.Layout Sets the alignment for the layout: how partial lines are positioned within the horizontal space available. The default alignment is AlignmentLeft.
layoutSetAttributes :: (HasCallStack, MonadIO m, IsLayout a) => a -> Maybe AttrList -> m ()gi-pango GI.Pango.Objects.Layout Sets the text attributes for a layout object. References attrs, so the caller can unref its reference.
layoutSetAutoDir :: (HasCallStack, MonadIO m, IsLayout a) => a -> Bool -> m ()gi-pango GI.Pango.Objects.Layout Sets whether to calculate the base direction for the layout according to its contents. 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 according to the base direction of the layout's PangoContext. (See contextSetBaseDir). When the auto-computed direction of a paragraph differs from the base direction of the context, the interpretation of AlignmentLeft and AlignmentRight are swapped. Since: 1.4
layoutSetEllipsize :: (HasCallStack, MonadIO m, IsLayout a) => a -> EllipsizeMode -> m ()gi-pango GI.Pango.Objects.Layout Sets the type of ellipsization being performed for layout. Depending on the ellipsization mode ellipsize text is removed from the start, middle, or end of text so they fit within the width and height of layout set with layoutSetWidth and layoutSetHeight. If the layout contains characters such as newlines that force it to be layed out in multiple paragraphs, then whether each paragraph is ellipsized separately or the entire layout is ellipsized as a whole depends on the set height of the layout. The default value is EllipsizeModeNone. See layoutSetHeight for details. Since: 1.6
-
gi-pango GI.Pango.Objects.Layout Sets the default font description for the layout. If no font description is set on the layout, the font description from the layout's context is used.
layoutSetHeight :: (HasCallStack, MonadIO m, IsLayout a) => a -> Int32 -> m ()gi-pango GI.Pango.Objects.Layout Sets the height to which the PangoLayout should be ellipsized at. There are two different behaviors, based on whether height is positive or negative. If height is positive, it will be the maximum height of the layout. Only lines would be shown that would fit, and if there is any text omitted, an ellipsis added. At least one line is included in each paragraph regardless of how small the height value is. A value of zero will render exactly one line for the entire layout. If height is negative, it will be the (negative of) maximum number of lines per paragraph. That is, the total number of lines shown may well be more than this value if the layout contains multiple paragraphs of text. The default value of -1 means that the first line of each paragraph is ellipsized. This behavior may be changed in the future to act per layout instead of per paragraph. File a bug against pango at https://gitlab.gnome.org/gnome/pango if your code relies on this behavior. Height setting only has effect if a positive width is set on layout and ellipsization mode of layout is not EllipsizeModeNone. The behavior is undefined if a height other than -1 is set and ellipsization mode is set to EllipsizeModeNone, and may change in the future. Since: 1.20
layoutSetIndent :: (HasCallStack, MonadIO m, IsLayout a) => a -> Int32 -> m ()gi-pango GI.Pango.Objects.Layout Sets the width in Pango units to indent each paragraph. A negative value of indent will produce a hanging indentation. That is, the first line will have the full width, and subsequent lines will be indented by the absolute value of indent. The indent setting is ignored if layout alignment is set to AlignmentCenter. The default value is 0.
layoutSetJustify :: (HasCallStack, MonadIO m, IsLayout a) => a -> Bool -> m ()gi-pango GI.Pango.Objects.Layout Sets whether each complete line should be stretched to fill the entire width of the layout. Stretching is typically done by adding whitespace, but for some scripts (such as Arabic), the justification may be done in more complex ways, like extending the characters. Note that this setting is not implemented and so is ignored in Pango older than 1.18. Note that tabs and justification conflict with each other: Justification will move content away from its tab-aligned positions. The default value is False. Also see layoutSetJustifyLastLine.
layoutSetJustifyLastLine :: (HasCallStack, MonadIO m, IsLayout a) => a -> Bool -> m ()gi-pango GI.Pango.Objects.Layout Sets whether the last line should be stretched to fill the entire width of the layout. This only has an effect if layoutSetJustify has been called as well. The default value is False. Since: 1.50