gi-gsk-4.0.2: Gsk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gsk.Enums

Description

 
Synopsis

Enumerations

BlendMode

data BlendMode Source #

The blend modes available for render nodes.

The implementation of each blend mode is deferred to the rendering pipeline.

Constructors

BlendModeDefault

The default blend mode, which specifies no blending

BlendModeMultiply

The source color is multiplied by the destination and replaces the destination

BlendModeScreen

...

BlendModeOverlay

...

BlendModeDarken

...

BlendModeLighten

...

BlendModeColorDodge

...

BlendModeColorBurn

...

BlendModeHardLight

...

BlendModeSoftLight

...

BlendModeDifference

...

BlendModeExclusion

...

BlendModeColor

...

BlendModeHue

...

BlendModeSaturation

...

BlendModeLuminosity

...

AnotherBlendMode Int

Catch-all for unknown values

Instances

Instances details
Enum BlendMode Source # 
Instance details

Defined in GI.Gsk.Enums

Eq BlendMode Source # 
Instance details

Defined in GI.Gsk.Enums

Ord BlendMode Source # 
Instance details

Defined in GI.Gsk.Enums

Show BlendMode Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

showsPrec :: Int -> BlendMode -> ShowS #

show :: BlendMode -> String #

showList :: [BlendMode] -> ShowS #

TypedObject BlendMode Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

glibType :: IO GType #

BoxedEnum BlendMode Source # 
Instance details

Defined in GI.Gsk.Enums

HasParentTypes BlendMode Source # 
Instance details

Defined in GI.Gsk.Enums

type ParentTypes BlendMode Source # 
Instance details

Defined in GI.Gsk.Enums

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

Corner

data Corner Source #

The corner indices used by RoundedRect.

Constructors

CornerTopLeft

The top left corner

CornerTopRight

The top right corner

CornerBottomRight

The bottom right corner

CornerBottomLeft

The bottom left corner

AnotherCorner Int

Catch-all for unknown values

Instances

Instances details
Enum Corner Source # 
Instance details

Defined in GI.Gsk.Enums

Eq Corner Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

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

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

Ord Corner Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

compare :: Corner -> Corner -> Ordering

(<) :: Corner -> Corner -> Bool

(<=) :: Corner -> Corner -> Bool

(>) :: Corner -> Corner -> Bool

(>=) :: Corner -> Corner -> Bool

max :: Corner -> Corner -> Corner

min :: Corner -> Corner -> Corner

Show Corner Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

showsPrec :: Int -> Corner -> ShowS #

show :: Corner -> String #

showList :: [Corner] -> ShowS #

TypedObject Corner Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

glibType :: IO GType #

BoxedEnum Corner Source # 
Instance details

Defined in GI.Gsk.Enums

HasParentTypes Corner Source # 
Instance details

Defined in GI.Gsk.Enums

type ParentTypes Corner Source # 
Instance details

Defined in GI.Gsk.Enums

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

RenderNodeType

data RenderNodeType Source #

The type of a node determines what the node is rendering.

Constructors

RenderNodeTypeNotARenderNode

Error type. No node will ever have this type.

RenderNodeTypeContainerNode

A node containing a stack of children

RenderNodeTypeCairoNode

A node drawing a Surface

RenderNodeTypeColorNode

A node drawing a single color rectangle

RenderNodeTypeLinearGradientNode

A node drawing a linear gradient

RenderNodeTypeRepeatingLinearGradientNode

A node drawing a repeating linear gradient

RenderNodeTypeBorderNode

A node stroking a border around an area

RenderNodeTypeTextureNode

A node drawing a Texture

RenderNodeTypeInsetShadowNode

A node drawing an inset shadow

RenderNodeTypeOutsetShadowNode

A node drawing an outset shadow

RenderNodeTypeTransformNode

A node that renders its child after applying a matrix transform

RenderNodeTypeOpacityNode

A node that changes the opacity of its child

RenderNodeTypeColorMatrixNode

A node that applies a color matrix to every pixel

RenderNodeTypeRepeatNode

A node that repeats the child's contents

RenderNodeTypeClipNode

A node that clips its child to a rectangular area

RenderNodeTypeRoundedClipNode

A node that clips its child to a rounded rectangle

RenderNodeTypeShadowNode

A node that draws a shadow below its child

RenderNodeTypeBlendNode

A node that blends two children together

RenderNodeTypeCrossFadeNode

A node that cross-fades between two children

RenderNodeTypeTextNode

A node containing a glyph string

RenderNodeTypeBlurNode

A node that applies a blur

RenderNodeTypeDebugNode

Debug information that does not affect the rendering

AnotherRenderNodeType Int

Catch-all for unknown values

Instances

Instances details
Enum RenderNodeType Source # 
Instance details

Defined in GI.Gsk.Enums

Eq RenderNodeType Source # 
Instance details

Defined in GI.Gsk.Enums

Ord RenderNodeType Source # 
Instance details

Defined in GI.Gsk.Enums

Show RenderNodeType Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

showsPrec :: Int -> RenderNodeType -> ShowS #

show :: RenderNodeType -> String #

showList :: [RenderNodeType] -> ShowS #

TypedObject RenderNodeType Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

glibType :: IO GType #

BoxedEnum RenderNodeType Source # 
Instance details

Defined in GI.Gsk.Enums

HasParentTypes RenderNodeType Source # 
Instance details

Defined in GI.Gsk.Enums

type ParentTypes RenderNodeType Source # 
Instance details

Defined in GI.Gsk.Enums

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

ScalingFilter

data ScalingFilter Source #

The filters used when scaling texture data.

The actual implementation of each filter is deferred to the rendering pipeline.

Constructors

ScalingFilterLinear

linear interpolation filter

ScalingFilterNearest

nearest neighbor interpolation filter

ScalingFilterTrilinear

linear interpolation along each axis, plus mipmap generation, with linear interpolation along the mipmap levels

AnotherScalingFilter Int

Catch-all for unknown values

Instances

Instances details
Enum ScalingFilter Source # 
Instance details

Defined in GI.Gsk.Enums

Eq ScalingFilter Source # 
Instance details

Defined in GI.Gsk.Enums

Ord ScalingFilter Source # 
Instance details

Defined in GI.Gsk.Enums

Show ScalingFilter Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

showsPrec :: Int -> ScalingFilter -> ShowS #

show :: ScalingFilter -> String #

showList :: [ScalingFilter] -> ShowS #

TypedObject ScalingFilter Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

glibType :: IO GType #

BoxedEnum ScalingFilter Source # 
Instance details

Defined in GI.Gsk.Enums

HasParentTypes ScalingFilter Source # 
Instance details

Defined in GI.Gsk.Enums

type ParentTypes ScalingFilter Source # 
Instance details

Defined in GI.Gsk.Enums

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

SerializationError

data SerializationError Source #

Errors that can happen during (de)serialization.

Constructors

SerializationErrorUnsupportedFormat

The format can not be identified

SerializationErrorUnsupportedVersion

The version of the data is not understood

SerializationErrorInvalidData

The given data may not exist in a proper serialization

AnotherSerializationError Int

Catch-all for unknown values

Instances

Instances details
Enum SerializationError Source # 
Instance details

Defined in GI.Gsk.Enums

Eq SerializationError Source # 
Instance details

Defined in GI.Gsk.Enums

Ord SerializationError Source # 
Instance details

Defined in GI.Gsk.Enums

Show SerializationError Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

showsPrec :: Int -> SerializationError -> ShowS #

show :: SerializationError -> String #

showList :: [SerializationError] -> ShowS #

GErrorClass SerializationError Source # 
Instance details

Defined in GI.Gsk.Enums

TypedObject SerializationError Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

glibType :: IO GType #

BoxedEnum SerializationError Source # 
Instance details

Defined in GI.Gsk.Enums

HasParentTypes SerializationError Source # 
Instance details

Defined in GI.Gsk.Enums

type ParentTypes SerializationError Source # 
Instance details

Defined in GI.Gsk.Enums

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

catchSerializationError :: IO a -> (SerializationError -> GErrorMessage -> IO a) -> IO a Source #

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

handleSerializationError :: (SerializationError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

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

TransformCategory

data TransformCategory Source #

The categories of matrices relevant for GSK and GTK. Note that any category includes matrices of all later categories. So if you want to for example check if a matrix is a 2D matrix, category >= GSK_TRANSFORM_CATEGORY_2D is the way to do this.

Also keep in mind that rounding errors may cause matrices to not conform to their categories. Otherwise, matrix operations done via mutliplication will not worsen categories. So for the matrix multiplication C = A * B, category(C) = MIN (category(A), category(B)).

Constructors

TransformCategoryUnknown

The category of the matrix has not been determined.

TransformCategoryAny

Analyzing the matrix concluded that it does not fit in any other category.

TransformCategory3d

The matrix is a 3D matrix. This means that the w column (the last column) has the values (0, 0, 0, 1).

TransformCategory2d

The matrix is a 2D matrix. This is equivalent to matrixIs2d returning True. In particular, this means that Cairo can deal with the matrix.

TransformCategory2dAffine

The matrix is a combination of 2D scale and 2D translation operations. In particular, this means that any rectangle can be transformed exactly using this matrix.

TransformCategory2dTranslate

The matrix is a 2D translation.

TransformCategoryIdentity

The matrix is the identity matrix.

AnotherTransformCategory Int

Catch-all for unknown values

Instances

Instances details
Enum TransformCategory Source # 
Instance details

Defined in GI.Gsk.Enums

Eq TransformCategory Source # 
Instance details

Defined in GI.Gsk.Enums

Ord TransformCategory Source # 
Instance details

Defined in GI.Gsk.Enums

Show TransformCategory Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

showsPrec :: Int -> TransformCategory -> ShowS #

show :: TransformCategory -> String #

showList :: [TransformCategory] -> ShowS #

TypedObject TransformCategory Source # 
Instance details

Defined in GI.Gsk.Enums

Methods

glibType :: IO GType #

BoxedEnum TransformCategory Source # 
Instance details

Defined in GI.Gsk.Enums

HasParentTypes TransformCategory Source # 
Instance details

Defined in GI.Gsk.Enums

type ParentTypes TransformCategory Source # 
Instance details

Defined in GI.Gsk.Enums

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