void Draw::DrawDataOp(int x, int y, int cx, int cy, const String& data, const char *id) { bool tonative = !IsNative(); if(tonative) { BeginNative(); Native(x, y); Native(cx, cy); } One<DataDrawer> dd = DataDrawer::Create(id); if(dd) { dd->Open(data, cx, cy); if((cx > 2048 || cy > 2048) && (GetInfo() & DATABANDS)) { int yy = 0; while(yy < cy) { int ccy = min(cy - yy, 32); ImageBuffer ib(cx, ccy); dd->Render(ib); DrawImageBandRLE(*this, x, y + yy, ib, 16); yy += ccy; } } else { ImageBuffer m(cx, cy); dd->Render(m); DrawImage(x, y, m); } } if(tonative) EndNative(); }
/* Dynamically finds a method to invoke */ Method* dlink(Thread *thread, unsigned short methodIndex, struct LINKFLAGS *flags) { if (IsNative(thread, methodIndex, flags) == false) { return find_method_idx(thread->RunningClass, thread, methodIndex, flags); } else { dbgmsg("Native linking not yet supported!"); return NULL; } }
bool CScValue::IsValNative() { return IsNative(); }
const char *BeaconPayload::ToInfoString(char *aBuf, uint16_t aSize) const { const uint8_t *xpanid = GetExtendedPanId(); snprintf(aBuf, aSize, "name:%s, xpanid:%02x%02x%02x%02x%02x%02x%02x%02x, id:%d ver:%d, joinable:%s, native:%s", GetNetworkName(), xpanid[0], xpanid[1], xpanid[2], xpanid[3], xpanid[4], xpanid[5], xpanid[6], xpanid[7], GetProtocolId(), GetProtocolVersion(), IsJoiningPermitted() ? "yes" : "no", IsNative() ? "yes" : "no"); return aBuf; }
Size Draw::GetPixelsPerInch() const { return IsNative() ? GetNativeDpi() : Dots() ? Size(600, 600) : Size(96, 96); }