2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QKEYSEQUENCE_H
|
|
|
|
#define GEN_QKEYSEQUENCE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QKeySequence;
|
|
|
|
#else
|
|
|
|
typedef struct QKeySequence QKeySequence;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QKeySequence* QKeySequence_new();
|
2024-09-14 22:29:05 +00:00
|
|
|
QKeySequence* QKeySequence_new2(struct miqt_string* key);
|
2024-08-29 07:01:51 +00:00
|
|
|
QKeySequence* QKeySequence_new3(int k1);
|
|
|
|
QKeySequence* QKeySequence_new4(QKeySequence* ks);
|
2024-09-18 00:12:02 +00:00
|
|
|
QKeySequence* QKeySequence_new5(int key);
|
|
|
|
QKeySequence* QKeySequence_new6(struct miqt_string* key, int format);
|
2024-08-29 07:01:51 +00:00
|
|
|
QKeySequence* QKeySequence_new7(int k1, int k2);
|
|
|
|
QKeySequence* QKeySequence_new8(int k1, int k2, int k3);
|
|
|
|
QKeySequence* QKeySequence_new9(int k1, int k2, int k3, int k4);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QKeySequence_Count(const QKeySequence* self);
|
|
|
|
bool QKeySequence_IsEmpty(const QKeySequence* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QKeySequence_ToString(const QKeySequence* self);
|
|
|
|
QKeySequence* QKeySequence_FromString(struct miqt_string* str);
|
|
|
|
struct miqt_array* QKeySequence_ListFromString(struct miqt_string* str);
|
2024-09-16 07:33:40 +00:00
|
|
|
struct miqt_string* QKeySequence_ListToString(struct miqt_array* /* of QKeySequence* */ list);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QKeySequence_Matches(const QKeySequence* self, QKeySequence* seq);
|
2024-09-14 22:29:05 +00:00
|
|
|
QKeySequence* QKeySequence_Mnemonic(struct miqt_string* text);
|
2024-09-18 00:12:02 +00:00
|
|
|
struct miqt_array* QKeySequence_KeyBindings(int key);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QKeySequence_OperatorSubscript(const QKeySequence* self, unsigned int i);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QKeySequence_OperatorAssign(QKeySequence* self, QKeySequence* other);
|
|
|
|
void QKeySequence_Swap(QKeySequence* self, QKeySequence* other);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QKeySequence_OperatorEqual(const QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_OperatorNotEqual(const QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_OperatorLesser(const QKeySequence* self, QKeySequence* ks);
|
|
|
|
bool QKeySequence_OperatorGreater(const QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_OperatorLesserOrEqual(const QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_OperatorGreaterOrEqual(const QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_IsDetached(const QKeySequence* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
struct miqt_string* QKeySequence_ToString1(const QKeySequence* self, int format);
|
|
|
|
QKeySequence* QKeySequence_FromString2(struct miqt_string* str, int format);
|
|
|
|
struct miqt_array* QKeySequence_ListFromString2(struct miqt_string* str, int format);
|
|
|
|
struct miqt_string* QKeySequence_ListToString2(struct miqt_array* /* of QKeySequence* */ list, int format);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QKeySequence_Delete(QKeySequence* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|