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.Stage

Description

The Stage structure contains only private data and should be accessed using the provided API

Since: 0.2

Synopsis

Exported types

newtype Stage Source #

Memory-managed wrapper type.

Constructors

Stage (ManagedPtr Stage) 

Instances

Instances details
Eq Stage Source # 
Instance details

Defined in GI.Clutter.Objects.Stage

Methods

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

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

GObject Stage Source # 
Instance details

Defined in GI.Clutter.Objects.Stage

ManagedPtrNewtype Stage Source # 
Instance details

Defined in GI.Clutter.Objects.Stage

TypedObject Stage Source # 
Instance details

Defined in GI.Clutter.Objects.Stage

Methods

glibType :: IO GType #

HasParentTypes Stage Source # 
Instance details

Defined in GI.Clutter.Objects.Stage

IsGValue (Maybe Stage) Source #

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

Instance details

Defined in GI.Clutter.Objects.Stage

type ParentTypes Stage Source # 
Instance details

Defined in GI.Clutter.Objects.Stage

class (GObject o, IsDescendantOf Stage o) => IsStage o Source #

Type class for types which can be safely cast to Stage, for instance with toStage.

Instances

Instances details
(GObject o, IsDescendantOf Stage o) => IsStage o Source # 
Instance details

Defined in GI.Clutter.Objects.Stage

toStage :: (MonadIO m, IsStage o) => o -> m Stage Source #

Cast to Stage, 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

addAction, addActionWithName, addActor, addChild, addConstraint, addConstraintWithName, addEffect, addEffectWithName, addTransition, allocate, allocateAlignFill, allocateAvailableSize, allocatePreferredSize, animateProperty, animateWithAlphav, animateWithTimelinev, animatev, applyRelativeTransformToPoint, applyTransformToPoint, bindModel, bindProperty, bindPropertyFull, childGetProperty, childNotify, childSetProperty, clearActions, clearConstraints, clearEffects, contains, continuePaint, createChildMeta, createPangoContext, createPangoLayout, destroy, destroyAllChildren, destroyChildMeta, detachAnimation, ensureCurrent, ensureRedraw, ensureViewport, event, findChildByName, findProperty, forceFloating, foreach, foreachWithInternals, freezeNotify, getv, grabKeyFocus, hasActions, hasAllocation, hasClip, hasConstraints, hasEffects, hasKeyFocus, hasOverlaps, hasPointer, hide, hideAll, hideCursor, insertChildAbove, insertChildAtIndex, insertChildBelow, interpolateValue, isDefault, isFloating, isInClonePaint, isMapped, isRealized, isRotated, isScaled, isVisible, lower, lowerBottom, lowerChild, map, moveAnchorPoint, moveAnchorPointFromGravity, moveBy, needsExpand, notify, notifyByPspec, paint, parseCustomNode, popInternal, pushInternal, queueRedraw, queueRedrawWithClip, queueRelayout, raise, raiseChild, raiseTop, readPixels, realize, ref, refSink, removeAction, removeActionByName, removeActor, removeAll, removeAllChildren, removeAllTransitions, removeChild, removeClip, removeConstraint, removeConstraintByName, removeEffect, removeEffectByName, removeTransition, reparent, replaceChild, restoreEasingState, runDispose, saveEasingState, shouldPickPaint, show, showAll, showCursor, sortDepthOrder, stealData, stealQdata, thawNotify, transformStagePoint, unmap, unparent, unrealize, unref, unsetFlags, watchClosure.

Getters

getAbsAllocationVertices, getAcceptFocus, getAccessible, getAction, getActions, getActorAtPos, getAllocationBox, getAllocationGeometry, getAllocationVertices, getAnchorPoint, getAnchorPointGravity, getAnimation, getBackgroundColor, getChildAtIndex, getChildMeta, getChildTransform, getChildren, getClip, getClipToAllocation, getColor, getConstraint, getConstraints, getContent, getContentBox, getContentGravity, getContentRepeat, getContentScalingFilters, getData, getDefaultPaintVolume, getDepth, getEasingDelay, getEasingDuration, getEasingMode, getEffect, getEffects, getFirstChild, getFixedPositionSet, getFlags, getFog, getFullscreen, getGeometry, getGid, getHeight, getId, getInitialState, getKeyFocus, getLastChild, getLayoutManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMinimumSize, getMotionEventsEnabled, getNChildren, getName, getNextSibling, getNoClearHint, getNthChild, getOffscreenRedirect, getOpacity, getPaintBox, getPaintOpacity, getPaintVisibility, getPaintVolume, getPangoContext, getParent, getPerspective, getPivotPoint, getPivotPointZ, getPosition, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreviousSibling, getProperty, getQdata, getReactive, getRedrawClipBounds, getRequestMode, getRotation, getRotationAngle, getScale, getScaleCenter, getScaleGravity, getScaleZ, getShader, getSize, getStage, getTextDirection, getThrottleMotionEvents, getTitle, getTransform, getTransformationMatrix, getTransformedPaintVolume, getTransformedPosition, getTransformedSize, getTransition, getTranslation, getUseAlpha, getUseFog, getUserResizable, getWidth, getX, getXAlign, getXExpand, getY, getYAlign, getYExpand, getZPosition, getZRotationGravity.

Setters

setAcceptFocus, setAllocation, setAnchorPoint, setAnchorPointFromGravity, setBackgroundColor, setChildAboveSibling, setChildAtIndex, setChildBelowSibling, setChildTransform, setClip, setClipToAllocation, setColor, setContent, setContentGravity, setContentRepeat, setContentScalingFilters, setCustomProperty, setData, setDataFull, setDepth, setEasingDelay, setEasingDuration, setEasingMode, setFinalState, setFixedPositionSet, setFlags, setFog, setFullscreen, setGeometry, setHeight, setId, setKeyFocus, setLayoutManager, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMinimumSize, setMotionEventsEnabled, setName, setNoClearHint, setOffscreenRedirect, setOpacity, setParent, setPerspective, setPivotPoint, setPivotPointZ, setPosition, setProperty, setReactive, setRequestMode, setRotation, setRotationAngle, setScale, setScaleFull, setScaleWithGravity, setScaleZ, setShader, setShaderParam, setShaderParamFloat, setShaderParamInt, setSize, setTextDirection, setThrottleMotionEvents, setTitle, setTransform, setTranslation, setUseAlpha, setUseFog, setUserResizable, setWidth, setX, setXAlign, setXExpand, setY, setYAlign, setYExpand, setZPosition, setZRotationFromGravity.

ensureCurrent

stageEnsureCurrent Source #

Arguments

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

stage: the Stage

-> m () 

This function essentially makes sure the right GL context is current for the passed stage. It is not intended to be used by applications.

Since: 0.8

ensureRedraw

stageEnsureRedraw Source #

Arguments

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

stage: a Stage

-> m () 

Ensures that stage is redrawn

This function should not be called by applications: it is used when embedding a Stage into a toolkit with another windowing system, like GTK+.

Since: 1.0

ensureViewport

stageEnsureViewport Source #

Arguments

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

stage: a Stage

-> m () 

Ensures that the GL viewport is updated with the current stage window size.

This function will queue a redraw of stage.

This function should not be called by applications; it is used when embedding a Stage into a toolkit with another windowing system, like GTK+.

Since: 1.0

event

stageEvent Source #

Arguments

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

stage: a Stage

-> Event

event: a Event

-> m Bool

Returns: the return value from the signal emission

This function is used to emit an event on the main stage.

You should rarely need to use this function, except for synthetised events.

Since: 0.4

getAcceptFocus

stageGetAcceptFocus Source #

Arguments

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

stage: a Stage

-> m Bool

Returns: True if the Stage should accept focus, and False otherwise

Retrieves the value set with stageSetAcceptFocus.

Since: 1.6

getActorAtPos

stageGetActorAtPos Source #

Arguments

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

stage: a Stage

-> PickMode

pickMode: how the scene graph should be painted

-> Int32

x: X coordinate to check

-> Int32

y: Y coordinate to check

-> m Actor

Returns: the actor at the specified coordinates, if any

Checks the scene at the coordinates x and y and returns a pointer to the Actor at those coordinates.

By using pickMode it is possible to control which actors will be painted and thus available.

getColor

stageGetColor Source #

Arguments

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

stage: A Stage

-> m Color 

Deprecated: (Since version 1.10)Use actorGetBackgroundColor instead.

Retrieves the stage color.

getDefault

stageGetDefault Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Stage

Returns: the main Stage. You should never destroy or unref the returned actor.

Deprecated: (Since version 1.10)Use stageNew instead.

Retrieves a Stage singleton.

This function is not as useful as it sounds, and will most likely by deprecated in the future. Application code should only create a Stage instance using stageNew, and manage the lifetime of the stage manually.

The default stage singleton has a platform-specific behaviour: on platforms without the FeatureFlagsStageMultiple feature flag set, the first Stage instance will also be set to be the default stage instance, and this function will always return a pointer to it.

On platforms with the FeatureFlagsStageMultiple feature flag set, the default stage will be created by the first call to this function, and every following call will return the same pointer to it.

getFog

stageGetFog Source #

Arguments

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

stage: the Stage

-> m Fog 

Deprecated: (Since version 1.10)This function will always return the default values of Fog

Retrieves the current depth cueing settings from the stage.

Since: 0.6

getFullscreen

stageGetFullscreen Source #

Arguments

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

stage: a Stage

-> m Bool

Returns: True if the stage is full screen

Retrieves whether the stage is full screen or not

Since: 1.0

getKeyFocus

stageGetKeyFocus Source #

Arguments

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

stage: the Stage

-> m Actor

Returns: the actor with key focus, or the stage

Retrieves the actor that is currently under key focus.

Since: 0.6

getMinimumSize

stageGetMinimumSize Source #

Arguments

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

stage: a Stage

-> m (Word32, Word32) 

Retrieves the minimum size for a stage window as set using stageSetMinimumSize.

The returned size may not correspond to the actual minimum size and it is specific to the Stage implementation inside the Clutter backend

Since: 1.2

getMotionEventsEnabled

stageGetMotionEventsEnabled Source #

Arguments

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

stage: a Stage

-> m Bool

Returns: True if the per-actor motion event delivery is enabled and False otherwise

Retrieves the value set using stageSetMotionEventsEnabled.

Since: 1.8

getNoClearHint

stageGetNoClearHint Source #

Arguments

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

stage: a Stage

-> m Bool

Returns: True if the stage should not clear itself on every paint cycle, and False otherwise

Retrieves the hint set with stageSetNoClearHint

Since: 1.4

getPerspective

stageGetPerspective Source #

Arguments

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

stage: A Stage

-> m Perspective 

Retrieves the stage perspective.

getRedrawClipBounds

stageGetRedrawClipBounds Source #

Arguments

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

stage: A Stage

-> m RectangleInt 

Gets the bounds of the current redraw for stage in stage pixel coordinates. E.g., if only a single actor has queued a redraw then Clutter may redraw the stage with a clip so that it doesn't have to paint every pixel in the stage. This function would then return the bounds of that clip. An application can use this information to avoid some extra work if it knows that some regions of the stage aren't going to be painted. This should only be called while the stage is being painted. If there is no current redraw clip then this function will set clip to the full extents of the stage.

Since: 1.8

getThrottleMotionEvents

stageGetThrottleMotionEvents Source #

Arguments

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

stage: a Stage

-> m Bool

Returns: True if the motion events are being throttled, and False otherwise

Retrieves the value set with stageSetThrottleMotionEvents

Since: 1.0

getTitle

stageGetTitle Source #

Arguments

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

stage: A Stage

-> m Text

Returns: pointer to the title string for the stage. The returned string is owned by the actor and should not be modified or freed.

Gets the stage title.

Since: 0.4

getUseAlpha

stageGetUseAlpha Source #

Arguments

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

stage: a Stage

-> m Bool

Returns: True if the stage should honour the opacity and the alpha channel of the stage color

Retrieves the value set using stageSetUseAlpha

Since: 1.2

getUseFog

stageGetUseFog Source #

Arguments

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

stage: the Stage

-> m Bool

Returns: True if the depth cueing effect is enabled

Deprecated: (Since version 1.10)This function will always return False

Gets whether the depth cueing effect is enabled on stage.

Since: 0.6

getUserResizable

stageGetUserResizable Source #

Arguments

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

stage: a Stage

-> m Bool

Returns: True if the stage is resizable by the user.

Retrieves the value set with stageSetUserResizable.

Since: 0.4

hideCursor

stageHideCursor Source #

Arguments

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

stage: a Stage

-> m () 

Makes the cursor invisible on the stage window

Since: 0.4

isDefault

stageIsDefault Source #

Arguments

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

stage: a Stage

-> m Bool

Returns: True if the passed stage is the default one

Deprecated: (Since version 1.10)Track the stage pointer inside your application code, or use actorGetStage to retrieve the stage for a given actor.

Checks if stage is the default stage, or an instance created using stageNew but internally using the same implementation.

Since: 0.8

new

stageNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Stage

Returns: a new stage, or Nothing if the default backend does not support multiple stages. Use actorDestroy to programmatically close the returned stage.

Creates a new, non-default stage. A non-default stage is a new top-level actor which can be used as another container. It works exactly like the default stage, but while stageGetDefault will always return the same instance, you will have to keep a pointer to any Stage returned by stageNew.

The ability to support multiple stages depends on the current backend. Use featureAvailable and FeatureFlagsStageMultiple to check at runtime whether a backend supports multiple stages.

Since: 0.8

queueRedraw

stageQueueRedraw Source #

Arguments

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

stage: the Stage

-> m () 

Deprecated: (Since version 1.10)Use actorQueueRedraw instead.

Queues a redraw for the passed stage.

Applications should call actorQueueRedraw and not this function.

Since: 0.8

setAcceptFocus

stageSetAcceptFocus Source #

Arguments

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

stage: a Stage

-> Bool

acceptFocus: True to accept focus on show

-> m () 

Sets whether the stage should accept the key focus when shown.

This function should be called before showing stage using actorShow.

Since: 1.6

setColor

stageSetColor Source #

Arguments

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

stage: A Stage

-> Color

color: A Color

-> m () 

Deprecated: (Since version 1.10)Use actorSetBackgroundColor instead.

Sets the stage color.

setFog

stageSetFog Source #

Arguments

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

stage: the Stage

-> Fog

fog: a Fog structure

-> m () 

Deprecated: (Since version 1.10)Fog settings are ignored.

Sets the fog (also known as "depth cueing") settings for the stage.

A Stage will only use a linear fog progression, which depends solely on the distance from the viewer. The setFog function in COGL exposes more of the underlying implementation, and allows changing the for progression function. It can be directly used by disabling the Stage:use-fog property and connecting a signal handler to the paint signal on the stage, like:

 clutter_stage_set_use_fog (stage, FALSE);
 g_signal_connect (stage, "paint", G_CALLBACK (on_stage_paint), NULL);

The paint signal handler will call setFog with the desired settings:

 static void
 on_stage_paint (ClutterActor *actor)
 {
   ClutterColor stage_color = { 0, };
   CoglColor fog_color = { 0, };

   // set the fog color to the stage background color
   clutter_stage_get_color (CLUTTER_STAGE (actor), &stage_color);
   cogl_color_init_from_4ub (&fog_color,
                             stage_color.red,
                             stage_color.green,
                             stage_color.blue,
                             stage_color.alpha);

   // enable fog //
   cogl_set_fog (&fog_color,
                 COGL_FOG_MODE_EXPONENTIAL, // mode
                 0.5,                       // density
                 5.0, 30.0);                // z_near and z_far
 }

The fogging functions only work correctly when the visible actors use unmultiplied alpha colors. By default Cogl will premultiply textures and setSourceColor will premultiply colors, so unless you explicitly load your textures requesting an unmultiplied internal format and use materialSetColor you can only use fogging with fully opaque actors. Support for premultiplied colors will improve in the future when we can depend on fragment shaders.

Since: 0.6

setFullscreen

stageSetFullscreen Source #

Arguments

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

stage: a Stage

-> Bool

fullscreen: True to to set the stage fullscreen

-> m () 

Asks to place the stage window in the fullscreen or unfullscreen states.

( Note that you shouldn't assume the window is definitely full screen afterward, because other entities (e.g. the user or window manager) could unfullscreen it again, and not all window managers honor requests to fullscreen windows.

If you want to receive notification of the fullscreen state you should either use the fullscreen and unfullscreen signals, or use the notify signal for the Stage:fullscreen-set property

Since: 1.0

setKeyFocus

stageSetKeyFocus Source #

Arguments

:: (HasCallStack, MonadIO m, IsStage a, IsActor b) 
=> a

stage: the Stage

-> Maybe b

actor: the actor to set key focus to, or Nothing

-> m () 

Sets the key focus on actor. An actor with key focus will receive all the key events. If actor is Nothing, the stage will receive focus.

Since: 0.6

setMinimumSize

stageSetMinimumSize Source #

Arguments

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

stage: a Stage

-> Word32

width: width, in pixels

-> Word32

height: height, in pixels

-> m () 

Sets the minimum size for a stage window, if the default backend uses Stage inside a window

This is a convenience function, and it is equivalent to setting the Actor:min-width and Actor:min-height on stage

If the current size of stage is smaller than the minimum size, the stage will be resized to the new width and height

This function has no effect if stage is fullscreen

Since: 1.2

setMotionEventsEnabled

stageSetMotionEventsEnabled Source #

Arguments

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

stage: a Stage

-> Bool

enabled: True to enable the motion events delivery, and False otherwise

-> m () 

Sets whether per-actor motion events (and relative crossing events) should be disabled or not.

The default is True.

If enable is False the following signals will not be emitted by the actors children of stage:

The events will still be delivered to the Stage.

The main side effect of this function is that disabling the motion events will disable picking to detect the Actor underneath the pointer for each motion event. This is useful, for instance, when dragging a Actor across the stage: the actor underneath the pointer is not going to change, so it's meaningless to perform a pick.

Since: 1.8

setNoClearHint

stageSetNoClearHint Source #

Arguments

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

stage: a Stage

-> Bool

noClear: True if the stage should not clear itself on every repaint cycle

-> m () 

Sets whether the stage should clear itself at the beginning of each paint cycle or not.

Clearing the Stage can be a costly operation, especially if the stage is always covered - for instance, in a full-screen video player or in a game with a background texture.

This setting is a hint; Clutter might discard this hint depending on its internal state.

If parts of the stage are visible and you disable clearing you might end up with visual artifacts while painting the contents of the stage.

Since: 1.4

setPerspective

stageSetPerspective Source #

Arguments

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

stage: A Stage

-> Perspective

perspective: A Perspective

-> m () 

Sets the stage perspective. Using this function is not recommended because it will disable Clutter's attempts to generate an appropriate perspective based on the size of the stage.

setThrottleMotionEvents

stageSetThrottleMotionEvents Source #

Arguments

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

stage: a Stage

-> Bool

throttle: True to throttle motion events

-> m () 

Sets whether motion events received between redraws should be throttled or not. If motion events are throttled, those events received by the windowing system between redraws will be compressed so that only the last event will be propagated to the stage and its actors.

This function should only be used if you want to have all the motion events delivered to your application code.

Since: 1.0

setTitle

stageSetTitle Source #

Arguments

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

stage: A Stage

-> Text

title: A utf8 string for the stage windows title.

-> m () 

Sets the stage title.

Since: 0.4

setUseAlpha

stageSetUseAlpha Source #

Arguments

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

stage: a Stage

-> Bool

useAlpha: whether the stage should honour the opacity or the alpha channel of the stage color

-> m () 

Sets whether the stage should honour the Actor:opacity and the alpha channel of the Stage:color

Since: 1.2

setUseFog

stageSetUseFog Source #

Arguments

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

stage: the Stage

-> Bool

fog: True for enabling the depth cueing effect

-> m () 

Deprecated: (Since version 1.10)Calling this function produces no visible effect

Sets whether the depth cueing effect on the stage should be enabled or not.

Depth cueing is a 3D effect that makes actors farther away from the viewing point less opaque, by fading them with the stage color.

The parameters of the GL fog used can be changed using the stageSetFog function.

Since: 0.6

setUserResizable

stageSetUserResizable Source #

Arguments

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

stage: a Stage

-> Bool

resizable: whether the stage should be user resizable.

-> m () 

Sets if the stage is resizable by user interaction (e.g. via window manager controls)

Since: 0.4

showCursor

stageShowCursor Source #

Arguments

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

stage: a Stage

-> m () 

Shows the cursor on the stage window

Properties

acceptFocus

Whether the Stage should accept key focus when shown.

Since: 1.6

constructStageAcceptFocus :: (IsStage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “accept-focus” property. This is rarely needed directly, but it is used by new.

getStageAcceptFocus :: (MonadIO m, IsStage o) => o -> m Bool Source #

Get the value of the “accept-focus” property. When overloading is enabled, this is equivalent to

get stage #acceptFocus

setStageAcceptFocus :: (MonadIO m, IsStage o) => o -> Bool -> m () Source #

Set the value of the “accept-focus” property. When overloading is enabled, this is equivalent to

set stage [ #acceptFocus := value ]

color

The background color of the main stage.

constructStageColor :: (IsStage o, MonadIO m) => Color -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “color” property. This is rarely needed directly, but it is used by new.

getStageColor :: (MonadIO m, IsStage o) => o -> m (Maybe Color) Source #

Get the value of the “color” property. When overloading is enabled, this is equivalent to

get stage #color

setStageColor :: (MonadIO m, IsStage o) => o -> Color -> m () Source #

Set the value of the “color” property. When overloading is enabled, this is equivalent to

set stage [ #color := value ]

cursorVisible

Whether the mouse pointer should be visible

constructStageCursorVisible :: (IsStage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “cursor-visible” property. This is rarely needed directly, but it is used by new.

getStageCursorVisible :: (MonadIO m, IsStage o) => o -> m Bool Source #

Get the value of the “cursor-visible” property. When overloading is enabled, this is equivalent to

get stage #cursorVisible

setStageCursorVisible :: (MonadIO m, IsStage o) => o -> Bool -> m () Source #

Set the value of the “cursor-visible” property. When overloading is enabled, this is equivalent to

set stage [ #cursorVisible := value ]

fog

The settings for the GL "fog", used only if Stage:use-fog is set to True

Since: 1.0

constructStageFog :: (IsStage o, MonadIO m) => Fog -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “fog” property. This is rarely needed directly, but it is used by new.

getStageFog :: (MonadIO m, IsStage o) => o -> m (Maybe Fog) Source #

Get the value of the “fog” property. When overloading is enabled, this is equivalent to

get stage #fog

setStageFog :: (MonadIO m, IsStage o) => o -> Fog -> m () Source #

Set the value of the “fog” property. When overloading is enabled, this is equivalent to

set stage [ #fog := value ]

fullscreenSet

No description available in the introspection data.

getStageFullscreenSet :: (MonadIO m, IsStage o) => o -> m Bool Source #

Get the value of the “fullscreen-set” property. When overloading is enabled, this is equivalent to

get stage #fullscreenSet

keyFocus

The Actor that will receive key events from the underlying windowing system.

If Nothing, the Stage will receive the events.

Since: 1.2

clearStageKeyFocus :: (MonadIO m, IsStage o) => o -> m () Source #

Set the value of the “key-focus” property to Nothing. When overloading is enabled, this is equivalent to

clear #keyFocus

constructStageKeyFocus :: (IsStage o, MonadIO m, IsActor a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “key-focus” property. This is rarely needed directly, but it is used by new.

getStageKeyFocus :: (MonadIO m, IsStage o) => o -> m Actor Source #

Get the value of the “key-focus” property. When overloading is enabled, this is equivalent to

get stage #keyFocus

setStageKeyFocus :: (MonadIO m, IsStage o, IsActor a) => o -> a -> m () Source #

Set the value of the “key-focus” property. When overloading is enabled, this is equivalent to

set stage [ #keyFocus := value ]

noClearHint

Whether or not the Stage should clear its contents before each paint cycle.

See stageSetNoClearHint for further information.

Since: 1.4

constructStageNoClearHint :: (IsStage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “no-clear-hint” property. This is rarely needed directly, but it is used by new.

getStageNoClearHint :: (MonadIO m, IsStage o) => o -> m Bool Source #

Get the value of the “no-clear-hint” property. When overloading is enabled, this is equivalent to

get stage #noClearHint

setStageNoClearHint :: (MonadIO m, IsStage o) => o -> Bool -> m () Source #

Set the value of the “no-clear-hint” property. When overloading is enabled, this is equivalent to

set stage [ #noClearHint := value ]

offscreen

Whether the stage should be rendered in an offscreen buffer.

constructStageOffscreen :: (IsStage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “offscreen” property. This is rarely needed directly, but it is used by new.

getStageOffscreen :: (MonadIO m, IsStage o) => o -> m Bool Source #

Get the value of the “offscreen” property. When overloading is enabled, this is equivalent to

get stage #offscreen

setStageOffscreen :: (MonadIO m, IsStage o) => o -> Bool -> m () Source #

Set the value of the “offscreen” property. When overloading is enabled, this is equivalent to

set stage [ #offscreen := value ]

perspective

The parameters used for the perspective projection from 3D coordinates to 2D

Since: 0.8

constructStagePerspective :: (IsStage o, MonadIO m) => Perspective -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “perspective” property. This is rarely needed directly, but it is used by new.

getStagePerspective :: (MonadIO m, IsStage o) => o -> m (Maybe Perspective) Source #

Get the value of the “perspective” property. When overloading is enabled, this is equivalent to

get stage #perspective

setStagePerspective :: (MonadIO m, IsStage o) => o -> Perspective -> m () Source #

Set the value of the “perspective” property. When overloading is enabled, this is equivalent to

set stage [ #perspective := value ]

title

The stage's title - usually displayed in stage windows title decorations.

Since: 0.4

constructStageTitle :: (IsStage o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “title” property. This is rarely needed directly, but it is used by new.

getStageTitle :: (MonadIO m, IsStage o) => o -> m Text Source #

Get the value of the “title” property. When overloading is enabled, this is equivalent to

get stage #title

setStageTitle :: (MonadIO m, IsStage o) => o -> Text -> m () Source #

Set the value of the “title” property. When overloading is enabled, this is equivalent to

set stage [ #title := value ]

useAlpha

Whether the Stage should honour the alpha component of the Stage:color property when painting. If Clutter is run under a compositing manager this will result in the stage being blended with the underlying window(s)

Since: 1.2

constructStageUseAlpha :: (IsStage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “use-alpha” property. This is rarely needed directly, but it is used by new.

getStageUseAlpha :: (MonadIO m, IsStage o) => o -> m Bool Source #

Get the value of the “use-alpha” property. When overloading is enabled, this is equivalent to

get stage #useAlpha

setStageUseAlpha :: (MonadIO m, IsStage o) => o -> Bool -> m () Source #

Set the value of the “use-alpha” property. When overloading is enabled, this is equivalent to

set stage [ #useAlpha := value ]

useFog

Whether the stage should use a linear GL "fog" in creating the depth-cueing effect, to enhance the perception of depth by fading actors farther from the viewpoint.

Since: 0.6

constructStageUseFog :: (IsStage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “use-fog” property. This is rarely needed directly, but it is used by new.

getStageUseFog :: (MonadIO m, IsStage o) => o -> m Bool Source #

Get the value of the “use-fog” property. When overloading is enabled, this is equivalent to

get stage #useFog

setStageUseFog :: (MonadIO m, IsStage o) => o -> Bool -> m () Source #

Set the value of the “use-fog” property. When overloading is enabled, this is equivalent to

set stage [ #useFog := value ]

userResizable

Whether the stage is resizable via user interaction.

Since: 0.4

constructStageUserResizable :: (IsStage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “user-resizable” property. This is rarely needed directly, but it is used by new.

getStageUserResizable :: (MonadIO m, IsStage o) => o -> m Bool Source #

Get the value of the “user-resizable” property. When overloading is enabled, this is equivalent to

get stage #userResizable

setStageUserResizable :: (MonadIO m, IsStage o) => o -> Bool -> m () Source #

Set the value of the “user-resizable” property. When overloading is enabled, this is equivalent to

set stage [ #userResizable := value ]

Signals

activate

type StageActivateCallback = IO () Source #

The activate signal is emitted when the stage receives key focus from the underlying window system.

Since: 0.6

afterStageActivate :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageActivateCallback) -> m SignalHandlerId Source #

Connect a signal handler for the activate signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after stage #activate callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onStageActivate :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageActivateCallback) -> m SignalHandlerId Source #

Connect a signal handler for the activate signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on stage #activate callback

afterPaint

type StageAfterPaintCallback = IO () Source #

The afterPaint signal is emitted after the stage is painted, but before the results are displayed on the screen.

Since: 1.20

afterStageAfterPaint :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageAfterPaintCallback) -> m SignalHandlerId Source #

Connect a signal handler for the afterPaint signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after stage #afterPaint callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onStageAfterPaint :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageAfterPaintCallback) -> m SignalHandlerId Source #

Connect a signal handler for the afterPaint signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on stage #afterPaint callback

deactivate

type StageDeactivateCallback = IO () Source #

The deactivate signal is emitted when the stage loses key focus from the underlying window system.

Since: 0.6

afterStageDeactivate :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageDeactivateCallback) -> m SignalHandlerId Source #

Connect a signal handler for the deactivate signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after stage #deactivate callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onStageDeactivate :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageDeactivateCallback) -> m SignalHandlerId Source #

Connect a signal handler for the deactivate signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on stage #deactivate callback

deleteEvent

type StageDeleteEventCallback Source #

Arguments

 = Event

event: a Event of type EventTypeDelete

-> IO Bool 

The deleteEvent signal is emitted when the user closes a Stage window using the window controls.

Clutter by default will call mainQuit if stage is the default stage, and actorDestroy for any other stage.

It is possible to override the default behaviour by connecting a new handler and returning True there.

This signal is emitted only on Clutter backends that embed Stage in native windows. It is not emitted for backends that use a static frame buffer.

Since: 1.2

afterStageDeleteEvent :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageDeleteEventCallback) -> m SignalHandlerId Source #

Connect a signal handler for the deleteEvent signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after stage #deleteEvent callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onStageDeleteEvent :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageDeleteEventCallback) -> m SignalHandlerId Source #

Connect a signal handler for the deleteEvent signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on stage #deleteEvent callback

fullscreen

type StageFullscreenCallback = IO () Source #

The fullscreen signal is emitted when the stage is made fullscreen.

Since: 0.6

afterStageFullscreen :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageFullscreenCallback) -> m SignalHandlerId Source #

Connect a signal handler for the fullscreen signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after stage #fullscreen callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onStageFullscreen :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageFullscreenCallback) -> m SignalHandlerId Source #

Connect a signal handler for the fullscreen signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on stage #fullscreen callback

unfullscreen

type StageUnfullscreenCallback = IO () Source #

The unfullscreen signal is emitted when the stage leaves a fullscreen state.

Since: 0.6

afterStageUnfullscreen :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageUnfullscreenCallback) -> m SignalHandlerId Source #

Connect a signal handler for the unfullscreen signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after stage #unfullscreen callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onStageUnfullscreen :: (IsStage a, MonadIO m) => a -> ((?self :: a) => StageUnfullscreenCallback) -> m SignalHandlerId Source #

Connect a signal handler for the unfullscreen signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on stage #unfullscreen callback