diff options
| author | lizhuoheng <114734429+LiZhuoheng-coder@users.noreply.github.com> | 2023-04-21 16:37:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-21 10:37:17 +0200 |
| commit | 1a3d41266972fbc01971ee044ddb7155dc33fa89 (patch) | |
| tree | 0cb95b9642f5524797c9d0fdceab220501bb46f7 /src/include/gtkclass.h | |
| parent | ae08d21bf12fbefa5a7531cf7b61ea5ba9620bae (diff) | |
| download | box64-1a3d41266972fbc01971ee044ddb7155dc33fa89.tar.gz box64-1a3d41266972fbc01971ee044ddb7155dc33fa89.zip | |
Added more gtk3 wrapped functions (#720)
Diffstat (limited to 'src/include/gtkclass.h')
| -rwxr-xr-x | src/include/gtkclass.h | 33 |
1 files changed, 32 insertions, 1 deletions
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__ |