HGamer3D-CEGUI-Binding-0.1.9: Windows Game Engine for the Haskell Programmer - CEGUI Bindings

Safe HaskellNone

HGamer3D.Bindings.CEGUI.ClassImageset

Synopsis

Documentation

newSource

Arguments

:: String

name - String object holding the name to be assigned to the created imageset.

-> String

filename - String object holding the filename of the image that is to be loaded. The image should be of some format that is supported by the Renderer that is in use.

-> String

resourceGroup - Resource group identifier to be passed to the resource manager, which may specify a group from which the image file is to be loaded.

-> IO HG3DClass 

Construct a new Imageset - Details: Under certain renderers it may be required that the source image dimensions be some power of 2, if this condition is not met then stretching and other undesired side-effects may be experienced. To be safe from such effects it is generally recommended that all images that you load have dimensions that are some power of 2.

deleteSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance which is going to be deleted.

-> IO () 

return String object holding the name of the Imageset

Destroys Imageset

getNameSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO String

return value - String object that holds the name of the

getImageCountSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Int

return value - uint value equal to the number of Image objects defined for the

return number of images defined for this Imageset

isImageDefinedSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> String

name - String object holding the name of the Image to look for.

-> IO Bool

return value - true if an Image object named

return true if an Image with the specified name exists.

undefineImageSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> String

name - String object holding the name of the Image object to be removed from the Imageset,

-> IO ()

return value - Nothing.

Removes the definitions for all Image objects currently defined in the Imageset

remove the definition for the Image with the specified name. If no such Image exists, nothing happens.

undefineAllImagesSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO ()

return value - Nothing

return the width of the named image.

getImageWidthSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> String

name - String object holding the name of the Image.

-> IO Float

return value - float value equalling the width of the requested Image.

getImageHeightSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> String

name - String object holding the name of the Image.

-> IO Float

return value - float value equalling the height of the requested Image.

return the height of the named image.

getImageOffsetXSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> String

name - String object holding the name of the Image.

-> IO Float

return value - float value equal to the x rendering offset applied when drawing the requested Image.

return the x rendering offset for the named image.

getImageOffsetYSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> String

name - String object holding the name of the Image.

-> IO Float

return value - float value equal to the y rendering offset applied when drawing the requested Image.

return the y rendering offset for the named image.

isAutoScaledSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> IO Bool

return value - true if

Return whether this Imageset

setAutoScalingEnabledSource

Arguments

:: HG3DClass

classpointer - pointer of Class instance from which this methods is called.

-> Bool

setting - true to enable auto-scaling, false to disable auto-scaling.

-> IO ()

return value - Nothing.

Sets the default resource group to be used when loading imageset data.

Enable or disable auto-scaling for this Imageset

setDefaultResourceGroupSource

Arguments

:: String

resourceGroup - String describing the default resource group identifier to be used.

-> IO ()

return value - Nothing.

Returns the default resource group currently set for Imagesets.

getDefaultResourceGroupSource

Arguments

:: IO String

return value - String describing the default resource group identifier that will be used when loading