Class ConstantExpression

All Implemented Interfaces:
PointerInterface

public class ConstantExpression extends Expression
A constant value in a `GtkExpression`.

https://docs.gtk.org/gtk4/class.ConstantExpression.html

  • Constructor Details

    • ConstantExpression

      public ConstantExpression(PointerContainer pointer)
    • ConstantExpression

      public ConstantExpression(long value_type, Object... _elipse)
      Creates a `GtkExpression` that evaluates to the
      object given by the arguments.
      Parameters:
      value_type - The type of the object
      _elipse - arguments to create the object from
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • newForValueConstantExpression

      public static ConstantExpression newForValueConstantExpression(@Nonnull Value value)
      Creates an expression that always evaluates to the given `value`.
      Parameters:
      value - a `GValue`
      Returns:
      a new `GtkExpression`
    • getValue

      public Value getValue()
      Gets the value that a constant expression evaluates to.
      Returns:
      the value
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()