Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The StageManager
structure is private.
Since: 1.0
Synopsis
- newtype StageManager = StageManager (ManagedPtr StageManager)
- class (GObject o, IsDescendantOf StageManager o) => IsStageManager o
- toStageManager :: (MonadIO m, IsStageManager o) => o -> m StageManager
- stageManagerGetDefault :: (HasCallStack, MonadIO m) => m StageManager
- stageManagerGetDefaultStage :: (HasCallStack, MonadIO m, IsStageManager a) => a -> m Stage
- stageManagerListStages :: (HasCallStack, MonadIO m, IsStageManager a) => a -> m [Stage]
- stageManagerPeekStages :: (HasCallStack, MonadIO m, IsStageManager a) => a -> m [Stage]
- stageManagerSetDefaultStage :: (HasCallStack, MonadIO m, IsStageManager a, IsStage b) => a -> b -> m ()
- getStageManagerDefaultStage :: (MonadIO m, IsStageManager o) => o -> m Stage
- type StageManagerStageAddedCallback = Stage -> IO ()
- afterStageManagerStageAdded :: (IsStageManager a, MonadIO m) => a -> ((?self :: a) => StageManagerStageAddedCallback) -> m SignalHandlerId
- onStageManagerStageAdded :: (IsStageManager a, MonadIO m) => a -> ((?self :: a) => StageManagerStageAddedCallback) -> m SignalHandlerId
- type StageManagerStageRemovedCallback = Stage -> IO ()
- afterStageManagerStageRemoved :: (IsStageManager a, MonadIO m) => a -> ((?self :: a) => StageManagerStageRemovedCallback) -> m SignalHandlerId
- onStageManagerStageRemoved :: (IsStageManager a, MonadIO m) => a -> ((?self :: a) => StageManagerStageRemovedCallback) -> m SignalHandlerId
Exported types
newtype StageManager Source #
Memory-managed wrapper type.
Instances
Eq StageManager Source # | |
Defined in GI.Clutter.Objects.StageManager (==) :: StageManager -> StageManager -> Bool # (/=) :: StageManager -> StageManager -> Bool # | |
GObject StageManager Source # | |
Defined in GI.Clutter.Objects.StageManager | |
ManagedPtrNewtype StageManager Source # | |
Defined in GI.Clutter.Objects.StageManager | |
TypedObject StageManager Source # | |
Defined in GI.Clutter.Objects.StageManager | |
HasParentTypes StageManager Source # | |
Defined in GI.Clutter.Objects.StageManager | |
IsGValue (Maybe StageManager) Source # | Convert |
Defined in GI.Clutter.Objects.StageManager gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe StageManager -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe StageManager) # | |
type ParentTypes StageManager Source # | |
Defined in GI.Clutter.Objects.StageManager |
class (GObject o, IsDescendantOf StageManager o) => IsStageManager o Source #
Type class for types which can be safely cast to StageManager
, for instance with toStageManager
.
Instances
(GObject o, IsDescendantOf StageManager o) => IsStageManager o Source # | |
Defined in GI.Clutter.Objects.StageManager |
toStageManager :: (MonadIO m, IsStageManager o) => o -> m StageManager Source #
Cast to StageManager
, 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
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, listStages, notify, notifyByPspec, peekStages, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getDefaultStage, getProperty, getQdata.
Setters
getDefault
stageManagerGetDefault Source #
:: (HasCallStack, MonadIO m) | |
=> m StageManager | Returns: the default stage manager instance. The returned object is owned by Clutter and you should not reference or unreference it. |
Returns the default StageManager
.
Since: 0.8
getDefaultStage
stageManagerGetDefaultStage Source #
:: (HasCallStack, MonadIO m, IsStageManager a) | |
=> a |
|
-> m Stage | Returns: the default stage. The returned object is owned by Clutter and you should never reference or unreference it |
Returns the default Stage
.
Since: 0.8
listStages
stageManagerListStages Source #
:: (HasCallStack, MonadIO m, IsStageManager a) | |
=> a |
|
-> m [Stage] | Returns: a newly
allocated list of |
Lists all currently used stages.
Since: 0.8
peekStages
stageManagerPeekStages Source #
:: (HasCallStack, MonadIO m, IsStageManager a) | |
=> a |
|
-> m [Stage] | Returns: a pointer
to the internal list of |
Lists all currently used stages.
Since: 1.0
setDefaultStage
stageManagerSetDefaultStage Source #
:: (HasCallStack, MonadIO m, IsStageManager a, IsStage b) | |
=> a |
|
-> b |
|
-> m () |
Deprecated: (Since version 1.2)Calling this function has no effect
Sets stage
as the default stage.
Since: 0.8
Properties
defaultStage
The default stage used by Clutter.
Since: 0.8
getStageManagerDefaultStage :: (MonadIO m, IsStageManager o) => o -> m Stage Source #
Get the value of the “default-stage
” property.
When overloading is enabled, this is equivalent to
get
stageManager #defaultStage
Signals
stageAdded
type StageManagerStageAddedCallback Source #
The stageAdded signal is emitted each time a new Stage
has been added to the stage manager.
Since: 0.8
afterStageManagerStageAdded :: (IsStageManager a, MonadIO m) => a -> ((?self :: a) => StageManagerStageAddedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the stageAdded signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
stageManager #stageAdded 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.
onStageManagerStageAdded :: (IsStageManager a, MonadIO m) => a -> ((?self :: a) => StageManagerStageAddedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the stageAdded signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
stageManager #stageAdded callback
stageRemoved
type StageManagerStageRemovedCallback Source #
The stageRemoved signal is emitted each time a Stage
has been removed from the stage manager.
Since: 0.8
afterStageManagerStageRemoved :: (IsStageManager a, MonadIO m) => a -> ((?self :: a) => StageManagerStageRemovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the stageRemoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
stageManager #stageRemoved 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.
onStageManagerStageRemoved :: (IsStageManager a, MonadIO m) => a -> ((?self :: a) => StageManagerStageRemovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the stageRemoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
stageManager #stageRemoved callback