[ Version ( since = "3.52" ) ]
public virtual string? generate_preview (GeneratePreviewFunc? func)
Generates preview of the this, to be used in the interface, read by the users.
The optional func can be used to override default preview generation function. If provided, it's always called as the first
try on the parts.
| this | |
| func |
an optional GeneratePreviewFunc function, or null |
| user_data |
user data for the |
|
part's preview as a new string, or null, when cannot be generated. Free with g_free, when no longer needed. |