2024-08-06 10:23:08 +12:00
|
|
|
#ifndef BINDING_H
|
|
|
|
#define BINDING_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2024-08-18 16:42:11 +12:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-10-23 11:00:00 +13:00
|
|
|
typedef void* PQApplication;
|
|
|
|
|
|
|
|
typedef void* PQPushButton;
|
|
|
|
|
|
|
|
typedef void* PQWidget;
|
|
|
|
|
2024-08-06 10:22:29 +12:00
|
|
|
PQApplication QApplication_new(int* argc, char** argv);
|
2023-10-23 11:00:00 +13:00
|
|
|
|
|
|
|
PQWidget QWidget_new();
|
|
|
|
|
|
|
|
void QWidget_show(PQWidget self);
|
|
|
|
|
|
|
|
PQPushButton QPushButton_new(const char* label, PQWidget parent);
|
|
|
|
|
|
|
|
void QPushButton_show(PQPushButton self);
|
|
|
|
|
2024-10-13 18:31:18 +13:00
|
|
|
void QPushButton_connect_pressed(PQPushButton self, intptr_t cb);
|
2024-08-18 16:42:11 +12:00
|
|
|
|
2023-10-23 11:00:00 +13:00
|
|
|
int QApplication_exec(PQApplication self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
2024-08-06 10:23:08 +12:00
|
|
|
|
|
|
|
#endif
|