GDS-Render v1.2.1
conv-settings-dialog.h
Go to the documentation of this file.
1/*
2 * GDSII-Converter
3 * Copyright (C) 2018 Mario Hüttel <mario.huettel@gmx.net>
4 *
5 * This file is part of GDSII-Converter.
6 *
7 * GDSII-Converter is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 * GDSII-Converter is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with GDSII-Converter. If not, see <http://www.gnu.org/licenses/>.
18 */
19
32#ifndef __CONV_SETTINGS_DIALOG_H__
33#define __CONV_SETTINGS_DIALOG_H__
34
35#include <gtk/gtk.h>
36
37G_BEGIN_DECLS
38
41
42G_DECLARE_FINAL_TYPE(RendererSettingsDialog, renderer_settings_dialog, RENDERER, SETTINGS_DIALOG, GtkDialog)
43
44
49RendererSettingsDialog *renderer_settings_dialog_new(GtkWindow *parent);
50
51#define RENDERER_TYPE_SETTINGS_DIALOG (renderer_settings_dialog_get_type())
52
57 double scale;
59 gboolean tex_pdf_layers;
60 gboolean tex_standalone;
61};
62
63G_END_DECLS
64
70void renderer_settings_dialog_set_settings(RendererSettingsDialog *dialog, struct render_settings *settings);
71
77void renderer_settings_dialog_get_settings(RendererSettingsDialog *dialog, struct render_settings *settings);
78
84void renderer_settings_dialog_set_cell_width(RendererSettingsDialog *dialog, unsigned int width);
85
91void renderer_settings_dialog_set_cell_height(RendererSettingsDialog *dialog, unsigned int height);
92
98void renderer_settings_dialog_set_database_unit_scale(RendererSettingsDialog *dialog, double unit_in_meters);
99
100#endif /* __CONV_SETTINGS_DIALOG_H__ */
101
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(GdsRenderGui, gds_render_gui, RENDERER, GUI, GObject)
void renderer_settings_dialog_get_settings(RendererSettingsDialog *dialog, struct render_settings *settings)
Get the settings configured in the dialog.
void renderer_settings_dialog_set_cell_height(RendererSettingsDialog *dialog, unsigned int height)
renderer_settings_dialog_set_cell_height Set height for rendered cell
void renderer_settings_dialog_set_database_unit_scale(RendererSettingsDialog *dialog, double unit_in_meters)
renderer_settings_dialog_set_database_unit_scale Set database scale
G_END_DECLS void renderer_settings_dialog_set_settings(RendererSettingsDialog *dialog, struct render_settings *settings)
Apply settings to dialog.
output_renderer
return type of the RedererSettingsDialog
void renderer_settings_dialog_set_cell_width(RendererSettingsDialog *dialog, unsigned int width)
renderer_settings_dialog_set_cell_width Set width for rendered cell
RendererSettingsDialog * renderer_settings_dialog_new(GtkWindow *parent)
Create a new RedererSettingsDialog GObject.
@ RENDERER_CAIROGRAPHICS_PDF
@ RENDERER_CAIROGRAPHICS_SVG
@ RENDERER_LATEX_TIKZ
This struct holds the renderer configuration.
double scale
Scale image down by this factor.
enum output_renderer renderer