gi-rsvg-2.0.3: librsvg bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Rsvg.Enums

Description

 
Synopsis

Enumerations

Error

data Error Source #

An enumeration representing possible errors

Constructors

ErrorFailed

the request failed

AnotherError Int

Catch-all for unknown values

Instances

Instances details
Enum Error Source # 
Instance details

Defined in GI.Rsvg.Enums

Show Error Source # 
Instance details

Defined in GI.Rsvg.Enums

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Eq Error Source # 
Instance details

Defined in GI.Rsvg.Enums

Methods

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

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

Ord Error Source # 
Instance details

Defined in GI.Rsvg.Enums

Methods

compare :: Error -> Error -> Ordering #

(<) :: Error -> Error -> Bool #

(<=) :: Error -> Error -> Bool #

(>) :: Error -> Error -> Bool #

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

max :: Error -> Error -> Error #

min :: Error -> Error -> Error #

BoxedEnum Error Source # 
Instance details

Defined in GI.Rsvg.Enums

TypedObject Error Source # 
Instance details

Defined in GI.Rsvg.Enums

Methods

glibType :: IO GType

GErrorClass Error Source # 
Instance details

Defined in GI.Rsvg.Enums

HasParentTypes Error Source # 
Instance details

Defined in GI.Rsvg.Enums

type ParentTypes Error Source # 
Instance details

Defined in GI.Rsvg.Enums

type ParentTypes Error = '[] :: [Type]

catchError :: IO a -> (Error -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type Error. This is a specialized version of catchGErrorJustDomain.

handleError :: (Error -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type Error. This is a specialized version of handleGErrorJustDomain.

Unit

data Unit Source #

Units for the RsvgLength struct. These have the same meaning as <https://www.w3.org/TR/CSS21/syndata.html#length-units CSS length units>.

Constructors

UnitPercent

percentage values; where <literal>1.0</literal> means 100%.

UnitPx

pixels

UnitEm

em, or the current font size

UnitEx

x-height of the current font

UnitIn

inches

UnitCm

centimeters

UnitMm

millimeters

UnitPt

points, or 1/72 inch

UnitPc

picas, or 1/6 inch (12 points)

AnotherUnit Int

Catch-all for unknown values

Instances

Instances details
Enum Unit Source # 
Instance details

Defined in GI.Rsvg.Enums

Methods

succ :: Unit -> Unit #

pred :: Unit -> Unit #

toEnum :: Int -> Unit #

fromEnum :: Unit -> Int #

enumFrom :: Unit -> [Unit] #

enumFromThen :: Unit -> Unit -> [Unit] #

enumFromTo :: Unit -> Unit -> [Unit] #

enumFromThenTo :: Unit -> Unit -> Unit -> [Unit] #

Show Unit Source # 
Instance details

Defined in GI.Rsvg.Enums

Methods

showsPrec :: Int -> Unit -> ShowS #

show :: Unit -> String #

showList :: [Unit] -> ShowS #

Eq Unit Source # 
Instance details

Defined in GI.Rsvg.Enums

Methods

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

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

Ord Unit Source # 
Instance details

Defined in GI.Rsvg.Enums

Methods

compare :: Unit -> Unit -> Ordering #

(<) :: Unit -> Unit -> Bool #

(<=) :: Unit -> Unit -> Bool #

(>) :: Unit -> Unit -> Bool #

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

max :: Unit -> Unit -> Unit #

min :: Unit -> Unit -> Unit #