gi-clutter-1.0.3: 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.Interfaces.Content

Description

The Content structure is an opaque type whose members cannot be acccessed directly.

Since: 1.10

Synopsis

Exported types

newtype Content Source #

Memory-managed wrapper type.

Constructors

Content (ManagedPtr Content) 

Instances

Instances details
Eq Content Source # 
Instance details

Defined in GI.Clutter.Interfaces.Content

Methods

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

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

GObject Content Source # 
Instance details

Defined in GI.Clutter.Interfaces.Content

ManagedPtrNewtype Content Source # 
Instance details

Defined in GI.Clutter.Interfaces.Content

Methods

toManagedPtr :: Content -> ManagedPtr Content

TypedObject Content Source # 
Instance details

Defined in GI.Clutter.Interfaces.Content

Methods

glibType :: IO GType

HasParentTypes Content Source # 
Instance details

Defined in GI.Clutter.Interfaces.Content

IsGValue (Maybe Content) Source #

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

Instance details

Defined in GI.Clutter.Interfaces.Content

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes Content Source # 
Instance details

Defined in GI.Clutter.Interfaces.Content

type ParentTypes Content = '[Object]

class (GObject o, IsDescendantOf Content o) => IsContent o Source #

Type class for types which can be safely cast to Content, for instance with toContent.

Instances

Instances details
(GObject o, IsDescendantOf Content o) => IsContent o Source # 
Instance details

Defined in GI.Clutter.Interfaces.Content

toContent :: (MonadIO m, IsContent o) => o -> m Content Source #

Cast to Content, for types for which this is known to be safe. For general casts, use castTo.

Methods

getPreferredSize

contentGetPreferredSize Source #

Arguments

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

content: a Content

-> m (Bool, Float, Float)

Returns: True if the content has a preferred size, and False otherwise

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

contentInvalidate Source #

Arguments

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

content: a Content

-> m () 

Invalidates a Content.

This function should be called by Content implementations when they change the way a the content should be painted regardless of the actor state.

Since: 1.10

Signals

attached

type ContentAttachedCallback Source #

Arguments

 = Actor

actor: a Actor

-> IO () 

This signal is emitted each time a Content implementation is assigned to a Actor.

Since: 1.10

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

type ContentDetachedCallback Source #

Arguments

 = Actor

actor: a Actor

-> IO () 

This signal is emitted each time a Content implementation is removed from a Actor.

Since: 1.10

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