monomer-1.0.0.0: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Monomer.Graphics.Types

Description

Basic types for Graphics.

Angles are always expressed in degrees, not radians.

Synopsis

Documentation

data Winding Source #

Direction in which triangles and arcs are drawn.

Constructors

CW 
CCW 

Instances

Instances details
Eq Winding Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

(==) :: Winding -> Winding -> Bool #

(/=) :: Winding -> Winding -> Bool #

Show Winding Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic Winding Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep Winding :: Type -> Type #

Methods

from :: Winding -> Rep Winding x #

to :: Rep Winding x -> Winding #

type Rep Winding Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep Winding = D1 ('MetaData "Winding" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "CW" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CCW" 'PrefixI 'False) (U1 :: Type -> Type))

data Color Source #

An RGBA color.

Constructors

Color 

Fields

Instances

Instances details
Eq Color Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

(==) :: Color -> Color -> Bool #

(/=) :: Color -> Color -> Bool #

Show Color Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

Generic Color Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep Color :: Type -> Type #

Methods

from :: Color -> Rep Color x #

to :: Rep Color x -> Color #

Default Color Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: Color #

HasColor BorderSide Color Source # 
Instance details

Defined in Monomer.Core.Lens

HasScrollThumbColor ThemeState Color Source # 
Instance details

Defined in Monomer.Core.Lens

HasScrollBarColor ThemeState Color Source # 
Instance details

Defined in Monomer.Core.Lens

HasSectionColor Theme Color Source # 
Instance details

Defined in Monomer.Core.Lens

HasClearColor Theme Color Source # 
Instance details

Defined in Monomer.Core.Lens

HasR Color Int Source # 
Instance details

Defined in Monomer.Graphics.Lens

Methods

r :: Lens' Color Int Source #

HasG Color Int Source # 
Instance details

Defined in Monomer.Graphics.Lens

Methods

g :: Lens' Color Int Source #

HasB Color Int Source # 
Instance details

Defined in Monomer.Graphics.Lens

Methods

b :: Lens' Color Int Source #

HasA Color Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasFontColor TextStyle (Maybe Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasSndColor StyleState (Maybe Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasHlColor StyleState (Maybe Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFgColor StyleState (Maybe Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasBgColor StyleState (Maybe Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasUserColorMap ThemeState (Map String Color) Source # 
Instance details

Defined in Monomer.Core.Lens

HasUserColorMap Theme (Map String Color) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep Color Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep Color = D1 ('MetaData "Color" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "Color" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_colorR") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "_colorG") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "_colorB") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "_colorA") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double))))

data FontDef Source #

The definition of a font.

Constructors

FontDef 

Fields

Instances

Instances details
Eq FontDef Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

(==) :: FontDef -> FontDef -> Bool #

(/=) :: FontDef -> FontDef -> Bool #

Show FontDef Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic FontDef Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep FontDef :: Type -> Type #

Methods

from :: FontDef -> Rep FontDef x #

to :: Rep FontDef x -> FontDef #

HasPath FontDef Text Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasName FontDef Text Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasFonts (AppConfig e) [FontDef] Source # 
Instance details

Defined in Monomer.Main.Lens

type Rep FontDef Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep FontDef = D1 ('MetaData "FontDef" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "FontDef" 'PrefixI 'True) (S1 ('MetaSel ('Just "_fntName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_fntPath") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)))

newtype Font Source #

The name of a loaded font.

Constructors

Font 

Fields

Instances

Instances details
Eq Font Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

(==) :: Font -> Font -> Bool #

(/=) :: Font -> Font -> Bool #

Show Font Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

showsPrec :: Int -> Font -> ShowS #

show :: Font -> String #

showList :: [Font] -> ShowS #

IsString Font Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

fromString :: String -> Font #

Generic Font Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep Font :: Type -> Type #

Methods

from :: Font -> Rep Font x #

to :: Rep Font x -> Font #

Default Font Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: Font #

HasFont TextLine Font Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasFont TextStyle (Maybe Font) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep Font Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep Font = D1 ('MetaData "Font" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'True) (C1 ('MetaCons "Font" 'PrefixI 'True) (S1 ('MetaSel ('Just "unFont") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype FontSize Source #

The size of a font.

Constructors

FontSize 

Fields

Instances

Instances details
Eq FontSize Source # 
Instance details

Defined in Monomer.Graphics.Types

Show FontSize Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic FontSize Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep FontSize :: Type -> Type #

Methods

from :: FontSize -> Rep FontSize x #

to :: Rep FontSize x -> FontSize #

Default FontSize Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: FontSize #

HasFontSize TextLine FontSize Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasFontSize TextStyle (Maybe FontSize) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep FontSize Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep FontSize = D1 ('MetaData "FontSize" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'True) (C1 ('MetaCons "FontSize" 'PrefixI 'True) (S1 ('MetaSel ('Just "unFontSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

newtype FontSpace Source #

The spacing of a font. Zero represents the default spacing of the font.

Constructors

FontSpace 

Fields

Instances

Instances details
Eq FontSpace Source # 
Instance details

Defined in Monomer.Graphics.Types

Show FontSpace Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic FontSpace Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep FontSpace :: Type -> Type #

Default FontSpace Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: FontSpace #

HasFontSpaceV TextLine FontSpace Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasFontSpaceH TextLine FontSpace Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasFontSpaceV TextStyle (Maybe FontSpace) Source # 
Instance details

Defined in Monomer.Core.Lens

HasFontSpaceH TextStyle (Maybe FontSpace) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep FontSpace Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep FontSpace = D1 ('MetaData "FontSpace" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'True) (C1 ('MetaCons "FontSpace" 'PrefixI 'True) (S1 ('MetaSel ('Just "unFontSpace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data RectSide Source #

Represents the sides of a rectangle.

Instances

Instances details
Eq RectSide Source # 
Instance details

Defined in Monomer.Graphics.Types

Show RectSide Source # 
Instance details

Defined in Monomer.Graphics.Types

data RectCorner Source #

Represents the corners of a rectangle.

Instances

Instances details
Eq RectCorner Source # 
Instance details

Defined in Monomer.Graphics.Types

Show RectCorner Source # 
Instance details

Defined in Monomer.Graphics.Types

data AlignH Source #

Horizontal alignment flags.

Constructors

ALeft 
ACenter 
ARight 

Instances

Instances details
Eq AlignH Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

(==) :: AlignH -> AlignH -> Bool #

(/=) :: AlignH -> AlignH -> Bool #

Show AlignH Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic AlignH Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep AlignH :: Type -> Type #

Methods

from :: AlignH -> Rep AlignH x #

to :: Rep AlignH x -> AlignH #

Default AlignH Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: AlignH #

type Rep AlignH Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep AlignH = D1 ('MetaData "AlignH" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "ALeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ACenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ARight" 'PrefixI 'False) (U1 :: Type -> Type)))

data AlignV Source #

Vertical alignment flags.

Constructors

ATop 
AMiddle 
ABottom 

Instances

Instances details
Eq AlignV Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

(==) :: AlignV -> AlignV -> Bool #

(/=) :: AlignV -> AlignV -> Bool #

Show AlignV Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic AlignV Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep AlignV :: Type -> Type #

Methods

from :: AlignV -> Rep AlignV x #

to :: Rep AlignV x -> AlignV #

Default AlignV Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: AlignV #

type Rep AlignV Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep AlignV = D1 ('MetaData "AlignV" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "ATop" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AMiddle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ABottom" 'PrefixI 'False) (U1 :: Type -> Type)))

data AlignTH Source #

Text horizontal alignment flags.

Constructors

ATLeft 
ATCenter 
ATRight 

Instances

Instances details
Eq AlignTH Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

(==) :: AlignTH -> AlignTH -> Bool #

(/=) :: AlignTH -> AlignTH -> Bool #

Show AlignTH Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic AlignTH Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep AlignTH :: Type -> Type #

Methods

from :: AlignTH -> Rep AlignTH x #

to :: Rep AlignTH x -> AlignTH #

Default AlignTH Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: AlignTH #

HasAlignH TextStyle (Maybe AlignTH) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep AlignTH Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep AlignTH = D1 ('MetaData "AlignTH" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "ATLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ATCenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ATRight" 'PrefixI 'False) (U1 :: Type -> Type)))

data AlignTV Source #

Text vertical alignment flags.

Instances

Instances details
Eq AlignTV Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

(==) :: AlignTV -> AlignTV -> Bool #

(/=) :: AlignTV -> AlignTV -> Bool #

Show AlignTV Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic AlignTV Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep AlignTV :: Type -> Type #

Methods

from :: AlignTV -> Rep AlignTV x #

to :: Rep AlignTV x -> AlignTV #

Default AlignTV Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: AlignTV #

HasAlignV TextStyle (Maybe AlignTV) Source # 
Instance details

Defined in Monomer.Core.Lens

type Rep AlignTV Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep AlignTV = D1 ('MetaData "AlignTV" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) ((C1 ('MetaCons "ATTop" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ATMiddle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ATAscender" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ATLowerX" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ATBottom" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ATBaseline" 'PrefixI 'False) (U1 :: Type -> Type))))

data GlyphPos Source #

Information of a text glyph instance.

Constructors

GlyphPos 

Fields

Instances

Instances details
Eq GlyphPos Source # 
Instance details

Defined in Monomer.Graphics.Types

Show GlyphPos Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic GlyphPos Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep GlyphPos :: Type -> Type #

Methods

from :: GlyphPos -> Rep GlyphPos x #

to :: Rep GlyphPos x -> GlyphPos #

Default GlyphPos Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: GlyphPos #

HasW GlyphPos Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasH GlyphPos Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasYMin GlyphPos Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasYMax GlyphPos Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasXMin GlyphPos Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasXMax GlyphPos Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasGlyph GlyphPos Char Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasGlyphs TextLine (Seq GlyphPos) Source # 
Instance details

Defined in Monomer.Graphics.Lens

type Rep GlyphPos Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep GlyphPos = D1 ('MetaData "GlyphPos" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "GlyphPos" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_glpGlyph") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Char) :*: (S1 ('MetaSel ('Just "_glpXMin") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "_glpXMax") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double))) :*: ((S1 ('MetaSel ('Just "_glpYMin") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "_glpYMax") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "_glpW") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "_glpH") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double)))))

data TextMode Source #

Text flags for single or multiline.

Constructors

SingleLine 
MultiLine 

Instances

Instances details
Eq TextMode Source # 
Instance details

Defined in Monomer.Graphics.Types

Show TextMode Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic TextMode Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep TextMode :: Type -> Type #

Methods

from :: TextMode -> Rep TextMode x #

to :: Rep TextMode x -> TextMode #

type Rep TextMode Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep TextMode = D1 ('MetaData "TextMode" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "SingleLine" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MultiLine" 'PrefixI 'False) (U1 :: Type -> Type))

data TextTrim Source #

Text flags for trimming or keeping sapces.

Constructors

TrimSpaces 
KeepSpaces 

Instances

Instances details
Eq TextTrim Source # 
Instance details

Defined in Monomer.Graphics.Types

Show TextTrim Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic TextTrim Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep TextTrim :: Type -> Type #

Methods

from :: TextTrim -> Rep TextTrim x #

to :: Rep TextTrim x -> TextTrim #

type Rep TextTrim Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep TextTrim = D1 ('MetaData "TextTrim" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "TrimSpaces" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KeepSpaces" 'PrefixI 'False) (U1 :: Type -> Type))

data TextOverflow Source #

Text flags for clipping or using ellipsis.

Constructors

Ellipsis 
ClipText 

Instances

Instances details
Eq TextOverflow Source # 
Instance details

Defined in Monomer.Graphics.Types

Show TextOverflow Source # 
Instance details

Defined in Monomer.Graphics.Types

data TextMetrics Source #

Text metrics.

Constructors

TextMetrics 

Fields

Instances

Instances details
Eq TextMetrics Source # 
Instance details

Defined in Monomer.Graphics.Types

Show TextMetrics Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic TextMetrics Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep TextMetrics :: Type -> Type #

Default TextMetrics Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: TextMetrics #

HasLowerX TextMetrics Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasLineH TextMetrics Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasDesc TextMetrics Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasAsc TextMetrics Double Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasMetrics TextLine TextMetrics Source # 
Instance details

Defined in Monomer.Graphics.Lens

type Rep TextMetrics Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep TextMetrics = D1 ('MetaData "TextMetrics" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "TextMetrics" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_txmAsc") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "_txmDesc") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "_txmLineH") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "_txmLowerX") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Double))))

data TextLine Source #

A text line with associated rendering information.

Constructors

TextLine 

Fields

Instances

Instances details
Eq TextLine Source # 
Instance details

Defined in Monomer.Graphics.Types

Show TextLine Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic TextLine Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep TextLine :: Type -> Type #

Methods

from :: TextLine -> Rep TextLine x #

to :: Rep TextLine x -> TextLine #

Default TextLine Source # 
Instance details

Defined in Monomer.Graphics.Types

Methods

def :: TextLine #

HasFontSpaceV TextLine FontSpace Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasFontSpaceH TextLine FontSpace Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasFontSize TextLine FontSize Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasFont TextLine Font Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasText TextLine Text Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasSize TextLine Size Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasRect TextLine Rect Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasMetrics TextLine TextMetrics Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasGlyphs TextLine (Seq GlyphPos) Source # 
Instance details

Defined in Monomer.Graphics.Lens

type Rep TextLine Source # 
Instance details

Defined in Monomer.Graphics.Types

data ImageFlag Source #

Flags for a newly created image.

Instances

Instances details
Eq ImageFlag Source # 
Instance details

Defined in Monomer.Graphics.Types

Show ImageFlag Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic ImageFlag Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep ImageFlag :: Type -> Type #

HasFlags ImageDef [ImageFlag] Source # 
Instance details

Defined in Monomer.Graphics.Lens

type Rep ImageFlag Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep ImageFlag = D1 ('MetaData "ImageFlag" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "ImageNearest" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ImageRepeatX" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ImageRepeatY" 'PrefixI 'False) (U1 :: Type -> Type)))

data ImageDef Source #

The definition of a loaded image.

Constructors

ImageDef 

Fields

Instances

Instances details
Eq ImageDef Source # 
Instance details

Defined in Monomer.Graphics.Types

Show ImageDef Source # 
Instance details

Defined in Monomer.Graphics.Types

Generic ImageDef Source # 
Instance details

Defined in Monomer.Graphics.Types

Associated Types

type Rep ImageDef :: Type -> Type #

Methods

from :: ImageDef -> Rep ImageDef x #

to :: Rep ImageDef x -> ImageDef #

HasName ImageDef Text Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasSize ImageDef Size Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasImgData ImageDef ByteString Source # 
Instance details

Defined in Monomer.Graphics.Lens

HasFlags ImageDef [ImageFlag] Source # 
Instance details

Defined in Monomer.Graphics.Lens

type Rep ImageDef Source # 
Instance details

Defined in Monomer.Graphics.Types

type Rep ImageDef = D1 ('MetaData "ImageDef" "Monomer.Graphics.Types" "monomer-1.0.0.0-inplace" 'False) (C1 ('MetaCons "ImageDef" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_idfName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_idfSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Size)) :*: (S1 ('MetaSel ('Just "_idfImgData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "_idfFlags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ImageFlag]))))

data FontManager Source #

Text metrics related functions.

Constructors

FontManager 

Fields

Instances

Instances details
HasFontManager (WidgetEnv s e) FontManager Source # 
Instance details

Defined in Monomer.Core.Lens

data Renderer Source #

Low level rendering definitions.

Constructors

Renderer 

Fields