
// auto generated
//var self;

// class constructor:
function QBrush() {


    // should be QBrush_BaseJs.call(this, engine):
    //QBrush.prototype = new QBrush_BaseJs(engine);

    var wrapper;

    // creating JS class for existing wrapper:
    if (arguments.length===3 && arguments[0]==="__GOT_WRAPPER__") {

        if (arguments[2]!==undefined
                           && (arguments[2]===null ||
                                              (typeof(arguments[2].getWrappedType)==="function" &&
                                                      arguments[2].getWrappedType()===RJSType_QBrush.getIdStatic()))) {

            wrapper = arguments[2];
            if (wrapper!=null) {
                //wrapper.__WRAPPER__ = true;
                Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });
            }
            //if (arguments[1]!==true) {
            // only copy properties if this is not an existing wrapper:
            copyProperties(this, wrapper, QBrush);
            //}
        } else {
            qWarning("QBrush.js: Constructor called with __GOT_WRAPPER__, but no valid wrapper provided: " + arguments[2]);
            console.trace();
        }

    } else {

        if (arguments.length >= 1 &&
                arguments.length <= 2) {

            self = this;
            wrapper = new QBrush_Wrapper(
                // RJSApi:
                handler
                , arguments[0], arguments[1]
                ////this.setWrapper(this.wrapper);
                //Object.setPrototypeOf(this, wrapper);
            );
            //wrapper.__WRAPPER__ = true;
            Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });


            copyProperties(this, wrapper, QBrush);

            //this.setWrapper(this.wrapper);



            //copyProperties(this, wrapper, QBrush);
        }


        else

            if (arguments.length == 2) {

                self = this;
                wrapper = new QBrush_Wrapper(
                    // RJSApi:
                    handler
                    , arguments[0], arguments[1]
                    ////this.setWrapper(this.wrapper);
                    //Object.setPrototypeOf(this, wrapper);
                );
                //wrapper.__WRAPPER__ = true;
                Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });


                copyProperties(this, wrapper, QBrush);

                //this.setWrapper(this.wrapper);



                //copyProperties(this, wrapper, QBrush);
            }


            else

                if (arguments.length == 2) {

                    self = this;
                    wrapper = new QBrush_Wrapper(
                        // RJSApi:
                        handler
                        , arguments[0], arguments[1]
                        ////this.setWrapper(this.wrapper);
                        //Object.setPrototypeOf(this, wrapper);
                    );
                    //wrapper.__WRAPPER__ = true;
                    Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });


                    copyProperties(this, wrapper, QBrush);

                    //this.setWrapper(this.wrapper);



                    //copyProperties(this, wrapper, QBrush);
                }


                else

                    if (arguments.length == 2) {

                        self = this;
                        wrapper = new QBrush_Wrapper(
                            // RJSApi:
                            handler
                            , arguments[0], arguments[1]
                            ////this.setWrapper(this.wrapper);
                            //Object.setPrototypeOf(this, wrapper);
                        );
                        //wrapper.__WRAPPER__ = true;
                        Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });


                        copyProperties(this, wrapper, QBrush);

                        //this.setWrapper(this.wrapper);



                        //copyProperties(this, wrapper, QBrush);
                    }


                    else

                        if (arguments.length == 1) {

                            self = this;
                            wrapper = new QBrush_Wrapper(
                                // RJSApi:
                                handler
                                , arguments[0]
                                ////this.setWrapper(this.wrapper);
                                //Object.setPrototypeOf(this, wrapper);
                            );
                            //wrapper.__WRAPPER__ = true;
                            Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });


                            copyProperties(this, wrapper, QBrush);

                            //this.setWrapper(this.wrapper);



                            //copyProperties(this, wrapper, QBrush);
                        }


                        else

                            if (arguments.length == 1) {

                                self = this;
                                wrapper = new QBrush_Wrapper(
                                    // RJSApi:
                                    handler
                                    , arguments[0]
                                    ////this.setWrapper(this.wrapper);
                                    //Object.setPrototypeOf(this, wrapper);
                                );
                                //wrapper.__WRAPPER__ = true;
                                Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });


                                copyProperties(this, wrapper, QBrush);

                                //this.setWrapper(this.wrapper);



                                //copyProperties(this, wrapper, QBrush);
                            }


                            else

                                if (arguments.length == 1) {

                                    self = this;
                                    wrapper = new QBrush_Wrapper(
                                        // RJSApi:
                                        handler
                                        , arguments[0]
                                        ////this.setWrapper(this.wrapper);
                                        //Object.setPrototypeOf(this, wrapper);
                                    );
                                    //wrapper.__WRAPPER__ = true;
                                    Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });


                                    copyProperties(this, wrapper, QBrush);

                                    //this.setWrapper(this.wrapper);



                                    //copyProperties(this, wrapper, QBrush);
                                }


                                else

                                    if (arguments.length == 1) {

                                        self = this;
                                        wrapper = new QBrush_Wrapper(
                                            // RJSApi:
                                            handler
                                            , arguments[0]
                                            ////this.setWrapper(this.wrapper);
                                            //Object.setPrototypeOf(this, wrapper);
                                        );
                                        //wrapper.__WRAPPER__ = true;
                                        Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });


                                        copyProperties(this, wrapper, QBrush);

                                        //this.setWrapper(this.wrapper);



                                        //copyProperties(this, wrapper, QBrush);
                                    }


                                    else

                                        if (arguments.length == 1) {

                                            self = this;
                                            wrapper = new QBrush_Wrapper(
                                                // RJSApi:
                                                handler
                                                , arguments[0]
                                                ////this.setWrapper(this.wrapper);
                                                //Object.setPrototypeOf(this, wrapper);
                                            );
                                            //wrapper.__WRAPPER__ = true;
                                            Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });


                                            copyProperties(this, wrapper, QBrush);

                                            //this.setWrapper(this.wrapper);



                                            //copyProperties(this, wrapper, QBrush);
                                        }


                                        else

                                            if (arguments.length == 0) {

                                                self = this;
                                                wrapper = new QBrush_Wrapper(
                                                    // RJSApi:
                                                    handler

                                                    ////this.setWrapper(this.wrapper);
                                                    //Object.setPrototypeOf(this, wrapper);
                                                );
                                                //wrapper.__WRAPPER__ = true;
                                                Object.defineProperty(wrapper, "__WRAPPER__", { configurable: true, writable: true, value: true });


                                                copyProperties(this, wrapper, QBrush);

                                                //this.setWrapper(this.wrapper);



                                                //copyProperties(this, wrapper, QBrush);
                                            }


                                            else {

                                                print("QBrush(): wrong number / type of arguments");

                                                console.trace();
                                            }

    }

    //self = this;
    //if (typeof(this.wrapper)!=="undefined") {
    //  this.wrapper.setEngine(engine);
    //}


    if (typeof(wrapper)!=="undefined") {
        //var localSelf = this;
        //print("QAction self:", localSelf);
        // TODO:
        //this.wrapper.triggered.connect(function(checked) { print("action triggered. self:", localSelf); localSelf.triggeredEmitter(checked); });


        // signal aliases:
        if (Object.getPrototypeOf(this)!=null) {

        }
    }
}

//QBrush.prototype = new QBrush_BaseJs(engine);
//QBrush.prototype = new QBrush_Wrapper(engine);
QBrush.prototype = new Object();

QBrush.prototype.toString = function() {
    //return "QBrush [JS] [0x" + this.getAddress().toString(16) + "]";
    return "QBrush [JS]";
};
QBrush.getObjectType = function() {
    return RJSType_QBrush.getIdStatic();
};

QBrush.prototype.getObjectType = function() {
    return RJSType_QBrush.getIdStatic();
};

QBrush.prototype.isOfObjectType = function(t) {
    if (t===RJSType_QBrush.getIdStatic()) {
        return true;
    }



    return false;



};

// enum values:


// functions:


// static functions:


// constants:


// public static properties without access function:


// copy function:
//QBrush.prototype.copy = function() {
//  return this.wrapper.copy();
//};

// destroy function:
//QBrush.prototype.destr = function() {
//  return this.wrapper.destr();
//};
