GDS-Render v1.2.1
|
LayerSettings class header file. More...
#include <gtk/gtk.h>
Go to the source code of this file.
Data Structures | |
struct | layer_info |
Layer information. More... | |
Macros | |
#define | GDS_RENDER_TYPE_LAYER_SETTINGS (layer_settings_get_type()) |
#define | CSV_LINE_MAX_LEN (1024) |
Maximum length of a layer mapping CSV line. More... | |
Functions | |
LayerSettings * | layer_settings_new () |
New LayerSettings object. More... | |
int | layer_settings_append_layer_info (LayerSettings *settings, struct layer_info *info) |
layer_settings_append_layer_info More... | |
void | layer_settings_clear (LayerSettings *settings) |
Clear all layers in this settings object. More... | |
int | layer_settings_remove_layer (LayerSettings *settings, int layer) |
Remove a specific layer number from the layer settings. More... | |
GList * | layer_settings_get_layer_info_list (LayerSettings *settings) |
Get a GList with layer_info structs. More... | |
int | layer_settings_to_csv (LayerSettings *settings, const char *path) |
Write layer settings to a CSV file. More... | |
int | layer_settings_load_from_csv (LayerSettings *settings, const char *path) |
Load new layer Settings from CSV. More... | |
LayerSettings class header file.
Definition in file layer-settings.h.
#define CSV_LINE_MAX_LEN (1024) |
Maximum length of a layer mapping CSV line.
Definition at line 56 of file layer-settings.h.
#define GDS_RENDER_TYPE_LAYER_SETTINGS (layer_settings_get_type()) |
Definition at line 51 of file layer-settings.h.
int layer_settings_append_layer_info | ( | LayerSettings * | settings, |
struct layer_info * | info | ||
) |
layer_settings_append_layer_info
settings | LayerSettings object. |
info | Info to append |
info
is copied internally. You can free this struct afterwards. Definition at line 111 of file layer-settings.c.
void layer_settings_clear | ( | LayerSettings * | settings | ) |
Clear all layers in this settings object.
settings | LayerSettings object |
Definition at line 128 of file layer-settings.c.
GList * layer_settings_get_layer_info_list | ( | LayerSettings * | settings | ) |
Get a GList with layer_info structs.
This function returns a GList with all layer_info structs in rendering order (bottom to top) that shall be rendered.
settings | LayerSettings object |
Definition at line 166 of file layer-settings.c.
int layer_settings_load_from_csv | ( | LayerSettings * | settings, |
const char * | path | ||
) |
Load new layer Settings from CSV.
This function loads the layer information from a CSV file. All data inside the settings
is cleared beforehand.
settings | Settings to write to. |
path | CSV file path |
Definition at line 310 of file layer-settings.c.
LayerSettings * layer_settings_new | ( | ) |
New LayerSettings object.
Definition at line 106 of file layer-settings.c.
int layer_settings_remove_layer | ( | LayerSettings * | settings, |
int | layer | ||
) |
Remove a specific layer number from the layer settings.
settings | LayerSettings object |
layer | Layer number |
Definition at line 137 of file layer-settings.c.
int layer_settings_to_csv | ( | LayerSettings * | settings, |
const char * | path | ||
) |
Write layer settings to a CSV file.
This function writes the layer settings to a CSV file according to the layer mapping specification (Layer Mapping File Specification)
settings | LayerSettings object |
path | Output path for CSV file. |
Definition at line 196 of file layer-settings.c.