- data TextRenderer = TextRenderer {}
- data Width
- textRenderer :: PangoText -> TextRenderer
- data PangoText
- pText :: String -> PangoText
- pRaw :: String -> PangoText
- pEmpty :: PangoText
- pTag :: String -> PangoText -> PangoText
- pSpan :: [SpanAttribute] -> PangoText -> PangoText
- pBold :: PangoText -> PangoText
- pBig :: PangoText -> PangoText
- pItalic :: PangoText -> PangoText
- pStrikethrough :: PangoText -> PangoText
- pSmall :: PangoText -> PangoText
- pSub :: PangoText -> PangoText
- pSup :: PangoText -> PangoText
- pUnderline :: PangoText -> PangoText
- pMono :: PangoText -> PangoText
- pSized :: Double -> PangoText -> PangoText
- pIntercalate :: PangoText -> [PangoText] -> PangoText
- pUnlines :: [PangoText] -> PangoText
- pUnwords :: [PangoText] -> PangoText
- pShow :: Show a => a -> PangoText
- data SpanAttribute
- = FontDescr String
- | FontFamily String
- | FontSize Size
- | FontStyle FontStyle
- | FontWeight Weight
- | FontVariant Variant
- | FontStretch Stretch
- | FontForeground String
- | FontBackground String
- | FontUnderline Underline
- | FontRise Double
- | FontLang Language
- | FontGravity PangoGravity
- | FontGravityHint PangoGravityHint
- data LayoutAlignment
- = AlignLeft
- | AlignCenter
- | AlignRight
- data LayoutWrapMode
- type TabPosition = (Double, TabAlign)
- data Size
- = SizePoint Double
- | SizeUnreadable
- | SizeTiny
- | SizeSmall
- | SizeMedium
- | SizeLarge
- | SizeHuge
- | SizeGiant
- | SizeSmaller
- | SizeLarger
- sRGB :: (Ord b, Floating b) => b -> b -> b -> Colour b
- module Graphics.Aosd
- module Data.Monoid
- module Data.Colour.Names
Base
data TextRenderer Source
TextRenderer | |
|
Unlimited | The layout will be as wide as necessary to hold all the lines without wrapping |
Width Double | The layout will be wrapped (according to |
Eq Width | |
Fractional Width | Supports only |
Num Width | Supports only |
Show Width |
textRenderer :: PangoText -> TextRendererSource
Construct a TextConf
with most fields set to Nothing
PangoText
Plain text or some Pango markup. Suggestion: Use {-# LANGUAGE OverloadedStrings #-}.
pRaw :: String -> PangoTextSource
Raw Pango markup, see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html.
Markup tags
pSpan :: [SpanAttribute] -> PangoText -> PangoTextSource
pUnderline :: PangoText -> PangoTextSource
Underline
Span shorthands
Standard text combinators
pIntercalate :: PangoText -> [PangoText] -> PangoTextSource
Reexports
data SpanAttribute
These are all the attributes the markSpan
function can express.
FontDescr String | Choose a font by textual description.
|
FontFamily String | Specify the family of font to use.
|
FontSize Size | Change the size of the current font.
|
FontStyle FontStyle | Change the slant of the current font. |
FontWeight Weight | Change the thickness of the current font.
|
FontVariant Variant | Choosing an alternative rendering for lower case letters.
|
FontStretch Stretch | Choose a different width.
|
FontForeground String | Foreground color.
|
FontBackground String | Background color. |
FontUnderline Underline | Specify underlining of text. |
FontRise Double | Specify a vertical displacement.
|
FontLang Language | Give a hint about the language to be displayed.
|
FontGravity PangoGravity | Gravity of text, use for ratation. |
FontGravityHint PangoGravityHint | Intensity of gravity. |
data LayoutAlignment
Enumerate to which side incomplete lines are flushed.
data LayoutWrapMode
Enumerates how a line can be wrapped.
WrapWholeWords
- Breaks lines only between words.
- This variant does not guarantee that the requested width is not exceeded. A word that is longer than the paragraph width is not split.
WrapAnywhere
- Break lines anywhere.
WrapPartialWords
- Wrap within a word if it is the only one on this line.
- This option acts like
WrapWholeWords
but will split a word if it is the only one on this line and it exceeds the specified width.
type TabPosition = (Double, TabAlign)
A Tab position.
data Size
Define attributes for FontSize
.
sRGB :: (Ord b, Floating b) => b -> b -> b -> Colour b
Construct a colour from an sRGB specification. Input components are expected to be in the range [0..1].
module Graphics.Aosd
module Data.Monoid
module Data.Colour.Names