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.Structs.Perspective

Description

Stage perspective definition. Perspective is only used by the fixed point version of stageSetPerspective.

Since: 0.4

Synopsis

Exported types

newZeroPerspective :: MonadIO m => m Perspective Source #

Construct a Perspective struct initialized to zero.

Methods

Properties

aspect

the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height)

getPerspectiveAspect :: MonadIO m => Perspective -> m Float Source #

Get the value of the “aspect” field. When overloading is enabled, this is equivalent to

get perspective #aspect

setPerspectiveAspect :: MonadIO m => Perspective -> Float -> m () Source #

Set the value of the “aspect” field. When overloading is enabled, this is equivalent to

set perspective [ #aspect := value ]

fovy

the field of view angle, in degrees, in the y direction

getPerspectiveFovy :: MonadIO m => Perspective -> m Float Source #

Get the value of the “fovy” field. When overloading is enabled, this is equivalent to

get perspective #fovy

setPerspectiveFovy :: MonadIO m => Perspective -> Float -> m () Source #

Set the value of the “fovy” field. When overloading is enabled, this is equivalent to

set perspective [ #fovy := value ]

zFar

the distance from the viewer to the far clipping plane (always positive)

getPerspectiveZFar :: MonadIO m => Perspective -> m Float Source #

Get the value of the “z_far” field. When overloading is enabled, this is equivalent to

get perspective #zFar

setPerspectiveZFar :: MonadIO m => Perspective -> Float -> m () Source #

Set the value of the “z_far” field. When overloading is enabled, this is equivalent to

set perspective [ #zFar := value ]

zNear

the distance from the viewer to the near clipping plane (always positive)

getPerspectiveZNear :: MonadIO m => Perspective -> m Float Source #

Get the value of the “z_near” field. When overloading is enabled, this is equivalent to

get perspective #zNear

setPerspectiveZNear :: MonadIO m => Perspective -> Float -> m () Source #

Set the value of the “z_near” field. When overloading is enabled, this is equivalent to

set perspective [ #zNear := value ]