aboutsummaryrefslogtreecommitdiff
path: root/src/mandelbrot-zoom.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mandelbrot-zoom.h')
-rw-r--r--src/mandelbrot-zoom.h31
1 files changed, 20 insertions, 11 deletions
diff --git a/src/mandelbrot-zoom.h b/src/mandelbrot-zoom.h
index 9f1b454..5032087 100644
--- a/src/mandelbrot-zoom.h
+++ b/src/mandelbrot-zoom.h
@@ -14,6 +14,7 @@
#include "conversion.h"
typedef struct config {
+ u32 iterations;
bool video;
u8 filetype;
u16 width;
@@ -26,23 +27,31 @@ typedef struct config {
} Config;
typedef struct ui_settings {
- GtkWidget *settings;
- GtkWidget *exportCb;
- GtkWidget *gifRd;
- GtkWidget *widthSp;
- GtkWidget *heightSp;
- GtkWidget *fpsRenderSp;
- GtkWidget *fpsVideoSp;
- GtkWidget *bitrateSp;
- GtkWidget *exportTf;
- GtkWidget *startBtn;
- GtkWidget *exitBtn;
+ GtkWindow *settings;
+ GtkSpinButton *iterationsSp;
+ GtkButton *colorFromBtn;
+ GtkButton *colorToBtn;
+ 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;
Config config;
+u8 currentColor;
int main(int argc, char **argv);
+void on_iterationsSp_valueChanged();
+void on_colorFromBtn_clicked();
+void on_colorToBtn_clicked();
void on_exportCb_toggled();
void on_exportTf_changed();
void on_widthSp_valueChanged();