mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
117 lines
3.4 KiB
C++
117 lines
3.4 KiB
C++
#include <QAccessible>
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QAccessible__ActivationObserver
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QAccessible__State
|
|
#include <QAccessibleEvent>
|
|
#include <QAccessibleInterface>
|
|
#include <QObject>
|
|
#include <QPair>
|
|
#include <QTextCursor>
|
|
#include <qaccessible_base.h>
|
|
#include "gen_qaccessible_base.h"
|
|
|
|
#ifndef _Bool
|
|
#define _Bool bool
|
|
#endif
|
|
#include "_cgo_export.h"
|
|
|
|
void QAccessible_InstallActivationObserver(QAccessible__ActivationObserver* param1) {
|
|
QAccessible::installActivationObserver(param1);
|
|
}
|
|
|
|
void QAccessible_RemoveActivationObserver(QAccessible__ActivationObserver* param1) {
|
|
QAccessible::removeActivationObserver(param1);
|
|
}
|
|
|
|
QAccessibleInterface* QAccessible_QueryAccessibleInterface(QObject* param1) {
|
|
return QAccessible::queryAccessibleInterface(param1);
|
|
}
|
|
|
|
unsigned int QAccessible_UniqueId(QAccessibleInterface* iface) {
|
|
QAccessible::Id _ret = QAccessible::uniqueId(iface);
|
|
return static_cast<unsigned int>(_ret);
|
|
}
|
|
|
|
QAccessibleInterface* QAccessible_AccessibleInterface(unsigned int uniqueId) {
|
|
return QAccessible::accessibleInterface(static_cast<QAccessible::Id>(uniqueId));
|
|
}
|
|
|
|
unsigned int QAccessible_RegisterAccessibleInterface(QAccessibleInterface* iface) {
|
|
QAccessible::Id _ret = QAccessible::registerAccessibleInterface(iface);
|
|
return static_cast<unsigned int>(_ret);
|
|
}
|
|
|
|
void QAccessible_DeleteAccessibleInterface(unsigned int uniqueId) {
|
|
QAccessible::deleteAccessibleInterface(static_cast<QAccessible::Id>(uniqueId));
|
|
}
|
|
|
|
void QAccessible_UpdateAccessibility(QAccessibleEvent* event) {
|
|
QAccessible::updateAccessibility(event);
|
|
}
|
|
|
|
bool QAccessible_IsActive() {
|
|
return QAccessible::isActive();
|
|
}
|
|
|
|
void QAccessible_SetActive(bool active) {
|
|
QAccessible::setActive(active);
|
|
}
|
|
|
|
void QAccessible_SetRootObject(QObject* object) {
|
|
QAccessible::setRootObject(object);
|
|
}
|
|
|
|
void QAccessible_Cleanup() {
|
|
QAccessible::cleanup();
|
|
}
|
|
|
|
struct miqt_map /* tuple of int and int */ QAccessible_QAccessibleTextBoundaryHelper(QTextCursor* cursor, int boundaryType) {
|
|
QPair<int, int> _ret = QAccessible::qAccessibleTextBoundaryHelper(*cursor, static_cast<QAccessible::TextBoundaryType>(boundaryType));
|
|
// Convert QPair<> from C++ memory to manually-managed C memory
|
|
int* _first_arr = static_cast<int*>(malloc(sizeof(int)));
|
|
int* _second_arr = static_cast<int*>(malloc(sizeof(int)));
|
|
_first_arr[0] = _ret.first;
|
|
_second_arr[0] = _ret.second;
|
|
struct miqt_map _out;
|
|
_out.len = 1;
|
|
_out.keys = static_cast<void*>(_first_arr);
|
|
_out.values = static_cast<void*>(_second_arr);
|
|
return _out;
|
|
}
|
|
|
|
void QAccessible_Delete(QAccessible* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QAccessible*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
QAccessible__State* QAccessible__State_new() {
|
|
return new QAccessible::State();
|
|
}
|
|
|
|
void QAccessible__State_Delete(QAccessible__State* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QAccessible::State*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|
|
void QAccessible__ActivationObserver_AccessibilityActiveChanged(QAccessible__ActivationObserver* self, bool active) {
|
|
self->accessibilityActiveChanged(active);
|
|
}
|
|
|
|
void QAccessible__ActivationObserver_OperatorAssign(QAccessible__ActivationObserver* self, QAccessible__ActivationObserver* param1) {
|
|
self->operator=(*param1);
|
|
}
|
|
|
|
void QAccessible__ActivationObserver_Delete(QAccessible__ActivationObserver* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QAccessible::ActivationObserver*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|