qrenderruleproxy.cpp 613 Bytes
#include "qrenderruleproxy.h"
#include "qrenderrule.h"


QRenderRuleProxy::QRenderRuleProxy():rule(new QtCss::QRenderRule()){}

QRenderRuleProxy::QRenderRuleProxy(const QRenderRuleProxy &r):rule(r.rule){}

QRenderRuleProxy::QRenderRuleProxy(const QtCss::QRenderRule &r):rule(new QtCss::QRenderRule()){
    *rule=r;
}

bool QRenderRuleProxy::hasDrawable(){
    return rule->hasDrawable();
}

void QRenderRuleProxy::drawRule(QPainter *p, const QRect &rect){
    rule->drawRule(p,rect);
}

QRect QRenderRuleProxy::boxRect(const QRect &r, int flags) const{
    return rule->boxRect(r,flags);
}