Config
Object Hierarchy:
Description:
[ CCode ( has_type_id = false ) ]
[ Compact ]
public class Config
Content:
Static methods:
- public static string build_data_path (string name)
- public static string build_plug_in_path (string name)
- public static string build_system_path (string name)
- public static string build_writable_path (string name)
- public static bool deserialize_return (Scanner scanner, TokenType expected_token, int nest_level)
- public static List<unowned ParamSpec> diff (Object a, Object b, ParamFlags flags)
- public static ParamSpec param_spec_duplicate (ParamSpec pspec)
- public static void reset_properties (Object object)
- public static void reset_property (Object object, string property_name)
- public static bool serialize_value (Value value, StringBuilder str, bool escaped)
- public static void string_append_escaped (StringBuilder string, string val)
- public static bool sync (Object src, Object dest, ParamFlags flags)
- public static Type type_register (Type parent_type, string type_name, ParamSpec[] pspecs)
Methods:
- public bool copy (Config dest, ParamFlags flags)
Compares all read- and write-able properties from
this and dest that have all flags set.
- public bool deserialize (Scanner scanner, int nest_level, void* data)
Deserialize the Config object.
- public bool deserialize_file (File file, void* data) throws Error
Opens the file specified by file, reads configuration
data from it and configures this accordingly.
- public bool deserialize_parasite (Parasite parasite, void* data) throws Error
Configures this from parasite
.
- public bool deserialize_properties (Scanner scanner, int nest_level)
This function uses the scanner to configure the
properties of this.
- public TokenType deserialize_property (Scanner scanner, int nest_level)
This function deserializes a single property of
this.
- public bool deserialize_stream (InputStream input, void* data) throws Error
Reads configuration data from input and configures
this accordingly.
- public bool deserialize_string (char[] text, void* data) throws Error
Configures this from text
.
- public void* duplicate ()
Creates a copy of the passed object by copying all object properties.
- public uint get_xcf_version ()
Returns the current XCF version of the this
.
- public bool is_equal_to (Config b)
Compares the two objects.
- public void reset ()
Resets the object to its default state.
- public bool serialize (ConfigWriter writer, void* data)
Serialize the Config object.
- public bool serialize_changed_properties (ConfigWriter writer)
This function writes all object properties that have been changed from
their default values to the writer.
- public bool serialize_properties (ConfigWriter writer)
This function writes all object properties to the writer.
- public bool serialize_property (ParamSpec param_spec, ConfigWriter writer)
This function serializes a single object property to the writer
.
- public bool serialize_property_by_name (string prop_name, ConfigWriter writer)
This function serializes a single object property to the writer
.
- public bool serialize_to_fd (int fd, void* data)
Serializes the object properties of this
to the given file descriptor.
- public bool serialize_to_file (File file, string? header, string? footer, void* data) throws Error
Serializes the object properties of this
to the file specified by file.
- public Parasite serialize_to_parasite (string parasite_name, uint parasite_flags, void* data)
Serializes the object properties of this
to a [struct@Parasite].
- public bool serialize_to_stream (OutputStream output, string? header, string? footer, void* data) throws Error
Serializes the object properties of this
to the stream specified by output.
- public string serialize_to_string (void* data)
Serializes the object properties of this
to a string.
- public void set_xcf_version (uint xcf_version)
Sets the current XCF version of the this
.