content_formats_parse


Description:


[ Version ( replacement = "ContentFormats.parse" , since = "4.4" ) ]
public ContentFormats? content_formats_parse (string string)

Parses the given string into `GdkContentFormats` and returns the formats.

Strings printed via [method@Gdk.ContentFormats.to_string] can be read in again successfully using this function.

If string does not describe valid content formats, null is returned.

Parameters:

string

the string to parse

Returns:

the content formats if string is valid


Namespace: Gdk
Package: gtk4