void CacheItem::draw(QPainter *painter, const GuiContext& ctx, const QRect* visibleRect) { if (drawProxy) drawProxy(this, painter, ctx, visibleRect); else drawRaw(painter, ctx, visibleRect); }
bool FormGadget::handleGadgetCommand(UInt16 command, void* param) { bool handled=false; switch (command) { case formGadgetDrawCmd: drawProxy(); handled=true; break; case formGadgetHandleEventCmd: assert(0!=param); handled=handleEvent(*static_cast<EventType*>(param)); break; } return handled; }