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"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QKeySequence;
|
|
|
|
#else
|
|
|
|
typedef struct QKeySequence QKeySequence;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QKeySequence* QKeySequence_new();
|
2024-08-29 07:01:51 +00:00
|
|
|
QKeySequence* QKeySequence_new2(const char* key, size_t key_Strlen);
|
|
|
|
QKeySequence* QKeySequence_new3(int k1);
|
|
|
|
QKeySequence* QKeySequence_new4(QKeySequence* ks);
|
|
|
|
QKeySequence* QKeySequence_new5(uintptr_t key);
|
|
|
|
QKeySequence* QKeySequence_new6(const char* key, size_t key_Strlen, uintptr_t format);
|
|
|
|
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-08-25 04:08:24 +00:00
|
|
|
int QKeySequence_Count(QKeySequence* self);
|
|
|
|
bool QKeySequence_IsEmpty(QKeySequence* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QKeySequence_ToString(QKeySequence* self, char** _out, int* _out_Strlen);
|
|
|
|
QKeySequence* QKeySequence_FromString(const char* str, size_t str_Strlen);
|
|
|
|
void QKeySequence_ListFromString(const char* str, size_t str_Strlen, QKeySequence*** _out, size_t* _out_len);
|
|
|
|
void QKeySequence_ListToString(QKeySequence** list, size_t list_len, char** _out, int* _out_Strlen);
|
|
|
|
uintptr_t QKeySequence_Matches(QKeySequence* self, QKeySequence* seq);
|
2024-08-25 04:08:24 +00:00
|
|
|
QKeySequence* QKeySequence_Mnemonic(const char* text, size_t text_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QKeySequence_KeyBindings(uintptr_t key, QKeySequence*** _out, size_t* _out_len);
|
2024-08-25 04:08:24 +00:00
|
|
|
int QKeySequence_OperatorSubscript(QKeySequence* self, unsigned int i);
|
|
|
|
void QKeySequence_OperatorAssign(QKeySequence* self, QKeySequence* other);
|
|
|
|
void QKeySequence_Swap(QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_OperatorEqual(QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_OperatorNotEqual(QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_OperatorLesser(QKeySequence* self, QKeySequence* ks);
|
|
|
|
bool QKeySequence_OperatorGreater(QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_OperatorLesserOrEqual(QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_OperatorGreaterOrEqual(QKeySequence* self, QKeySequence* other);
|
|
|
|
bool QKeySequence_IsDetached(QKeySequence* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QKeySequence_ToString1(QKeySequence* self, uintptr_t format, char** _out, int* _out_Strlen);
|
|
|
|
QKeySequence* QKeySequence_FromString2(const char* str, size_t str_Strlen, uintptr_t format);
|
|
|
|
void QKeySequence_ListFromString2(const char* str, size_t str_Strlen, uintptr_t format, QKeySequence*** _out, size_t* _out_len);
|
|
|
|
void QKeySequence_ListToString2(QKeySequence** list, size_t list_len, uintptr_t format, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QKeySequence_Delete(QKeySequence* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|