aboutsummaryrefslogtreecommitdiff
path: root/src/mandelbrot-zoom.h
blob: 3953b2dba167573728873f5e652345944301d2ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * mandelbrot-zoom.h
 *
 *  Created on: 13.01.2018
 *      Author: Superleo1810
 */

#ifndef MANDELBROT_ZOOM_H_
#define MANDELBROT_ZOOM_H_

#include <gtk/gtk.h>
#include "settings.h"
#include "conversion.h"
#include "render.h"
#include "sets.h"

typedef struct Ui_settings {
	GtkWindow *settings;
	GtkSpinButton *iterationsSp;
	GtkSpinButton *threadsSp;
	GtkButton *colorFromBtn;
	GtkButton *colorToBtn;
	GtkEntry *zoomToXEntry;
	GtkEntry *zoomToYEntry;
	GtkCheckButton *exportCb;
	GtkRadioButton *gifRd;
	GtkSpinButton *widthSp;
	GtkSpinButton *heightSp;
	GtkSpinButton *fpsRenderSp;
	GtkSpinButton *fpsVideoSp;
	GtkSpinButton *bitrateSp;
	GtkEntry *exportTf;
	GtkButton *startBtn;
	GtkButton *exitBtn;
	GtkColorSelectionDialog *colorDialog;
} Ui_settings;

Ui_settings ui_settings;
Config config;
u8 currentColor;

int main(int argc, char **argv);
void on_iterationsSp_valueChanged();
void on_threadsSp_valueChanged();
void on_colorFromBtn_clicked();
void on_colorToBtn_clicked();
void on_exportCb_toggled();
void on_exportTf_changed();
void on_widthSp_valueChanged();
void on_heightSp_valueChanged();
void on_fpsRenderSp_valueChanged();
void on_fpsVideoSp_valueChanged();
void on_bitrateSp_valueChanged();
void on_startBtn_clicked();
void on_exitBtn_clicked();

#endif /* MANDELBROT_ZOOM_H_ */