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

GI.Gtk.Objects.PropertyExpression

Description

A GObject property value in a GtkExpression.

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 GtkExpression

-> m (Maybe 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 GtkExpression

-> m GParamSpec

Returns: the GParamSpec for the property

Gets the GParamSpec 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 NULL to query the this object

-> Text

propertyName: name of the property

-> m PropertyExpression

Returns: a new GtkExpression

Creates an expression that looks up a property.

The object to use is found by evaluating the expression, or using the this argument when expression is NULL.

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

The given this_type must have a property with property_name.

newForPspec

propertyExpressionNewForPspec Source #

Arguments

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

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

-> GParamSpec

pspec: the GParamSpec for the property to query

-> m PropertyExpression

Returns: a new GtkExpression

Creates an expression that looks up a property.

The object to use is found by evaluating the expression, or using the this argument when expression is NULL.

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