register_serialize_format
Description:
[ Version ( since = "2.10" ) ]
public Atom register_serialize_format (string mime_type, owned TextBufferSerializeFunc function)
public Atom register_serialize_format (string mime_type, owned TextBufferSerializeFunc function)
This function registers a rich text serialization function along with its mime_type with the passed
this.
Parameters:
| this | |
| mime_type |
the format’s mime-type |
| function |
the serialize function to register |
| user_data |
|
| user_data_destroy |
a function to call when |
Returns:
|
the Atom that corresponds to the newly registered format’s mime-type. |