gi-clutter-1.0.2: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Objects.TextureNode

Description

The TextNode structure is an opaque type whose members cannot be directly accessed.

Since: 1.10

Synopsis

Exported types

class (BoxedPtr o, TypedObject o, IsDescendantOf TextureNode o) => IsTextureNode o Source #

Type class for types which can be safely cast to TextureNode, for instance with toTextureNode.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf TextureNode o) => IsTextureNode o Source # 
Instance details

Defined in GI.Clutter.Objects.TextureNode

toTextureNode :: (MonadIO m, IsTextureNode o) => o -> m TextureNode Source #

Cast to TextureNode, for types for which this is known to be safe. For general casts, use castTo.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

addChild, addRectangle, addTextureRectangle, ref, unref.

Getters

None.

Setters

setName.

new

textureNodeNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsTexture a) 
=> a

texture: a CoglTexture

-> Maybe Color

color: a Color used for blending, or Nothing

-> ScalingFilter

minFilter: the minification filter for the texture

-> ScalingFilter

magFilter: the magnification filter for the texture

-> m PaintNode

Returns: the newly created PaintNode. Use paintNodeUnref when done

Creates a new PaintNode that will paint the passed texture.

This function will take a reference on texture, so it is safe to call cogl_object_unref() on texture when it returns.

The color must not be pre-multiplied with its Color.alpha channel value; if color is Nothing, a fully opaque white color will be used for blending.

Since: 1.10