Many changes to setup colours, update window positions, put notes on desktop, etc.

Signed-off-by: Hans Dijkema <hans@dijkewijk.nl>
This commit is contained in:
2025-11-24 14:52:17 +01:00
parent a0ac0420da
commit 80ee3fcadf
9 changed files with 493 additions and 131 deletions

View File

@@ -1,6 +1,8 @@
#ifndef GTK_IMPORTS_H
#define GTK_IMPORTS_H
#include <stdlib.h>
/*************************************************************************************
* boiler plate code to initialize Gtk functions etc.
*************************************************************************************/
@@ -68,13 +70,16 @@ typedef void GtkDialog;
typedef void GTimer;
typedef void GtkComboBoxText;
typedef void GtkComboBox;
typedef void GtkGrid;
typedef void GtkColorButton;
typedef void GtkColorChooser;
typedef int gboolean;
typedef int gint;
typedef char gchar;
typedef long glong;
typedef unsigned long gulong;
typedef unsigned long guint32;
typedef unsigned int guint32;
typedef unsigned int guint;
typedef long long gint64;
typedef unsigned long long guint64;
@@ -274,7 +279,7 @@ typedef struct _GdkEventMotion
gint16 is_hint;
GdkDevice *device;
gdouble x_root, y_root;
} GdkEventMotion;
} GdkEventMotion;;
typedef struct _GdkEventKey
{
@@ -649,11 +654,20 @@ DECL(void, gtk_widget_set_vexpand, (GtkWidget* widget, gboolean expand ))
DECL(void, gtk_widget_set_hexpand, (GtkWidget* widget, gboolean expand ))
DECL(void, gtk_widget_set_halign, (GtkWidget* widget, GtkAlign align ))
DECL(void, gtk_widget_set_valign, (GtkWidget* widget, GtkAlign align ))
DECL(GtkWidget*,gtk_grid_new, (void))
DECL(void, gtk_grid_attach, (GtkGrid* grid, GtkWidget* child, gint left, gint top, gint width, gint height ))
DECL(GtkWidget*, gtk_color_button_new, (void ))
DECL(void, gtk_color_chooser_set_rgba, (GtkColorChooser* chooser, const GdkRGBA* color ))
DECL(void, gtk_color_chooser_get_rgba, (GtkColorChooser* chooser, GdkRGBA* color ))
DECL(gboolean, gtk_widget_translate_coordinates, ( GtkWidget* src_widget, GtkWidget* dest_widget, gint src_x, gint src_y, gint* dest_x, gint* dest_y))
DECL(void, gtk_main, (void))
DECL(void, gtk_main_quit, (void))
DECL(GdkEvent*, gtk_get_current_event, (void ))
DECL(void, gtk_main_do_event, (GdkEvent* event))
DECL(void, gdk_event_free, (GdkEvent* event))
DECL(unsigned long, g_signal_connect_data, (GObject *obj, const char *signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags))