miqt/qt/gen_qgraphicswidget.h

134 lines
7.1 KiB
C
Raw Normal View History

#ifndef GEN_QGRAPHICSWIDGET_H
#define GEN_QGRAPHICSWIDGET_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QAction;
class QFont;
2024-08-29 07:01:51 +00:00
class QGraphicsItem;
class QGraphicsLayout;
class QGraphicsWidget;
2024-08-29 07:01:51 +00:00
class QKeySequence;
class QMarginsF;
class QMetaObject;
class QPainter;
class QPainterPath;
class QPalette;
class QRectF;
class QSizeF;
class QStyle;
class QStyleOptionGraphicsItem;
class QWidget;
#else
typedef struct QAction QAction;
typedef struct QFont QFont;
2024-08-29 07:01:51 +00:00
typedef struct QGraphicsItem QGraphicsItem;
typedef struct QGraphicsLayout QGraphicsLayout;
typedef struct QGraphicsWidget QGraphicsWidget;
2024-08-29 07:01:51 +00:00
typedef struct QKeySequence QKeySequence;
typedef struct QMarginsF QMarginsF;
typedef struct QMetaObject QMetaObject;
typedef struct QPainter QPainter;
typedef struct QPainterPath QPainterPath;
typedef struct QPalette QPalette;
typedef struct QRectF QRectF;
typedef struct QSizeF QSizeF;
typedef struct QStyle QStyle;
typedef struct QStyleOptionGraphicsItem QStyleOptionGraphicsItem;
typedef struct QWidget QWidget;
#endif
2024-08-29 07:01:51 +00:00
QGraphicsWidget* QGraphicsWidget_new();
QGraphicsWidget* QGraphicsWidget_new2(QGraphicsItem* parent);
QGraphicsWidget* QGraphicsWidget_new3(QGraphicsItem* parent, int wFlags);
QMetaObject* QGraphicsWidget_MetaObject(QGraphicsWidget* self);
2024-08-29 07:01:51 +00:00
void QGraphicsWidget_Tr(const char* s, char** _out, int* _out_Strlen);
void QGraphicsWidget_TrUtf8(const char* s, char** _out, int* _out_Strlen);
QGraphicsLayout* QGraphicsWidget_Layout(QGraphicsWidget* self);
void QGraphicsWidget_SetLayout(QGraphicsWidget* self, QGraphicsLayout* layout);
void QGraphicsWidget_AdjustSize(QGraphicsWidget* self);
2024-08-29 07:01:51 +00:00
uintptr_t QGraphicsWidget_LayoutDirection(QGraphicsWidget* self);
void QGraphicsWidget_SetLayoutDirection(QGraphicsWidget* self, uintptr_t direction);
void QGraphicsWidget_UnsetLayoutDirection(QGraphicsWidget* self);
QStyle* QGraphicsWidget_Style(QGraphicsWidget* self);
void QGraphicsWidget_SetStyle(QGraphicsWidget* self, QStyle* style);
QFont* QGraphicsWidget_Font(QGraphicsWidget* self);
void QGraphicsWidget_SetFont(QGraphicsWidget* self, QFont* font);
QPalette* QGraphicsWidget_Palette(QGraphicsWidget* self);
void QGraphicsWidget_SetPalette(QGraphicsWidget* self, QPalette* palette);
bool QGraphicsWidget_AutoFillBackground(QGraphicsWidget* self);
void QGraphicsWidget_SetAutoFillBackground(QGraphicsWidget* self, bool enabled);
void QGraphicsWidget_Resize(QGraphicsWidget* self, QSizeF* size);
void QGraphicsWidget_Resize2(QGraphicsWidget* self, double w, double h);
QSizeF* QGraphicsWidget_Size(QGraphicsWidget* self);
void QGraphicsWidget_SetGeometry(QGraphicsWidget* self, QRectF* rect);
void QGraphicsWidget_SetGeometry2(QGraphicsWidget* self, double x, double y, double w, double h);
QRectF* QGraphicsWidget_Rect(QGraphicsWidget* self);
void QGraphicsWidget_SetContentsMargins(QGraphicsWidget* self, double left, double top, double right, double bottom);
void QGraphicsWidget_SetContentsMarginsWithMargins(QGraphicsWidget* self, QMarginsF* margins);
void QGraphicsWidget_GetContentsMargins(QGraphicsWidget* self, double* left, double* top, double* right, double* bottom);
void QGraphicsWidget_SetWindowFrameMargins(QGraphicsWidget* self, double left, double top, double right, double bottom);
void QGraphicsWidget_SetWindowFrameMarginsWithMargins(QGraphicsWidget* self, QMarginsF* margins);
void QGraphicsWidget_GetWindowFrameMargins(QGraphicsWidget* self, double* left, double* top, double* right, double* bottom);
void QGraphicsWidget_UnsetWindowFrameMargins(QGraphicsWidget* self);
QRectF* QGraphicsWidget_WindowFrameGeometry(QGraphicsWidget* self);
QRectF* QGraphicsWidget_WindowFrameRect(QGraphicsWidget* self);
2024-08-29 07:01:51 +00:00
int QGraphicsWidget_WindowFlags(QGraphicsWidget* self);
uintptr_t QGraphicsWidget_WindowType(QGraphicsWidget* self);
void QGraphicsWidget_SetWindowFlags(QGraphicsWidget* self, int wFlags);
bool QGraphicsWidget_IsActiveWindow(QGraphicsWidget* self);
void QGraphicsWidget_SetWindowTitle(QGraphicsWidget* self, const char* title, size_t title_Strlen);
void QGraphicsWidget_WindowTitle(QGraphicsWidget* self, char** _out, int* _out_Strlen);
2024-08-29 07:01:51 +00:00
uintptr_t QGraphicsWidget_FocusPolicy(QGraphicsWidget* self);
void QGraphicsWidget_SetFocusPolicy(QGraphicsWidget* self, uintptr_t policy);
void QGraphicsWidget_SetTabOrder(QGraphicsWidget* first, QGraphicsWidget* second);
QGraphicsWidget* QGraphicsWidget_FocusWidget(QGraphicsWidget* self);
2024-08-29 07:01:51 +00:00
int QGraphicsWidget_GrabShortcut(QGraphicsWidget* self, QKeySequence* sequence);
void QGraphicsWidget_ReleaseShortcut(QGraphicsWidget* self, int id);
void QGraphicsWidget_SetShortcutEnabled(QGraphicsWidget* self, int id);
void QGraphicsWidget_SetShortcutAutoRepeat(QGraphicsWidget* self, int id);
void QGraphicsWidget_AddAction(QGraphicsWidget* self, QAction* action);
void QGraphicsWidget_AddActions(QGraphicsWidget* self, QAction** actions, size_t actions_len);
void QGraphicsWidget_InsertActions(QGraphicsWidget* self, QAction* before, QAction** actions, size_t actions_len);
void QGraphicsWidget_InsertAction(QGraphicsWidget* self, QAction* before, QAction* action);
void QGraphicsWidget_RemoveAction(QGraphicsWidget* self, QAction* action);
void QGraphicsWidget_Actions(QGraphicsWidget* self, QAction*** _out, size_t* _out_len);
2024-08-29 07:01:51 +00:00
void QGraphicsWidget_SetAttribute(QGraphicsWidget* self, uintptr_t attribute);
bool QGraphicsWidget_TestAttribute(QGraphicsWidget* self, uintptr_t attribute);
int QGraphicsWidget_Type(QGraphicsWidget* self);
void QGraphicsWidget_Paint(QGraphicsWidget* self, QPainter* painter, QStyleOptionGraphicsItem* option);
void QGraphicsWidget_PaintWindowFrame(QGraphicsWidget* self, QPainter* painter, QStyleOptionGraphicsItem* option);
QRectF* QGraphicsWidget_BoundingRect(QGraphicsWidget* self);
QPainterPath* QGraphicsWidget_Shape(QGraphicsWidget* self);
void QGraphicsWidget_GeometryChanged(QGraphicsWidget* self);
void QGraphicsWidget_connect_GeometryChanged(QGraphicsWidget* self, void* slot);
void QGraphicsWidget_LayoutChanged(QGraphicsWidget* self);
void QGraphicsWidget_connect_LayoutChanged(QGraphicsWidget* self, void* slot);
bool QGraphicsWidget_Close(QGraphicsWidget* self);
2024-08-29 07:01:51 +00:00
void QGraphicsWidget_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
void QGraphicsWidget_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
void QGraphicsWidget_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
void QGraphicsWidget_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
int QGraphicsWidget_GrabShortcut2(QGraphicsWidget* self, QKeySequence* sequence, uintptr_t context);
void QGraphicsWidget_SetShortcutEnabled2(QGraphicsWidget* self, int id, bool enabled);
void QGraphicsWidget_SetShortcutAutoRepeat2(QGraphicsWidget* self, int id, bool enabled);
2024-08-29 07:01:51 +00:00
void QGraphicsWidget_SetAttribute2(QGraphicsWidget* self, uintptr_t attribute, bool on);
void QGraphicsWidget_Paint3(QGraphicsWidget* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget);
void QGraphicsWidget_PaintWindowFrame3(QGraphicsWidget* self, QPainter* painter, QStyleOptionGraphicsItem* option, QWidget* widget);
void QGraphicsWidget_Delete(QGraphicsWidget* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif