value_from_string


Description:

[ Version ( since = "2.12" ) ]
public bool value_from_string (ParamSpec pspec, string str, out Value value) throws Error

This function demarshals a value from a string.

This function calls Value on the value argument, so it need not be initialised beforehand.

This function can handle char, uchar, boolean, int, uint, long, ulong, enum, flags, float, double, string, Color , RGBA and Adjustment type values. Support for Widget type values is still to come.

Upon errors false will be returned and throws will be assigned a Error from the BuilderError domain.

Parameters:

this

a Builder

pspec

the ParamSpec for the property

value

the Value to store the result in

string

the string representation of the value

Returns:

true on success




2022 vala-language.org