Gnome::Gtk4::ConstantExpression
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
Description
A constant value in a Gnome::Gtk4::Expression.
Uml Diagram =for image :src<asset_files/images/plantuml/ConstantExpression.png> :width<70%> :class<inline>
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
Class initialization
new
:native-object
Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object() :$native-object! )
#-------------------------------------------------------------------------------
new-constantexpression
Creates a Gnome::Gtk4::Expression that evaluates to the object given by the arguments.
method new-constantexpression ( GType $value-type, β¦ --> Gnome::Gtk4::ConstantExpression )
$value-type; The type of the object.
β¦; β¦. Note that each argument must be specified as a type followed by its value!
#-------------------------------------------------------------------------------
new-for-value
Creates an expression that always evaluates to the given value.
method new-for-value ( N-Object $value --> Gnome::Gtk4::ConstantExpression )
$value; a Gnome::GObject::N-Value
#------------------------------------------------------------------------------- #--[Methods]-------------------------------------------------------------------- #-------------------------------------------------------------------------------
Methods
#-------------------------------------------------------------------------------
get-value
Gets the value that a constant expression evaluates to.
method get-value (--> N-Object )
Return value; the value.