2024-08-25 04:08:24 +00:00
# include <QAccessible>
2024-08-29 07:01:51 +00:00
# define WORKAROUND_INNER_CLASS_DEFINITION_QAccessible__ActivationObserver
# define WORKAROUND_INNER_CLASS_DEFINITION_QAccessible__State
2024-08-25 04:08:24 +00:00
# include <QAccessibleActionInterface>
# include <QAccessibleEditableTextInterface>
# include <QAccessibleEvent>
# include <QAccessibleImageInterface>
# include <QAccessibleInterface>
# include <QAccessibleStateChangeEvent>
# include <QAccessibleTableCellInterface>
# include <QAccessibleTableInterface>
# include <QAccessibleTableModelChangeEvent>
# include <QAccessibleTextCursorEvent>
# include <QAccessibleTextInsertEvent>
# include <QAccessibleTextInterface>
# include <QAccessibleTextRemoveEvent>
# include <QAccessibleTextSelectionEvent>
# include <QAccessibleTextUpdateEvent>
# include <QAccessibleValueChangeEvent>
# include <QAccessibleValueInterface>
# include <QColor>
# include <QList>
# include <QObject>
2024-11-26 07:10:11 +00:00
# include <QPair>
2024-08-25 04:08:24 +00:00
# include <QPoint>
# include <QRect>
# include <QSize>
# include <QString>
2024-08-29 07:01:51 +00:00
# include <QByteArray>
# include <cstring>
2024-11-17 06:21:37 +00:00
# include <QTextCursor>
2024-08-25 04:08:24 +00:00
# include <QVariant>
# include <QWindow>
2024-10-16 05:07:56 +00:00
# include <qaccessible.h>
2024-08-29 07:01:51 +00:00
# include "gen_qaccessible.h"
2024-12-11 06:55:47 +00:00
# ifndef _Bool
# define _Bool bool
# endif
2024-09-14 22:29:05 +00:00
# include "_cgo_export.h"
2024-08-25 04:08:24 +00:00
2024-08-29 07:01:51 +00:00
void QAccessible_InstallActivationObserver ( QAccessible__ActivationObserver * param1 ) {
QAccessible : : installActivationObserver ( param1 ) ;
}
void QAccessible_RemoveActivationObserver ( QAccessible__ActivationObserver * param1 ) {
QAccessible : : removeActivationObserver ( param1 ) ;
}
2024-08-25 04:08:24 +00:00
QAccessibleInterface * QAccessible_QueryAccessibleInterface ( QObject * param1 ) {
return QAccessible : : queryAccessibleInterface ( param1 ) ;
}
2024-08-29 07:01:51 +00:00
unsigned int QAccessible_UniqueId ( QAccessibleInterface * iface ) {
2024-09-18 00:12:02 +00:00
QAccessible : : Id _ret = QAccessible : : uniqueId ( iface ) ;
return static_cast < unsigned int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
QAccessibleInterface * QAccessible_AccessibleInterface ( unsigned int uniqueId ) {
return QAccessible : : accessibleInterface ( static_cast < QAccessible : : Id > ( uniqueId ) ) ;
}
unsigned int QAccessible_RegisterAccessibleInterface ( QAccessibleInterface * iface ) {
2024-09-18 00:12:02 +00:00
QAccessible : : Id _ret = QAccessible : : registerAccessibleInterface ( iface ) ;
return static_cast < unsigned int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
void QAccessible_DeleteAccessibleInterface ( unsigned int uniqueId ) {
QAccessible : : deleteAccessibleInterface ( static_cast < QAccessible : : Id > ( uniqueId ) ) ;
}
2024-08-25 04:08:24 +00:00
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 ( ) ;
}
2024-11-17 06:21:37 +00:00
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 ;
}
2024-11-19 06:29:06 +00:00
void QAccessible_Delete ( QAccessible * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessible * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QAccessibleInterface_IsValid ( const QAccessibleInterface * self ) {
return self - > isValid ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QObject * QAccessibleInterface_Object ( const QAccessibleInterface * self ) {
return self - > object ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QWindow * QAccessibleInterface_Window ( const QAccessibleInterface * self ) {
return self - > window ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
struct miqt_array /* of struct miqt_map tuple of QAccessibleInterface* and int */ QAccessibleInterface_Relations ( const QAccessibleInterface * self , int match ) {
QVector < QPair < QAccessibleInterface * , QAccessible : : Relation > > _ret = self - > relations ( static_cast < QAccessible : : Relation > ( match ) ) ;
2024-11-17 06:21:37 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_map /* tuple of QAccessibleInterface* and int */ * _arr = static_cast < struct miqt_map /* tuple of QAccessibleInterface* and int */ * > ( malloc ( sizeof ( struct miqt_map /* tuple of QAccessibleInterface* and int */ ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
QPair < QAccessibleInterface * , QFlags < QAccessible : : RelationFlag > > _vv_ret = _ret [ i ] ;
// Convert QPair<> from C++ memory to manually-managed C memory
QAccessibleInterface * * _vv_first_arr = static_cast < QAccessibleInterface * * > ( malloc ( sizeof ( QAccessibleInterface * ) ) ) ;
int * _vv_second_arr = static_cast < int * > ( malloc ( sizeof ( int ) ) ) ;
_vv_first_arr [ 0 ] = _vv_ret . first ;
QFlags < QAccessible : : RelationFlag > _vv_second_ret = _vv_ret . second ;
_vv_second_arr [ 0 ] = static_cast < int > ( _vv_second_ret ) ;
struct miqt_map _vv_out ;
_vv_out . len = 1 ;
_vv_out . keys = static_cast < void * > ( _vv_first_arr ) ;
_vv_out . values = static_cast < void * > ( _vv_second_arr ) ;
_arr [ i ] = _vv_out ;
}
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
return _out ;
}
2024-09-11 05:41:09 +00:00
QAccessibleInterface * QAccessibleInterface_FocusChild ( const QAccessibleInterface * self ) {
return self - > focusChild ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QAccessibleInterface * QAccessibleInterface_ChildAt ( const QAccessibleInterface * self , int x , int y ) {
return self - > childAt ( static_cast < int > ( x ) , static_cast < int > ( y ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QAccessibleInterface * QAccessibleInterface_Parent ( const QAccessibleInterface * self ) {
return self - > parent ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QAccessibleInterface * QAccessibleInterface_Child ( const QAccessibleInterface * self , int index ) {
return self - > child ( static_cast < int > ( index ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleInterface_ChildCount ( const QAccessibleInterface * self ) {
return self - > childCount ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleInterface_IndexOfChild ( const QAccessibleInterface * self , QAccessibleInterface * param1 ) {
return self - > indexOfChild ( param1 ) ;
2024-08-29 07:01:51 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleInterface_Text ( const QAccessibleInterface * self , int t ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > text ( static_cast < QAccessible : : Text > ( t ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-29 07:01:51 +00:00
}
2024-10-18 23:53:33 +00:00
void QAccessibleInterface_SetText ( QAccessibleInterface * self , int t , struct miqt_string text ) {
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-08-29 07:01:51 +00:00
self - > setText ( static_cast < QAccessible : : Text > ( t ) , text_QString ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QRect * QAccessibleInterface_Rect ( const QAccessibleInterface * self ) {
2024-09-17 06:29:11 +00:00
return new QRect ( self - > rect ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-18 00:12:02 +00:00
int QAccessibleInterface_Role ( const QAccessibleInterface * self ) {
2024-09-14 22:29:05 +00:00
QAccessible : : Role _ret = self - > role ( ) ;
2024-09-18 00:12:02 +00:00
return static_cast < int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QAccessible__State * QAccessibleInterface_State ( const QAccessibleInterface * self ) {
2024-09-17 06:29:11 +00:00
return new QAccessible : : State ( self - > state ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QColor * QAccessibleInterface_ForegroundColor ( const QAccessibleInterface * self ) {
2024-09-17 06:29:11 +00:00
return new QColor ( self - > foregroundColor ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QColor * QAccessibleInterface_BackgroundColor ( const QAccessibleInterface * self ) {
2024-09-17 06:29:11 +00:00
return new QColor ( self - > backgroundColor ( ) ) ;
2024-08-25 04:08:24 +00:00
}
QAccessibleTextInterface * QAccessibleInterface_TextInterface ( QAccessibleInterface * self ) {
return self - > textInterface ( ) ;
}
QAccessibleEditableTextInterface * QAccessibleInterface_EditableTextInterface ( QAccessibleInterface * self ) {
return self - > editableTextInterface ( ) ;
}
QAccessibleValueInterface * QAccessibleInterface_ValueInterface ( QAccessibleInterface * self ) {
return self - > valueInterface ( ) ;
}
QAccessibleActionInterface * QAccessibleInterface_ActionInterface ( QAccessibleInterface * self ) {
return self - > actionInterface ( ) ;
}
QAccessibleImageInterface * QAccessibleInterface_ImageInterface ( QAccessibleInterface * self ) {
return self - > imageInterface ( ) ;
}
QAccessibleTableInterface * QAccessibleInterface_TableInterface ( QAccessibleInterface * self ) {
return self - > tableInterface ( ) ;
}
QAccessibleTableCellInterface * QAccessibleInterface_TableCellInterface ( QAccessibleInterface * self ) {
return self - > tableCellInterface ( ) ;
}
2024-09-20 22:32:57 +00:00
void QAccessibleInterface_VirtualHook ( QAccessibleInterface * self , int id , void * data ) {
self - > virtual_hook ( static_cast < int > ( id ) , data ) ;
}
void * QAccessibleInterface_InterfaceCast ( QAccessibleInterface * self , int param1 ) {
return self - > interface_cast ( static_cast < QAccessible : : InterfaceType > ( param1 ) ) ;
}
2024-09-11 05:41:09 +00:00
void QAccessibleTextInterface_Selection ( const QAccessibleTextInterface * self , int selectionIndex , int * startOffset , int * endOffset ) {
self - > selection ( static_cast < int > ( selectionIndex ) , static_cast < int * > ( startOffset ) , static_cast < int * > ( endOffset ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTextInterface_SelectionCount ( const QAccessibleTextInterface * self ) {
return self - > selectionCount ( ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleTextInterface_AddSelection ( QAccessibleTextInterface * self , int startOffset , int endOffset ) {
self - > addSelection ( static_cast < int > ( startOffset ) , static_cast < int > ( endOffset ) ) ;
}
void QAccessibleTextInterface_RemoveSelection ( QAccessibleTextInterface * self , int selectionIndex ) {
self - > removeSelection ( static_cast < int > ( selectionIndex ) ) ;
}
void QAccessibleTextInterface_SetSelection ( QAccessibleTextInterface * self , int selectionIndex , int startOffset , int endOffset ) {
self - > setSelection ( static_cast < int > ( selectionIndex ) , static_cast < int > ( startOffset ) , static_cast < int > ( endOffset ) ) ;
}
2024-09-11 05:41:09 +00:00
int QAccessibleTextInterface_CursorPosition ( const QAccessibleTextInterface * self ) {
return self - > cursorPosition ( ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleTextInterface_SetCursorPosition ( QAccessibleTextInterface * self , int position ) {
self - > setCursorPosition ( static_cast < int > ( position ) ) ;
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTextInterface_Text ( const QAccessibleTextInterface * self , int startOffset , int endOffset ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > text ( static_cast < int > ( startOffset ) , static_cast < int > ( endOffset ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-29 07:01:51 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTextInterface_TextBeforeOffset ( const QAccessibleTextInterface * self , int offset , int boundaryType , int * startOffset , int * endOffset ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > textBeforeOffset ( static_cast < int > ( offset ) , static_cast < QAccessible : : TextBoundaryType > ( boundaryType ) , static_cast < int * > ( startOffset ) , static_cast < int * > ( endOffset ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-29 07:01:51 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTextInterface_TextAfterOffset ( const QAccessibleTextInterface * self , int offset , int boundaryType , int * startOffset , int * endOffset ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > textAfterOffset ( static_cast < int > ( offset ) , static_cast < QAccessible : : TextBoundaryType > ( boundaryType ) , static_cast < int * > ( startOffset ) , static_cast < int * > ( endOffset ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-29 07:01:51 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTextInterface_TextAtOffset ( const QAccessibleTextInterface * self , int offset , int boundaryType , int * startOffset , int * endOffset ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > textAtOffset ( static_cast < int > ( offset ) , static_cast < QAccessible : : TextBoundaryType > ( boundaryType ) , static_cast < int * > ( startOffset ) , static_cast < int * > ( endOffset ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTextInterface_CharacterCount ( const QAccessibleTextInterface * self ) {
return self - > characterCount ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QRect * QAccessibleTextInterface_CharacterRect ( const QAccessibleTextInterface * self , int offset ) {
2024-09-17 06:29:11 +00:00
return new QRect ( self - > characterRect ( static_cast < int > ( offset ) ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTextInterface_OffsetAtPoint ( const QAccessibleTextInterface * self , QPoint * point ) {
return self - > offsetAtPoint ( * point ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleTextInterface_ScrollToSubstring ( QAccessibleTextInterface * self , int startIndex , int endIndex ) {
self - > scrollToSubstring ( static_cast < int > ( startIndex ) , static_cast < int > ( endIndex ) ) ;
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTextInterface_Attributes ( const QAccessibleTextInterface * self , int offset , int * startOffset , int * endOffset ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > attributes ( static_cast < int > ( offset ) , static_cast < int * > ( startOffset ) , static_cast < int * > ( endOffset ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleTextInterface_OperatorAssign ( QAccessibleTextInterface * self , QAccessibleTextInterface * param1 ) {
self - > operator = ( * param1 ) ;
}
2024-11-19 06:29:06 +00:00
void QAccessibleTextInterface_Delete ( QAccessibleTextInterface * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleTextInterface * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
void QAccessibleEditableTextInterface_DeleteText ( QAccessibleEditableTextInterface * self , int startOffset , int endOffset ) {
self - > deleteText ( static_cast < int > ( startOffset ) , static_cast < int > ( endOffset ) ) ;
}
2024-10-18 23:53:33 +00:00
void QAccessibleEditableTextInterface_InsertText ( QAccessibleEditableTextInterface * self , int offset , struct miqt_string text ) {
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-08-25 04:08:24 +00:00
self - > insertText ( static_cast < int > ( offset ) , text_QString ) ;
}
2024-10-18 23:53:33 +00:00
void QAccessibleEditableTextInterface_ReplaceText ( QAccessibleEditableTextInterface * self , int startOffset , int endOffset , struct miqt_string text ) {
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-08-25 04:08:24 +00:00
self - > replaceText ( static_cast < int > ( startOffset ) , static_cast < int > ( endOffset ) , text_QString ) ;
}
void QAccessibleEditableTextInterface_OperatorAssign ( QAccessibleEditableTextInterface * self , QAccessibleEditableTextInterface * param1 ) {
self - > operator = ( * param1 ) ;
}
2024-11-19 06:29:06 +00:00
void QAccessibleEditableTextInterface_Delete ( QAccessibleEditableTextInterface * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleEditableTextInterface * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QVariant * QAccessibleValueInterface_CurrentValue ( const QAccessibleValueInterface * self ) {
2024-09-17 06:29:11 +00:00
return new QVariant ( self - > currentValue ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleValueInterface_SetCurrentValue ( QAccessibleValueInterface * self , QVariant * value ) {
self - > setCurrentValue ( * value ) ;
}
2024-09-11 05:41:09 +00:00
QVariant * QAccessibleValueInterface_MaximumValue ( const QAccessibleValueInterface * self ) {
2024-09-17 06:29:11 +00:00
return new QVariant ( self - > maximumValue ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QVariant * QAccessibleValueInterface_MinimumValue ( const QAccessibleValueInterface * self ) {
2024-09-17 06:29:11 +00:00
return new QVariant ( self - > minimumValue ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QVariant * QAccessibleValueInterface_MinimumStepSize ( const QAccessibleValueInterface * self ) {
2024-09-17 06:29:11 +00:00
return new QVariant ( self - > minimumStepSize ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleValueInterface_OperatorAssign ( QAccessibleValueInterface * self , QAccessibleValueInterface * param1 ) {
self - > operator = ( * param1 ) ;
}
2024-11-19 06:29:06 +00:00
void QAccessibleValueInterface_Delete ( QAccessibleValueInterface * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleValueInterface * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QAccessibleTableCellInterface_IsSelected ( const QAccessibleTableCellInterface * self ) {
return self - > isSelected ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_ColumnHeaderCells ( const QAccessibleTableCellInterface * self ) {
2024-09-18 00:12:02 +00:00
QList < QAccessibleInterface * > _ret = self - > columnHeaderCells ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-14 22:29:05 +00:00
QAccessibleInterface * * _arr = static_cast < QAccessibleInterface * * > ( malloc ( sizeof ( QAccessibleInterface * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-25 04:08:24 +00:00
}
2024-11-04 07:18:27 +00:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-14 22:29:05 +00:00
return _out ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableCellInterface_RowHeaderCells ( const QAccessibleTableCellInterface * self ) {
2024-09-18 00:12:02 +00:00
QList < QAccessibleInterface * > _ret = self - > rowHeaderCells ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-14 22:29:05 +00:00
QAccessibleInterface * * _arr = static_cast < QAccessibleInterface * * > ( malloc ( sizeof ( QAccessibleInterface * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-25 04:08:24 +00:00
}
2024-11-04 07:18:27 +00:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-14 22:29:05 +00:00
return _out ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableCellInterface_ColumnIndex ( const QAccessibleTableCellInterface * self ) {
return self - > columnIndex ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableCellInterface_RowIndex ( const QAccessibleTableCellInterface * self ) {
return self - > rowIndex ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableCellInterface_ColumnExtent ( const QAccessibleTableCellInterface * self ) {
return self - > columnExtent ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableCellInterface_RowExtent ( const QAccessibleTableCellInterface * self ) {
return self - > rowExtent ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QAccessibleInterface * QAccessibleTableCellInterface_Table ( const QAccessibleTableCellInterface * self ) {
return self - > table ( ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleTableCellInterface_OperatorAssign ( QAccessibleTableCellInterface * self , QAccessibleTableCellInterface * param1 ) {
self - > operator = ( * param1 ) ;
}
2024-11-19 06:29:06 +00:00
void QAccessibleTableCellInterface_Delete ( QAccessibleTableCellInterface * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleTableCellInterface * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QAccessibleInterface * QAccessibleTableInterface_Caption ( const QAccessibleTableInterface * self ) {
return self - > caption ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QAccessibleInterface * QAccessibleTableInterface_Summary ( const QAccessibleTableInterface * self ) {
return self - > summary ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QAccessibleInterface * QAccessibleTableInterface_CellAt ( const QAccessibleTableInterface * self , int row , int column ) {
return self - > cellAt ( static_cast < int > ( row ) , static_cast < int > ( column ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableInterface_SelectedCellCount ( const QAccessibleTableInterface * self ) {
return self - > selectedCellCount ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of QAccessibleInterface* */ QAccessibleTableInterface_SelectedCells ( const QAccessibleTableInterface * self ) {
2024-09-18 00:12:02 +00:00
QList < QAccessibleInterface * > _ret = self - > selectedCells ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-14 22:29:05 +00:00
QAccessibleInterface * * _arr = static_cast < QAccessibleInterface * * > ( malloc ( sizeof ( QAccessibleInterface * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-25 04:08:24 +00:00
}
2024-11-04 07:18:27 +00:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-14 22:29:05 +00:00
return _out ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTableInterface_ColumnDescription ( const QAccessibleTableInterface * self , int column ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > columnDescription ( static_cast < int > ( column ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTableInterface_RowDescription ( const QAccessibleTableInterface * self , int row ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > rowDescription ( static_cast < int > ( row ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableInterface_SelectedColumnCount ( const QAccessibleTableInterface * self ) {
return self - > selectedColumnCount ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableInterface_SelectedRowCount ( const QAccessibleTableInterface * self ) {
return self - > selectedRowCount ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableInterface_ColumnCount ( const QAccessibleTableInterface * self ) {
return self - > columnCount ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableInterface_RowCount ( const QAccessibleTableInterface * self ) {
return self - > rowCount ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of int */ QAccessibleTableInterface_SelectedColumns ( const QAccessibleTableInterface * self ) {
2024-09-14 22:29:05 +00:00
QList < int > _ret = self - > selectedColumns ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-14 22:29:05 +00:00
int * _arr = static_cast < int * > ( malloc ( sizeof ( int ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-25 04:08:24 +00:00
}
2024-11-04 07:18:27 +00:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-14 22:29:05 +00:00
return _out ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of int */ QAccessibleTableInterface_SelectedRows ( const QAccessibleTableInterface * self ) {
2024-09-14 22:29:05 +00:00
QList < int > _ret = self - > selectedRows ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-14 22:29:05 +00:00
int * _arr = static_cast < int * > ( malloc ( sizeof ( int ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-25 04:08:24 +00:00
}
2024-11-04 07:18:27 +00:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-14 22:29:05 +00:00
return _out ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QAccessibleTableInterface_IsColumnSelected ( const QAccessibleTableInterface * self , int column ) {
return self - > isColumnSelected ( static_cast < int > ( column ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QAccessibleTableInterface_IsRowSelected ( const QAccessibleTableInterface * self , int row ) {
return self - > isRowSelected ( static_cast < int > ( row ) ) ;
2024-08-25 04:08:24 +00:00
}
bool QAccessibleTableInterface_SelectRow ( QAccessibleTableInterface * self , int row ) {
return self - > selectRow ( static_cast < int > ( row ) ) ;
}
bool QAccessibleTableInterface_SelectColumn ( QAccessibleTableInterface * self , int column ) {
return self - > selectColumn ( static_cast < int > ( column ) ) ;
}
bool QAccessibleTableInterface_UnselectRow ( QAccessibleTableInterface * self , int row ) {
return self - > unselectRow ( static_cast < int > ( row ) ) ;
}
bool QAccessibleTableInterface_UnselectColumn ( QAccessibleTableInterface * self , int column ) {
return self - > unselectColumn ( static_cast < int > ( column ) ) ;
}
void QAccessibleTableInterface_ModelChange ( QAccessibleTableInterface * self , QAccessibleTableModelChangeEvent * event ) {
self - > modelChange ( event ) ;
}
2024-11-19 06:29:06 +00:00
void QAccessibleTableInterface_Delete ( QAccessibleTableInterface * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleTableInterface * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_Tr ( const char * sourceText ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : tr ( sourceText ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_TrUtf8 ( const char * sourceText ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : trUtf8 ( sourceText ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_ActionNames ( const QAccessibleActionInterface * self ) {
2024-09-14 22:29:05 +00:00
QStringList _ret = self - > actionNames ( ) ;
2024-09-17 06:29:11 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-10-18 23:53:33 +00:00
struct miqt_string * _arr = static_cast < struct miqt_string * > ( malloc ( sizeof ( struct miqt_string ) * _ret . length ( ) ) ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
QString _lv_ret = _ret [ i ] ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _lv_b = _lv_ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _lv_ms ;
_lv_ms . len = _lv_b . length ( ) ;
_lv_ms . data = static_cast < char * > ( malloc ( _lv_ms . len ) ) ;
memcpy ( _lv_ms . data , _lv_b . data ( ) , _lv_ms . len ) ;
_arr [ i ] = _lv_ms ;
2024-08-25 04:08:24 +00:00
}
2024-11-04 07:18:27 +00:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-14 22:29:05 +00:00
return _out ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_LocalizedActionName ( const QAccessibleActionInterface * self , struct miqt_string name ) {
QString name_QString = QString : : fromUtf8 ( name . data , name . len ) ;
2024-09-14 22:29:05 +00:00
QString _ret = self - > localizedActionName ( name_QString ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_LocalizedActionDescription ( const QAccessibleActionInterface * self , struct miqt_string name ) {
QString name_QString = QString : : fromUtf8 ( name . data , name . len ) ;
2024-09-14 22:29:05 +00:00
QString _ret = self - > localizedActionDescription ( name_QString ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
void QAccessibleActionInterface_DoAction ( QAccessibleActionInterface * self , struct miqt_string actionName ) {
QString actionName_QString = QString : : fromUtf8 ( actionName . data , actionName . len ) ;
2024-08-25 04:08:24 +00:00
self - > doAction ( actionName_QString ) ;
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of struct miqt_string */ QAccessibleActionInterface_KeyBindingsForAction ( const QAccessibleActionInterface * self , struct miqt_string actionName ) {
2024-10-18 23:53:33 +00:00
QString actionName_QString = QString : : fromUtf8 ( actionName . data , actionName . len ) ;
2024-09-14 22:29:05 +00:00
QStringList _ret = self - > keyBindingsForAction ( actionName_QString ) ;
2024-09-17 06:29:11 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-10-18 23:53:33 +00:00
struct miqt_string * _arr = static_cast < struct miqt_string * > ( malloc ( sizeof ( struct miqt_string ) * _ret . length ( ) ) ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
QString _lv_ret = _ret [ i ] ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _lv_b = _lv_ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _lv_ms ;
_lv_ms . len = _lv_b . length ( ) ;
_lv_ms . data = static_cast < char * > ( malloc ( _lv_ms . len ) ) ;
memcpy ( _lv_ms . data , _lv_b . data ( ) , _lv_ms . len ) ;
_arr [ i ] = _lv_ms ;
2024-08-25 04:08:24 +00:00
}
2024-11-04 07:18:27 +00:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-14 22:29:05 +00:00
return _out ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_PressAction ( ) {
2024-09-14 22:29:05 +00:00
const QString _ret = QAccessibleActionInterface : : pressAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_IncreaseAction ( ) {
2024-09-14 22:29:05 +00:00
const QString _ret = QAccessibleActionInterface : : increaseAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_DecreaseAction ( ) {
2024-09-14 22:29:05 +00:00
const QString _ret = QAccessibleActionInterface : : decreaseAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_ShowMenuAction ( ) {
2024-09-14 22:29:05 +00:00
const QString _ret = QAccessibleActionInterface : : showMenuAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_SetFocusAction ( ) {
2024-09-14 22:29:05 +00:00
const QString _ret = QAccessibleActionInterface : : setFocusAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_ToggleAction ( ) {
2024-09-14 22:29:05 +00:00
const QString _ret = QAccessibleActionInterface : : toggleAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_ScrollLeftAction ( ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : scrollLeftAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_ScrollRightAction ( ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : scrollRightAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_ScrollUpAction ( ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : scrollUpAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_ScrollDownAction ( ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : scrollDownAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_NextPageAction ( ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : nextPageAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_PreviousPageAction ( ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : previousPageAction ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleActionInterface_OperatorAssign ( QAccessibleActionInterface * self , QAccessibleActionInterface * param1 ) {
self - > operator = ( * param1 ) ;
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_Tr2 ( const char * sourceText , const char * disambiguation ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : tr ( sourceText , disambiguation ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_Tr3 ( const char * sourceText , const char * disambiguation , int n ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : tr ( sourceText , disambiguation , static_cast < int > ( n ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_TrUtf82 ( const char * sourceText , const char * disambiguation ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : trUtf8 ( sourceText , disambiguation ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleActionInterface_TrUtf83 ( const char * sourceText , const char * disambiguation , int n ) {
2024-09-14 22:29:05 +00:00
QString _ret = QAccessibleActionInterface : : trUtf8 ( sourceText , disambiguation , static_cast < int > ( n ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessibleActionInterface_Delete ( QAccessibleActionInterface * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleActionInterface * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleImageInterface_ImageDescription ( const QAccessibleImageInterface * self ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > imageDescription ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QSize * QAccessibleImageInterface_ImageSize ( const QAccessibleImageInterface * self ) {
2024-09-17 06:29:11 +00:00
return new QSize ( self - > imageSize ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QPoint * QAccessibleImageInterface_ImagePosition ( const QAccessibleImageInterface * self ) {
2024-09-17 06:29:11 +00:00
return new QPoint ( self - > imagePosition ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleImageInterface_OperatorAssign ( QAccessibleImageInterface * self , QAccessibleImageInterface * param1 ) {
self - > operator = ( * param1 ) ;
}
2024-11-19 06:29:06 +00:00
void QAccessibleImageInterface_Delete ( QAccessibleImageInterface * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleImageInterface * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
class MiqtVirtualQAccessibleEvent : public virtual QAccessibleEvent {
public :
MiqtVirtualQAccessibleEvent ( QObject * obj , QAccessible : : Event typ ) : QAccessibleEvent ( obj , typ ) { } ;
MiqtVirtualQAccessibleEvent ( QAccessibleInterface * iface , QAccessible : : Event typ ) : QAccessibleEvent ( iface , typ ) { } ;
virtual ~ MiqtVirtualQAccessibleEvent ( ) = default ;
// cgo.Handle value for overwritten implementation
intptr_t handle__AccessibleInterface = 0 ;
// Subclass to allow providing a Go implementation
virtual QAccessibleInterface * accessibleInterface ( ) const override {
if ( handle__AccessibleInterface = = 0 ) {
return QAccessibleEvent : : accessibleInterface ( ) ;
}
QAccessibleInterface * callback_return_value = miqt_exec_callback_QAccessibleEvent_AccessibleInterface ( const_cast < MiqtVirtualQAccessibleEvent * > ( this ) , handle__AccessibleInterface ) ;
return callback_return_value ;
}
// Wrapper to allow calling protected method
QAccessibleInterface * virtualbase_AccessibleInterface ( ) const {
return QAccessibleEvent : : accessibleInterface ( ) ;
}
} ;
2024-12-07 04:15:57 +00:00
QAccessibleEvent * QAccessibleEvent_new ( QObject * obj , int typ ) {
return new MiqtVirtualQAccessibleEvent ( obj , static_cast < QAccessible : : Event > ( typ ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleEvent * QAccessibleEvent_new2 ( QAccessibleInterface * iface , int typ ) {
return new MiqtVirtualQAccessibleEvent ( iface , static_cast < QAccessible : : Event > ( typ ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
int QAccessibleEvent_Type ( const QAccessibleEvent * self ) {
2024-09-14 22:29:05 +00:00
QAccessible : : Event _ret = self - > type ( ) ;
2024-09-18 00:12:02 +00:00
return static_cast < int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QObject * QAccessibleEvent_Object ( const QAccessibleEvent * self ) {
return self - > object ( ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
unsigned int QAccessibleEvent_UniqueId ( const QAccessibleEvent * self ) {
2024-09-18 00:12:02 +00:00
QAccessible : : Id _ret = self - > uniqueId ( ) ;
return static_cast < unsigned int > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleEvent_SetChild ( QAccessibleEvent * self , int chld ) {
self - > setChild ( static_cast < int > ( chld ) ) ;
}
2024-09-11 05:41:09 +00:00
int QAccessibleEvent_Child ( const QAccessibleEvent * self ) {
return self - > child ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QAccessibleInterface * QAccessibleEvent_AccessibleInterface ( const QAccessibleEvent * self ) {
return self - > accessibleInterface ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessibleEvent_override_virtual_AccessibleInterface ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQAccessibleEvent * > ( ( QAccessibleEvent * ) ( self ) ) - > handle__AccessibleInterface = slot ;
}
QAccessibleInterface * QAccessibleEvent_virtualbase_AccessibleInterface ( const void * self ) {
return ( ( const MiqtVirtualQAccessibleEvent * ) ( self ) ) - > virtualbase_AccessibleInterface ( ) ;
}
void QAccessibleEvent_Delete ( QAccessibleEvent * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < MiqtVirtualQAccessibleEvent * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
class MiqtVirtualQAccessibleStateChangeEvent : public virtual QAccessibleStateChangeEvent {
public :
MiqtVirtualQAccessibleStateChangeEvent ( QObject * obj , QAccessible : : State state ) : QAccessibleStateChangeEvent ( obj , state ) { } ;
MiqtVirtualQAccessibleStateChangeEvent ( QAccessibleInterface * iface , QAccessible : : State state ) : QAccessibleStateChangeEvent ( iface , state ) { } ;
virtual ~ MiqtVirtualQAccessibleStateChangeEvent ( ) = default ;
// cgo.Handle value for overwritten implementation
intptr_t handle__AccessibleInterface = 0 ;
// Subclass to allow providing a Go implementation
virtual QAccessibleInterface * accessibleInterface ( ) const override {
if ( handle__AccessibleInterface = = 0 ) {
return QAccessibleStateChangeEvent : : accessibleInterface ( ) ;
}
QAccessibleInterface * callback_return_value = miqt_exec_callback_QAccessibleStateChangeEvent_AccessibleInterface ( const_cast < MiqtVirtualQAccessibleStateChangeEvent * > ( this ) , handle__AccessibleInterface ) ;
return callback_return_value ;
}
// Wrapper to allow calling protected method
QAccessibleInterface * virtualbase_AccessibleInterface ( ) const {
return QAccessibleStateChangeEvent : : accessibleInterface ( ) ;
}
} ;
2024-12-07 04:15:57 +00:00
QAccessibleStateChangeEvent * QAccessibleStateChangeEvent_new ( QObject * obj , QAccessible__State * state ) {
return new MiqtVirtualQAccessibleStateChangeEvent ( obj , * state ) ;
2024-08-29 07:01:51 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleStateChangeEvent * QAccessibleStateChangeEvent_new2 ( QAccessibleInterface * iface , QAccessible__State * state ) {
return new MiqtVirtualQAccessibleStateChangeEvent ( iface , * state ) ;
}
void QAccessibleStateChangeEvent_virtbase ( QAccessibleStateChangeEvent * src , QAccessibleEvent * * outptr_QAccessibleEvent ) {
* outptr_QAccessibleEvent = static_cast < QAccessibleEvent * > ( src ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-11 05:41:09 +00:00
QAccessible__State * QAccessibleStateChangeEvent_ChangedStates ( const QAccessibleStateChangeEvent * self ) {
2024-09-17 06:29:11 +00:00
return new QAccessible : : State ( self - > changedStates ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessibleStateChangeEvent_override_virtual_AccessibleInterface ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQAccessibleStateChangeEvent * > ( ( QAccessibleStateChangeEvent * ) ( self ) ) - > handle__AccessibleInterface = slot ;
}
QAccessibleInterface * QAccessibleStateChangeEvent_virtualbase_AccessibleInterface ( const void * self ) {
return ( ( const MiqtVirtualQAccessibleStateChangeEvent * ) ( self ) ) - > virtualbase_AccessibleInterface ( ) ;
}
void QAccessibleStateChangeEvent_Delete ( QAccessibleStateChangeEvent * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < MiqtVirtualQAccessibleStateChangeEvent * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
class MiqtVirtualQAccessibleTextCursorEvent : public virtual QAccessibleTextCursorEvent {
public :
MiqtVirtualQAccessibleTextCursorEvent ( QObject * obj , int cursorPos ) : QAccessibleTextCursorEvent ( obj , cursorPos ) { } ;
MiqtVirtualQAccessibleTextCursorEvent ( QAccessibleInterface * iface , int cursorPos ) : QAccessibleTextCursorEvent ( iface , cursorPos ) { } ;
virtual ~ MiqtVirtualQAccessibleTextCursorEvent ( ) = default ;
// cgo.Handle value for overwritten implementation
intptr_t handle__AccessibleInterface = 0 ;
// Subclass to allow providing a Go implementation
virtual QAccessibleInterface * accessibleInterface ( ) const override {
if ( handle__AccessibleInterface = = 0 ) {
return QAccessibleTextCursorEvent : : accessibleInterface ( ) ;
}
QAccessibleInterface * callback_return_value = miqt_exec_callback_QAccessibleTextCursorEvent_AccessibleInterface ( const_cast < MiqtVirtualQAccessibleTextCursorEvent * > ( this ) , handle__AccessibleInterface ) ;
return callback_return_value ;
}
// Wrapper to allow calling protected method
QAccessibleInterface * virtualbase_AccessibleInterface ( ) const {
return QAccessibleTextCursorEvent : : accessibleInterface ( ) ;
}
} ;
2024-12-07 04:15:57 +00:00
QAccessibleTextCursorEvent * QAccessibleTextCursorEvent_new ( QObject * obj , int cursorPos ) {
return new MiqtVirtualQAccessibleTextCursorEvent ( obj , static_cast < int > ( cursorPos ) ) ;
}
QAccessibleTextCursorEvent * QAccessibleTextCursorEvent_new2 ( QAccessibleInterface * iface , int cursorPos ) {
return new MiqtVirtualQAccessibleTextCursorEvent ( iface , static_cast < int > ( cursorPos ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
void QAccessibleTextCursorEvent_virtbase ( QAccessibleTextCursorEvent * src , QAccessibleEvent * * outptr_QAccessibleEvent ) {
* outptr_QAccessibleEvent = static_cast < QAccessibleEvent * > ( src ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleTextCursorEvent_SetCursorPosition ( QAccessibleTextCursorEvent * self , int position ) {
self - > setCursorPosition ( static_cast < int > ( position ) ) ;
}
2024-09-11 05:41:09 +00:00
int QAccessibleTextCursorEvent_CursorPosition ( const QAccessibleTextCursorEvent * self ) {
return self - > cursorPosition ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessibleTextCursorEvent_override_virtual_AccessibleInterface ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQAccessibleTextCursorEvent * > ( ( QAccessibleTextCursorEvent * ) ( self ) ) - > handle__AccessibleInterface = slot ;
}
QAccessibleInterface * QAccessibleTextCursorEvent_virtualbase_AccessibleInterface ( const void * self ) {
return ( ( const MiqtVirtualQAccessibleTextCursorEvent * ) ( self ) ) - > virtualbase_AccessibleInterface ( ) ;
}
void QAccessibleTextCursorEvent_Delete ( QAccessibleTextCursorEvent * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < MiqtVirtualQAccessibleTextCursorEvent * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleTextSelectionEvent * QAccessibleTextSelectionEvent_new ( QObject * obj , int start , int end ) {
return new QAccessibleTextSelectionEvent ( obj , static_cast < int > ( start ) , static_cast < int > ( end ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleTextSelectionEvent * QAccessibleTextSelectionEvent_new2 ( QAccessibleInterface * iface , int start , int end ) {
return new QAccessibleTextSelectionEvent ( iface , static_cast < int > ( start ) , static_cast < int > ( end ) ) ;
}
void QAccessibleTextSelectionEvent_virtbase ( QAccessibleTextSelectionEvent * src , QAccessibleTextCursorEvent * * outptr_QAccessibleTextCursorEvent ) {
* outptr_QAccessibleTextCursorEvent = static_cast < QAccessibleTextCursorEvent * > ( src ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleTextSelectionEvent_SetSelection ( QAccessibleTextSelectionEvent * self , int start , int end ) {
self - > setSelection ( static_cast < int > ( start ) , static_cast < int > ( end ) ) ;
}
2024-09-11 05:41:09 +00:00
int QAccessibleTextSelectionEvent_SelectionStart ( const QAccessibleTextSelectionEvent * self ) {
return self - > selectionStart ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTextSelectionEvent_SelectionEnd ( const QAccessibleTextSelectionEvent * self ) {
return self - > selectionEnd ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessibleTextSelectionEvent_Delete ( QAccessibleTextSelectionEvent * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleTextSelectionEvent * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleTextInsertEvent * QAccessibleTextInsertEvent_new ( QObject * obj , int position , struct miqt_string text ) {
2024-10-18 23:53:33 +00:00
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-12-07 04:15:57 +00:00
return new QAccessibleTextInsertEvent ( obj , static_cast < int > ( position ) , text_QString ) ;
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleTextInsertEvent * QAccessibleTextInsertEvent_new2 ( QAccessibleInterface * iface , int position , struct miqt_string text ) {
2024-10-18 23:53:33 +00:00
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-12-07 04:15:57 +00:00
return new QAccessibleTextInsertEvent ( iface , static_cast < int > ( position ) , text_QString ) ;
}
void QAccessibleTextInsertEvent_virtbase ( QAccessibleTextInsertEvent * src , QAccessibleTextCursorEvent * * outptr_QAccessibleTextCursorEvent ) {
* outptr_QAccessibleTextCursorEvent = static_cast < QAccessibleTextCursorEvent * > ( src ) ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTextInsertEvent_TextInserted ( const QAccessibleTextInsertEvent * self ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > textInserted ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTextInsertEvent_ChangePosition ( const QAccessibleTextInsertEvent * self ) {
return self - > changePosition ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessibleTextInsertEvent_Delete ( QAccessibleTextInsertEvent * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleTextInsertEvent * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleTextRemoveEvent * QAccessibleTextRemoveEvent_new ( QObject * obj , int position , struct miqt_string text ) {
2024-10-18 23:53:33 +00:00
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-12-07 04:15:57 +00:00
return new QAccessibleTextRemoveEvent ( obj , static_cast < int > ( position ) , text_QString ) ;
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleTextRemoveEvent * QAccessibleTextRemoveEvent_new2 ( QAccessibleInterface * iface , int position , struct miqt_string text ) {
2024-10-18 23:53:33 +00:00
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-12-07 04:15:57 +00:00
return new QAccessibleTextRemoveEvent ( iface , static_cast < int > ( position ) , text_QString ) ;
}
void QAccessibleTextRemoveEvent_virtbase ( QAccessibleTextRemoveEvent * src , QAccessibleTextCursorEvent * * outptr_QAccessibleTextCursorEvent ) {
* outptr_QAccessibleTextCursorEvent = static_cast < QAccessibleTextCursorEvent * > ( src ) ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTextRemoveEvent_TextRemoved ( const QAccessibleTextRemoveEvent * self ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > textRemoved ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTextRemoveEvent_ChangePosition ( const QAccessibleTextRemoveEvent * self ) {
return self - > changePosition ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessibleTextRemoveEvent_Delete ( QAccessibleTextRemoveEvent * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleTextRemoveEvent * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleTextUpdateEvent * QAccessibleTextUpdateEvent_new ( QObject * obj , int position , struct miqt_string oldText , struct miqt_string text ) {
2024-10-18 23:53:33 +00:00
QString oldText_QString = QString : : fromUtf8 ( oldText . data , oldText . len ) ;
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-12-07 04:15:57 +00:00
return new QAccessibleTextUpdateEvent ( obj , static_cast < int > ( position ) , oldText_QString , text_QString ) ;
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleTextUpdateEvent * QAccessibleTextUpdateEvent_new2 ( QAccessibleInterface * iface , int position , struct miqt_string oldText , struct miqt_string text ) {
2024-10-18 23:53:33 +00:00
QString oldText_QString = QString : : fromUtf8 ( oldText . data , oldText . len ) ;
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-12-07 04:15:57 +00:00
return new QAccessibleTextUpdateEvent ( iface , static_cast < int > ( position ) , oldText_QString , text_QString ) ;
}
void QAccessibleTextUpdateEvent_virtbase ( QAccessibleTextUpdateEvent * src , QAccessibleTextCursorEvent * * outptr_QAccessibleTextCursorEvent ) {
* outptr_QAccessibleTextCursorEvent = static_cast < QAccessibleTextCursorEvent * > ( src ) ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTextUpdateEvent_TextRemoved ( const QAccessibleTextUpdateEvent * self ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > textRemoved ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QAccessibleTextUpdateEvent_TextInserted ( const QAccessibleTextUpdateEvent * self ) {
2024-09-14 22:29:05 +00:00
QString _ret = self - > textInserted ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTextUpdateEvent_ChangePosition ( const QAccessibleTextUpdateEvent * self ) {
return self - > changePosition ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessibleTextUpdateEvent_Delete ( QAccessibleTextUpdateEvent * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessibleTextUpdateEvent * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
class MiqtVirtualQAccessibleValueChangeEvent : public virtual QAccessibleValueChangeEvent {
public :
MiqtVirtualQAccessibleValueChangeEvent ( QObject * obj , const QVariant & val ) : QAccessibleValueChangeEvent ( obj , val ) { } ;
MiqtVirtualQAccessibleValueChangeEvent ( QAccessibleInterface * iface , const QVariant & val ) : QAccessibleValueChangeEvent ( iface , val ) { } ;
virtual ~ MiqtVirtualQAccessibleValueChangeEvent ( ) = default ;
// cgo.Handle value for overwritten implementation
intptr_t handle__AccessibleInterface = 0 ;
// Subclass to allow providing a Go implementation
virtual QAccessibleInterface * accessibleInterface ( ) const override {
if ( handle__AccessibleInterface = = 0 ) {
return QAccessibleValueChangeEvent : : accessibleInterface ( ) ;
}
QAccessibleInterface * callback_return_value = miqt_exec_callback_QAccessibleValueChangeEvent_AccessibleInterface ( const_cast < MiqtVirtualQAccessibleValueChangeEvent * > ( this ) , handle__AccessibleInterface ) ;
return callback_return_value ;
}
// Wrapper to allow calling protected method
QAccessibleInterface * virtualbase_AccessibleInterface ( ) const {
return QAccessibleValueChangeEvent : : accessibleInterface ( ) ;
}
} ;
2024-12-07 04:15:57 +00:00
QAccessibleValueChangeEvent * QAccessibleValueChangeEvent_new ( QObject * obj , QVariant * val ) {
return new MiqtVirtualQAccessibleValueChangeEvent ( obj , * val ) ;
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessibleValueChangeEvent * QAccessibleValueChangeEvent_new2 ( QAccessibleInterface * iface , QVariant * val ) {
return new MiqtVirtualQAccessibleValueChangeEvent ( iface , * val ) ;
}
void QAccessibleValueChangeEvent_virtbase ( QAccessibleValueChangeEvent * src , QAccessibleEvent * * outptr_QAccessibleEvent ) {
* outptr_QAccessibleEvent = static_cast < QAccessibleEvent * > ( src ) ;
2024-08-25 04:08:24 +00:00
}
void QAccessibleValueChangeEvent_SetValue ( QAccessibleValueChangeEvent * self , QVariant * val ) {
self - > setValue ( * val ) ;
}
2024-09-11 05:41:09 +00:00
QVariant * QAccessibleValueChangeEvent_Value ( const QAccessibleValueChangeEvent * self ) {
2024-09-17 06:29:11 +00:00
return new QVariant ( self - > value ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessibleValueChangeEvent_override_virtual_AccessibleInterface ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQAccessibleValueChangeEvent * > ( ( QAccessibleValueChangeEvent * ) ( self ) ) - > handle__AccessibleInterface = slot ;
}
QAccessibleInterface * QAccessibleValueChangeEvent_virtualbase_AccessibleInterface ( const void * self ) {
return ( ( const MiqtVirtualQAccessibleValueChangeEvent * ) ( self ) ) - > virtualbase_AccessibleInterface ( ) ;
}
void QAccessibleValueChangeEvent_Delete ( QAccessibleValueChangeEvent * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < MiqtVirtualQAccessibleValueChangeEvent * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
class MiqtVirtualQAccessibleTableModelChangeEvent : public virtual QAccessibleTableModelChangeEvent {
public :
MiqtVirtualQAccessibleTableModelChangeEvent ( QObject * obj , QAccessibleTableModelChangeEvent : : ModelChangeType changeType ) : QAccessibleTableModelChangeEvent ( obj , changeType ) { } ;
MiqtVirtualQAccessibleTableModelChangeEvent ( QAccessibleInterface * iface , QAccessibleTableModelChangeEvent : : ModelChangeType changeType ) : QAccessibleTableModelChangeEvent ( iface , changeType ) { } ;
virtual ~ MiqtVirtualQAccessibleTableModelChangeEvent ( ) = default ;
// cgo.Handle value for overwritten implementation
intptr_t handle__AccessibleInterface = 0 ;
// Subclass to allow providing a Go implementation
virtual QAccessibleInterface * accessibleInterface ( ) const override {
if ( handle__AccessibleInterface = = 0 ) {
return QAccessibleTableModelChangeEvent : : accessibleInterface ( ) ;
}
QAccessibleInterface * callback_return_value = miqt_exec_callback_QAccessibleTableModelChangeEvent_AccessibleInterface ( const_cast < MiqtVirtualQAccessibleTableModelChangeEvent * > ( this ) , handle__AccessibleInterface ) ;
return callback_return_value ;
}
// Wrapper to allow calling protected method
QAccessibleInterface * virtualbase_AccessibleInterface ( ) const {
return QAccessibleTableModelChangeEvent : : accessibleInterface ( ) ;
}
} ;
2024-12-07 04:15:57 +00:00
QAccessibleTableModelChangeEvent * QAccessibleTableModelChangeEvent_new ( QObject * obj , int changeType ) {
return new MiqtVirtualQAccessibleTableModelChangeEvent ( obj , static_cast < QAccessibleTableModelChangeEvent : : ModelChangeType > ( changeType ) ) ;
}
QAccessibleTableModelChangeEvent * QAccessibleTableModelChangeEvent_new2 ( QAccessibleInterface * iface , int changeType ) {
return new MiqtVirtualQAccessibleTableModelChangeEvent ( iface , static_cast < QAccessibleTableModelChangeEvent : : ModelChangeType > ( changeType ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-12-07 04:15:57 +00:00
void QAccessibleTableModelChangeEvent_virtbase ( QAccessibleTableModelChangeEvent * src , QAccessibleEvent * * outptr_QAccessibleEvent ) {
* outptr_QAccessibleEvent = static_cast < QAccessibleEvent * > ( src ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
void QAccessibleTableModelChangeEvent_SetModelChangeType ( QAccessibleTableModelChangeEvent * self , int changeType ) {
2024-08-29 07:01:51 +00:00
self - > setModelChangeType ( static_cast < QAccessibleTableModelChangeEvent : : ModelChangeType > ( changeType ) ) ;
}
2024-09-18 00:12:02 +00:00
int QAccessibleTableModelChangeEvent_ModelChangeType ( const QAccessibleTableModelChangeEvent * self ) {
2024-09-14 22:29:05 +00:00
QAccessibleTableModelChangeEvent : : ModelChangeType _ret = self - > modelChangeType ( ) ;
2024-09-18 00:12:02 +00:00
return static_cast < int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-08-25 04:08:24 +00:00
void QAccessibleTableModelChangeEvent_SetFirstRow ( QAccessibleTableModelChangeEvent * self , int row ) {
self - > setFirstRow ( static_cast < int > ( row ) ) ;
}
void QAccessibleTableModelChangeEvent_SetFirstColumn ( QAccessibleTableModelChangeEvent * self , int col ) {
self - > setFirstColumn ( static_cast < int > ( col ) ) ;
}
void QAccessibleTableModelChangeEvent_SetLastRow ( QAccessibleTableModelChangeEvent * self , int row ) {
self - > setLastRow ( static_cast < int > ( row ) ) ;
}
void QAccessibleTableModelChangeEvent_SetLastColumn ( QAccessibleTableModelChangeEvent * self , int col ) {
self - > setLastColumn ( static_cast < int > ( col ) ) ;
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableModelChangeEvent_FirstRow ( const QAccessibleTableModelChangeEvent * self ) {
return self - > firstRow ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableModelChangeEvent_FirstColumn ( const QAccessibleTableModelChangeEvent * self ) {
return self - > firstColumn ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableModelChangeEvent_LastRow ( const QAccessibleTableModelChangeEvent * self ) {
return self - > lastRow ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
int QAccessibleTableModelChangeEvent_LastColumn ( const QAccessibleTableModelChangeEvent * self ) {
return self - > lastColumn ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessibleTableModelChangeEvent_override_virtual_AccessibleInterface ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQAccessibleTableModelChangeEvent * > ( ( QAccessibleTableModelChangeEvent * ) ( self ) ) - > handle__AccessibleInterface = slot ;
}
QAccessibleInterface * QAccessibleTableModelChangeEvent_virtualbase_AccessibleInterface ( const void * self ) {
return ( ( const MiqtVirtualQAccessibleTableModelChangeEvent * ) ( self ) ) - > virtualbase_AccessibleInterface ( ) ;
}
void QAccessibleTableModelChangeEvent_Delete ( QAccessibleTableModelChangeEvent * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < MiqtVirtualQAccessibleTableModelChangeEvent * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessible__State * QAccessible__State_new ( ) {
return new QAccessible : : State ( ) ;
2024-08-29 07:01:51 +00:00
}
2024-12-07 04:15:57 +00:00
QAccessible__State * QAccessible__State_new2 ( QAccessible__State * param1 ) {
return new QAccessible : : State ( * param1 ) ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QAccessible__State_Delete ( QAccessible__State * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessible : : State * > ( self ) ;
} else {
delete self ;
}
2024-08-29 07:01:51 +00:00
}
void QAccessible__ActivationObserver_AccessibilityActiveChanged ( QAccessible__ActivationObserver * self , bool active ) {
self - > accessibilityActiveChanged ( active ) ;
}
2024-09-18 00:12:02 +00:00
void QAccessible__ActivationObserver_OperatorAssign ( QAccessible__ActivationObserver * self , QAccessible__ActivationObserver * param1 ) {
self - > operator = ( * param1 ) ;
}
2024-11-19 06:29:06 +00:00
void QAccessible__ActivationObserver_Delete ( QAccessible__ActivationObserver * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QAccessible : : ActivationObserver * > ( self ) ;
} else {
delete self ;
}
2024-08-29 07:01:51 +00:00
}