Struct allegro::Config [] [src]

pub struct Config { /* fields omitted */ }

Allegro configuration.

Wraps ALLEGRO_CONFIG.

Methods

impl Config
[src]

Creates an empty configuration.

Loads a config from a path.

Merge two configs into 1.

Returns the wrapped ALLEGRO_CONFIG.

Loads a config from a path.

Adds an empty section with the specified name.

Removes a section with the specified name.

Sets the value of a key in a section.

Removes a key with the specified name.

Adds a comment to a section.

Gets a value from a section.

Merge in sections from a different config.

Returns an iterator over all the sections in the config. The first returned section will typically be the root section, even if it's empty.

Returns an iterator over all the entries in a particular section.

Trait Implementations

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for Config
[src]

A method called when the value goes out of scope. Read more