2024-08-25 04:08:24 +00:00
# include <QBrush>
# include <QBrushData>
# include <QColor>
# include <QConicalGradient>
# include <QGradient>
2024-08-29 07:01:51 +00:00
# define WORKAROUND_INNER_CLASS_DEFINITION_QGradient__QGradientData
2024-08-25 04:08:24 +00:00
# include <QImage>
# include <QLinearGradient>
2024-11-17 06:21:37 +00:00
# include <QList>
2024-08-25 04:08:24 +00:00
# include <QMatrix>
# include <QPixmap>
# include <QPointF>
# include <QRadialGradient>
# include <QTransform>
2024-10-16 05:07:56 +00:00
# include <qbrush.h>
2024-08-29 07:01:51 +00:00
# include "gen_qbrush.h"
2024-09-14 22:29:05 +00:00
# include "_cgo_export.h"
2024-08-25 04:08:24 +00:00
2024-11-19 06:29:06 +00:00
void QBrush_new ( QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( ) ;
* outptr_QBrush = ret ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new2 ( int bs , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( static_cast < Qt : : BrushStyle > ( bs ) ) ;
* outptr_QBrush = ret ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new3 ( QColor * color , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( * color ) ;
* outptr_QBrush = ret ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new4 ( int color , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( static_cast < Qt : : GlobalColor > ( color ) ) ;
* outptr_QBrush = ret ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new5 ( QColor * color , QPixmap * pixmap , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( * color , * pixmap ) ;
* outptr_QBrush = ret ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new6 ( int color , QPixmap * pixmap , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( static_cast < Qt : : GlobalColor > ( color ) , * pixmap ) ;
* outptr_QBrush = ret ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new7 ( QPixmap * pixmap , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( * pixmap ) ;
* outptr_QBrush = ret ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new8 ( QImage * image , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( * image ) ;
* outptr_QBrush = ret ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new9 ( QBrush * brush , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( * brush ) ;
* outptr_QBrush = ret ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new10 ( QGradient * gradient , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( * gradient ) ;
* outptr_QBrush = ret ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new11 ( QColor * color , int bs , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( * color , static_cast < Qt : : BrushStyle > ( bs ) ) ;
* outptr_QBrush = ret ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_new12 ( int color , int bs , QBrush * * outptr_QBrush ) {
QBrush * ret = new QBrush ( static_cast < Qt : : GlobalColor > ( color ) , static_cast < Qt : : BrushStyle > ( bs ) ) ;
* outptr_QBrush = ret ;
2024-08-29 07:01:51 +00:00
}
2024-08-25 04:08:24 +00:00
void QBrush_OperatorAssign ( QBrush * self , QBrush * brush ) {
self - > operator = ( * brush ) ;
}
void QBrush_Swap ( QBrush * self , QBrush * other ) {
self - > swap ( * other ) ;
}
2024-09-18 00:12:02 +00:00
int QBrush_Style ( const QBrush * self ) {
2024-09-14 22:29:05 +00:00
Qt : : BrushStyle _ret = self - > style ( ) ;
2024-09-18 00:12:02 +00:00
return static_cast < int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
void QBrush_SetStyle ( QBrush * self , int style ) {
2024-08-29 07:01:51 +00:00
self - > setStyle ( static_cast < Qt : : BrushStyle > ( style ) ) ;
}
2024-09-11 05:41:09 +00:00
QMatrix * QBrush_Matrix ( const QBrush * self ) {
2024-09-14 22:29:05 +00:00
const QMatrix & _ret = self - > matrix ( ) ;
2024-08-25 04:08:24 +00:00
// Cast returned reference into pointer
2024-09-14 22:29:05 +00:00
return const_cast < QMatrix * > ( & _ret ) ;
2024-08-25 04:08:24 +00:00
}
void QBrush_SetMatrix ( QBrush * self , QMatrix * mat ) {
self - > setMatrix ( * mat ) ;
}
2024-09-11 05:41:09 +00:00
QTransform * QBrush_Transform ( const QBrush * self ) {
2024-09-17 06:29:11 +00:00
return new QTransform ( self - > transform ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QBrush_SetTransform ( QBrush * self , QTransform * transform ) {
self - > setTransform ( * transform ) ;
}
2024-09-11 05:41:09 +00:00
QPixmap * QBrush_Texture ( const QBrush * self ) {
2024-09-17 06:29:11 +00:00
return new QPixmap ( self - > texture ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QBrush_SetTexture ( QBrush * self , QPixmap * pixmap ) {
self - > setTexture ( * pixmap ) ;
}
2024-09-11 05:41:09 +00:00
QImage * QBrush_TextureImage ( const QBrush * self ) {
2024-09-17 06:29:11 +00:00
return new QImage ( self - > textureImage ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QBrush_SetTextureImage ( QBrush * self , QImage * image ) {
self - > setTextureImage ( * image ) ;
}
2024-09-11 05:41:09 +00:00
QColor * QBrush_Color ( const QBrush * self ) {
2024-09-14 22:29:05 +00:00
const QColor & _ret = self - > color ( ) ;
2024-08-25 04:08:24 +00:00
// Cast returned reference into pointer
2024-09-14 22:29:05 +00:00
return const_cast < QColor * > ( & _ret ) ;
2024-08-25 04:08:24 +00:00
}
void QBrush_SetColor ( QBrush * self , QColor * color ) {
self - > setColor ( * color ) ;
}
2024-09-18 00:12:02 +00:00
void QBrush_SetColorWithColor ( QBrush * self , int color ) {
2024-08-29 07:01:51 +00:00
self - > setColor ( static_cast < Qt : : GlobalColor > ( color ) ) ;
}
2024-09-11 05:41:09 +00:00
QGradient * QBrush_Gradient ( const QBrush * self ) {
return ( QGradient * ) self - > gradient ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QBrush_IsOpaque ( const QBrush * self ) {
return self - > isOpaque ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QBrush_OperatorEqual ( const QBrush * self , QBrush * b ) {
2024-11-22 06:06:01 +00:00
return ( * self = = * b ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QBrush_OperatorNotEqual ( const QBrush * self , QBrush * b ) {
2024-11-22 06:06:01 +00:00
return ( * self ! = * b ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QBrush_IsDetached ( const QBrush * self ) {
return self - > isDetached ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrush_Delete ( QBrush * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QBrush * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QBrushData_new ( QBrushData * param1 , QBrushData * * outptr_QBrushData ) {
QBrushData * ret = new QBrushData ( * param1 ) ;
* outptr_QBrushData = ret ;
2024-08-25 04:08:24 +00:00
}
void QBrushData_OperatorAssign ( QBrushData * self , QBrushData * param1 ) {
self - > operator = ( * param1 ) ;
}
2024-11-19 06:29:06 +00:00
void QBrushData_Delete ( QBrushData * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QBrushData * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QGradient_new ( QGradient * * outptr_QGradient ) {
QGradient * ret = new QGradient ( ) ;
* outptr_QGradient = ret ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QGradient_new2 ( int param1 , QGradient * * outptr_QGradient ) {
QGradient * ret = new QGradient ( static_cast < QGradient : : Preset > ( param1 ) ) ;
* outptr_QGradient = ret ;
2024-08-29 07:01:51 +00:00
}
2024-11-19 06:29:06 +00:00
void QGradient_new3 ( QGradient * param1 , QGradient * * outptr_QGradient ) {
QGradient * ret = new QGradient ( * param1 ) ;
* outptr_QGradient = ret ;
2024-08-25 04:08:24 +00:00
}
2024-09-18 00:12:02 +00:00
int QGradient_Type ( const QGradient * self ) {
2024-09-14 22:29:05 +00:00
QGradient : : Type _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-18 00:12:02 +00:00
void QGradient_SetSpread ( QGradient * self , int spread ) {
2024-08-29 07:01:51 +00:00
self - > setSpread ( static_cast < QGradient : : Spread > ( spread ) ) ;
}
2024-09-18 00:12:02 +00:00
int QGradient_Spread ( const QGradient * self ) {
2024-09-14 22:29:05 +00:00
QGradient : : Spread _ret = self - > spread ( ) ;
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 QGradient_SetColorAt ( QGradient * self , double pos , QColor * color ) {
self - > setColorAt ( static_cast < qreal > ( pos ) , * color ) ;
}
2024-11-17 06:21:37 +00:00
void QGradient_SetStops ( QGradient * self , struct miqt_array /* of struct miqt_map tuple of double and QColor* */ stops ) {
QGradientStops stops_QList ;
stops_QList . reserve ( stops . len ) ;
struct miqt_map /* tuple of double and QColor* */ * stops_arr = static_cast < struct miqt_map /* tuple of double and QColor* */ * > ( stops . data ) ;
for ( size_t i = 0 ; i < stops . len ; + + i ) {
QPair < double , QColor > stops_arr_i_QPair ;
double * stops_arr_i_first_arr = static_cast < double * > ( stops_arr [ i ] . keys ) ;
QColor * * stops_arr_i_second_arr = static_cast < QColor * * > ( stops_arr [ i ] . values ) ;
stops_arr_i_QPair . first = static_cast < double > ( stops_arr_i_first_arr [ 0 ] ) ;
stops_arr_i_QPair . second = * ( stops_arr_i_second_arr [ 0 ] ) ;
stops_QList . push_back ( stops_arr_i_QPair ) ;
}
self - > setStops ( stops_QList ) ;
}
struct miqt_array /* of struct miqt_map tuple of double and QColor* */ QGradient_Stops ( const QGradient * self ) {
QGradientStops _ret = self - > stops ( ) ;
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_map /* tuple of double and QColor* */ * _arr = static_cast < struct miqt_map /* tuple of double and QColor* */ * > ( malloc ( sizeof ( struct miqt_map /* tuple of double and QColor* */ ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
QPair < double , QColor > _vv_ret = _ret [ i ] ;
// Convert QPair<> from C++ memory to manually-managed C memory
double * _vv_first_arr = static_cast < double * > ( malloc ( sizeof ( double ) ) ) ;
QColor * * _vv_second_arr = static_cast < QColor * * > ( malloc ( sizeof ( QColor * ) ) ) ;
_vv_first_arr [ 0 ] = _vv_ret . first ;
_vv_second_arr [ 0 ] = new QColor ( _vv_ret . second ) ;
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-18 00:12:02 +00:00
int QGradient_CoordinateMode ( const QGradient * self ) {
2024-09-14 22:29:05 +00:00
QGradient : : CoordinateMode _ret = self - > coordinateMode ( ) ;
2024-09-18 00:12:02 +00:00
return static_cast < int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
void QGradient_SetCoordinateMode ( QGradient * self , int mode ) {
2024-08-29 07:01:51 +00:00
self - > setCoordinateMode ( static_cast < QGradient : : CoordinateMode > ( mode ) ) ;
}
2024-09-18 00:12:02 +00:00
int QGradient_InterpolationMode ( const QGradient * self ) {
2024-09-14 22:29:05 +00:00
QGradient : : InterpolationMode _ret = self - > interpolationMode ( ) ;
2024-09-18 00:12:02 +00:00
return static_cast < int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
void QGradient_SetInterpolationMode ( QGradient * self , int mode ) {
2024-08-29 07:01:51 +00:00
self - > setInterpolationMode ( static_cast < QGradient : : InterpolationMode > ( mode ) ) ;
}
2024-09-11 05:41:09 +00:00
bool QGradient_OperatorEqual ( const QGradient * self , QGradient * gradient ) {
2024-11-22 06:06:01 +00:00
return ( * self = = * gradient ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
bool QGradient_OperatorNotEqual ( const QGradient * self , QGradient * other ) {
2024-11-22 06:06:01 +00:00
return ( * self ! = * other ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QGradient_Delete ( QGradient * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QGradient * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QLinearGradient_new ( QLinearGradient * * outptr_QLinearGradient , QGradient * * outptr_QGradient ) {
QLinearGradient * ret = new QLinearGradient ( ) ;
* outptr_QLinearGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QLinearGradient_new2 ( QPointF * start , QPointF * finalStop , QLinearGradient * * outptr_QLinearGradient , QGradient * * outptr_QGradient ) {
QLinearGradient * ret = new QLinearGradient ( * start , * finalStop ) ;
* outptr_QLinearGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QLinearGradient_new3 ( double xStart , double yStart , double xFinalStop , double yFinalStop , QLinearGradient * * outptr_QLinearGradient , QGradient * * outptr_QGradient ) {
QLinearGradient * ret = new QLinearGradient ( static_cast < qreal > ( xStart ) , static_cast < qreal > ( yStart ) , static_cast < qreal > ( xFinalStop ) , static_cast < qreal > ( yFinalStop ) ) ;
* outptr_QLinearGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QLinearGradient_new4 ( QLinearGradient * param1 , QLinearGradient * * outptr_QLinearGradient , QGradient * * outptr_QGradient ) {
QLinearGradient * ret = new QLinearGradient ( * param1 ) ;
* outptr_QLinearGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QPointF * QLinearGradient_Start ( const QLinearGradient * self ) {
2024-09-17 06:29:11 +00:00
return new QPointF ( self - > start ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QLinearGradient_SetStart ( QLinearGradient * self , QPointF * start ) {
self - > setStart ( * start ) ;
}
void QLinearGradient_SetStart2 ( QLinearGradient * self , double x , double y ) {
self - > setStart ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) ) ;
}
2024-09-11 05:41:09 +00:00
QPointF * QLinearGradient_FinalStop ( const QLinearGradient * self ) {
2024-09-17 06:29:11 +00:00
return new QPointF ( self - > finalStop ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QLinearGradient_SetFinalStop ( QLinearGradient * self , QPointF * stop ) {
self - > setFinalStop ( * stop ) ;
}
void QLinearGradient_SetFinalStop2 ( QLinearGradient * self , double x , double y ) {
self - > setFinalStop ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) ) ;
}
2024-11-19 06:29:06 +00:00
void QLinearGradient_Delete ( QLinearGradient * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QLinearGradient * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QRadialGradient_new ( QRadialGradient * * outptr_QRadialGradient , QGradient * * outptr_QGradient ) {
QRadialGradient * ret = new QRadialGradient ( ) ;
* outptr_QRadialGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QRadialGradient_new2 ( QPointF * center , double radius , QPointF * focalPoint , QRadialGradient * * outptr_QRadialGradient , QGradient * * outptr_QGradient ) {
QRadialGradient * ret = new QRadialGradient ( * center , static_cast < qreal > ( radius ) , * focalPoint ) ;
* outptr_QRadialGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QRadialGradient_new3 ( double cx , double cy , double radius , double fx , double fy , QRadialGradient * * outptr_QRadialGradient , QGradient * * outptr_QGradient ) {
QRadialGradient * ret = new QRadialGradient ( static_cast < qreal > ( cx ) , static_cast < qreal > ( cy ) , static_cast < qreal > ( radius ) , static_cast < qreal > ( fx ) , static_cast < qreal > ( fy ) ) ;
* outptr_QRadialGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QRadialGradient_new4 ( QPointF * center , double radius , QRadialGradient * * outptr_QRadialGradient , QGradient * * outptr_QGradient ) {
QRadialGradient * ret = new QRadialGradient ( * center , static_cast < qreal > ( radius ) ) ;
* outptr_QRadialGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QRadialGradient_new5 ( double cx , double cy , double radius , QRadialGradient * * outptr_QRadialGradient , QGradient * * outptr_QGradient ) {
QRadialGradient * ret = new QRadialGradient ( static_cast < qreal > ( cx ) , static_cast < qreal > ( cy ) , static_cast < qreal > ( radius ) ) ;
* outptr_QRadialGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QRadialGradient_new6 ( QPointF * center , double centerRadius , QPointF * focalPoint , double focalRadius , QRadialGradient * * outptr_QRadialGradient , QGradient * * outptr_QGradient ) {
QRadialGradient * ret = new QRadialGradient ( * center , static_cast < qreal > ( centerRadius ) , * focalPoint , static_cast < qreal > ( focalRadius ) ) ;
* outptr_QRadialGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QRadialGradient_new7 ( double cx , double cy , double centerRadius , double fx , double fy , double focalRadius , QRadialGradient * * outptr_QRadialGradient , QGradient * * outptr_QGradient ) {
QRadialGradient * ret = new QRadialGradient ( static_cast < qreal > ( cx ) , static_cast < qreal > ( cy ) , static_cast < qreal > ( centerRadius ) , static_cast < qreal > ( fx ) , static_cast < qreal > ( fy ) , static_cast < qreal > ( focalRadius ) ) ;
* outptr_QRadialGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QRadialGradient_new8 ( QRadialGradient * param1 , QRadialGradient * * outptr_QRadialGradient , QGradient * * outptr_QGradient ) {
QRadialGradient * ret = new QRadialGradient ( * param1 ) ;
* outptr_QRadialGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QPointF * QRadialGradient_Center ( const QRadialGradient * self ) {
2024-09-17 06:29:11 +00:00
return new QPointF ( self - > center ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QRadialGradient_SetCenter ( QRadialGradient * self , QPointF * center ) {
self - > setCenter ( * center ) ;
}
void QRadialGradient_SetCenter2 ( QRadialGradient * self , double x , double y ) {
self - > setCenter ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) ) ;
}
2024-09-11 05:41:09 +00:00
QPointF * QRadialGradient_FocalPoint ( const QRadialGradient * self ) {
2024-09-17 06:29:11 +00:00
return new QPointF ( self - > focalPoint ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QRadialGradient_SetFocalPoint ( QRadialGradient * self , QPointF * focalPoint ) {
self - > setFocalPoint ( * focalPoint ) ;
}
void QRadialGradient_SetFocalPoint2 ( QRadialGradient * self , double x , double y ) {
self - > setFocalPoint ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) ) ;
}
2024-09-11 05:41:09 +00:00
double QRadialGradient_Radius ( const QRadialGradient * self ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > radius ( ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
void QRadialGradient_SetRadius ( QRadialGradient * self , double radius ) {
self - > setRadius ( static_cast < qreal > ( radius ) ) ;
}
2024-09-11 05:41:09 +00:00
double QRadialGradient_CenterRadius ( const QRadialGradient * self ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > centerRadius ( ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
void QRadialGradient_SetCenterRadius ( QRadialGradient * self , double radius ) {
self - > setCenterRadius ( static_cast < qreal > ( radius ) ) ;
}
2024-09-11 05:41:09 +00:00
double QRadialGradient_FocalRadius ( const QRadialGradient * self ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > focalRadius ( ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
void QRadialGradient_SetFocalRadius ( QRadialGradient * self , double radius ) {
self - > setFocalRadius ( static_cast < qreal > ( radius ) ) ;
}
2024-11-19 06:29:06 +00:00
void QRadialGradient_Delete ( QRadialGradient * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QRadialGradient * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QConicalGradient_new ( QConicalGradient * * outptr_QConicalGradient , QGradient * * outptr_QGradient ) {
QConicalGradient * ret = new QConicalGradient ( ) ;
* outptr_QConicalGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QConicalGradient_new2 ( QPointF * center , double startAngle , QConicalGradient * * outptr_QConicalGradient , QGradient * * outptr_QGradient ) {
QConicalGradient * ret = new QConicalGradient ( * center , static_cast < qreal > ( startAngle ) ) ;
* outptr_QConicalGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QConicalGradient_new3 ( double cx , double cy , double startAngle , QConicalGradient * * outptr_QConicalGradient , QGradient * * outptr_QGradient ) {
QConicalGradient * ret = new QConicalGradient ( static_cast < qreal > ( cx ) , static_cast < qreal > ( cy ) , static_cast < qreal > ( startAngle ) ) ;
* outptr_QConicalGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QConicalGradient_new4 ( QConicalGradient * param1 , QConicalGradient * * outptr_QConicalGradient , QGradient * * outptr_QGradient ) {
QConicalGradient * ret = new QConicalGradient ( * param1 ) ;
* outptr_QConicalGradient = ret ;
* outptr_QGradient = static_cast < QGradient * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QPointF * QConicalGradient_Center ( const QConicalGradient * self ) {
2024-09-17 06:29:11 +00:00
return new QPointF ( self - > center ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QConicalGradient_SetCenter ( QConicalGradient * self , QPointF * center ) {
self - > setCenter ( * center ) ;
}
void QConicalGradient_SetCenter2 ( QConicalGradient * self , double x , double y ) {
self - > setCenter ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) ) ;
}
2024-09-11 05:41:09 +00:00
double QConicalGradient_Angle ( const QConicalGradient * self ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > angle ( ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
void QConicalGradient_SetAngle ( QConicalGradient * self , double angle ) {
self - > setAngle ( static_cast < qreal > ( angle ) ) ;
}
2024-11-19 06:29:06 +00:00
void QConicalGradient_Delete ( QConicalGradient * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QConicalGradient * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QGradient__QGradientData_new ( QGradient__QGradientData * param1 , QGradient__QGradientData * * outptr_QGradient__QGradientData ) {
QGradient : : QGradientData * ret = new QGradient : : QGradientData ( * param1 ) ;
* outptr_QGradient__QGradientData = ret ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
void QGradient__QGradientData_OperatorAssign ( QGradient__QGradientData * self , QGradient__QGradientData * param1 ) {
self - > operator = ( * param1 ) ;
}
2024-11-19 06:29:06 +00:00
void QGradient__QGradientData_Delete ( QGradient__QGradientData * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < QGradient : : QGradientData * > ( self ) ;
} else {
delete self ;
}
2024-08-29 07:01:51 +00:00
}