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.Objects.BinLayout

Description

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

Since: 1.2

Synopsis

Exported types

newtype BinLayout Source #

Memory-managed wrapper type.

Constructors

BinLayout (ManagedPtr BinLayout) 

Instances

Instances details
Eq BinLayout Source # 
Instance details

Defined in GI.Clutter.Objects.BinLayout

GObject BinLayout Source # 
Instance details

Defined in GI.Clutter.Objects.BinLayout

ManagedPtrNewtype BinLayout Source # 
Instance details

Defined in GI.Clutter.Objects.BinLayout

Methods

toManagedPtr :: BinLayout -> ManagedPtr BinLayout

TypedObject BinLayout Source # 
Instance details

Defined in GI.Clutter.Objects.BinLayout

Methods

glibType :: IO GType

HasParentTypes BinLayout Source # 
Instance details

Defined in GI.Clutter.Objects.BinLayout

IsGValue (Maybe BinLayout) Source #

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

Instance details

Defined in GI.Clutter.Objects.BinLayout

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes BinLayout Source # 
Instance details

Defined in GI.Clutter.Objects.BinLayout

type ParentTypes BinLayout = '[LayoutManager, Object]

class (GObject o, IsDescendantOf BinLayout o) => IsBinLayout o Source #

Type class for types which can be safely cast to BinLayout, for instance with toBinLayout.

Instances

Instances details
(GObject o, IsDescendantOf BinLayout o) => IsBinLayout o Source # 
Instance details

Defined in GI.Clutter.Objects.BinLayout

toBinLayout :: (MonadIO m, IsBinLayout o) => o -> m BinLayout Source #

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

Methods

add

binLayoutAdd Source #

Arguments

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

self: a BinLayout

-> b

child: a Actor

-> BinAlignment

xAlign: horizontal alignment policy for child

-> BinAlignment

yAlign: vertical alignment policy for child

-> m () 

Deprecated: (Since version 1.12)Use actorAddChild instead.

Adds a Actor to the container using self and sets the alignment policies for it

This function is equivalent to containerAddActor and layoutManagerChildSetProperty but it does not require a pointer to the Container associated to the BinLayout

Since: 1.2

getAlignment

binLayoutGetAlignment Source #

Arguments

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

self: a BinLayout

-> Maybe b

child: a child of container

-> m (BinAlignment, BinAlignment) 

Deprecated: (Since version 1.12)Use the Actor:xAlign and the Actor:yAlign properties of Actor instead.

Retrieves the horizontal and vertical alignment policies for a child of self

If child is Nothing the default alignment policies will be returned instead

Since: 1.2

new

binLayoutNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> BinAlignment

xAlign: the default alignment policy to be used on the horizontal axis

-> BinAlignment

yAlign: the default alignment policy to be used on the vertical axis

-> m BinLayout

Returns: the newly created layout manager

Creates a new BinLayout layout manager

Since: 1.2

setAlignment

binLayoutSetAlignment Source #

Arguments

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

self: a BinLayout

-> Maybe b

child: a child of container

-> BinAlignment

xAlign: the horizontal alignment policy to be used for the child inside container

-> BinAlignment

yAlign: the vertical aligment policy to be used on the child inside container

-> m () 

Deprecated: (Since version 1.12)Use the Actor:xAlign and Actor:yAlign properties of Actor instead.

Sets the horizontal and vertical alignment policies to be applied to a child of self

If child is Nothing then the xAlign and yAlign values will be set as the default alignment policies

Since: 1.2

Properties

xAlign

The default horizontal alignment policy for actors managed by the BinLayout

Since: 1.2

constructBinLayoutXAlign :: (IsBinLayout o, MonadIO m) => BinAlignment -> m (GValueConstruct o) Source #

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

getBinLayoutXAlign :: (MonadIO m, IsBinLayout o) => o -> m BinAlignment Source #

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

get binLayout #xAlign

setBinLayoutXAlign :: (MonadIO m, IsBinLayout o) => o -> BinAlignment -> m () Source #

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

set binLayout [ #xAlign := value ]

yAlign

The default vertical alignment policy for actors managed by the BinLayout

Since: 1.2

constructBinLayoutYAlign :: (IsBinLayout o, MonadIO m) => BinAlignment -> m (GValueConstruct o) Source #

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

getBinLayoutYAlign :: (MonadIO m, IsBinLayout o) => o -> m BinAlignment Source #

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

get binLayout #yAlign

setBinLayoutYAlign :: (MonadIO m, IsBinLayout o) => o -> BinAlignment -> m () Source #

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

set binLayout [ #yAlign := value ]