Safe Haskell | None |
---|---|
Language | Haskell2010 |
Graphics.Pango.Basic.TextAttributes.Internal
Contents
Synopsis
- data PangoTextAttrList = PangoTextAttrList {}
- data PangoTextAttrListPrim s
- pangoTextAttrListNew :: PrimMonad m => Text -> m (PangoTextAttrListPrim (PrimState m))
- pangoTextAttrListFreeze :: PrimMonad m => PangoTextAttrListPrim (PrimState m) -> m PangoTextAttrList
- pangoTextAttrListThaw :: PrimMonad m => PangoTextAttrList -> m (Maybe (PangoTextAttrListPrim (PrimState m)))
- pangoTextAttrListCopy :: PrimMonad m => PangoTextAttrListPrim (PrimState m) -> m (PangoTextAttrListPrim (PrimState m))
- pangoParseMarkup :: Text -> Maybe Char -> Either GError (PangoTextAttrList, Maybe Char)
- pangoMarkupParserNew :: PrimMonad m => Maybe Char -> m (GMarkupParseContext (PrimState m))
- pangoMarkupParserFinish :: PrimMonad m => GMarkupParseContext (PrimState m) -> m (Either GError (PangoTextAttrList, Maybe Char))
- pangoTextAttrListInsert :: PrimMonad m => PangoTextAttrListPrim (PrimState m) -> PangoAttribute (PrimState m) -> Int -> Int -> m ()
- pangoTextAttrListInsertBefore :: PrimMonad m => PangoTextAttrListPrim (PrimState m) -> PangoAttribute (PrimState m) -> Int -> Int -> m ()
- pangoTextAttrListChange :: PrimMonad m => PangoTextAttrListPrim (PrimState m) -> PangoAttribute (PrimState m) -> Int -> Int -> m ()
- data PangoAttribute s
- class PangoAttributeValue v
- pangoAttrNew :: (PangoAttributeValue v, PrimMonad m) => v -> m (PangoAttribute (PrimState m))
- pangoAttrFontDescNew :: PrimMonad m => PangoFontDescriptionPrim (PrimState m) -> m (PangoAttribute (PrimState m))
- newtype Strikethrough = Strikethrough Bool
- data StrikethroughColor d = StrikethroughColor (Rgb d)
- data PangoUnderline
- pattern PangoUnderlineNone :: PangoUnderline
- pattern PangoUnderlineSingle :: PangoUnderline
- pattern PangoUnderlineDouble :: PangoUnderline
- pattern PangoUnderlineLow :: PangoUnderline
- pattern PangoUnderlineError :: PangoUnderline
- data UnderlineColor d = UnderlineColor (Rgb d)
- data Shape = Shape PangoRectangleFixed PangoRectangleFixed
- newtype Scale = Scale CDouble
- data Rise
- pattern Rise :: PangoFixed -> Rise
- data LetterSpacing
- pattern LetterSpacing :: PangoFixed -> LetterSpacing
- data ForegroundColor d = ForegroundColor (Rgb d)
- data BackgroundColor d = BackgroundColor (Rgb d)
- newtype ForegroundAlpha d = ForegroundAlpha {
- getForegroundAlpha :: Alpha d
- newtype BackgroundAlpha d = BackgroundAlpha {
- getBackgroundAlpha :: Alpha d
- data PangoColor = PangoColor {}
- pangoColorParse :: String -> Maybe PangoColor
- pangoColorToString :: PangoColor -> String
- data PangoAttrList
- mkPangoAttrList :: Ptr PangoAttrList -> IO PangoAttrList
TYPE
data PangoTextAttrList Source #
Constructors
PangoTextAttrList | |
Instances
Show PangoTextAttrList Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> PangoTextAttrList -> ShowS # show :: PangoTextAttrList -> String # showList :: [PangoTextAttrList] -> ShowS # | |
PangoLayoutSetting PangoTextAttrList Source # | |
Defined in Graphics.Pango.Basic.LayoutObjects.PangoLayout.Internal Methods pangoLayoutSet :: PrimMonad m => PangoLayoutPrim (PrimState m) -> PangoTextAttrList -> m () Source # |
data PangoTextAttrListPrim s Source #
Instances
Show (PangoTextAttrListPrim s) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> PangoTextAttrListPrim s -> ShowS # show :: PangoTextAttrListPrim s -> String # showList :: [PangoTextAttrListPrim s] -> ShowS # |
pangoTextAttrListNew :: PrimMonad m => Text -> m (PangoTextAttrListPrim (PrimState m)) Source #
pangoTextAttrListFreeze :: PrimMonad m => PangoTextAttrListPrim (PrimState m) -> m PangoTextAttrList Source #
pangoTextAttrListThaw :: PrimMonad m => PangoTextAttrList -> m (Maybe (PangoTextAttrListPrim (PrimState m))) Source #
pangoTextAttrListCopy :: PrimMonad m => PangoTextAttrListPrim (PrimState m) -> m (PangoTextAttrListPrim (PrimState m)) Source #
PARSE MARKUP
pangoMarkupParserNew :: PrimMonad m => Maybe Char -> m (GMarkupParseContext (PrimState m)) Source #
pangoMarkupParserFinish :: PrimMonad m => GMarkupParseContext (PrimState m) -> m (Either GError (PangoTextAttrList, Maybe Char)) Source #
INSERT AN ATTRIBUTE TO PANGO TEXT ATTRIBUTE LIST FOR PRIMITIVE MONAD
pangoTextAttrListInsert :: PrimMonad m => PangoTextAttrListPrim (PrimState m) -> PangoAttribute (PrimState m) -> Int -> Int -> m () Source #
pangoTextAttrListInsertBefore :: PrimMonad m => PangoTextAttrListPrim (PrimState m) -> PangoAttribute (PrimState m) -> Int -> Int -> m () Source #
pangoTextAttrListChange :: PrimMonad m => PangoTextAttrListPrim (PrimState m) -> PangoAttribute (PrimState m) -> Int -> Int -> m () Source #
PANGO ATTRIBUTE VALUE
Class
data PangoAttribute s Source #
Instances
Show (PangoAttribute s) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> PangoAttribute s -> ShowS # show :: PangoAttribute s -> String # showList :: [PangoAttribute s] -> ShowS # |
class PangoAttributeValue v Source #
Minimal complete definition
Instances
pangoAttrNew :: (PangoAttributeValue v, PrimMonad m) => v -> m (PangoAttribute (PrimState m)) Source #
Instance
FontDescription
pangoAttrFontDescNew :: PrimMonad m => PangoFontDescriptionPrim (PrimState m) -> m (PangoAttribute (PrimState m)) Source #
Strikethrough and StrikethroughColor
newtype Strikethrough Source #
Constructors
Strikethrough Bool |
Instances
Show Strikethrough Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> Strikethrough -> ShowS # show :: Strikethrough -> String # showList :: [Strikethrough] -> ShowS # | |
PangoAttributeValue Strikethrough Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => Strikethrough -> m (PangoAttribute (PrimState m)) Source # |
data StrikethroughColor d Source #
Constructors
StrikethroughColor (Rgb d) |
Instances
Show d => Show (StrikethroughColor d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> StrikethroughColor d -> ShowS # show :: StrikethroughColor d -> String # showList :: [StrikethroughColor d] -> ShowS # | |
RealFrac d => PangoAttributeValue (StrikethroughColor d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => StrikethroughColor d -> m (PangoAttribute (PrimState m)) Source # |
PangoUnderline and UnderlineColor
data PangoUnderline Source #
Instances
Show PangoUnderline Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> PangoUnderline -> ShowS # show :: PangoUnderline -> String # showList :: [PangoUnderline] -> ShowS # | |
PangoAttributeValue PangoUnderline Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => PangoUnderline -> m (PangoAttribute (PrimState m)) Source # |
pattern PangoUnderlineNone :: PangoUnderline Source #
pattern PangoUnderlineSingle :: PangoUnderline Source #
pattern PangoUnderlineDouble :: PangoUnderline Source #
pattern PangoUnderlineLow :: PangoUnderline Source #
pattern PangoUnderlineError :: PangoUnderline Source #
data UnderlineColor d Source #
Constructors
UnderlineColor (Rgb d) |
Instances
Show d => Show (UnderlineColor d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> UnderlineColor d -> ShowS # show :: UnderlineColor d -> String # showList :: [UnderlineColor d] -> ShowS # | |
RealFrac d => PangoAttributeValue (UnderlineColor d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => UnderlineColor d -> m (PangoAttribute (PrimState m)) Source # |
Shape
Constructors
Shape PangoRectangleFixed PangoRectangleFixed |
Instances
Show Shape Source # | |
PangoAttributeValue Shape Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => Shape -> m (PangoAttribute (PrimState m)) Source # |
Scale
Instances
Show Scale Source # | |
PangoAttributeValue Scale Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => Scale -> m (PangoAttribute (PrimState m)) Source # |
Rise
Instances
Show Rise Source # | |
PangoAttributeValue Rise Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => Rise -> m (PangoAttribute (PrimState m)) Source # |
pattern Rise :: PangoFixed -> Rise Source #
LetterSpacing
data LetterSpacing Source #
Instances
Show LetterSpacing Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> LetterSpacing -> ShowS # show :: LetterSpacing -> String # showList :: [LetterSpacing] -> ShowS # | |
PangoAttributeValue LetterSpacing Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => LetterSpacing -> m (PangoAttribute (PrimState m)) Source # |
pattern LetterSpacing :: PangoFixed -> LetterSpacing Source #
Color and Alpha of Foreground and Background
data ForegroundColor d Source #
Constructors
ForegroundColor (Rgb d) |
Instances
Show d => Show (ForegroundColor d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> ForegroundColor d -> ShowS # show :: ForegroundColor d -> String # showList :: [ForegroundColor d] -> ShowS # | |
RealFrac d => PangoAttributeValue (ForegroundColor d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => ForegroundColor d -> m (PangoAttribute (PrimState m)) Source # |
data BackgroundColor d Source #
Constructors
BackgroundColor (Rgb d) |
Instances
Show d => Show (BackgroundColor d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> BackgroundColor d -> ShowS # show :: BackgroundColor d -> String # showList :: [BackgroundColor d] -> ShowS # | |
RealFrac d => PangoAttributeValue (BackgroundColor d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => BackgroundColor d -> m (PangoAttribute (PrimState m)) Source # |
newtype ForegroundAlpha d Source #
Constructors
ForegroundAlpha | |
Fields
|
Instances
Show d => Show (ForegroundAlpha d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> ForegroundAlpha d -> ShowS # show :: ForegroundAlpha d -> String # showList :: [ForegroundAlpha d] -> ShowS # | |
RealFrac d => PangoAttributeValue (ForegroundAlpha d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => ForegroundAlpha d -> m (PangoAttribute (PrimState m)) Source # |
newtype BackgroundAlpha d Source #
Constructors
BackgroundAlpha | |
Fields
|
Instances
Show d => Show (BackgroundAlpha d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> BackgroundAlpha d -> ShowS # show :: BackgroundAlpha d -> String # showList :: [BackgroundAlpha d] -> ShowS # | |
RealFrac d => PangoAttributeValue (BackgroundAlpha d) Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods pangoAttrNew :: PrimMonad m => BackgroundAlpha d -> m (PangoAttribute (PrimState m)) Source # |
PANGO COLOR
data PangoColor Source #
Constructors
PangoColor | |
Fields |
Instances
Storable PangoColor Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods sizeOf :: PangoColor -> Int # alignment :: PangoColor -> Int # peekElemOff :: Ptr PangoColor -> Int -> IO PangoColor # pokeElemOff :: Ptr PangoColor -> Int -> PangoColor -> IO () # peekByteOff :: Ptr b -> Int -> IO PangoColor # pokeByteOff :: Ptr b -> Int -> PangoColor -> IO () # peek :: Ptr PangoColor -> IO PangoColor # poke :: Ptr PangoColor -> PangoColor -> IO () # | |
Show PangoColor Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> PangoColor -> ShowS # show :: PangoColor -> String # showList :: [PangoColor] -> ShowS # |
pangoColorParse :: String -> Maybe PangoColor Source #
INTERNAL
data PangoAttrList Source #
Constructors
PangoAttrListNull | |
PangoAttrList (ForeignPtr PangoAttrList) |
Instances
Show PangoAttrList Source # | |
Defined in Graphics.Pango.Basic.TextAttributes.Internal Methods showsPrec :: Int -> PangoAttrList -> ShowS # show :: PangoAttrList -> String # showList :: [PangoAttrList] -> ShowS # |