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 Content
structure is an opaque type
whose members cannot be acccessed directly.
Since: 1.10
Synopsis
- newtype Content = Content (ManagedPtr Content)
- class (GObject o, IsDescendantOf Content o) => IsContent o
- toContent :: (MonadIO m, IsContent o) => o -> m Content
- contentGetPreferredSize :: (HasCallStack, MonadIO m, IsContent a) => a -> m (Bool, Float, Float)
- contentInvalidate :: (HasCallStack, MonadIO m, IsContent a) => a -> m ()
- type ContentAttachedCallback = Actor -> IO ()
- afterContentAttached :: (IsContent a, MonadIO m) => a -> ((?self :: a) => ContentAttachedCallback) -> m SignalHandlerId
- onContentAttached :: (IsContent a, MonadIO m) => a -> ((?self :: a) => ContentAttachedCallback) -> m SignalHandlerId
- type ContentDetachedCallback = Actor -> IO ()
- afterContentDetached :: (IsContent a, MonadIO m) => a -> ((?self :: a) => ContentDetachedCallback) -> m SignalHandlerId
- onContentDetached :: (IsContent a, MonadIO m) => a -> ((?self :: a) => ContentDetachedCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq Content Source # | |
GObject Content Source # | |
Defined in GI.Clutter.Interfaces.Content | |
ManagedPtrNewtype Content Source # | |
Defined in GI.Clutter.Interfaces.Content toManagedPtr :: Content -> ManagedPtr Content | |
TypedObject Content Source # | |
Defined in GI.Clutter.Interfaces.Content | |
HasParentTypes Content Source # | |
Defined in GI.Clutter.Interfaces.Content | |
IsGValue (Maybe Content) Source # | Convert |
Defined in GI.Clutter.Interfaces.Content gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Content -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Content) | |
type ParentTypes Content Source # | |
Defined in GI.Clutter.Interfaces.Content type ParentTypes Content = '[Object] |
class (GObject o, IsDescendantOf Content o) => IsContent o Source #
Instances
(GObject o, IsDescendantOf Content o) => IsContent o Source # | |
Defined in GI.Clutter.Interfaces.Content |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, invalidate, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getPreferredSize, getProperty, getQdata.
Setters
getPreferredSize
contentGetPreferredSize Source #
:: (HasCallStack, MonadIO m, IsContent a) | |
=> a |
|
-> m (Bool, Float, Float) | Returns: |
Retrieves the natural size of the content
, if any.
The natural size of a Content
is defined as the size the content
would have regardless of the allocation of the actor that is painting it,
for instance the size of an image data.
Since: 1.10
invalidate
:: (HasCallStack, MonadIO m, IsContent a) | |
=> a |
|
-> m () |
Signals
attached
afterContentAttached :: (IsContent a, MonadIO m) => a -> ((?self :: a) => ContentAttachedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the attached signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
content #attached 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.
onContentAttached :: (IsContent a, MonadIO m) => a -> ((?self :: a) => ContentAttachedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the attached signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
content #attached callback
detached
afterContentDetached :: (IsContent a, MonadIO m) => a -> ((?self :: a) => ContentDetachedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the detached signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
content #detached 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.
onContentDetached :: (IsContent a, MonadIO m) => a -> ((?self :: a) => ContentDetachedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the detached signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
content #detached callback