gi-clutter-1.0.5: 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

newtype Perspective Source #

Memory-managed wrapper type.

Constructors

Perspective (ManagedPtr Perspective) 

Instances

Instances details
Eq Perspective Source # 
Instance details

Defined in GI.Clutter.Structs.Perspective

GBoxed Perspective Source # 
Instance details

Defined in GI.Clutter.Structs.Perspective

ManagedPtrNewtype Perspective Source # 
Instance details

Defined in GI.Clutter.Structs.Perspective

Methods

toManagedPtr :: Perspective -> ManagedPtr Perspective

TypedObject Perspective Source # 
Instance details

Defined in GI.Clutter.Structs.Perspective

Methods

glibType :: IO GType

HasParentTypes Perspective Source # 
Instance details

Defined in GI.Clutter.Structs.Perspective

tag ~ 'AttrSet => Constructible Perspective tag Source # 
Instance details

Defined in GI.Clutter.Structs.Perspective

Methods

new :: MonadIO m => (ManagedPtr Perspective -> Perspective) -> [AttrOp Perspective tag] -> m Perspective

IsGValue (Maybe Perspective) Source #

Convert Perspective to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Clutter.Structs.Perspective

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Perspective -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Perspective)

type ParentTypes Perspective Source # 
Instance details

Defined in GI.Clutter.Structs.Perspective

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

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 ]