codegen/QtGui/QMatrix4x4.prg: fixed

codegen/QtGui/QMatrix4x4.prg: fixed

%%
%% Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4
%%
%% Copyright (C) 2020 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com>
%%

$project=Qt4xHb
$module=QtGui

$header

#include "hbclass.ch"

$addRequests

$beginClassFrom=

$addMethods

$endClass

$destructor

#pragma BEGINDUMP

$includes

#include <QtGui/QMatrix>
#include <QtGui/QTransform>

$prototype=QMatrix4x4 ()
$constructor=|new1|

$prototype=QMatrix4x4 ( const qreal * values )
%% TODO: implementar ?

$prototype=QMatrix4x4 ( qreal m11, qreal m12, qreal m13, qreal m14, qreal m21, qreal m22, qreal m23, qreal m24, qreal m31, qreal m32, qreal m33, qreal m34, qreal m41, qreal m42, qreal m43, qreal m44 )
$constructor=|new3|qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal

$prototype=QMatrix4x4 ( const QGenericMatrix<N, M, qreal> & matrix )
%% TODO: implementar ?

$prototype=QMatrix4x4 ( const QTransform & transform )
$constructor=|new5|const QTransform &

$prototype=QMatrix4x4 ( const QMatrix & matrix )
%% TODO: implementar ?

/*
[1]QMatrix4x4 ()
[2]QMatrix4x4 ( const qreal * values )
[3]QMatrix4x4 ( qreal m11, qreal m12, qreal m13, qreal m14, qreal m21, qreal m22, qreal m23, qreal m24, qreal m31, qreal m32, qreal m33, qreal m34, qreal m41, qreal m42, qreal m43, qreal m44 )
[4]QMatrix4x4 ( const QGenericMatrix<N, M, qreal> & matrix )
[5]QMatrix4x4 ( const QTransform & transform )
[6]QMatrix4x4 ( const QMatrix & matrix )
*/

%% TODO: implementar caso 2 (receber uma array de valores numricos)

HB_FUNC_STATIC( QMATRIX4X4_NEW )
{
  if( ISNUMPAR(0) )
  {
    HB_FUNC_EXEC( QMATRIX4X4_NEW1 );
  }
  else if( ISNUMPAR(16) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) && ISNUM(5) && ISNUM(6) && ISNUM(7) && ISNUM(8) && ISNUM(9) && ISNUM(10) && ISNUM(11) && ISNUM(12) && ISNUM(13) && ISNUM(14) && ISNUM(15) && ISNUM(16) )
  {
    HB_FUNC_EXEC( QMATRIX4X4_NEW3 );
  }
  else if( ISNUMPAR(1) && ISQTRANSFORM(1) )
  {
    HB_FUNC_EXEC( QMATRIX4X4_NEW5 );
  }
%%  //else if( ISNUMPAR(1) && ISQMATRIX(1) )
%%  //{
%%  //  HB_FUNC_EXEC( QMATRIX4X4_NEW6 );
%%  //}
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=new

$deleteMethod

$prototypeV2=QVector4D column( int index ) const

$prototypeV2=qreal determinant() const

$prototypeV2=void fill( qreal value )

$prototypeV2=void flipCoordinates()

$prototypeV2=void frustum( qreal left, qreal right, qreal bottom, qreal top, qreal nearPlane, qreal farPlane )

$prototype=QMatrix4x4 inverted ( bool * invertible = 0 ) const
$method=|QMatrix4x4|inverted|bool *=0

$prototypeV2=bool isIdentity() const

$prototypeV2=void lookAt( const QVector3D & eye, const QVector3D & center, const QVector3D & up )

$prototype=QPoint map( const QPoint & point ) const
$internalMethod=|QPoint|map,map1|const QPoint &

$prototype=QPointF map ( const QPointF & point ) const
$internalMethod=|QPointF|map,map2|const QPointF &

$prototype=QVector3D map ( const QVector3D & point ) const
$internalMethod=|QVector3D|map,map3|const QVector3D &

$prototype=QVector4D map ( const QVector4D & point ) const
$internalMethod=|QVector4D|map,map4|const QVector4D &

/*
[1]QPoint map ( const QPoint & point ) const
[2]QPointF map ( const QPointF & point ) const
[3]QVector3D map ( const QVector3D & point ) const
[4]QVector4D map ( const QVector4D & point ) const
*/

HB_FUNC_STATIC( QMATRIX4X4_MAP )
{
  if( ISNUMPAR(1) && ISQPOINT(1) )
  {
    QMatrix4x4_map1();
  }
  else if( ISNUMPAR(1) && ISQPOINTF(1) )
  {
    QMatrix4x4_map2();
  }
  else if( ISNUMPAR(1) && ISQVECTOR3D(1) )
  {
    QMatrix4x4_map3();
  }
  else if( ISNUMPAR(1) && ISQVECTOR4D(1) )
  {
    QMatrix4x4_map4();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=map

$prototype=QRect mapRect ( const QRect & rect ) const
$internalMethod=|QRect|mapRect,mapRect1|const QRect &

$prototype=QRectF mapRect ( const QRectF & rect ) const
$internalMethod=|QRectF|mapRect,mapRect2|const QRectF &

/*
[1]QRect mapRect ( const QRect & rect ) const
[2]QRectF mapRect ( const QRectF & rect ) const
*/

HB_FUNC_STATIC( QMATRIX4X4_MAPRECT )
{
  if( ISNUMPAR(1) && ISQRECT(1) )
  {
    QMatrix4x4_mapRect1();
  }
  else if( ISNUMPAR(1) && ISQRECTF(1) )
  {
    QMatrix4x4_mapRect2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=mapRect

$prototypeV2=QVector3D mapVector( const QVector3D & vector ) const

$prototypeV2=QMatrix3x3 normalMatrix() const

$prototypeV2=void optimize()

$prototype=void ortho ( qreal left, qreal right, qreal bottom, qreal top, qreal nearPlane, qreal farPlane )
$internalMethod=|void|ortho,ortho1|qreal,qreal,qreal,qreal,qreal,qreal

$prototype=void ortho ( const QRect & rect )
$internalMethod=|void|ortho,ortho2|const QRect &

$prototype=void ortho ( const QRectF & rect )
$internalMethod=|void|ortho,ortho3|const QRectF &

/*
[1]void ortho ( qreal left, qreal right, qreal bottom, qreal top, qreal nearPlane, qreal farPlane )
[2]void ortho ( const QRect & rect )
[3]void ortho ( const QRectF & rect )
*/

HB_FUNC_STATIC( QMATRIX4X4_ORTHO )
{
  if( ISNUMPAR(6) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) && ISNUM(5) && ISNUM(6) )
  {
    QMatrix4x4_ortho1();
  }
  else if( ISNUMPAR(1) && ISQRECT(1) )
  {
    QMatrix4x4_ortho2();
  }
  else if( ISNUMPAR(1) && ISQRECTF(1) )
  {
    QMatrix4x4_ortho3();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=ortho

$prototypeV2=void perspective( qreal angle, qreal aspect, qreal nearPlane, qreal farPlane )

$prototype=void rotate ( qreal angle, const QVector3D & vector )
$internalMethod=|void|rotate,rotate1|qreal,const QVector3D &

$prototype=void rotate ( const QQuaternion & quaternion )
$internalMethod=|void|rotate,rotate2|const QQuaternion &

$prototype=void rotate ( qreal angle, qreal x, qreal y, qreal z = 0.0f )
$internalMethod=|void|rotate,rotate3|qreal,qreal,qreal,qreal=0.0f

/*
[1]void rotate ( qreal angle, const QVector3D & vector )
[2]void rotate ( const QQuaternion & quaternion )
[3]void rotate ( qreal angle, qreal x, qreal y, qreal z = 0.0f )
*/

HB_FUNC_STATIC( QMATRIX4X4_ROTATE )
{
  if( ISNUMPAR(2) && ISNUM(1) && ISQVECTOR3D(2) )
  {
    QMatrix4x4_rotate1();
  }
  else if( ISNUMPAR(1) && ISQQUATERNION(1) )
  {
    QMatrix4x4_rotate2();
  }
  else if( ISBETWEEN(3,4) && ISNUM(1) && ISNUM(2) && ISNUM(3) && (ISNUM(4)||ISNIL(4)) )
  {
    QMatrix4x4_rotate3();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=rotate

$prototypeV2=QVector4D row( int index ) const

$prototype=void scale ( const QVector3D & vector )
$internalMethod=|void|scale,scale1|const QVector3D &

$prototype=void scale ( qreal x, qreal y )
$internalMethod=|void|scale,scale2|qreal,qreal

$prototype=void scale ( qreal x, qreal y, qreal z )
$internalMethod=|void|scale,scale3|qreal,qreal,qreal

$prototype=void scale ( qreal factor )
$internalMethod=|void|scale,scale4|qreal

/*
[1]void scale ( const QVector3D & vector )
[2]void scale ( qreal x, qreal y )
[3]void scale ( qreal x, qreal y, qreal z )
[4]void scale ( qreal factor )
*/

HB_FUNC_STATIC( QMATRIX4X4_SCALE )
{
  if( ISNUMPAR(1) && ISQVECTOR3D(1) )
  {
    QMatrix4x4_scale1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QMatrix4x4_scale2();
  }
  else if( ISNUMPAR(3) && ISNUM(1) && ISNUM(2) && ISNUM(3) )
  {
    QMatrix4x4_scale3();
  }
  else if( ISNUMPAR(1) && ISNUM(1) )
  {
    QMatrix4x4_scale4();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=scale

$prototypeV2=void setColumn( int index, const QVector4D & value )

$prototypeV2=void setRow( int index, const QVector4D & value )

$prototypeV2=void setToIdentity()

$prototype=QTransform toTransform () const
$internalMethod=|QTransform|toTransform,toTransform1|

$prototype=QTransform toTransform ( qreal distanceToPlane ) const
$internalMethod=|QTransform|toTransform,toTransform2|qreal

/*
[1]QTransform toTransform () const
[2]QTransform toTransform ( qreal distanceToPlane ) const
*/

HB_FUNC_STATIC( QMATRIX4X4_TOTRANSFORM )
{
  if( ISNUMPAR(0) )
  {
    QMatrix4x4_toTransform1();
  }
  else if( ISNUMPAR(1) && ISNUM(1) )
  {
    QMatrix4x4_toTransform2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=toTransform

$prototype=void translate ( const QVector3D & vector )
$internalMethod=|void|translate,translate1|const QVector3D &

$prototype=void translate ( qreal x, qreal y )
$internalMethod=|void|translate,translate2|qreal,qreal

$prototype=void translate ( qreal x, qreal y, qreal z )
$internalMethod=|void|translate,translate3|qreal,qreal,qreal

/*
[1]void translate ( const QVector3D & vector )
[2]void translate ( qreal x, qreal y )
[3]void translate ( qreal x, qreal y, qreal z )
*/

HB_FUNC_STATIC( QMATRIX4X4_TRANSLATE )
{
  if( ISNUMPAR(1) && ISQVECTOR3D(1) )
  {
    QMatrix4x4_translate1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QMatrix4x4_translate2();
  }
  else if( ISNUMPAR(3) && ISNUM(1) && ISNUM(2) && ISNUM(3) )
  {
    QMatrix4x4_translate3();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=translate

$prototypeV2=QMatrix4x4 transposed() const

$extraMethods

#pragma ENDDUMP

%%
%% Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4
%%
%% Copyright (C) 2020 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com>
%%

$project=Qt4xHb
$module=QtGui

$header

#include "hbclass.ch"

$addRequests

$beginClassFrom=

$addMethods

$endClass

$destructor

#pragma BEGINDUMP

$includes

#include <QtGui/QMatrix>
#include <QtGui/QTransform>

$prototype=QMatrix4x4 ()
$constructor=|new1|

$prototype=QMatrix4x4 ( const qreal * values )
%% TODO: implementar ?

$prototype=QMatrix4x4 ( qreal m11, qreal m12, qreal m13, qreal m14, qreal m21, qreal m22, qreal m23, qreal m24, qreal m31, qreal m32, qreal m33, qreal m34, qreal m41, qreal m42, qreal m43, qreal m44 )
$constructor=|new3|qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal,qreal

$prototype=QMatrix4x4 ( const QGenericMatrix<N, M, qreal> & matrix )
%% TODO: implementar ?

$prototype=QMatrix4x4 ( const QTransform & transform )
$constructor=|new5|const QTransform &

$prototype=QMatrix4x4 ( const QMatrix & matrix )
%% TODO: implementar ?

/*
[1]QMatrix4x4 ()
[2]QMatrix4x4 ( const qreal * values )
[3]QMatrix4x4 ( qreal m11, qreal m12, qreal m13, qreal m14, qreal m21, qreal m22, qreal m23, qreal m24, qreal m31, qreal m32, qreal m33, qreal m34, qreal m41, qreal m42, qreal m43, qreal m44 )
[4]QMatrix4x4 ( const QGenericMatrix<N, M, qreal> & matrix )
[5]QMatrix4x4 ( const QTransform & transform )
[6]QMatrix4x4 ( const QMatrix & matrix )
*/

%% TODO: implementar caso 2 (receber uma array de valores numricos)

HB_FUNC_STATIC( QMATRIX4X4_NEW )
{
  if( ISNUMPAR(0) )
  {
    HB_FUNC_EXEC( QMATRIX4X4_NEW1 );
  }
  else if( ISNUMPAR(16) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) && ISNUM(5) && ISNUM(6) && ISNUM(7) && ISNUM(8) && ISNUM(9) && ISNUM(10) && ISNUM(11) && ISNUM(12) && ISNUM(13) && ISNUM(14) && ISNUM(15) && ISNUM(16) )
  {
    HB_FUNC_EXEC( QMATRIX4X4_NEW3 );
  }
  else if( ISNUMPAR(1) && ISQTRANSFORM(1) )
  {
    HB_FUNC_EXEC( QMATRIX4X4_NEW5 );
  }
%%  //else if( ISNUMPAR(1) && ISQMATRIX(1) )
%%  //{
%%  //  HB_FUNC_EXEC( QMATRIX4X4_NEW6 );
%%  //}
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=new

$deleteMethod

$prototypeV2=QVector4D column( int index ) const

$prototypeV2=qreal determinant() const

$prototypeV2=void fill( qreal value )

$prototypeV2=void flipCoordinates()

$prototypeV2=void frustum( qreal left, qreal right, qreal bottom, qreal top, qreal nearPlane, qreal farPlane )

$prototype=QMatrix4x4 inverted ( bool * invertible = 0 ) const
$method=|QMatrix4x4|inverted|bool *=0

$prototypeV2=bool isIdentity() const

$prototypeV2=void lookAt( const QVector3D & eye, const QVector3D & center, const QVector3D & up )

$prototypeV2=QPoint map( const QPoint & point ) const
$internalMethod=|QPoint|map,map1|const QPoint &

$prototype=QPointF map ( const QPointF & point ) const
$internalMethod=|QPointF|map,map2|const QPointF &

$prototype=QVector3D map ( const QVector3D & point ) const
$internalMethod=|QVector3D|map,map3|const QVector3D &

$prototype=QVector4D map ( const QVector4D & point ) const
$internalMethod=|QVector4D|map,map4|const QVector4D &

/*
[1]QPoint map ( const QPoint & point ) const
[2]QPointF map ( const QPointF & point ) const
[3]QVector3D map ( const QVector3D & point ) const
[4]QVector4D map ( const QVector4D & point ) const
*/

HB_FUNC_STATIC( QMATRIX4X4_MAP )
{
  if( ISNUMPAR(1) && ISQPOINT(1) )
  {
    QMatrix4x4_map1();
  }
  else if( ISNUMPAR(1) && ISQPOINTF(1) )
  {
    QMatrix4x4_map2();
  }
  else if( ISNUMPAR(1) && ISQVECTOR3D(1) )
  {
    QMatrix4x4_map3();
  }
  else if( ISNUMPAR(1) && ISQVECTOR4D(1) )
  {
    QMatrix4x4_map4();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=map

$prototype=QRect mapRect ( const QRect & rect ) const
$internalMethod=|QRect|mapRect,mapRect1|const QRect &

$prototype=QRectF mapRect ( const QRectF & rect ) const
$internalMethod=|QRectF|mapRect,mapRect2|const QRectF &

/*
[1]QRect mapRect ( const QRect & rect ) const
[2]QRectF mapRect ( const QRectF & rect ) const
*/

HB_FUNC_STATIC( QMATRIX4X4_MAPRECT )
{
  if( ISNUMPAR(1) && ISQRECT(1) )
  {
    QMatrix4x4_mapRect1();
  }
  else if( ISNUMPAR(1) && ISQRECTF(1) )
  {
    QMatrix4x4_mapRect2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=mapRect

$prototypeV2=QVector3D mapVector( const QVector3D & vector ) const

$prototypeV2=QMatrix3x3 normalMatrix() const

$prototypeV2=void optimize()

$prototype=void ortho ( qreal left, qreal right, qreal bottom, qreal top, qreal nearPlane, qreal farPlane )
$internalMethod=|void|ortho,ortho1|qreal,qreal,qreal,qreal,qreal,qreal

$prototype=void ortho ( const QRect & rect )
$internalMethod=|void|ortho,ortho2|const QRect &

$prototype=void ortho ( const QRectF & rect )
$internalMethod=|void|ortho,ortho3|const QRectF &

/*
[1]void ortho ( qreal left, qreal right, qreal bottom, qreal top, qreal nearPlane, qreal farPlane )
[2]void ortho ( const QRect & rect )
[3]void ortho ( const QRectF & rect )
*/

HB_FUNC_STATIC( QMATRIX4X4_ORTHO )
{
  if( ISNUMPAR(6) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) && ISNUM(5) && ISNUM(6) )
  {
    QMatrix4x4_ortho1();
  }
  else if( ISNUMPAR(1) && ISQRECT(1) )
  {
    QMatrix4x4_ortho2();
  }
  else if( ISNUMPAR(1) && ISQRECTF(1) )
  {
    QMatrix4x4_ortho3();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=ortho

$prototypeV2=void perspective( qreal angle, qreal aspect, qreal nearPlane, qreal farPlane )

$prototype=void rotate ( qreal angle, const QVector3D & vector )
$internalMethod=|void|rotate,rotate1|qreal,const QVector3D &

$prototype=void rotate ( const QQuaternion & quaternion )
$internalMethod=|void|rotate,rotate2|const QQuaternion &

$prototype=void rotate ( qreal angle, qreal x, qreal y, qreal z = 0.0f )
$internalMethod=|void|rotate,rotate3|qreal,qreal,qreal,qreal=0.0f

/*
[1]void rotate ( qreal angle, const QVector3D & vector )
[2]void rotate ( const QQuaternion & quaternion )
[3]void rotate ( qreal angle, qreal x, qreal y, qreal z = 0.0f )
*/

HB_FUNC_STATIC( QMATRIX4X4_ROTATE )
{
  if( ISNUMPAR(2) && ISNUM(1) && ISQVECTOR3D(2) )
  {
    QMatrix4x4_rotate1();
  }
  else if( ISNUMPAR(1) && ISQQUATERNION(1) )
  {
    QMatrix4x4_rotate2();
  }
  else if( ISBETWEEN(3,4) && ISNUM(1) && ISNUM(2) && ISNUM(3) && (ISNUM(4)||ISNIL(4)) )
  {
    QMatrix4x4_rotate3();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=rotate

$prototypeV2=QVector4D row( int index ) const

$prototype=void scale ( const QVector3D & vector )
$internalMethod=|void|scale,scale1|const QVector3D &

$prototype=void scale ( qreal x, qreal y )
$internalMethod=|void|scale,scale2|qreal,qreal

$prototype=void scale ( qreal x, qreal y, qreal z )
$internalMethod=|void|scale,scale3|qreal,qreal,qreal

$prototype=void scale ( qreal factor )
$internalMethod=|void|scale,scale4|qreal

/*
[1]void scale ( const QVector3D & vector )
[2]void scale ( qreal x, qreal y )
[3]void scale ( qreal x, qreal y, qreal z )
[4]void scale ( qreal factor )
*/

HB_FUNC_STATIC( QMATRIX4X4_SCALE )
{
  if( ISNUMPAR(1) && ISQVECTOR3D(1) )
  {
    QMatrix4x4_scale1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QMatrix4x4_scale2();
  }
  else if( ISNUMPAR(3) && ISNUM(1) && ISNUM(2) && ISNUM(3) )
  {
    QMatrix4x4_scale3();
  }
  else if( ISNUMPAR(1) && ISNUM(1) )
  {
    QMatrix4x4_scale4();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=scale

$prototypeV2=void setColumn( int index, const QVector4D & value )

$prototypeV2=void setRow( int index, const QVector4D & value )

$prototypeV2=void setToIdentity()

$prototype=QTransform toTransform () const
$internalMethod=|QTransform|toTransform,toTransform1|

$prototype=QTransform toTransform ( qreal distanceToPlane ) const
$internalMethod=|QTransform|toTransform,toTransform2|qreal

/*
[1]QTransform toTransform () const
[2]QTransform toTransform ( qreal distanceToPlane ) const
*/

HB_FUNC_STATIC( QMATRIX4X4_TOTRANSFORM )
{
  if( ISNUMPAR(0) )
  {
    QMatrix4x4_toTransform1();
  }
  else if( ISNUMPAR(1) && ISNUM(1) )
  {
    QMatrix4x4_toTransform2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=toTransform

$prototype=void translate ( const QVector3D & vector )
$internalMethod=|void|translate,translate1|const QVector3D &

$prototype=void translate ( qreal x, qreal y )
$internalMethod=|void|translate,translate2|qreal,qreal

$prototype=void translate ( qreal x, qreal y, qreal z )
$internalMethod=|void|translate,translate3|qreal,qreal,qreal

/*
[1]void translate ( const QVector3D & vector )
[2]void translate ( qreal x, qreal y )
[3]void translate ( qreal x, qreal y, qreal z )
*/

HB_FUNC_STATIC( QMATRIX4X4_TRANSLATE )
{
  if( ISNUMPAR(1) && ISQVECTOR3D(1) )
  {
    QMatrix4x4_translate1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QMatrix4x4_translate2();
  }
  else if( ISNUMPAR(3) && ISNUM(1) && ISNUM(2) && ISNUM(3) )
  {
    QMatrix4x4_translate3();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=translate

$prototypeV2=QMatrix4x4 transposed() const

$extraMethods

#pragma ENDDUMP


codegen/QtWidgets: updated

codegen/QtWidgets: updated

Modified:
codegen/QtWidgets/QWidget.prg

%%
%% Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5
%%
%% Copyright (C) 2018 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com>
%%

$header

#include "hbclass.ch"

$addRequests

$beginClassFrom=QObject

$addMethods

$addSignals

%%   METHOD onWindowIconTextChanged // TODO: verificar se ainda  valido no Qt 5

$endClass

$destructor

#pragma BEGINDUMP

$includes

#include <QIcon>
#include <QVariant>
#include <QLocale>
#include <QGraphicsEffect>
#include <QGraphicsProxyWidget>
#include <QLayout>
#include <QStyle>
#include <QWindow>

$prototype=explicit QWidget ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
$constructor=|new|QWidget *=0,Qt::WindowFlags=0

$deleteMethod

$prototype=bool acceptDrops () const
$method=|bool|acceptDrops|

$prototype=void setAcceptDrops ( bool on )
$method=|void|setAcceptDrops|bool

$prototype=QString accessibleDescription () const
$method=|QString|accessibleDescription||#ifndef QT_NO_ACCESSIBILITY

$prototype=void setAccessibleDescription ( const QString & description )
$method=|void|setAccessibleDescription|const QString &|#ifndef QT_NO_ACCESSIBILITY

$prototype=QString accessibleName () const
$method=|QString|accessibleName||#ifndef QT_NO_ACCESSIBILITY

$prototype=void setAccessibleName ( const QString & name )
$method=|void|setAccessibleName|const QString &|#ifndef QT_NO_ACCESSIBILITY

$prototype=QList<QAction *> actions () const
$method=|QList<QAction *>|actions||#ifndef QT_NO_ACTION

$prototype=void activateWindow ()
$method=|void|activateWindow|

$prototype=void addAction ( QAction * action )
$method=|void|addAction|QAction *|#ifndef QT_NO_ACTION

$prototype=void addActions ( QList<QAction *> actions )
$method=|void|addActions|QList<QAction *>|#ifndef QT_NO_ACTION

$prototype=void adjustSize ()
$method=|void|adjustSize|

$prototype=bool autoFillBackground () const
$method=|bool|autoFillBackground|

$prototype=void setAutoFillBackground ( bool enabled )
$method=|void|setAutoFillBackground|bool

$prototype=QPalette::ColorRole backgroundRole () const
$method=|QPalette::ColorRole|backgroundRole|

$prototype=void setBackgroundRole ( QPalette::ColorRole role )
$method=|void|setBackgroundRole|QPalette::ColorRole

$prototype=QSize baseSize () const
$method=|QSize|baseSize|

$prototype=void setBaseSize ( const QSize & )
$internalMethod=|void|setBaseSize,setBaseSize1|const QSize &

$prototype=void setBaseSize ( int basew, int baseh )
$internalMethod=|void|setBaseSize,setBaseSize2|int,int

//[1]void setBaseSize ( const QSize & )
//[2]void setBaseSize ( int basew, int baseh )

HB_FUNC_STATIC( QWIDGET_SETBASESIZE )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_setBaseSize1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setBaseSize2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setBaseSize

$prototype=QWidget * childAt ( int x, int y ) const
$internalMethod=|QWidget *|childAt,childAt1|int,int

$prototype=QWidget * childAt ( const QPoint & p ) const
$internalMethod=|QWidget *|childAt,childAt2|const QPoint &

//[1]QWidget * childAt ( int x, int y ) const
//[2]QWidget * childAt ( const QPoint & p ) const

HB_FUNC_STATIC( QWIDGET_CHILDAT )
{
  if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_childAt1();
  }
  else if( ISNUMPAR(1) && ISQPOINT(1) )
  {
    QWidget_childAt2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=childAt

$prototype=QRect childrenRect () const
$method=|QRect|childrenRect|

$prototype=QRegion childrenRegion () const
$method=|QRegion|childrenRegion|

$prototype=void clearFocus ()
$method=|void|clearFocus|

$prototype=void clearMask ()
$method=|void|clearMask|

$prototype=QMargins contentsMargins () const
$method=|QMargins|contentsMargins|

$prototype=QRect contentsRect () const
$method=|QRect|contentsRect|

$prototype=Qt::ContextMenuPolicy contextMenuPolicy () const
$method=|Qt::ContextMenuPolicy|contextMenuPolicy|

$prototype=void setContextMenuPolicy ( Qt::ContextMenuPolicy policy )
$method=|void|setContextMenuPolicy|Qt::ContextMenuPolicy

$prototype=QCursor cursor () const
$method=|QCursor|cursor||#ifndef QT_NO_CURSOR

$prototype=void setCursor ( const QCursor & )
$method=|void|setCursor|const QCursor &|#ifndef QT_NO_CURSOR

$prototype=void unsetCursor ()
$method=|void|unsetCursor||#ifndef QT_NO_CURSOR

$prototype=WId effectiveWinId () const
$method=|WId|effectiveWinId|

$prototype=void ensurePolished () const
$method=|void|ensurePolished|

$prototype=Qt::FocusPolicy focusPolicy () const
$method=|Qt::FocusPolicy|focusPolicy|

$prototype=void setFocusPolicy ( Qt::FocusPolicy policy )
$method=|void|setFocusPolicy|Qt::FocusPolicy

$prototype=QWidget * focusProxy () const
$method=|QWidget *|focusProxy|

$prototype=QWidget * focusWidget () const
$method=|QWidget *|focusWidget|

$prototype=const QFont & font () const
$method=|const QFont &|font|

$prototype=void setFont ( const QFont & )
$method=|void|setFont|const QFont &

$prototype=QFontInfo fontInfo () const
$method=|QFontInfo|fontInfo|

$prototype=QFontMetrics fontMetrics () const
$method=|QFontMetrics|fontMetrics|

$prototype=QPalette::ColorRole foregroundRole () const
$method=|QPalette::ColorRole|foregroundRole|

$prototype=void setForegroundRole ( QPalette::ColorRole role )
$method=|void|setForegroundRole|QPalette::ColorRole

$prototype=QRect frameGeometry () const
$method=|QRect|frameGeometry|

$prototype=QSize frameSize () const
$method=|QSize|frameSize|

$prototype=void getContentsMargins ( int * left, int * top, int * right, int * bottom ) const
$method=|void|getContentsMargins|int *,int *,int *,int *

$prototype=void grabGesture ( Qt::GestureType gesture, Qt::GestureFlags flags = Qt::GestureFlags() )
$method=|void|grabGesture|Qt::GestureType,Qt::GestureFlags=Qt::GestureFlags()

$prototype=void grabKeyboard ()
$method=|void|grabKeyboard|

$prototype=void grabMouse ()
$internalMethod=|void|grabMouse,grabMouse1|

$prototype=void grabMouse ( const QCursor & cursor )
$internalMethod=|void|grabMouse,grabMouse2|const QCursor &|#ifndef QT_NO_CURSOR

//[1]void grabMouse ()
//[2]void grabMouse ( const QCursor & cursor )

HB_FUNC_STATIC( QWIDGET_GRABMOUSE )
{
  if( ISNUMPAR(0) )
  {
    QWidget_grabMouse1();
  }
  else if( ISNUMPAR(1) && ISQCURSOR(1) )
  {
    QWidget_grabMouse2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=grabMouse

$prototype=int grabShortcut ( const QKeySequence & key, Qt::ShortcutContext context = Qt::WindowShortcut )
$method=|int|grabShortcut|const QKeySequence &,Qt::ShortcutContext=Qt::WindowShortcut|#ifndef QT_NO_SHORTCUT

$prototype=QGraphicsEffect * graphicsEffect () const
$method=|QGraphicsEffect *|graphicsEffect||#ifndef QT_NO_GRAPHICSEFFECT

$prototype=void setGraphicsEffect ( QGraphicsEffect * effect )
$method=|void|setGraphicsEffect|QGraphicsEffect *|#ifndef QT_NO_GRAPHICSEFFECT

$prototype=QGraphicsProxyWidget * graphicsProxyWidget () const
$method=|QGraphicsProxyWidget *|graphicsProxyWidget||#ifndef QT_NO_GRAPHICSVIEW

$prototype=bool hasEditFocus () const
$method=|bool|hasEditFocus||#ifdef QT_KEYPAD_NAVIGATION

$prototype=bool hasFocus () const
$method=|bool|hasFocus|

$prototype=bool hasMouseTracking () const
$method=|bool|hasMouseTracking|

$prototype=void setMouseTracking ( bool enable )
$method=|void|setMouseTracking|bool

$prototype=int height () const
$method=|int|height|

$prototype=virtual int heightForWidth ( int w ) const
$virtualMethod=|int|heightForWidth|int

$prototype=Qt::InputMethodHints inputMethodHints () const
$method=|Qt::InputMethodHints|inputMethodHints|

$prototype=void setInputMethodHints ( Qt::InputMethodHints hints )
$method=|void|setInputMethodHints|Qt::InputMethodHints

$prototype=virtual QVariant inputMethodQuery ( Qt::InputMethodQuery query ) const
$virtualMethod=|QVariant|inputMethodQuery|Qt::InputMethodQuery

$prototype=void insertAction ( QAction * before, QAction * action )
$method=|void|insertAction|QAction *,QAction *|#ifndef QT_NO_ACTION

$prototype=void insertActions ( QAction * before, QList<QAction *> actions )
$method=|void|insertActions|QAction *,QList<QAction *>|#ifndef QT_NO_ACTION

$prototype=bool isActiveWindow () const
$method=|bool|isActiveWindow|

$prototype=bool isAncestorOf ( const QWidget * child ) const
$method=|bool|isAncestorOf|const QWidget *

$prototype=bool isEnabledTo ( const QWidget * ancestor ) const
$method=|bool|isEnabledTo|const QWidget *

$prototype=bool isFullScreen () const
$method=|bool|isFullScreen|

$prototype=bool isHidden () const
$method=|bool|isHidden|

$prototype=bool isMaximized () const
$method=|bool|isMaximized|

$prototype=bool isMinimized () const
$method=|bool|isMinimized|

$prototype=bool isModal () const
$method=|bool|isModal|

$prototype=bool isVisible () const
$method=|bool|isVisible|

$prototype=virtual void setVisible ( bool visible )
$virtualMethod=|void|setVisible|bool

$prototype=bool isVisibleTo ( const QWidget * ancestor ) const
$method=|bool|isVisibleTo|const QWidget *

$prototype=bool isWindow () const
$method=|bool|isWindow|

$prototype=bool isWindowModified () const
$method=|bool|isWindowModified|

$prototype=void setWindowModified ( bool )
$method=|void|setWindowModified|bool

$prototype=QLayout * layout () const
$method=|QLayout *|layout|

$prototype=Qt::LayoutDirection layoutDirection () const
$method=|Qt::LayoutDirection|layoutDirection|

$prototype=void setLayoutDirection ( Qt::LayoutDirection direction )
$method=|void|setLayoutDirection|Qt::LayoutDirection

$prototype=void unsetLayoutDirection ()
$method=|void|unsetLayoutDirection|

$prototype=QLocale locale () const
$method=|QLocale|locale|

$prototype=void setLocale ( const QLocale & locale )
$method=|void|setLocale|const QLocale &

$prototype=void unsetLocale ()
$method=|void|unsetLocale|

$prototype=QPoint mapFrom ( QWidget * parent, const QPoint & pos ) const
$method=|QPoint|mapFrom|QWidget *,const QPoint &

$prototype=QPoint mapFromGlobal ( const QPoint & pos ) const
$method=|QPoint|mapFromGlobal|const QPoint &

$prototype=QPoint mapFromParent ( const QPoint & pos ) const
$method=|QPoint|mapFromParent|const QPoint &

$prototype=QPoint mapTo ( QWidget * parent, const QPoint & pos ) const
$method=|QPoint|mapTo|QWidget *,const QPoint &

$prototype=QPoint mapToGlobal ( const QPoint & pos ) const
$method=|QPoint|mapToGlobal|const QPoint &

$prototype=QPoint mapToParent ( const QPoint & pos ) const
$method=|QPoint|mapToParent|const QPoint &

$prototype=QRegion mask () const
$method=|QRegion|mask|

$prototype=void setMask ( const QBitmap & bitmap )
$internalMethod=|void|setMask,setMask1|const QBitmap &

$prototype=void setMask ( const QRegion & region )
$internalMethod=|void|setMask,setMask2|const QRegion &

//[1]void setMask ( const QBitmap & bitmap )
//[2]void setMask ( const QRegion & region )

HB_FUNC_STATIC( QWIDGET_SETMASK )
{
  if( ISNUMPAR(1) && ISQBITMAP(1) )
  {
    QWidget_setMask1();
  }
  else if( ISNUMPAR(1) && ISQREGION(1) )
  {
    QWidget_setMask2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setMask

$prototype=int maximumHeight () const
$method=|int|maximumHeight|

$prototype=void setMaximumHeight ( int maxh )
$method=|void|setMaximumHeight|int

$prototype=int maximumWidth () const
$method=|int|maximumWidth|

$prototype=void setMaximumWidth ( int maxw )
$method=|void|setMaximumWidth|int

$prototype=int minimumHeight () const
$method=|int|minimumHeight|

$prototype=void setMinimumHeight ( int minh )
$method=|void|setMinimumHeight|int

$prototype=virtual QSize minimumSizeHint () const
$virtualMethod=|QSize|minimumSizeHint|

$prototype=int minimumWidth () const
$method=|int|minimumWidth|

$prototype=void setMinimumWidth ( int minw )
$method=|void|setMinimumWidth|int

$prototype=QPoint pos () const
$method=|QPoint|pos|

$prototype=void move ( const QPoint & )
$internalMethod=|void|move,move1|const QPoint &

$prototype=void move ( int x, int y )
$internalMethod=|void|move,move2|int,int

//[1]void move ( const QPoint & )
//[2]void move ( int x, int y )

HB_FUNC_STATIC( QWIDGET_MOVE )
{
  if( ISNUMPAR(1) && ISQPOINT(1) )
  {
    QWidget_move1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_move2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=move

$prototype=QWidget * nativeParentWidget () const
$method=|QWidget *|nativeParentWidget|

$prototype=QWidget * nextInFocusChain () const
$method=|QWidget *|nextInFocusChain|

$prototype=QRect normalGeometry () const
$method=|QRect|normalGeometry|

$prototype=void overrideWindowFlags ( Qt::WindowFlags flags )
$method=|void|overrideWindowFlags|Qt::WindowFlags

$prototype=const QPalette & palette () const
$method=|const QPalette &|palette|

$prototype=void setPalette ( const QPalette & )
$method=|void|setPalette|const QPalette &

$prototype=QWidget * parentWidget () const
$method=|QWidget *|parentWidget|

$prototype=QWidget * previousInFocusChain () const
$method=|QWidget *|previousInFocusChain|

$prototype=QRect rect () const
$method=|QRect|rect|

$prototype=void releaseKeyboard ()
$method=|void|releaseKeyboard|

$prototype=void releaseMouse ()
$method=|void|releaseMouse|

$prototype=void releaseShortcut ( int id )
$method=|void|releaseShortcut|int|#ifndef QT_NO_SHORTCUT

$prototype=void removeAction ( QAction * action )
$method=|void|removeAction|QAction *|#ifndef QT_NO_ACTION

$prototype=void render (QPaintDevice *target, const QPoint &targetOffset = QPoint(),const QRegion &sourceRegion = QRegion(),RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren))
$internalMethod=|void|render,render1|QPaintDevice *,const QPoint &=QPoint(),const QRegion &=QRegion(),QWidget::RenderFlags=QWidget::RenderFlags(QWidget::DrawWindowBackground OR QWidget::DrawChildren)

$prototype=void render (QPainter *painter, const QPoint &targetOffset = QPoint(),const QRegion &sourceRegion = QRegion(),RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren))
$internalMethod=|void|render,render2|QPainter *,const QPoint &=QPoint(),const QRegion &=QRegion(),QWidget::RenderFlags=QWidget::RenderFlags(QWidget::DrawWindowBackground OR QWidget::DrawChildren)

//[1]void render (QPaintDevice *target, const QPoint &targetOffset = QPoint(),const QRegion &sourceRegion = QRegion(),RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren))
//[2]void render (QPainter *painter, const QPoint &targetOffset = QPoint(),const QRegion &sourceRegion = QRegion(),RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren))

%% TODO: identificar QPaintDevice e QPainter
HB_FUNC_STATIC( QWIDGET_RENDER )
{
  if( ISBETWEEN(1,4) && ISQPAINTER(1) && (ISQPOINT(2)||ISNIL(2)) && (ISQREGION(3)||ISNIL(3)) && ISOPTNUM(4) )
  {
    QWidget_render2();
  }
  else if( ISBETWEEN(1,4) && ISOBJECT(1) && (ISQPOINT(2)||ISNIL(2)) && (ISQREGION(3)||ISNIL(3)) && ISOPTNUM(4) )
  {
    QWidget_render1();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=render

$prototype=void repaint ( int x, int y, int w, int h )
$internalMethod=|void|repaint,repaint1|int,int,int,int

$prototype=void repaint ( const QRect & rect )
$internalMethod=|void|repaint,repaint2|const QRect &

$prototype=void repaint ( const QRegion & rgn )
$internalMethod=|void|repaint,repaint3|const QRegion &

$prototype=void repaint ()
$internalMethod=|void|repaint,repaint4|

//[1]void repaint ( int x, int y, int w, int h )
//[2]void repaint ( const QRect & rect )
//[3]void repaint ( const QRegion & rgn )
//[4]void repaint ()

HB_FUNC_STATIC( QWIDGET_REPAINT )
{
  if( ISNUMPAR(4) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) )
  {
    QWidget_repaint1();
  }
  else if( ISNUMPAR(1) && ISQRECT(1) )
  {
    QWidget_repaint2();
  }
  else if( ISNUMPAR(1) && ISQREGION(1) )
  {
    QWidget_repaint3();
  }
  else if( ISNUMPAR(0) )
  {
    QWidget_repaint4();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=repaint

$prototype=void resize ( const QSize & )
$internalMethod=|void|resize,resize1|const QSize &

$prototype=void resize ( int w, int h )
$internalMethod=|void|resize,resize2|int,int

//[1]void resize ( const QSize & )
//[2]void resize ( int w, int h )

HB_FUNC_STATIC( QWIDGET_RESIZE )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_resize1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_resize2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=resize

$prototype=bool restoreGeometry ( const QByteArray & geometry )
$method=|bool|restoreGeometry|const QByteArray &

$prototype=QByteArray saveGeometry () const
$method=|QByteArray|saveGeometry|

$prototype=void scroll ( int dx, int dy )
$internalMethod=|void|scroll,scroll1|int,int

$prototype=void scroll ( int dx, int dy, const QRect & r )
$internalMethod=|void|scroll,scroll2|int,int,const QRect &

//[1]void scroll ( int dx, int dy )
//[2]void scroll ( int dx, int dy, const QRect & r )

HB_FUNC_STATIC( QWIDGET_SCROLL )
{
  if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_scroll1();
  }
  else if( ISNUMPAR(3) && ISNUM(1) && ISNUM(2) && ISQRECT(3) )
  {
    QWidget_scroll2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=scroll

$prototype=void setAttribute ( Qt::WidgetAttribute attribute, bool on = true )
$method=|void|setAttribute|Qt::WidgetAttribute,bool=true

$prototype=void setContentsMargins ( int left, int top, int right, int bottom )
$internalMethod=|void|setContentsMargins,setContentsMargins1|int,int,int,int

$prototype=void setContentsMargins ( const QMargins & margins )
$internalMethod=|void|setContentsMargins,setContentsMargins2|const QMargins &

//[1]void setContentsMargins ( int left, int top, int right, int bottom )
//[2]void setContentsMargins ( const QMargins & margins )

HB_FUNC_STATIC( QWIDGET_SETCONTENTSMARGINS )
{
  if( ISNUMPAR(4) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) )
  {
    QWidget_setContentsMargins1();
  }
  else if( ISNUMPAR(1) && ISQMARGINS(1) )
  {
    QWidget_setContentsMargins2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setContentsMargins

$prototype=void setEditFocus ( bool enable )
$method=|void|setEditFocus|bool|#ifdef QT_KEYPAD_NAVIGATION

$prototype=void setFixedHeight ( int h )
$method=|void|setFixedHeight|int

$prototype=void setFixedSize ( const QSize & s )
$internalMethod=|void|setFixedSize,setFixedSize1|const QSize &

$prototype=void setFixedSize ( int w, int h )
$internalMethod=|void|setFixedSize,setFixedSize2|int,int

//[1]void setFixedSize ( const QSize & s )
//[2]void setFixedSize ( int w, int h )

HB_FUNC_STATIC( QWIDGET_SETFIXEDSIZE )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_setFixedSize1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setFixedSize2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setFixedSize

$prototype=void setFixedWidth ( int w )
$method=|void|setFixedWidth|int

$prototype=void setFocus ( Qt::FocusReason reason )
$internalMethod=|void|setFocus,setFocus1|Qt::FocusReason

$prototype=void setFocus ()
$internalMethod=|void|setFocus,setFocus2|

//[1]void setFocus ( Qt::FocusReason reason )
//[2]void setFocus ()

HB_FUNC_STATIC( QWIDGET_SETFOCUS )
{
  if( ISNUMPAR(1) && ISNUM(1) )
  {
    QWidget_setFocus1();
  }
  else if( ISNUMPAR(0) )
  {
    QWidget_setFocus2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setFocus

$prototype=void setFocusProxy ( QWidget * w )
$method=|void|setFocusProxy|QWidget *

$prototype=const QRect & geometry () const
$method=|const QRect &|geometry|

$prototype=void setGeometry ( const QRect & )
$internalMethod=|void|setGeometry,setGeometry1|const QRect &

$prototype=void setGeometry ( int x, int y, int w, int h )
$internalMethod=|void|setGeometry,setGeometry2|int,int,int,int

//[1]void setGeometry ( const QRect & )
//[2]void setGeometry ( int x, int y, int w, int h )

HB_FUNC_STATIC( QWIDGET_SETGEOMETRY )
{
  if( ISNUMPAR(1) && ISQRECT(1) )
  {
    QWidget_setGeometry1();
  }
  else if( ISNUMPAR(4) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) )
  {
    QWidget_setGeometry2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setGeometry

$prototype=void setLayout ( QLayout * layout )
$method=|void|setLayout|QLayout *

$prototype=QSize maximumSize () const
$method=|QSize|maximumSize|

$prototype=void setMaximumSize ( const QSize & )
$internalMethod=|void|setMaximumSize,setMaximumSize1|const QSize &

$prototype=void setMaximumSize ( int maxw, int maxh )
$internalMethod=|void|setMaximumSize,setMaximumSize2|int,int

//[1]void setMaximumSize ( const QSize & )
//[2]void setMaximumSize ( int maxw, int maxh )

HB_FUNC_STATIC( QWIDGET_SETMAXIMUMSIZE )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_setMaximumSize1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setMaximumSize2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setMaximumSize

$prototype=QSize minimumSize () const
$method=|QSize|minimumSize|

$prototype=void setMinimumSize ( const QSize & )
$internalMethod=|void|setMinimumSize,setMinimumSize1|const QSize &

$prototype=void setMinimumSize ( int minw, int minh )
$internalMethod=|void|setMinimumSize,setMinimumSize2|int,int

//[1]void setMinimumSize ( const QSize & )
//[2]void setMinimumSize ( int minw, int minh )

HB_FUNC_STATIC( QWIDGET_SETMINIMUMSIZE )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_setMinimumSize1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setMinimumSize2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setMinimumSize

$prototype=void setParent ( QWidget * parent )
$internalMethod=|void|setParent,setParent1|QWidget *

$prototype=void setParent ( QWidget * parent, Qt::WindowFlags f )
$internalMethod=|void|setParent,setParent2|QWidget *,Qt::WindowFlags

//[1]void setParent ( QWidget * parent )
//[2]void setParent ( QWidget * parent, Qt::WindowFlags f )

HB_FUNC_STATIC( QWIDGET_SETPARENT )
{
  if( ISNUMPAR(1) && ISQWIDGET(1) )
  {
    QWidget_setParent1();
  }
  else if( ISNUMPAR(2) && ISQWIDGET(1) && ISNUM(2) )
  {
    QWidget_setParent2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setParent

$prototype=void setShortcutAutoRepeat ( int id, bool enable = true )
$method=|void|setShortcutAutoRepeat|int,bool=true|#ifndef QT_NO_SHORTCUT

$prototype=void setShortcutEnabled ( int id, bool enable = true )
$method=|void|setShortcutEnabled|int,bool=true|#ifndef QT_NO_SHORTCUT

$prototype=QSize sizeIncrement () const
$method=|QSize|sizeIncrement|

$prototype=void setSizeIncrement ( const QSize & )
$internalMethod=|void|setSizeIncrement,setSizeIncrement1|const QSize &

$prototype=void setSizeIncrement ( int w, int h )
$internalMethod=|void|setSizeIncrement,setSizeIncrement2|int,int

//[1]void setSizeIncrement ( const QSize & )
//[2]void setSizeIncrement ( int w, int h )

HB_FUNC_STATIC( QWIDGET_SETSIZEINCREMENT )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_setSizeIncrement1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setSizeIncrement2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setSizeIncrement

$prototype=QSizePolicy sizePolicy () const
$method=|QSizePolicy|sizePolicy|

$prototype=void setSizePolicy ( QSizePolicy )
$internalMethod=|void|setSizePolicy,setSizePolicy1|QSizePolicy

$prototype=void setSizePolicy ( QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical )
$internalMethod=|void|setSizePolicy,setSizePolicy2|QSizePolicy::Policy,QSizePolicy::Policy

//[1]void setSizePolicy ( QSizePolicy & )
//[2]void setSizePolicy ( QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical )

HB_FUNC_STATIC( QWIDGET_SETSIZEPOLICY )
{
  if( ISNUMPAR(1) && ISQSIZEPOLICY(1) )
  {
    QWidget_setSizePolicy1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setSizePolicy2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setSizePolicy

$prototype=int toolTipDuration() const
$method=5,2,0|int|toolTipDuration||#ifndef QT_NO_TOOLTIP

$prototype=void setToolTipDuration(int msec)
$method=5,2,0|void|setToolTipDuration|int|#ifndef QT_NO_TOOLTIP

$prototype=Qt::WindowModality windowModality () const
$method=|Qt::WindowModality|windowModality|

$prototype=void setWindowModality ( Qt::WindowModality windowModality )
$method=|void|setWindowModality|Qt::WindowModality

$prototype=void setWindowRole ( const QString & role )
$method=|void|setWindowRole|const QString &

$prototype=void setWindowState ( Qt::WindowStates windowState )
$method=|void|setWindowState|Qt::WindowStates

$prototype=QSize size () const
$method=|QSize|size|

$prototype=virtual QSize sizeHint () const
$virtualMethod=|QSize|sizeHint|

$prototype=void stackUnder ( QWidget * w )
$method=|void|stackUnder|QWidget *

$prototype=QString statusTip () const
$method=|QString|statusTip||#ifndef QT_NO_STATUSTIP

$prototype=void setStatusTip ( const QString & )
$method=|void|setStatusTip|const QString &|#ifndef QT_NO_STATUSTIP

$prototype=QStyle * style () const
$method=|QStyle *|style|

$prototype=void setStyle ( QStyle * style )
$method=|void|setStyle|QStyle *

$prototype=QString styleSheet () const
$method=|QString|styleSheet||#ifndef QT_NO_STYLE_STYLESHEET

$prototype=void setStyleSheet ( const QString & styleSheet )
$method=|void|setStyleSheet|const QString &|#ifndef QT_NO_STYLE_STYLESHEET

$prototype=bool testAttribute ( Qt::WidgetAttribute attribute ) const
$method=|bool|testAttribute|Qt::WidgetAttribute

$prototype=QString toolTip () const
$method=|QString|toolTip||#ifndef QT_NO_TOOLTIP

$prototype=void setToolTip ( const QString & )
$method=|void|setToolTip|const QString &|#ifndef QT_NO_TOOLTIP

$prototype=bool underMouse () const
$method=|bool|underMouse|

$prototype=void ungrabGesture ( Qt::GestureType gesture )
$method=|void|ungrabGesture|Qt::GestureType|#ifndef QT_NO_GESTURES

$prototype=void update ( int x, int y, int w, int h )
$internalMethod=|void|update,update1|int,int,int,int

$prototype=void update ( const QRect & rect )
$internalMethod=|void|update,update2|const QRect &

$prototype=void update ( const QRegion & rgn )
$internalMethod=|void|update,update3|const QRegion &

$prototype=void update ()
$internalMethod=|void|update,update4|

//[1]void update ( int x, int y, int w, int h )
//[2]void update ( const QRect & rect )
//[3]void update ( const QRegion & rgn )
//[4]void update ()

HB_FUNC_STATIC( QWIDGET_UPDATE )
{
  if( ISNUMPAR(4) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) )
  {
    QWidget_update1();
  }
  else if( ISNUMPAR(1) && ISQRECT(1) )
  {
    QWidget_update2();
  }
  else if( ISNUMPAR(1) && ISQREGION(1) )
  {
    QWidget_update3();
  }
  else if( ISNUMPAR(0) )
  {
    QWidget_update4();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=update

$prototype=void updateGeometry ()
$method=|void|updateGeometry|

$prototype=bool updatesEnabled () const
$method=|bool|updatesEnabled|

$prototype=void setUpdatesEnabled ( bool enable )
$method=|void|setUpdatesEnabled|bool

$prototype=QRegion visibleRegion () const
$method=|QRegion|visibleRegion|

$prototype=QString whatsThis () const
$method=|QString|whatsThis||#ifndef QT_NO_WHATSTHIS

$prototype=void setWhatsThis ( const QString & )
$method=|void|setWhatsThis|const QString &|#ifndef QT_NO_WHATSTHIS

$prototype=int width () const
$method=|int|width|

$prototype=WId winId () const
$method=|WId|winId|

$prototype=WId internalWinId() const
$method=|WId|internalWinId|

$prototype=QWidget * window () const
$method=|QWidget *|window|

$prototype=QString windowFilePath () const
$method=|QString|windowFilePath|

$prototype=void setWindowFilePath ( const QString & filePath )
$method=|void|setWindowFilePath|const QString &

$prototype=Qt::WindowFlags windowFlags () const
$method=|Qt::WindowFlags|windowFlags|

$prototype=void setWindowFlags ( Qt::WindowFlags type )
$method=|void|setWindowFlags|Qt::WindowFlags

$prototype=QIcon windowIcon () const
$method=|QIcon|windowIcon|

$prototype=void setWindowIcon ( const QIcon & icon )
$method=|void|setWindowIcon|const QIcon &

$prototype=QString windowIconText () const
$method=|QString|windowIconText|

$prototype=void setWindowIconText ( const QString & )
$method=|void|setWindowIconText|const QString &

$prototype=qreal windowOpacity () const
$method=|qreal|windowOpacity|

$prototype=void setWindowOpacity ( qreal level )
$method=|void|setWindowOpacity|qreal

$prototype=QString windowRole () const
$method=|QString|windowRole|

$prototype=Qt::WindowStates windowState () const
$method=|Qt::WindowStates|windowState|

$prototype=QString windowTitle () const
$method=|QString|windowTitle|

$prototype=void setWindowTitle ( const QString & )
$method=|void|setWindowTitle|const QString &

$prototype=Qt::WindowType windowType () const
$method=|Qt::WindowType|windowType|

$prototype=int x () const
$method=|int|x|

$prototype=int y () const
$method=|int|y|

$prototype=QPaintEngine * paintEngine () const
$method=|QPaintEngine *|paintEngine|

$prototype=bool close ()
$method=|bool|close|

$prototype=void hide ()
$method=|void|hide|

$prototype=void lower ()
$method=|void|lower|

$prototype=void raise ()
$method=|void|raise|

$prototype=void setDisabled ( bool disable )
$method=|void|setDisabled|bool

$prototype=bool isEnabled () const
$method=|bool|isEnabled|

$prototype=void setEnabled ( bool )
$method=|void|setEnabled|bool

$prototype=void setHidden ( bool hidden )
$method=|void|setHidden|bool

$prototype=void show ()
$method=|void|show|

$prototype=void showFullScreen ()
$method=|void|showFullScreen|

$prototype=void showMaximized ()
$method=|void|showMaximized|

$prototype=void showMinimized ()
$method=|void|showMinimized|

$prototype=void showNormal ()
$method=|void|showNormal|

$prototype=int devType() const
$method=|int|devType|

$prototype=bool isTopLevel() const
$method=|bool|isTopLevel|

$prototype=bool isEnabledToTLW() const
$method=|bool|isEnabledToTLW|

$prototype=QWidget * topLevelWidget () const
$method=|QWidget *|topLevelWidget|

$prototype=Q_INVOKABLE QPixmap grab (const QRect &rectangle = QRect(QPoint(0, 0), QSize(-1, -1)))
$method=|QPixmap|grab|const QRect &=QRect(QPoint(0 COMMA 0) COMMA QSize(-1 COMMA -1))

$prototype=bool isRightToLeft() const
$method=|bool|isRightToLeft|

$prototype=bool isLeftToRight() const
$method=|bool|isLeftToRight|

$prototype=void overrideWindowState (Qt::WindowStates state)
$method=|void|overrideWindowState|Qt::WindowStates

$prototype=QBackingStore * backingStore () const
$method=|QBackingStore *|backingStore|

$prototype=QWindow * windowHandle () const
$method=|QWindow *|windowHandle|

$prototype=virtual bool hasHeightForWidth() const
$virtualMethod=|bool|hasHeightForWidth|

//=============================================================================
// QPaintDevice methods - BEGIN
//=============================================================================

$prototype=int colorCount () const
$method=|int|colorCount|

$prototype=int depth () const
$method=|int|depth|

$prototype=int heightMM () const
$method=|int|heightMM|

$prototype=int logicalDpiX () const
$method=|int|logicalDpiX|

$prototype=int logicalDpiY () const
$method=|int|logicalDpiY|

$prototype=bool paintingActive () const
$method=|bool|paintingActive|

$prototype=int physicalDpiX () const
$method=|int|physicalDpiX|

$prototype=int physicalDpiY () const
$method=|int|physicalDpiY|

$prototype=int widthMM () const
$method=|int|widthMM|

//=============================================================================
// QPaintDevice methods - END
//=============================================================================

$prototype=static QWidget * find ( WId id )
$staticMethod=|QWidget *|find|WId

$prototype=static QWidget * keyboardGrabber ()
$staticMethod=|QWidget *|keyboardGrabber|

$prototype=static QWidget * mouseGrabber ()
$staticMethod=|QWidget *|mouseGrabber|

$prototype=static void setTabOrder ( QWidget * first, QWidget * second )
$staticMethod=|void|setTabOrder|QWidget *,QWidget *

$prototype=static QWidget * createWindowContainer (QWindow *window, QWidget *parent=0, Qt::WindowFlags flags=0)
$staticMethod=|QWidget *|createWindowContainer|QWindow *,QWidget *=0,Qt::WindowFlags=0

$beginSignals
$signal=5,2,0|windowTitleChanged(QString)
$signal=5,2,0|windowIconChanged(QIcon)
$signal=|windowIconTextChanged(QString)
$signal=|customContextMenuRequested(QPoint)
$endSignals

#pragma ENDDUMP

%%
%% Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5
%%
%% Copyright (C) 2018 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com>
%%

$header

#include "hbclass.ch"

$addRequests

$beginClassFrom=QObject

$addMethods

$addSignals

%%   METHOD onWindowIconTextChanged // TODO: verificar se ainda  valido no Qt 5

$endClass

$destructor

#pragma BEGINDUMP

$includes

#include <QIcon>
#include <QVariant>
#include <QLocale>
#include <QGraphicsEffect>
#include <QGraphicsProxyWidget>
#include <QLayout>
#include <QStyle>
#include <QWindow>

$prototype=explicit QWidget ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
$constructor=|new|QWidget *=0,Qt::WindowFlags=0

$deleteMethod

$prototype=bool acceptDrops () const
$method=|bool|acceptDrops|

$prototype=void setAcceptDrops ( bool on )
$method=|void|setAcceptDrops|bool

$prototype=QString accessibleDescription () const
$method=|QString|accessibleDescription||#ifndef QT_NO_ACCESSIBILITY

$prototype=void setAccessibleDescription ( const QString & description )
$method=|void|setAccessibleDescription|const QString &|#ifndef QT_NO_ACCESSIBILITY

$prototype=QString accessibleName () const
$method=|QString|accessibleName||#ifndef QT_NO_ACCESSIBILITY

$prototype=void setAccessibleName ( const QString & name )
$method=|void|setAccessibleName|const QString &|#ifndef QT_NO_ACCESSIBILITY

$prototype=QList<QAction *> actions () const
$method=|QList<QAction *>|actions||#ifndef QT_NO_ACTION

$prototype=void activateWindow ()
$method=|void|activateWindow|

$prototype=void addAction ( QAction * action )
$method=|void|addAction|QAction *|#ifndef QT_NO_ACTION

$prototype=void addActions ( QList<QAction *> actions )
$method=|void|addActions|QList<QAction *>|#ifndef QT_NO_ACTION

$prototype=void adjustSize ()
$method=|void|adjustSize|

$prototype=bool autoFillBackground () const
$method=|bool|autoFillBackground|

$prototype=void setAutoFillBackground ( bool enabled )
$method=|void|setAutoFillBackground|bool

$prototype=QPalette::ColorRole backgroundRole () const
$method=|QPalette::ColorRole|backgroundRole|

$prototype=void setBackgroundRole ( QPalette::ColorRole role )
$method=|void|setBackgroundRole|QPalette::ColorRole

$prototype=QSize baseSize () const
$method=|QSize|baseSize|

$prototype=void setBaseSize ( const QSize & )
$internalMethod=|void|setBaseSize,setBaseSize1|const QSize &

$prototype=void setBaseSize ( int basew, int baseh )
$internalMethod=|void|setBaseSize,setBaseSize2|int,int

//[1]void setBaseSize ( const QSize & )
//[2]void setBaseSize ( int basew, int baseh )

HB_FUNC_STATIC( QWIDGET_SETBASESIZE )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_setBaseSize1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setBaseSize2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setBaseSize

$prototype=QWidget * childAt ( int x, int y ) const
$internalMethod=|QWidget *|childAt,childAt1|int,int

$prototype=QWidget * childAt ( const QPoint & p ) const
$internalMethod=|QWidget *|childAt,childAt2|const QPoint &

//[1]QWidget * childAt ( int x, int y ) const
//[2]QWidget * childAt ( const QPoint & p ) const

HB_FUNC_STATIC( QWIDGET_CHILDAT )
{
  if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_childAt1();
  }
  else if( ISNUMPAR(1) && ISQPOINT(1) )
  {
    QWidget_childAt2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=childAt

$prototype=QRect childrenRect () const
$method=|QRect|childrenRect|

$prototype=QRegion childrenRegion () const
$method=|QRegion|childrenRegion|

$prototype=void clearFocus ()
$method=|void|clearFocus|

$prototype=void clearMask ()
$method=|void|clearMask|

$prototype=QMargins contentsMargins () const
$method=|QMargins|contentsMargins|

$prototype=QRect contentsRect () const
$method=|QRect|contentsRect|

$prototype=Qt::ContextMenuPolicy contextMenuPolicy () const
$method=|Qt::ContextMenuPolicy|contextMenuPolicy|

$prototype=void setContextMenuPolicy ( Qt::ContextMenuPolicy policy )
$method=|void|setContextMenuPolicy|Qt::ContextMenuPolicy

$prototype=QCursor cursor () const
$method=|QCursor|cursor||#ifndef QT_NO_CURSOR

$prototype=void setCursor ( const QCursor & )
$method=|void|setCursor|const QCursor &|#ifndef QT_NO_CURSOR

$prototype=void unsetCursor ()
$method=|void|unsetCursor||#ifndef QT_NO_CURSOR

$prototype=WId effectiveWinId () const
$method=|WId|effectiveWinId|

$prototype=void ensurePolished () const
$method=|void|ensurePolished|

$prototype=Qt::FocusPolicy focusPolicy () const
$method=|Qt::FocusPolicy|focusPolicy|

$prototype=void setFocusPolicy ( Qt::FocusPolicy policy )
$method=|void|setFocusPolicy|Qt::FocusPolicy

$prototype=QWidget * focusProxy () const
$method=|QWidget *|focusProxy|

$prototype=QWidget * focusWidget () const
$method=|QWidget *|focusWidget|

$prototype=const QFont & font () const
$method=|const QFont &|font|

$prototype=void setFont ( const QFont & )
$method=|void|setFont|const QFont &

$prototype=QFontInfo fontInfo () const
$method=|QFontInfo|fontInfo|

$prototype=QFontMetrics fontMetrics () const
$method=|QFontMetrics|fontMetrics|

$prototype=QPalette::ColorRole foregroundRole () const
$method=|QPalette::ColorRole|foregroundRole|

$prototype=void setForegroundRole ( QPalette::ColorRole role )
$method=|void|setForegroundRole|QPalette::ColorRole

$prototype=QRect frameGeometry () const
$method=|QRect|frameGeometry|

$prototype=QSize frameSize () const
$method=|QSize|frameSize|

$prototype=void getContentsMargins ( int * left, int * top, int * right, int * bottom ) const
$method=|void|getContentsMargins|int *,int *,int *,int *

$prototype=void grabGesture ( Qt::GestureType gesture, Qt::GestureFlags flags = Qt::GestureFlags() )
$method=|void|grabGesture|Qt::GestureType,Qt::GestureFlags=Qt::GestureFlags()

$prototype=void grabKeyboard ()
$method=|void|grabKeyboard|

$prototype=void grabMouse ()
$internalMethod=|void|grabMouse,grabMouse1|

$prototype=void grabMouse ( const QCursor & cursor )
$internalMethod=|void|grabMouse,grabMouse2|const QCursor &|#ifndef QT_NO_CURSOR

//[1]void grabMouse ()
//[2]void grabMouse ( const QCursor & cursor )

HB_FUNC_STATIC( QWIDGET_GRABMOUSE )
{
  if( ISNUMPAR(0) )
  {
    QWidget_grabMouse1();
  }
  else if( ISNUMPAR(1) && ISQCURSOR(1) )
  {
    QWidget_grabMouse2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=grabMouse

$prototype=int grabShortcut ( const QKeySequence & key, Qt::ShortcutContext context = Qt::WindowShortcut )
$method=|int|grabShortcut|const QKeySequence &,Qt::ShortcutContext=Qt::WindowShortcut|#ifndef QT_NO_SHORTCUT

$prototype=QGraphicsEffect * graphicsEffect () const
$method=|QGraphicsEffect *|graphicsEffect||#ifndef QT_NO_GRAPHICSEFFECT

$prototype=void setGraphicsEffect ( QGraphicsEffect * effect )
$method=|void|setGraphicsEffect|QGraphicsEffect *|#ifndef QT_NO_GRAPHICSEFFECT

$prototype=QGraphicsProxyWidget * graphicsProxyWidget () const
$method=|QGraphicsProxyWidget *|graphicsProxyWidget||#ifndef QT_NO_GRAPHICSVIEW

$prototype=bool hasEditFocus () const
$method=|bool|hasEditFocus||#ifdef QT_KEYPAD_NAVIGATION

$prototype=bool hasFocus () const
$method=|bool|hasFocus|

$prototype=bool hasMouseTracking () const
$method=|bool|hasMouseTracking|

$prototype=void setMouseTracking ( bool enable )
$method=|void|setMouseTracking|bool

$prototype=int height () const
$method=|int|height|

$prototype=virtual int heightForWidth ( int w ) const
$virtualMethod=|int|heightForWidth|int

$prototype=Qt::InputMethodHints inputMethodHints () const
$method=|Qt::InputMethodHints|inputMethodHints|

$prototype=void setInputMethodHints ( Qt::InputMethodHints hints )
$method=|void|setInputMethodHints|Qt::InputMethodHints

$prototype=virtual QVariant inputMethodQuery ( Qt::InputMethodQuery query ) const
$virtualMethod=|QVariant|inputMethodQuery|Qt::InputMethodQuery

$prototype=void insertAction ( QAction * before, QAction * action )
$method=|void|insertAction|QAction *,QAction *|#ifndef QT_NO_ACTION

$prototype=void insertActions ( QAction * before, QList<QAction *> actions )
$method=|void|insertActions|QAction *,QList<QAction *>|#ifndef QT_NO_ACTION

$prototype=bool isActiveWindow () const
$method=|bool|isActiveWindow|

$prototype=bool isAncestorOf ( const QWidget * child ) const
$method=|bool|isAncestorOf|const QWidget *

$prototype=bool isEnabledTo ( const QWidget * ancestor ) const
$method=|bool|isEnabledTo|const QWidget *

$prototype=bool isFullScreen () const
$method=|bool|isFullScreen|

$prototype=bool isHidden () const
$method=|bool|isHidden|

$prototype=bool isMaximized () const
$method=|bool|isMaximized|

$prototype=bool isMinimized () const
$method=|bool|isMinimized|

$prototype=bool isModal () const
$method=|bool|isModal|

$prototype=bool isVisible () const
$method=|bool|isVisible|

$prototype=virtual void setVisible ( bool visible )
$virtualMethod=|void|setVisible|bool

$prototype=bool isVisibleTo ( const QWidget * ancestor ) const
$method=|bool|isVisibleTo|const QWidget *

$prototype=bool isWindow () const
$method=|bool|isWindow|

$prototype=bool isWindowModified () const
$method=|bool|isWindowModified|

$prototype=void setWindowModified ( bool )
$method=|void|setWindowModified|bool

$prototype=QLayout * layout () const
$method=|QLayout *|layout|

$prototype=Qt::LayoutDirection layoutDirection () const
$method=|Qt::LayoutDirection|layoutDirection|

$prototype=void setLayoutDirection ( Qt::LayoutDirection direction )
$method=|void|setLayoutDirection|Qt::LayoutDirection

$prototype=void unsetLayoutDirection ()
$method=|void|unsetLayoutDirection|

$prototype=QLocale locale () const
$method=|QLocale|locale|

$prototype=void setLocale ( const QLocale & locale )
$method=|void|setLocale|const QLocale &

$prototype=void unsetLocale ()
$method=|void|unsetLocale|

$prototype=QPoint mapFrom ( QWidget * parent, const QPoint & pos ) const
$method=|QPoint|mapFrom|QWidget *,const QPoint &

$prototype=QPoint mapFromGlobal ( const QPoint & pos ) const
$method=|QPoint|mapFromGlobal|const QPoint &

$prototype=QPoint mapFromParent ( const QPoint & pos ) const
$method=|QPoint|mapFromParent|const QPoint &

$prototype=QPoint mapTo ( QWidget * parent, const QPoint & pos ) const
$method=|QPoint|mapTo|QWidget *,const QPoint &

$prototype=QPoint mapToGlobal ( const QPoint & pos ) const
$method=|QPoint|mapToGlobal|const QPoint &

$prototype=QPoint mapToParent ( const QPoint & pos ) const
$method=|QPoint|mapToParent|const QPoint &

$prototype=QRegion mask () const
$method=|QRegion|mask|

$prototype=void setMask ( const QBitmap & bitmap )
$internalMethod=|void|setMask,setMask1|const QBitmap &

$prototype=void setMask ( const QRegion & region )
$internalMethod=|void|setMask,setMask2|const QRegion &

//[1]void setMask ( const QBitmap & bitmap )
//[2]void setMask ( const QRegion & region )

HB_FUNC_STATIC( QWIDGET_SETMASK )
{
  if( ISNUMPAR(1) && ISQBITMAP(1) )
  {
    QWidget_setMask1();
  }
  else if( ISNUMPAR(1) && ISQREGION(1) )
  {
    QWidget_setMask2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setMask

$prototype=int maximumHeight () const
$method=|int|maximumHeight|

$prototype=void setMaximumHeight ( int maxh )
$method=|void|setMaximumHeight|int

$prototype=int maximumWidth () const
$method=|int|maximumWidth|

$prototype=void setMaximumWidth ( int maxw )
$method=|void|setMaximumWidth|int

$prototype=int minimumHeight () const
$method=|int|minimumHeight|

$prototype=void setMinimumHeight ( int minh )
$method=|void|setMinimumHeight|int

$prototype=virtual QSize minimumSizeHint () const
$virtualMethod=|QSize|minimumSizeHint|

$prototype=int minimumWidth () const
$method=|int|minimumWidth|

$prototype=void setMinimumWidth ( int minw )
$method=|void|setMinimumWidth|int

$prototype=QPoint pos () const
$method=|QPoint|pos|

$prototype=void move ( const QPoint & )
$internalMethod=|void|move,move1|const QPoint &

$prototype=void move ( int x, int y )
$internalMethod=|void|move,move2|int,int

//[1]void move ( const QPoint & )
//[2]void move ( int x, int y )

HB_FUNC_STATIC( QWIDGET_MOVE )
{
  if( ISNUMPAR(1) && ISQPOINT(1) )
  {
    QWidget_move1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_move2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=move

$prototype=QWidget * nativeParentWidget () const
$method=|QWidget *|nativeParentWidget|

$prototype=QWidget * nextInFocusChain () const
$method=|QWidget *|nextInFocusChain|

$prototype=QRect normalGeometry () const
$method=|QRect|normalGeometry|

$prototype=void overrideWindowFlags ( Qt::WindowFlags flags )
$method=|void|overrideWindowFlags|Qt::WindowFlags

$prototype=const QPalette & palette () const
$method=|const QPalette &|palette|

$prototype=void setPalette ( const QPalette & )
$method=|void|setPalette|const QPalette &

$prototype=QWidget * parentWidget () const
$method=|QWidget *|parentWidget|

$prototype=QWidget * previousInFocusChain () const
$method=|QWidget *|previousInFocusChain|

$prototype=QRect rect () const
$method=|QRect|rect|

$prototype=void releaseKeyboard ()
$method=|void|releaseKeyboard|

$prototype=void releaseMouse ()
$method=|void|releaseMouse|

$prototype=void releaseShortcut ( int id )
$method=|void|releaseShortcut|int|#ifndef QT_NO_SHORTCUT

$prototype=void removeAction ( QAction * action )
$method=|void|removeAction|QAction *|#ifndef QT_NO_ACTION

$prototype=void render (QPaintDevice *target, const QPoint &targetOffset = QPoint(),const QRegion &sourceRegion = QRegion(),RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren))
$method=|void|render,render1|QPaintDevice *,const QPoint &=QPoint(),const QRegion &=QRegion(),QWidget::RenderFlags=QWidget::RenderFlags(QWidget::DrawWindowBackground OR QWidget::DrawChildren)

$prototype=void render (QPainter *painter, const QPoint &targetOffset = QPoint(),const QRegion &sourceRegion = QRegion(),RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren))
$method=|void|render,render2|QPainter *,const QPoint &=QPoint(),const QRegion &=QRegion(),QWidget::RenderFlags=QWidget::RenderFlags(QWidget::DrawWindowBackground OR QWidget::DrawChildren)

//[1]void render (QPaintDevice *target, const QPoint &targetOffset = QPoint(),const QRegion &sourceRegion = QRegion(),RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren))
//[2]void render (QPainter *painter, const QPoint &targetOffset = QPoint(),const QRegion &sourceRegion = QRegion(),RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren))

%% TODO: identificar QPaintDevice e QPainter
HB_FUNC_STATIC( QWIDGET_RENDER )
{
  if( ISBETWEEN(1,4) && ISOBJECT(1) && (ISQPOINT(2)||ISNIL(2)) && (ISQREGION(3)||ISNIL(3)) && ISOPTNUM(4) )
  {
    HB_FUNC_EXEC( QWIDGET_RENDER1 );
  }
  else if( ISBETWEEN(1,4) && ISQPAINTER(1) && (ISQPOINT(2)||ISNIL(2)) && (ISQREGION(3)||ISNIL(3)) && ISOPTNUM(4) )
  {
    HB_FUNC_EXEC( QWIDGET_RENDER2 );
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=render

$prototype=void repaint ( int x, int y, int w, int h )
$internalMethod=|void|repaint,repaint1|int,int,int,int

$prototype=void repaint ( const QRect & rect )
$internalMethod=|void|repaint,repaint2|const QRect &

$prototype=void repaint ( const QRegion & rgn )
$internalMethod=|void|repaint,repaint3|const QRegion &

$prototype=void repaint ()
$internalMethod=|void|repaint,repaint4|

//[1]void repaint ( int x, int y, int w, int h )
//[2]void repaint ( const QRect & rect )
//[3]void repaint ( const QRegion & rgn )
//[4]void repaint ()

HB_FUNC_STATIC( QWIDGET_REPAINT )
{
  if( ISNUMPAR(4) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) )
  {
    QWidget_repaint1();
  }
  else if( ISNUMPAR(1) && ISQRECT(1) )
  {
    QWidget_repaint2();
  }
  else if( ISNUMPAR(1) && ISQREGION(1) )
  {
    QWidget_repaint3();
  }
  else if( ISNUMPAR(0) )
  {
    QWidget_repaint4();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=repaint

$prototype=void resize ( const QSize & )
$internalMethod=|void|resize,resize1|const QSize &

$prototype=void resize ( int w, int h )
$internalMethod=|void|resize,resize2|int,int

//[1]void resize ( const QSize & )
//[2]void resize ( int w, int h )

HB_FUNC_STATIC( QWIDGET_RESIZE )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_resize1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_resize2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=resize

$prototype=bool restoreGeometry ( const QByteArray & geometry )
$method=|bool|restoreGeometry|const QByteArray &

$prototype=QByteArray saveGeometry () const
$method=|QByteArray|saveGeometry|

$prototype=void scroll ( int dx, int dy )
$internalMethod=|void|scroll,scroll1|int,int

$prototype=void scroll ( int dx, int dy, const QRect & r )
$internalMethod=|void|scroll,scroll2|int,int,const QRect &

//[1]void scroll ( int dx, int dy )
//[2]void scroll ( int dx, int dy, const QRect & r )

HB_FUNC_STATIC( QWIDGET_SCROLL )
{
  if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_scroll1();
  }
  else if( ISNUMPAR(3) && ISNUM(1) && ISNUM(2) && ISQRECT(3) )
  {
    QWidget_scroll2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=scroll

$prototype=void setAttribute ( Qt::WidgetAttribute attribute, bool on = true )
$method=|void|setAttribute|Qt::WidgetAttribute,bool=true

$prototype=void setContentsMargins ( int left, int top, int right, int bottom )
$internalMethod=|void|setContentsMargins,setContentsMargins1|int,int,int,int

$prototype=void setContentsMargins ( const QMargins & margins )
$internalMethod=|void|setContentsMargins,setContentsMargins2|const QMargins &

//[1]void setContentsMargins ( int left, int top, int right, int bottom )
//[2]void setContentsMargins ( const QMargins & margins )

HB_FUNC_STATIC( QWIDGET_SETCONTENTSMARGINS )
{
  if( ISNUMPAR(4) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) )
  {
    QWidget_setContentsMargins1();
  }
  else if( ISNUMPAR(1) && ISQMARGINS(1) )
  {
    QWidget_setContentsMargins2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setContentsMargins

$prototype=void setEditFocus ( bool enable )
$method=|void|setEditFocus|bool|#ifdef QT_KEYPAD_NAVIGATION

$prototype=void setFixedHeight ( int h )
$method=|void|setFixedHeight|int

$prototype=void setFixedSize ( const QSize & s )
$internalMethod=|void|setFixedSize,setFixedSize1|const QSize &

$prototype=void setFixedSize ( int w, int h )
$internalMethod=|void|setFixedSize,setFixedSize2|int,int

//[1]void setFixedSize ( const QSize & s )
//[2]void setFixedSize ( int w, int h )

HB_FUNC_STATIC( QWIDGET_SETFIXEDSIZE )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_setFixedSize1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setFixedSize2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setFixedSize

$prototype=void setFixedWidth ( int w )
$method=|void|setFixedWidth|int

$prototype=void setFocus ( Qt::FocusReason reason )
$internalMethod=|void|setFocus,setFocus1|Qt::FocusReason

$prototype=void setFocus ()
$internalMethod=|void|setFocus,setFocus2|

//[1]void setFocus ( Qt::FocusReason reason )
//[2]void setFocus ()

HB_FUNC_STATIC( QWIDGET_SETFOCUS )
{
  if( ISNUMPAR(1) && ISNUM(1) )
  {
    QWidget_setFocus1();
  }
  else if( ISNUMPAR(0) )
  {
    QWidget_setFocus2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setFocus

$prototype=void setFocusProxy ( QWidget * w )
$method=|void|setFocusProxy|QWidget *

$prototype=const QRect & geometry () const
$method=|const QRect &|geometry|

$prototype=void setGeometry ( const QRect & )
$internalMethod=|void|setGeometry,setGeometry1|const QRect &

$prototype=void setGeometry ( int x, int y, int w, int h )
$internalMethod=|void|setGeometry,setGeometry2|int,int,int,int

//[1]void setGeometry ( const QRect & )
//[2]void setGeometry ( int x, int y, int w, int h )

HB_FUNC_STATIC( QWIDGET_SETGEOMETRY )
{
  if( ISNUMPAR(1) && ISQRECT(1) )
  {
    QWidget_setGeometry1();
  }
  else if( ISNUMPAR(4) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) )
  {
    QWidget_setGeometry2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setGeometry

$prototype=void setLayout ( QLayout * layout )
$method=|void|setLayout|QLayout *

$prototype=QSize maximumSize () const
$method=|QSize|maximumSize|

$prototype=void setMaximumSize ( const QSize & )
$internalMethod=|void|setMaximumSize,setMaximumSize1|const QSize &

$prototype=void setMaximumSize ( int maxw, int maxh )
$internalMethod=|void|setMaximumSize,setMaximumSize2|int,int

//[1]void setMaximumSize ( const QSize & )
//[2]void setMaximumSize ( int maxw, int maxh )

HB_FUNC_STATIC( QWIDGET_SETMAXIMUMSIZE )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_setMaximumSize1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setMaximumSize2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setMaximumSize

$prototype=QSize minimumSize () const
$method=|QSize|minimumSize|

$prototype=void setMinimumSize ( const QSize & )
$internalMethod=|void|setMinimumSize,setMinimumSize1|const QSize &

$prototype=void setMinimumSize ( int minw, int minh )
$internalMethod=|void|setMinimumSize,setMinimumSize2|int,int

//[1]void setMinimumSize ( const QSize & )
//[2]void setMinimumSize ( int minw, int minh )

HB_FUNC_STATIC( QWIDGET_SETMINIMUMSIZE )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_setMinimumSize1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setMinimumSize2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setMinimumSize

$prototype=void setParent ( QWidget * parent )
$internalMethod=|void|setParent,setParent1|QWidget *

$prototype=void setParent ( QWidget * parent, Qt::WindowFlags f )
$internalMethod=|void|setParent,setParent2|QWidget *,Qt::WindowFlags

//[1]void setParent ( QWidget * parent )
//[2]void setParent ( QWidget * parent, Qt::WindowFlags f )

HB_FUNC_STATIC( QWIDGET_SETPARENT )
{
  if( ISNUMPAR(1) && ISQWIDGET(1) )
  {
    QWidget_setParent1();
  }
  else if( ISNUMPAR(2) && ISQWIDGET(1) && ISNUM(2) )
  {
    QWidget_setParent2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setParent

$prototype=void setShortcutAutoRepeat ( int id, bool enable = true )
$method=|void|setShortcutAutoRepeat|int,bool=true|#ifndef QT_NO_SHORTCUT

$prototype=void setShortcutEnabled ( int id, bool enable = true )
$method=|void|setShortcutEnabled|int,bool=true|#ifndef QT_NO_SHORTCUT

$prototype=QSize sizeIncrement () const
$method=|QSize|sizeIncrement|

$prototype=void setSizeIncrement ( const QSize & )
$internalMethod=|void|setSizeIncrement,setSizeIncrement1|const QSize &

$prototype=void setSizeIncrement ( int w, int h )
$internalMethod=|void|setSizeIncrement,setSizeIncrement2|int,int

//[1]void setSizeIncrement ( const QSize & )
//[2]void setSizeIncrement ( int w, int h )

HB_FUNC_STATIC( QWIDGET_SETSIZEINCREMENT )
{
  if( ISNUMPAR(1) && ISQSIZE(1) )
  {
    QWidget_setSizeIncrement1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setSizeIncrement2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setSizeIncrement

$prototype=QSizePolicy sizePolicy () const
$method=|QSizePolicy|sizePolicy|

$prototype=void setSizePolicy ( QSizePolicy )
$internalMethod=|void|setSizePolicy,setSizePolicy1|QSizePolicy

$prototype=void setSizePolicy ( QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical )
$internalMethod=|void|setSizePolicy,setSizePolicy2|QSizePolicy::Policy,QSizePolicy::Policy

//[1]void setSizePolicy ( QSizePolicy & )
//[2]void setSizePolicy ( QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical )

HB_FUNC_STATIC( QWIDGET_SETSIZEPOLICY )
{
  if( ISNUMPAR(1) && ISQSIZEPOLICY(1) )
  {
    QWidget_setSizePolicy1();
  }
  else if( ISNUMPAR(2) && ISNUM(1) && ISNUM(2) )
  {
    QWidget_setSizePolicy2();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=setSizePolicy

$prototype=int toolTipDuration() const
$method=5,2,0|int|toolTipDuration||#ifndef QT_NO_TOOLTIP

$prototype=void setToolTipDuration(int msec)
$method=5,2,0|void|setToolTipDuration|int|#ifndef QT_NO_TOOLTIP

$prototype=Qt::WindowModality windowModality () const
$method=|Qt::WindowModality|windowModality|

$prototype=void setWindowModality ( Qt::WindowModality windowModality )
$method=|void|setWindowModality|Qt::WindowModality

$prototype=void setWindowRole ( const QString & role )
$method=|void|setWindowRole|const QString &

$prototype=void setWindowState ( Qt::WindowStates windowState )
$method=|void|setWindowState|Qt::WindowStates

$prototype=QSize size () const
$method=|QSize|size|

$prototype=virtual QSize sizeHint () const
$virtualMethod=|QSize|sizeHint|

$prototype=void stackUnder ( QWidget * w )
$method=|void|stackUnder|QWidget *

$prototype=QString statusTip () const
$method=|QString|statusTip||#ifndef QT_NO_STATUSTIP

$prototype=void setStatusTip ( const QString & )
$method=|void|setStatusTip|const QString &|#ifndef QT_NO_STATUSTIP

$prototype=QStyle * style () const
$method=|QStyle *|style|

$prototype=void setStyle ( QStyle * style )
$method=|void|setStyle|QStyle *

$prototype=QString styleSheet () const
$method=|QString|styleSheet||#ifndef QT_NO_STYLE_STYLESHEET

$prototype=void setStyleSheet ( const QString & styleSheet )
$method=|void|setStyleSheet|const QString &|#ifndef QT_NO_STYLE_STYLESHEET

$prototype=bool testAttribute ( Qt::WidgetAttribute attribute ) const
$method=|bool|testAttribute|Qt::WidgetAttribute

$prototype=QString toolTip () const
$method=|QString|toolTip||#ifndef QT_NO_TOOLTIP

$prototype=void setToolTip ( const QString & )
$method=|void|setToolTip|const QString &|#ifndef QT_NO_TOOLTIP

$prototype=bool underMouse () const
$method=|bool|underMouse|

$prototype=void ungrabGesture ( Qt::GestureType gesture )
$method=|void|ungrabGesture|Qt::GestureType|#ifndef QT_NO_GESTURES

$prototype=void update ( int x, int y, int w, int h )
$internalMethod=|void|update,update1|int,int,int,int

$prototype=void update ( const QRect & rect )
$internalMethod=|void|update,update2|const QRect &

$prototype=void update ( const QRegion & rgn )
$internalMethod=|void|update,update3|const QRegion &

$prototype=void update ()
$internalMethod=|void|update,update4|

//[1]void update ( int x, int y, int w, int h )
//[2]void update ( const QRect & rect )
//[3]void update ( const QRegion & rgn )
//[4]void update ()

HB_FUNC_STATIC( QWIDGET_UPDATE )
{
  if( ISNUMPAR(4) && ISNUM(1) && ISNUM(2) && ISNUM(3) && ISNUM(4) )
  {
    QWidget_update1();
  }
  else if( ISNUMPAR(1) && ISQRECT(1) )
  {
    QWidget_update2();
  }
  else if( ISNUMPAR(1) && ISQREGION(1) )
  {
    QWidget_update3();
  }
  else if( ISNUMPAR(0) )
  {
    QWidget_update4();
  }
  else
  {
    hb_errRT_BASE( EG_ARG, 3012, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
  }
}
$addMethod=update

$prototype=void updateGeometry ()
$method=|void|updateGeometry|

$prototype=bool updatesEnabled () const
$method=|bool|updatesEnabled|

$prototype=void setUpdatesEnabled ( bool enable )
$method=|void|setUpdatesEnabled|bool

$prototype=QRegion visibleRegion () const
$method=|QRegion|visibleRegion|

$prototype=QString whatsThis () const
$method=|QString|whatsThis||#ifndef QT_NO_WHATSTHIS

$prototype=void setWhatsThis ( const QString & )
$method=|void|setWhatsThis|const QString &|#ifndef QT_NO_WHATSTHIS

$prototype=int width () const
$method=|int|width|

$prototype=WId winId () const
$method=|WId|winId|

$prototype=WId internalWinId() const
$method=|WId|internalWinId|

$prototype=QWidget * window () const
$method=|QWidget *|window|

$prototype=QString windowFilePath () const
$method=|QString|windowFilePath|

$prototype=void setWindowFilePath ( const QString & filePath )
$method=|void|setWindowFilePath|const QString &

$prototype=Qt::WindowFlags windowFlags () const
$method=|Qt::WindowFlags|windowFlags|

$prototype=void setWindowFlags ( Qt::WindowFlags type )
$method=|void|setWindowFlags|Qt::WindowFlags

$prototype=QIcon windowIcon () const
$method=|QIcon|windowIcon|

$prototype=void setWindowIcon ( const QIcon & icon )
$method=|void|setWindowIcon|const QIcon &

$prototype=QString windowIconText () const
$method=|QString|windowIconText|

$prototype=void setWindowIconText ( const QString & )
$method=|void|setWindowIconText|const QString &

$prototype=qreal windowOpacity () const
$method=|qreal|windowOpacity|

$prototype=void setWindowOpacity ( qreal level )
$method=|void|setWindowOpacity|qreal

$prototype=QString windowRole () const
$method=|QString|windowRole|

$prototype=Qt::WindowStates windowState () const
$method=|Qt::WindowStates|windowState|

$prototype=QString windowTitle () const
$method=|QString|windowTitle|

$prototype=void setWindowTitle ( const QString & )
$method=|void|setWindowTitle|const QString &

$prototype=Qt::WindowType windowType () const
$method=|Qt::WindowType|windowType|

$prototype=int x () const
$method=|int|x|

$prototype=int y () const
$method=|int|y|

$prototype=QPaintEngine * paintEngine () const
$method=|QPaintEngine *|paintEngine|

$prototype=bool close ()
$method=|bool|close|

$prototype=void hide ()
$method=|void|hide|

$prototype=void lower ()
$method=|void|lower|

$prototype=void raise ()
$method=|void|raise|

$prototype=void setDisabled ( bool disable )
$method=|void|setDisabled|bool

$prototype=bool isEnabled () const
$method=|bool|isEnabled|

$prototype=void setEnabled ( bool )
$method=|void|setEnabled|bool

$prototype=void setHidden ( bool hidden )
$method=|void|setHidden|bool

$prototype=void show ()
$method=|void|show|

$prototype=void showFullScreen ()
$method=|void|showFullScreen|

$prototype=void showMaximized ()
$method=|void|showMaximized|

$prototype=void showMinimized ()
$method=|void|showMinimized|

$prototype=void showNormal ()
$method=|void|showNormal|

$prototype=int devType() const
$method=|int|devType|

$prototype=bool isTopLevel() const
$method=|bool|isTopLevel|

$prototype=bool isEnabledToTLW() const
$method=|bool|isEnabledToTLW|

$prototype=QWidget * topLevelWidget () const
$method=|QWidget *|topLevelWidget|

$prototype=Q_INVOKABLE QPixmap grab (const QRect &rectangle = QRect(QPoint(0, 0), QSize(-1, -1)))
$method=|QPixmap|grab|const QRect &=QRect(QPoint(0 COMMA 0) COMMA QSize(-1 COMMA -1))

$prototype=bool isRightToLeft() const
$method=|bool|isRightToLeft|

$prototype=bool isLeftToRight() const
$method=|bool|isLeftToRight|

$prototype=void overrideWindowState (Qt::WindowStates state)
$method=|void|overrideWindowState|Qt::WindowStates

$prototype=QBackingStore * backingStore () const
$method=|QBackingStore *|backingStore|

$prototype=QWindow * windowHandle () const
$method=|QWindow *|windowHandle|

$prototype=virtual bool hasHeightForWidth() const
$virtualMethod=|bool|hasHeightForWidth|

//=============================================================================
// QPaintDevice methods - BEGIN
//=============================================================================

$prototype=int colorCount () const
$method=|int|colorCount|

$prototype=int depth () const
$method=|int|depth|

$prototype=int heightMM () const
$method=|int|heightMM|

$prototype=int logicalDpiX () const
$method=|int|logicalDpiX|

$prototype=int logicalDpiY () const
$method=|int|logicalDpiY|

$prototype=bool paintingActive () const
$method=|bool|paintingActive|

$prototype=int physicalDpiX () const
$method=|int|physicalDpiX|

$prototype=int physicalDpiY () const
$method=|int|physicalDpiY|

$prototype=int widthMM () const
$method=|int|widthMM|

//=============================================================================
// QPaintDevice methods - END
//=============================================================================

$prototype=static QWidget * find ( WId id )
$staticMethod=|QWidget *|find|WId

$prototype=static QWidget * keyboardGrabber ()
$staticMethod=|QWidget *|keyboardGrabber|

$prototype=static QWidget * mouseGrabber ()
$staticMethod=|QWidget *|mouseGrabber|

$prototype=static void setTabOrder ( QWidget * first, QWidget * second )
$staticMethod=|void|setTabOrder|QWidget *,QWidget *

$prototype=static QWidget * createWindowContainer (QWindow *window, QWidget *parent=0, Qt::WindowFlags flags=0)
$staticMethod=|QWidget *|createWindowContainer|QWindow *,QWidget *=0,Qt::WindowFlags=0

$beginSignals
$signal=5,2,0|windowTitleChanged(QString)
$signal=5,2,0|windowIconChanged(QIcon)
$signal=|windowIconTextChanged(QString)
$signal=|customContextMenuRequested(QPoint)
$endSignals

#pragma ENDDUMP