diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-12-06 17:39:19 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-12-06 17:39:19 +0100 |
| commit | df3e1ace6171f5e893db72c6c1fafed1cacab0cf (patch) | |
| tree | 2f3fab8801d900b047bfbcdf89aaf1909ec6e57f /src | |
| parent | 6def5118bbc8dd4bba825fbe05b0e14e162141a9 (diff) | |
| download | box64-df3e1ace6171f5e893db72c6c1fafed1cacab0cf.tar.gz box64-df3e1ace6171f5e893db72c6c1fafed1cacab0cf.zip | |
[GTK3] Wrapped GtkFixed
Diffstat (limited to 'src')
| -rw-r--r-- | src/include/gtkclass.h | 12 | ||||
| -rw-r--r-- | src/tools/gtkclass.c | 29 | ||||
| -rw-r--r-- | src/wrapped/wrappedgtk3.c | 1 |
3 files changed, 42 insertions, 0 deletions
diff --git a/src/include/gtkclass.h b/src/include/gtkclass.h index c7d1d357..974aa0a3 100644 --- a/src/include/gtkclass.h +++ b/src/include/gtkclass.h @@ -1241,6 +1241,17 @@ typedef struct my_GtkFixed2Class_s my_GtkContainer2Class_t parent_class; } my_GtkFixed2Class_t; +typedef struct my_GtkFixed3_s +{ + my_GtkWidget3_t parent; +} my_GtkFixed3_t; + +typedef struct my_GtkFixed3Class_s +{ + my_GtkWidget3Class_t parent_class; + void* padding[8]; +} my_GtkFixed3Class_t; + typedef struct my_GDBusObjectManagerClient_s { my_GObject_t parent; @@ -2158,6 +2169,7 @@ GTKCLASS(GtkWindow2) \ GTKCLASS(GtkWindow3) \ GTKCLASS(GtkTable2) \ GTKCLASS(GtkFixed2) \ +GTKCLASS(GtkFixed3) \ GTKCLASS(GtkApplicationWindow) \ GTKCLASS(GtkListBox) \ GTKCLASS(GtkListBoxRow) \ diff --git a/src/tools/gtkclass.c b/src/tools/gtkclass.c index 8e9ea13f..97eac80d 100644 --- a/src/tools/gtkclass.c +++ b/src/tools/gtkclass.c @@ -1664,6 +1664,35 @@ static void bridgeGtkFixed2Instance(my_GtkFixed2_t* class) { bridgeGtkContainer2Instance(&class->parent); } + +// ----- GtkFixed3Class ------ + +// wrap (so bridge all calls, just in case) +static void wrapGtkFixed3Class(my_GtkFixed3Class_t* class) +{ + wrapGtkWidget3Class(&class->parent_class); +} +// unwrap (and use callback if not a native call anymore) +static void unwrapGtkFixed3Class(my_GtkFixed3Class_t* class) +{ + unwrapGtkWidget3Class(&class->parent_class); +} +// autobridge +static void bridgeGtkFixed3Class(my_GtkFixed3Class_t* class) +{ + bridgeGtkWidget3Class(&class->parent_class); +} + +static void unwrapGtkFixed3Instance(my_GtkFixed3_t* class) +{ + unwrapGtkWidget3Instance(&class->parent); +} +// autobridge +static void bridgeGtkFixed3Instance(my_GtkFixed3_t* class) +{ + bridgeGtkWidget3Instance(&class->parent); +} + // ----- MetaFrames2Class ------ // wrap (so bridge all calls, just in case) diff --git a/src/wrapped/wrappedgtk3.c b/src/wrapped/wrappedgtk3.c index 9312415a..929e60f0 100644 --- a/src/wrapped/wrappedgtk3.c +++ b/src/wrapped/wrappedgtk3.c @@ -768,6 +768,7 @@ EXPORT void my3_gtk_clipboard_request_text(x64emu_t* emu, void* clipboard, void* SETALT(my3_); \ SetGtkApplicationID(my->gtk_application_get_type()); \ SetGtkWidget3ID(my->gtk_widget_get_type()); \ + SetGtkFixed3ID(my->gtk_fixed_get_type()); \ SetGtkContainer3ID(my->gtk_container_get_type()); \ SetGtkBin3ID(my->gtk_bin_get_type()); \ SetGtkButton3ID(my->gtk_button_get_type()); \ |