64 view -> anim -> last ->
img -> quality = q;
66 view -> create_shaders[
MDBOX] = TRUE;
67 view -> create_shaders[
MAXIS] = TRUE;
70 gtk_range_set_value (GTK_RANGE(view -> ogl_quality), view -> anim -> last ->
img -> quality);
105 GtkWidget * win =
dialogmodal (
"Render Quality", GTK_WINDOW(view -> win));
118 gtk_range_set_value (GTK_RANGE(view -> ogl_quality), view -> anim -> last ->
img -> quality);
120 update_menu_bar (view);
135 GtkWidget * menuq = gtk_menu_new ();
136 GtkWidget * fixed = gtk_fixed_new ();
139 view -> ogl_quality =
create_hscale (2.0, 1000.0, 1.0, view -> anim -> last ->
img -> quality, GTK_POS_RIGHT, 0, 100, NULL, NULL, NULL);
140 gtk_fixed_put (GTK_FIXED(fixed), view -> ogl_quality, 0, 0);
144 GtkWidget * qscale =
create_hscale (2.0, 1000.0, 1.0, view -> anim -> last ->
img -> quality, GTK_POS_RIGHT, 0, 100, NULL, NULL, NULL);
145 gtk_fixed_put (GTK_FIXED(fixed), qscale, 0, 0);
148 g_signal_connect (G_OBJECT (qs),
"activate", G_CALLBACK(
window_quality), view);
149 gtk_menu_shell_append ((GtkMenuShell *)menuq, qs);
177 GMenu * menu = g_menu_new ();
178 gchar * str = g_strdup_printf (
"Quality: %d", view -> anim -> last ->
img -> quality);
179 append_opengl_item (view, menu, str,
"quality", popm, popm, NULL,
IMG_NONE, NULL, FALSE, G_CALLBACK(
to_window_quality), (gpointer)view, FALSE, FALSE, FALSE, TRUE);
void init_default_shaders(glwin *view)
re-initialize the default OpenGL shaders
Global variable declarations Global convenience function declarations Global data structure defin...
void run_this_gtk_dialog(GtkWidget *dial, GCallback handler, gpointer data)
run a GTK (3 and 4) basic GtkDialog
GtkWidget * create_menu_item_from_widget(GtkWidget *widg, gboolean check, gboolean radio, gboolean status)
GtkWidget * dialogmodal(gchar *str, GtkWindow *parent)
Create a new dialog modal window.
void update_entry_int(GtkEntry *entry, int intval)
update the content of a GtkEntry as int
G_MODULE_EXPORT gboolean destroy_this_window(GtkWidget *win, GdkEvent *event, gpointer data)
destroy a GtkWindow
void add_gtk_close_event(GtkWidget *widg, GCallback handler, gpointer data)
add a close event signal and callback to a GtkWidget
GtkWidget * spin_button(GCallback handler, double value, double start, double end, double step, int digits, int dim, gpointer data)
create a spin button
GtkWidget * dialog_get_content_area(GtkWidget *widg)
prepare GtkWidget to insert content in a GtkDialog window
void add_box_child_start(int orientation, GtkWidget *widg, GtkWidget *child, gboolean expand, gboolean fill, int padding)
Add a GtkWidget in a GtkBox at the initial position.
GtkWidget * create_hbox(int spacing)
create a GtkBox with horizontal orientation
G_MODULE_EXPORT void run_destroy_dialog(GtkDialog *dialog, gint response_id, gpointer data)
to destroy a GtkDialog when the dialog emit the closing signal
GtkWidget * create_hscale(float min, float max, float delta, float val, int pos, int round, int size, GCallback handler, GCallback scroll_handler, gpointer data)
create an horizontal scale GtkWidget
void show_the_widgets(GtkWidget *widg)
show GtkWidget
void update(glwin *view)
update the rendering of the OpenGL window
Variable declarations related to the OpenGL window Function declarations related to the OpenGL wind...
Function declarations for the creation of the OpenGL window.
void append_opengl_item(glwin *view, GMenu *menu, const gchar *name, gchar *key, int mpop, int item_id, gchar *accel, int image_format, gpointer icon, gboolean custom, GCallback handler, gpointer data, gboolean check, gboolean status, gboolean radio, gboolean sensitive)
Messaging function declarations.
void set_quality(int q, glwin *view)
set OpenGL quality
GMenu * menu_quality(glwin *view, int popm)
create the 'OpenGL -> Quality' menu item - GTK4
G_MODULE_EXPORT void to_window_quality(GSimpleAction *action, GVariant *parameter, gpointer data)
quality callback GTK4
G_MODULE_EXPORT void set_quality_spin(GtkSpinButton *res, gpointer data)
set quality spin button callback
G_MODULE_EXPORT void window_quality(GtkWidget *widg, gpointer data)
adjust OpenGL quality - creating the dialog
Preference variable declarations.
Function declarations for reading atomes project file Function declarations for saving atomes proje...