################################################################
# THE FOLLOWING CODE IS AUTOMATED, ANY MODIFICATION WILL BE LOST!
#
# Copyright (C) 2007 - 2012 by Dongxu Ma <dongxu _at_ cpan _dot_ org>
#
# This library is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
# See http://dev.perl.org/licenses/artistic.html
################################################################
MODULE = Qt::Gui PACKAGE = Qt::Gui::QProxyStyle
PROTOTYPES: DISABLE
# classname: QProxyStyle
################################################################
####
#### PUBLIC MEMBER FUNCTIONS
####
################################################################
## QProxyStyle(QStyle * baseStyle)
## QProxyStyle(QStyle * baseStyle = 0)
void
QProxyStyle::new(...)
PREINIT:
QProxyStyle *ret;
QStyle * arg00;
QStyle * arg10 = 0;
PPCODE:
switch(items) {
case 1:
{
if (1) {
ret = new QProxyStyle(arg10);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QProxyStyle", (void *)ret);
XSRETURN(1);
}
break;
}
case 2:
{
if ((sv_derived_from(ST(1), "Qt::Gui::QStyle") || ST(1) == &PL_sv_undef)) {
if (sv_derived_from(ST(1), "Qt::Gui::QStyle")) {
arg00 = reinterpret_cast<QStyle *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg00 = 0;
}
else
Perl_croak(aTHX_ "arg00 is not of type Qt::Gui::QStyle");
ret = new QProxyStyle(arg00);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QProxyStyle", (void *)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## ~QProxyStyle()
void
QProxyStyle::DESTROY()
CODE:
if(THIS != 0 && !SvREADONLY(SvRV(ST(0))))
delete THIS;
## QStyle * baseStyle()
void
QProxyStyle::baseStyle(...)
PREINIT:
PPCODE:
if (1) {
QStyle * ret = THIS->baseStyle();
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QStyle", (void *)ret);
XSRETURN(1);
}
## void drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex * option, QPainter * painter, const QWidget * widget)
## void drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex * option, QPainter * painter, const QWidget * widget = 0)
void
QProxyStyle::drawComplexControl(...)
PREINIT:
QStyle::ComplexControl arg00;
const QStyleOptionComplex * arg01;
QPainter * arg02;
const QWidget * arg03;
QStyle::ComplexControl arg10;
const QStyleOptionComplex * arg11;
QPainter * arg12;
const QWidget * arg13 = 0;
PPCODE:
switch(items) {
case 4:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOptionComplex") || ST(2) == &PL_sv_undef) && (sv_derived_from(ST(3), "Qt::Gui::QPainter") || ST(3) == &PL_sv_undef)) {
arg10 = (QStyle::ComplexControl)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOptionComplex")) {
arg11 = reinterpret_cast<QStyleOptionComplex *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg11 = 0;
}
else
Perl_croak(aTHX_ "arg11 is not of type Qt::Gui::QStyleOptionComplex");
if (sv_derived_from(ST(3), "Qt::Gui::QPainter")) {
arg12 = reinterpret_cast<QPainter *>(SvIV((SV*)SvRV(ST(3))));
}
else if (ST(3) == &PL_sv_undef) {
arg12 = 0;
}
else
Perl_croak(aTHX_ "arg12 is not of type Qt::Gui::QPainter");
(void)THIS->drawComplexControl(arg10, arg11, arg12, arg13);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 5:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOptionComplex") || ST(2) == &PL_sv_undef) && (sv_derived_from(ST(3), "Qt::Gui::QPainter") || ST(3) == &PL_sv_undef) && sv_isobject(ST(4))) {
arg00 = (QStyle::ComplexControl)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOptionComplex")) {
arg01 = reinterpret_cast<QStyleOptionComplex *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QStyleOptionComplex");
if (sv_derived_from(ST(3), "Qt::Gui::QPainter")) {
arg02 = reinterpret_cast<QPainter *>(SvIV((SV*)SvRV(ST(3))));
}
else if (ST(3) == &PL_sv_undef) {
arg02 = 0;
}
else
Perl_croak(aTHX_ "arg02 is not of type Qt::Gui::QPainter");
arg03 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(4))));
(void)THIS->drawComplexControl(arg00, arg01, arg02, arg03);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## void drawControl(QStyle::ControlElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget)
## void drawControl(QStyle::ControlElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget = 0)
void
QProxyStyle::drawControl(...)
PREINIT:
QStyle::ControlElement arg00;
const QStyleOption * arg01;
QPainter * arg02;
const QWidget * arg03;
QStyle::ControlElement arg10;
const QStyleOption * arg11;
QPainter * arg12;
const QWidget * arg13 = 0;
PPCODE:
switch(items) {
case 4:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef) && (sv_derived_from(ST(3), "Qt::Gui::QPainter") || ST(3) == &PL_sv_undef)) {
arg10 = (QStyle::ControlElement)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg11 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg11 = 0;
}
else
Perl_croak(aTHX_ "arg11 is not of type Qt::Gui::QStyleOption");
if (sv_derived_from(ST(3), "Qt::Gui::QPainter")) {
arg12 = reinterpret_cast<QPainter *>(SvIV((SV*)SvRV(ST(3))));
}
else if (ST(3) == &PL_sv_undef) {
arg12 = 0;
}
else
Perl_croak(aTHX_ "arg12 is not of type Qt::Gui::QPainter");
(void)THIS->drawControl(arg10, arg11, arg12, arg13);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 5:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef) && (sv_derived_from(ST(3), "Qt::Gui::QPainter") || ST(3) == &PL_sv_undef) && sv_isobject(ST(4))) {
arg00 = (QStyle::ControlElement)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg01 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QStyleOption");
if (sv_derived_from(ST(3), "Qt::Gui::QPainter")) {
arg02 = reinterpret_cast<QPainter *>(SvIV((SV*)SvRV(ST(3))));
}
else if (ST(3) == &PL_sv_undef) {
arg02 = 0;
}
else
Perl_croak(aTHX_ "arg02 is not of type Qt::Gui::QPainter");
arg03 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(4))));
(void)THIS->drawControl(arg00, arg01, arg02, arg03);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## void drawItemPixmap(QPainter * painter, const QRect & rect, int alignment, const QPixmap & pixmap)
void
QProxyStyle::drawItemPixmap(...)
PREINIT:
QPainter * arg00;
QRect * arg01;
int arg02;
QPixmap * arg03;
PPCODE:
if ((sv_derived_from(ST(1), "Qt::Gui::QPainter") || ST(1) == &PL_sv_undef) && sv_isa(ST(2), "Qt::Core::QRect") && SvIOK(ST(3)) && sv_isa(ST(4), "Qt::Gui::QPixmap")) {
if (sv_derived_from(ST(1), "Qt::Gui::QPainter")) {
arg00 = reinterpret_cast<QPainter *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg00 = 0;
}
else
Perl_croak(aTHX_ "arg00 is not of type Qt::Gui::QPainter");
arg01 = reinterpret_cast<QRect *>(SvIV((SV*)SvRV(ST(2))));
arg02 = (int)SvIV(ST(3));
arg03 = reinterpret_cast<QPixmap *>(SvIV((SV*)SvRV(ST(4))));
(void)THIS->drawItemPixmap(arg00, *arg01, arg02, *arg03);
XSRETURN(0);
}
## void drawItemText(QPainter * painter, const QRect & rect, int flags, const QPalette & pal, bool enabled, const QString & text, QPalette::ColorRole textRole)
## void drawItemText(QPainter * painter, const QRect & rect, int flags, const QPalette & pal, bool enabled, const QString & text, QPalette::ColorRole textRole = QPalette::NoRole)
void
QProxyStyle::drawItemText(...)
PREINIT:
QPainter * arg00;
QRect * arg01;
int arg02;
QPalette * arg03;
bool arg04;
QString * arg05;
QPalette::ColorRole arg06;
QPainter * arg10;
QRect * arg11;
int arg12;
QPalette * arg13;
bool arg14;
QString * arg15;
QPalette::ColorRole arg16 = QPalette::NoRole;
PPCODE:
switch(items) {
case 7:
{
if ((sv_derived_from(ST(1), "Qt::Gui::QPainter") || ST(1) == &PL_sv_undef) && sv_isa(ST(2), "Qt::Core::QRect") && SvIOK(ST(3)) && sv_isa(ST(4), "Qt::Gui::QPalette") && 1 && sv_isa(ST(6), "Qt::Core::QString")) {
if (sv_derived_from(ST(1), "Qt::Gui::QPainter")) {
arg10 = reinterpret_cast<QPainter *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg10 = 0;
}
else
Perl_croak(aTHX_ "arg10 is not of type Qt::Gui::QPainter");
arg11 = reinterpret_cast<QRect *>(SvIV((SV*)SvRV(ST(2))));
arg12 = (int)SvIV(ST(3));
arg13 = reinterpret_cast<QPalette *>(SvIV((SV*)SvRV(ST(4))));
arg14 = (bool)SvTRUE(ST(5));
arg15 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(6))));
(void)THIS->drawItemText(arg10, *arg11, arg12, *arg13, arg14, *arg15, arg16);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 8:
{
if ((sv_derived_from(ST(1), "Qt::Gui::QPainter") || ST(1) == &PL_sv_undef) && sv_isa(ST(2), "Qt::Core::QRect") && SvIOK(ST(3)) && sv_isa(ST(4), "Qt::Gui::QPalette") && 1 && sv_isa(ST(6), "Qt::Core::QString") && SvIOK(ST(7))) {
if (sv_derived_from(ST(1), "Qt::Gui::QPainter")) {
arg00 = reinterpret_cast<QPainter *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg00 = 0;
}
else
Perl_croak(aTHX_ "arg00 is not of type Qt::Gui::QPainter");
arg01 = reinterpret_cast<QRect *>(SvIV((SV*)SvRV(ST(2))));
arg02 = (int)SvIV(ST(3));
arg03 = reinterpret_cast<QPalette *>(SvIV((SV*)SvRV(ST(4))));
arg04 = (bool)SvTRUE(ST(5));
arg05 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(6))));
arg06 = (QPalette::ColorRole)SvIV(ST(7));
(void)THIS->drawItemText(arg00, *arg01, arg02, *arg03, arg04, *arg05, arg06);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## void drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget)
## void drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget = 0)
void
QProxyStyle::drawPrimitive(...)
PREINIT:
QStyle::PrimitiveElement arg00;
const QStyleOption * arg01;
QPainter * arg02;
const QWidget * arg03;
QStyle::PrimitiveElement arg10;
const QStyleOption * arg11;
QPainter * arg12;
const QWidget * arg13 = 0;
PPCODE:
switch(items) {
case 4:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef) && (sv_derived_from(ST(3), "Qt::Gui::QPainter") || ST(3) == &PL_sv_undef)) {
arg10 = (QStyle::PrimitiveElement)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg11 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg11 = 0;
}
else
Perl_croak(aTHX_ "arg11 is not of type Qt::Gui::QStyleOption");
if (sv_derived_from(ST(3), "Qt::Gui::QPainter")) {
arg12 = reinterpret_cast<QPainter *>(SvIV((SV*)SvRV(ST(3))));
}
else if (ST(3) == &PL_sv_undef) {
arg12 = 0;
}
else
Perl_croak(aTHX_ "arg12 is not of type Qt::Gui::QPainter");
(void)THIS->drawPrimitive(arg10, arg11, arg12, arg13);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 5:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef) && (sv_derived_from(ST(3), "Qt::Gui::QPainter") || ST(3) == &PL_sv_undef) && sv_isobject(ST(4))) {
arg00 = (QStyle::PrimitiveElement)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg01 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QStyleOption");
if (sv_derived_from(ST(3), "Qt::Gui::QPainter")) {
arg02 = reinterpret_cast<QPainter *>(SvIV((SV*)SvRV(ST(3))));
}
else if (ST(3) == &PL_sv_undef) {
arg02 = 0;
}
else
Perl_croak(aTHX_ "arg02 is not of type Qt::Gui::QPainter");
arg03 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(4))));
(void)THIS->drawPrimitive(arg00, arg01, arg02, arg03);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap & pixmap, const QStyleOption * opt)
void
QProxyStyle::generatedIconPixmap(...)
PREINIT:
QIcon::Mode arg00;
QPixmap * arg01;
const QStyleOption * arg02;
PPCODE:
if (SvIOK(ST(1)) && sv_isa(ST(2), "Qt::Gui::QPixmap") && (sv_derived_from(ST(3), "Qt::Gui::QStyleOption") || ST(3) == &PL_sv_undef)) {
arg00 = (QIcon::Mode)SvIV(ST(1));
arg01 = reinterpret_cast<QPixmap *>(SvIV((SV*)SvRV(ST(2))));
if (sv_derived_from(ST(3), "Qt::Gui::QStyleOption")) {
arg02 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(3))));
}
else if (ST(3) == &PL_sv_undef) {
arg02 = 0;
}
else
Perl_croak(aTHX_ "arg02 is not of type Qt::Gui::QStyleOption");
QPixmap ret = THIS->generatedIconPixmap(arg00, *arg01, arg02);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QPixmap", (void *)new QPixmap(ret));
XSRETURN(1);
}
## QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex * option, const QPoint & pos, const QWidget * widget)
## QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex * option, const QPoint & pos, const QWidget * widget = 0)
void
QProxyStyle::hitTestComplexControl(...)
PREINIT:
QStyle::ComplexControl arg00;
const QStyleOptionComplex * arg01;
QPoint * arg02;
const QWidget * arg03;
QStyle::ComplexControl arg10;
const QStyleOptionComplex * arg11;
QPoint * arg12;
const QWidget * arg13 = 0;
PPCODE:
switch(items) {
case 4:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOptionComplex") || ST(2) == &PL_sv_undef) && sv_isa(ST(3), "Qt::Core::QPoint")) {
arg10 = (QStyle::ComplexControl)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOptionComplex")) {
arg11 = reinterpret_cast<QStyleOptionComplex *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg11 = 0;
}
else
Perl_croak(aTHX_ "arg11 is not of type Qt::Gui::QStyleOptionComplex");
arg12 = reinterpret_cast<QPoint *>(SvIV((SV*)SvRV(ST(3))));
QStyle::SubControl ret = THIS->hitTestComplexControl(arg10, arg11, *arg12, arg13);
ST(0) = sv_newmortal();
sv_setiv(ST(0), (IV)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 5:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOptionComplex") || ST(2) == &PL_sv_undef) && sv_isa(ST(3), "Qt::Core::QPoint") && sv_isobject(ST(4))) {
arg00 = (QStyle::ComplexControl)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOptionComplex")) {
arg01 = reinterpret_cast<QStyleOptionComplex *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QStyleOptionComplex");
arg02 = reinterpret_cast<QPoint *>(SvIV((SV*)SvRV(ST(3))));
arg03 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(4))));
QStyle::SubControl ret = THIS->hitTestComplexControl(arg00, arg01, *arg02, arg03);
ST(0) = sv_newmortal();
sv_setiv(ST(0), (IV)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## QRect itemPixmapRect(const QRect & r, int flags, const QPixmap & pixmap)
void
QProxyStyle::itemPixmapRect(...)
PREINIT:
QRect * arg00;
int arg01;
QPixmap * arg02;
PPCODE:
if (sv_isa(ST(1), "Qt::Core::QRect") && SvIOK(ST(2)) && sv_isa(ST(3), "Qt::Gui::QPixmap")) {
arg00 = reinterpret_cast<QRect *>(SvIV((SV*)SvRV(ST(1))));
arg01 = (int)SvIV(ST(2));
arg02 = reinterpret_cast<QPixmap *>(SvIV((SV*)SvRV(ST(3))));
QRect ret = THIS->itemPixmapRect(*arg00, arg01, *arg02);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Core::QRect", (void *)new QRect(ret));
XSRETURN(1);
}
## QRect itemTextRect(const QFontMetrics & fm, const QRect & r, int flags, bool enabled, const QString & text)
void
QProxyStyle::itemTextRect(...)
PREINIT:
QFontMetrics * arg00;
QRect * arg01;
int arg02;
bool arg03;
QString * arg04;
PPCODE:
if (sv_isa(ST(1), "Qt::Gui::QFontMetrics") && sv_isa(ST(2), "Qt::Core::QRect") && SvIOK(ST(3)) && 1 && sv_isa(ST(5), "Qt::Core::QString")) {
arg00 = reinterpret_cast<QFontMetrics *>(SvIV((SV*)SvRV(ST(1))));
arg01 = reinterpret_cast<QRect *>(SvIV((SV*)SvRV(ST(2))));
arg02 = (int)SvIV(ST(3));
arg03 = (bool)SvTRUE(ST(4));
arg04 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(5))));
QRect ret = THIS->itemTextRect(*arg00, *arg01, arg02, arg03, *arg04);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Core::QRect", (void *)new QRect(ret));
XSRETURN(1);
}
## int pixelMetric(QStyle::PixelMetric metric, const QStyleOption * option, const QWidget * widget)
## int pixelMetric(QStyle::PixelMetric metric, const QStyleOption * option, const QWidget * widget = 0)
## int pixelMetric(QStyle::PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0)
void
QProxyStyle::pixelMetric(...)
PREINIT:
QStyle::PixelMetric arg00;
const QStyleOption * arg01;
const QWidget * arg02;
QStyle::PixelMetric arg10;
const QStyleOption * arg11;
const QWidget * arg12 = 0;
QStyle::PixelMetric arg20;
const QStyleOption * arg21 = 0;
const QWidget * arg22 = 0;
PPCODE:
switch(items) {
case 2:
{
if (SvIOK(ST(1))) {
arg20 = (QStyle::PixelMetric)SvIV(ST(1));
int ret = THIS->pixelMetric(arg20, arg21, arg22);
ST(0) = sv_newmortal();
sv_setiv(ST(0), (IV)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 3:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef)) {
arg10 = (QStyle::PixelMetric)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg11 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg11 = 0;
}
else
Perl_croak(aTHX_ "arg11 is not of type Qt::Gui::QStyleOption");
int ret = THIS->pixelMetric(arg10, arg11, arg12);
ST(0) = sv_newmortal();
sv_setiv(ST(0), (IV)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 4:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef) && sv_isobject(ST(3))) {
arg00 = (QStyle::PixelMetric)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg01 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QStyleOption");
arg02 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(3))));
int ret = THIS->pixelMetric(arg00, arg01, arg02);
ST(0) = sv_newmortal();
sv_setiv(ST(0), (IV)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## void polish(QWidget * widget)
## void polish(QPalette & pal)
## void polish(QApplication * app)
void
QProxyStyle::polish(...)
PREINIT:
QWidget * arg00;
QPalette * arg10;
QApplication * arg20;
PPCODE:
switch(items) {
case 2:
{
if ((sv_derived_from(ST(1), "Qt::Gui::QWidget") || ST(1) == &PL_sv_undef)) {
if (sv_derived_from(ST(1), "Qt::Gui::QWidget")) {
arg00 = reinterpret_cast<QWidget *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg00 = 0;
}
else
Perl_croak(aTHX_ "arg00 is not of type Qt::Gui::QWidget");
(void)THIS->polish(arg00);
XSRETURN(0);
}
else if (sv_isa(ST(1), "Qt::Gui::QPalette")) {
arg10 = reinterpret_cast<QPalette *>(SvIV((SV*)SvRV(ST(1))));
(void)THIS->polish(*arg10);
XSRETURN(0);
}
else if ((sv_derived_from(ST(1), "Qt::Gui::QApplication") || ST(1) == &PL_sv_undef)) {
if (sv_derived_from(ST(1), "Qt::Gui::QApplication")) {
arg20 = reinterpret_cast<QApplication *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg20 = 0;
}
else
Perl_croak(aTHX_ "arg20 is not of type Qt::Gui::QApplication");
(void)THIS->polish(arg20);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## void setBaseStyle(QStyle * style)
void
QProxyStyle::setBaseStyle(...)
PREINIT:
QStyle * arg00;
PPCODE:
if ((sv_derived_from(ST(1), "Qt::Gui::QStyle") || ST(1) == &PL_sv_undef)) {
if (sv_derived_from(ST(1), "Qt::Gui::QStyle")) {
arg00 = reinterpret_cast<QStyle *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg00 = 0;
}
else
Perl_croak(aTHX_ "arg00 is not of type Qt::Gui::QStyle");
(void)THIS->setBaseStyle(arg00);
XSRETURN(0);
}
## QSize sizeFromContents(QStyle::ContentsType type, const QStyleOption * option, const QSize & size, const QWidget * widget)
void
QProxyStyle::sizeFromContents(...)
PREINIT:
QStyle::ContentsType arg00;
const QStyleOption * arg01;
QSize * arg02;
const QWidget * arg03;
PPCODE:
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef) && sv_isa(ST(3), "Qt::Core::QSize") && sv_isobject(ST(4))) {
arg00 = (QStyle::ContentsType)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg01 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QStyleOption");
arg02 = reinterpret_cast<QSize *>(SvIV((SV*)SvRV(ST(3))));
arg03 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(4))));
QSize ret = THIS->sizeFromContents(arg00, arg01, *arg02, arg03);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Core::QSize", (void *)new QSize(ret));
XSRETURN(1);
}
## QPalette standardPalette()
void
QProxyStyle::standardPalette(...)
PREINIT:
PPCODE:
if (1) {
QPalette ret = THIS->standardPalette();
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QPalette", (void *)new QPalette(ret));
XSRETURN(1);
}
## QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption * opt, const QWidget * widget)
## QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption * opt, const QWidget * widget = 0)
void
QProxyStyle::standardPixmap(...)
PREINIT:
QStyle::StandardPixmap arg00;
const QStyleOption * arg01;
const QWidget * arg02;
QStyle::StandardPixmap arg10;
const QStyleOption * arg11;
const QWidget * arg12 = 0;
PPCODE:
switch(items) {
case 3:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef)) {
arg10 = (QStyle::StandardPixmap)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg11 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg11 = 0;
}
else
Perl_croak(aTHX_ "arg11 is not of type Qt::Gui::QStyleOption");
QPixmap ret = THIS->standardPixmap(arg10, arg11, arg12);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QPixmap", (void *)new QPixmap(ret));
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 4:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef) && sv_isobject(ST(3))) {
arg00 = (QStyle::StandardPixmap)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg01 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QStyleOption");
arg02 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(3))));
QPixmap ret = THIS->standardPixmap(arg00, arg01, arg02);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QPixmap", (void *)new QPixmap(ret));
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## int styleHint(QStyle::StyleHint hint, const QStyleOption * option, const QWidget * widget, QStyleHintReturn * returnData)
## int styleHint(QStyle::StyleHint hint, const QStyleOption * option, const QWidget * widget, QStyleHintReturn * returnData = 0)
## int styleHint(QStyle::StyleHint hint, const QStyleOption * option, const QWidget * widget = 0, QStyleHintReturn * returnData = 0)
## int styleHint(QStyle::StyleHint hint, const QStyleOption * option = 0, const QWidget * widget = 0, QStyleHintReturn * returnData = 0)
void
QProxyStyle::styleHint(...)
PREINIT:
QStyle::StyleHint arg00;
const QStyleOption * arg01;
const QWidget * arg02;
QStyleHintReturn * arg03;
QStyle::StyleHint arg10;
const QStyleOption * arg11;
const QWidget * arg12;
QStyleHintReturn * arg13 = 0;
QStyle::StyleHint arg20;
const QStyleOption * arg21;
const QWidget * arg22 = 0;
QStyleHintReturn * arg23 = 0;
QStyle::StyleHint arg30;
const QStyleOption * arg31 = 0;
const QWidget * arg32 = 0;
QStyleHintReturn * arg33 = 0;
PPCODE:
switch(items) {
case 2:
{
if (SvIOK(ST(1))) {
arg30 = (QStyle::StyleHint)SvIV(ST(1));
int ret = THIS->styleHint(arg30, arg31, arg32, arg33);
ST(0) = sv_newmortal();
sv_setiv(ST(0), (IV)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 3:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef)) {
arg20 = (QStyle::StyleHint)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg21 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg21 = 0;
}
else
Perl_croak(aTHX_ "arg21 is not of type Qt::Gui::QStyleOption");
int ret = THIS->styleHint(arg20, arg21, arg22, arg23);
ST(0) = sv_newmortal();
sv_setiv(ST(0), (IV)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 4:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef) && sv_isobject(ST(3))) {
arg10 = (QStyle::StyleHint)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg11 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg11 = 0;
}
else
Perl_croak(aTHX_ "arg11 is not of type Qt::Gui::QStyleOption");
arg12 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(3))));
int ret = THIS->styleHint(arg10, arg11, arg12, arg13);
ST(0) = sv_newmortal();
sv_setiv(ST(0), (IV)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 5:
{
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef) && sv_isobject(ST(3)) && (sv_derived_from(ST(4), "Qt::Gui::QStyleHintReturn") || ST(4) == &PL_sv_undef)) {
arg00 = (QStyle::StyleHint)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg01 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QStyleOption");
arg02 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(3))));
if (sv_derived_from(ST(4), "Qt::Gui::QStyleHintReturn")) {
arg03 = reinterpret_cast<QStyleHintReturn *>(SvIV((SV*)SvRV(ST(4))));
}
else if (ST(4) == &PL_sv_undef) {
arg03 = 0;
}
else
Perl_croak(aTHX_ "arg03 is not of type Qt::Gui::QStyleHintReturn");
int ret = THIS->styleHint(arg00, arg01, arg02, arg03);
ST(0) = sv_newmortal();
sv_setiv(ST(0), (IV)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex * opt, QStyle::SubControl sc, const QWidget * widget)
void
QProxyStyle::subControlRect(...)
PREINIT:
QStyle::ComplexControl arg00;
const QStyleOptionComplex * arg01;
QStyle::SubControl arg02;
const QWidget * arg03;
PPCODE:
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOptionComplex") || ST(2) == &PL_sv_undef) && SvIOK(ST(3)) && sv_isobject(ST(4))) {
arg00 = (QStyle::ComplexControl)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOptionComplex")) {
arg01 = reinterpret_cast<QStyleOptionComplex *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QStyleOptionComplex");
arg02 = (QStyle::SubControl)SvIV(ST(3));
arg03 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(4))));
QRect ret = THIS->subControlRect(arg00, arg01, arg02, arg03);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Core::QRect", (void *)new QRect(ret));
XSRETURN(1);
}
## QRect subElementRect(QStyle::SubElement element, const QStyleOption * option, const QWidget * widget)
void
QProxyStyle::subElementRect(...)
PREINIT:
QStyle::SubElement arg00;
const QStyleOption * arg01;
const QWidget * arg02;
PPCODE:
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QStyleOption") || ST(2) == &PL_sv_undef) && sv_isobject(ST(3))) {
arg00 = (QStyle::SubElement)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QStyleOption")) {
arg01 = reinterpret_cast<QStyleOption *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QStyleOption");
arg02 = *reinterpret_cast<QWidget * *>(SvIV((SV*)SvRV(ST(3))));
QRect ret = THIS->subElementRect(arg00, arg01, arg02);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Core::QRect", (void *)new QRect(ret));
XSRETURN(1);
}
## void unpolish(QWidget * widget)
## void unpolish(QApplication * app)
void
QProxyStyle::unpolish(...)
PREINIT:
QWidget * arg00;
QApplication * arg10;
PPCODE:
switch(items) {
case 2:
{
if ((sv_derived_from(ST(1), "Qt::Gui::QWidget") || ST(1) == &PL_sv_undef)) {
if (sv_derived_from(ST(1), "Qt::Gui::QWidget")) {
arg00 = reinterpret_cast<QWidget *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg00 = 0;
}
else
Perl_croak(aTHX_ "arg00 is not of type Qt::Gui::QWidget");
(void)THIS->unpolish(arg00);
XSRETURN(0);
}
else if ((sv_derived_from(ST(1), "Qt::Gui::QApplication") || ST(1) == &PL_sv_undef)) {
if (sv_derived_from(ST(1), "Qt::Gui::QApplication")) {
arg10 = reinterpret_cast<QApplication *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg10 = 0;
}
else
Perl_croak(aTHX_ "arg10 is not of type Qt::Gui::QApplication");
(void)THIS->unpolish(arg10);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}