PythonQtWrapper_QSize.cpp
119 lines
| 2.8 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QSize.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qsize.h> | ||||
QSize* PythonQtWrapper_QSize::new_QSize() | ||||
{ | ||||
return new QSize(); } | ||||
QSize* PythonQtWrapper_QSize::new_QSize(int w, int h) | ||||
{ | ||||
return new QSize(w, h); } | ||||
florianlink
|
r73 | void PythonQtWrapper_QSize::scale(QSize* theWrappedObject, int w, int h, Qt::AspectRatioMode mode) | ||
{ | ||||
( theWrappedObject->scale(w, h, mode)); | ||||
} | ||||
int PythonQtWrapper_QSize::width(QSize* theWrappedObject) const | ||||
{ | ||||
return ( theWrappedObject->width()); | ||||
} | ||||
void PythonQtWrapper_QSize::readFrom(QSize* theWrappedObject, QDataStream& arg__1) | ||||
{ | ||||
arg__1 >> (*theWrappedObject); | ||||
} | ||||
florianlink
|
r24 | bool PythonQtWrapper_QSize::isEmpty(QSize* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isEmpty()); | ||
florianlink
|
r28 | } | ||
bool PythonQtWrapper_QSize::operator_equal(QSize* theWrappedObject, const QSize& s2) | ||||
{ | ||||
florianlink
|
r73 | return ( (*theWrappedObject)== s2); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | void PythonQtWrapper_QSize::transpose(QSize* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->transpose()); | ||
florianlink
|
r13 | } | ||
int PythonQtWrapper_QSize::height(QSize* theWrappedObject) const | ||||
{ | ||||
florianlink
|
r73 | return ( theWrappedObject->height()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | bool PythonQtWrapper_QSize::isNull(QSize* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isNull()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QSize* PythonQtWrapper_QSize::operator_subtract_assign(QSize* theWrappedObject, const QSize& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return &( (*theWrappedObject)-= arg__1); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QSize::isValid(QSize* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isValid()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QSize PythonQtWrapper_QSize::expandedTo(QSize* theWrappedObject, const QSize& arg__1) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->expandedTo(arg__1)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QSize* PythonQtWrapper_QSize::operator_add_assign(QSize* theWrappedObject, const QSize& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return &( (*theWrappedObject)+= arg__1); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSize::writeTo(QSize* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | arg__1 << (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QSize* PythonQtWrapper_QSize::operator_multiply_assign(QSize* theWrappedObject, qreal c) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return &( (*theWrappedObject)*= c); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QSize* PythonQtWrapper_QSize::operator_divide_assign(QSize* theWrappedObject, qreal c) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return &( (*theWrappedObject)/= c); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | QSize PythonQtWrapper_QSize::boundedTo(QSize* theWrappedObject, const QSize& arg__1) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->boundedTo(arg__1)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | void PythonQtWrapper_QSize::setHeight(QSize* theWrappedObject, int h) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setHeight(h)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | void PythonQtWrapper_QSize::setWidth(QSize* theWrappedObject, int w) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setWidth(w)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | void PythonQtWrapper_QSize::scale(QSize* theWrappedObject, const QSize& s, Qt::AspectRatioMode mode) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->scale(s, mode)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QSize::toString(QSize* obj) { | ||
QString result; | ||||
QDebug d(&result); | ||||
d << *obj; | ||||
return result; | ||||
florianlink
|
r13 | } | ||