You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example: a new Gtk Frame can be constructed with:
publicFrame(@NullableStringlabel)
The label argument is optional, and will often be null. However, because all Java-GI classes contain a constructor with a single MemorySegment argument, the null argument must be explicitly cast to String like this:
varframe = newFrame((String) null);
or for example in Scala:
valframe=Frame(null.asInstanceOf[String])
This can be resolved by generating an extra constructor in this case, that simply calls this((String) null);
The text was updated successfully, but these errors were encountered:
For example: a new Gtk Frame can be constructed with:
The label argument is optional, and will often be
null
. However, because all Java-GI classes contain a constructor with a singleMemorySegment
argument, thenull
argument must be explicitly cast toString
like this:or for example in Scala:
This can be resolved by generating an extra constructor in this case, that simply calls
this((String) null);
The text was updated successfully, but these errors were encountered: