ConfigWriter
Object Hierarchy:
Description:
[ CCode ( ref_function = "gimp_config_writer_ref" , type_id = "gimp_config_writer_get_type ()" , unref_function = "gimp_config_writer_unref" ) ]
[ Compact ]
public class ConfigWriter
Functions for writing config info to a file for libgimpconfig.
Content:
Creation methods:
Methods:
- public ConfigWriter @ref ()
Adds a reference to a ConfigWriter.
- public void close ()
Closes an element opened with
open.
- public void comment (string comment)
Appends the comment to str and inserts
linebreaks and hash-marks to format it as a comment.
- public void comment_mode (bool enable)
This function toggles whether the this
should create commented or uncommented output.
- public void data (uint8[] data)
Writes data to this.
- public bool finish (string footer) throws Error
This function finishes the work of this
and unrefs it afterwards.
- public void identifier (string identifier)
Writes an identifier to this.
- public void linefeed ()
- public void open (string name)
This function writes the opening parenthesis followed by name
.
- public void print (string string, int len)
Appends a space followed by string to the
this.
- public void revert ()
Reverts all changes to this that
were done since the last call to open.
- public void string (string string)
Writes a string value to this.
- public void unref ()
Unref a ConfigWriter.