/* newdocdialog.h
 * This file is part of Amsam photo cropping program
 * Copyright 2021, 2023, 2024, 2025, 2026 Nandakumar Edamana
 * Distributed under GNU General Public License, version 3
 */ 

#ifndef N96_DRAW_newdocdialog_h
#define N96_DRAW_newdocdialog_h

typedef struct _ngg_tuple_NewDocDialog__run _ngg_tuple_NewDocDialog__run;
typedef struct NewDocDialog NewDocDialog;
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "commongui.h"
#include "commongui.h"
#define DEFWIDTH_DOC (777)
#define DEFHEIGHT_DOC (480)
struct _ngg_tuple_NewDocDialog__run {
	_Bool m0;
	int m1;
	int m2;
};
struct NewDocDialog {
	GtkButton *btn_swap;
	GtkSpinButton *spin_height;
	GtkLabel *lbl2;
	GtkSpinButton *spin_width;
	GtkLabel *lblwidth;
	GtkGrid *grd;
	GtkButton *btn_preset_a4_300ppi;
	GtkButton *btn_preset_a4_150ppi;
	GtkButton *btn_preset_fhd;
	GtkBox *hbx_presets;
	GtkBox *vbx_main;
	GtkDialog *dlg;
	int maxwidth;
};
void new_doc_dialog_construct(NewDocDialog *this, GtkWindow *parent, int maxwidth);
void new_doc_dialog_destruct(NewDocDialog *this);
void new_doc_dialog_apply_preset(NewDocDialog *this, int w, int h);
_ngg_tuple_NewDocDialog__run new_doc_dialog_run(NewDocDialog *this);
void new_doc_dialog_on_btn_preset_clicked(GtkButton *widget, void *user_data);
void new_doc_dialog_on_btn_swap_clicked(GtkButton *widget, void *user_data);
_ngg_tuple_NewDocDialog__run _ngg_tuple_NewDocDialog__run_default();

#endif /* N96_DRAW_newdocdialog_h */
