From 1a3d41266972fbc01971ee044ddb7155dc33fa89 Mon Sep 17 00:00:00 2001 From: lizhuoheng <114734429+LiZhuoheng-coder@users.noreply.github.com> Date: Fri, 21 Apr 2023 16:37:17 +0800 Subject: Added more gtk3 wrapped functions (#720) --- src/include/gtkclass.h | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/gtkclass.h b/src/include/gtkclass.h index 6e8d302f..beebbda8 100755 --- a/src/include/gtkclass.h +++ b/src/include/gtkclass.h @@ -55,6 +55,35 @@ typedef struct my_GInitiallyUnownedClass_s void* pdummy[6]; } my_GInitiallyUnownedClass_t; +typedef struct my_GApplicationClass_s +{ + void* construct_properties; + void (* startup) (void* application); + void (* activate) (void* application); + void (* open) (void* application, void* files, int n_files, void* hint); + int (* command_line) (void* application, void* command_line); + int (* local_command_line) (void* application, void* arguments, void* exit_status); + void (* before_emit) (void* application, void* platform_data); + void (* after_emit) (void* application, void* platform_data); + void (* add_platform_data) (void* application, void* builder); + void (* quit_mainloop) (void* application); + void (* run_mainloop) (void* application); + void (* shutdown) (void* application); + int (* dbus_register) (void* application, void* connection, void* object_path, void* error); + void (* dbus_unregister) (void* appvoidlication, void* connection, void* object_path); + int (* handle_local_options) (void* application, void* options); + int (* name_lost) (void* application); + uint32_t flags; + void* pdummy[6]; +} my_GApplicationClass_t; + +typedef struct my_GtkApplicationClass_s +{ + my_GApplicationClass_t parent_class; + void (*window_added) (void* application, void* window); + void (*window_removed) (void* application, void* window); +} my_GtkApplicationClass_t; + typedef struct my_GtkObjectClass_s { my_GObjectClass_t parent_class; @@ -657,6 +686,8 @@ void FiniGTKClass(); #define GTKCLASSES() \ GTKCLASS(GObject) \ GTKCLASS(GInitiallyUnowned) \ +GTKCLASS(GApplication) \ +GTKCLASS(GtkApplication) \ GTKCLASS(GtkObject) \ GTKCLASS(GtkWidget2) \ GTKCLASS(GtkWidget3) \ @@ -717,4 +748,4 @@ int my_signal_cb(void* a, void* b, void* c, void* d); void my_add_signal_offset(size_t klass, uint32_t offset, int n); -#endif //__GTKCLASS_H__ \ No newline at end of file +#endif //__GTKCLASS_H__ -- cgit 1.4.1