gi-gtk-4.0.4: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.PropertyExpression

Description

No description available in the introspection data.

Synopsis

Exported types

newtype PropertyExpression Source #

Memory-managed wrapper type.

Constructors

PropertyExpression (ManagedPtr PropertyExpression) 

Instances

Instances details
Eq PropertyExpression Source # 
Instance details

Defined in GI.Gtk.Objects.PropertyExpression

BoxedPtr PropertyExpression Source # 
Instance details

Defined in GI.Gtk.Objects.PropertyExpression

ManagedPtrNewtype PropertyExpression Source # 
Instance details

Defined in GI.Gtk.Objects.PropertyExpression

TypedObject PropertyExpression Source # 
Instance details

Defined in GI.Gtk.Objects.PropertyExpression

Methods

glibType :: IO GType

HasParentTypes PropertyExpression Source # 
Instance details

Defined in GI.Gtk.Objects.PropertyExpression

type ParentTypes PropertyExpression Source # 
Instance details

Defined in GI.Gtk.Objects.PropertyExpression

type ParentTypes PropertyExpression = '[Expression]

class (BoxedPtr o, TypedObject o, IsDescendantOf PropertyExpression o) => IsPropertyExpression o Source #

Type class for types which can be safely cast to PropertyExpression, for instance with toPropertyExpression.

Instances

Instances details
(BoxedPtr o, TypedObject o, IsDescendantOf PropertyExpression o) => IsPropertyExpression o Source # 
Instance details

Defined in GI.Gtk.Objects.PropertyExpression

toPropertyExpression :: (MonadIO m, IsPropertyExpression o) => o -> m PropertyExpression Source #

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

bind, evaluate, isStatic, ref, unref, watch.

Getters

getExpression, getPspec, getValueType.

Setters

None.

getExpression

propertyExpressionGetExpression Source #

Arguments

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

expression: a property Expression

-> m Expression

Returns: the object expression

Gets the expression specifying the object of a property expression.

getPspec

propertyExpressionGetPspec Source #

Arguments

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

expression: a property Expression

-> m GParamSpec

Returns: the ParamSpec

Gets the ParamSpec specifying the property of a property expression.

new

propertyExpressionNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsExpression a) 
=> GType

thisType: The type to expect for the this type

-> Maybe a

expression: Expression to evaluate to get the object to query or Nothing to query the this object

-> Text

propertyName: name of the property

-> m Expression

Returns: a new Expression

Creates an expression that looks up a property via the given expression or the this argument when expression is Nothing.

If the resulting object conforms to thisType, its property named propertyName will be queried. Otherwise, this expression's evaluation will fail.

The given thisType must have a property with propertyName.

newForPspec

propertyExpressionNewForPspec Source #

Arguments

:: (HasCallStack, MonadIO m, IsExpression a) 
=> Maybe a

expression: Expression to evaluate to get the object to query or Nothing to query the this object

-> GParamSpec

pspec: the ParamSpec for the property to query

-> m Expression

Returns: a new Expression

Creates an expression that looks up a property via the given expression or the this argument when expression is Nothing.

If the resulting object conforms to thisType, its property specified by pspec will be queried. Otherwise, this expression's evaluation will fail.