MCPcopy Create free account
hub / github.com/Tencent/tgfx / updateSize

Method updateSize

android/app/src/main/cpp/JTGFXView.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23static jfieldID TGFXView_nativePtr;
24
25void JTGFXView::updateSize() {
26 auto width = ANativeWindow_getWidth(nativeWindow);
27 auto height = ANativeWindow_getHeight(nativeWindow);
28 auto sizeChanged = appHost->updateScreen(width, height, appHost->density());
29 if (sizeChanged) {
30 window->invalidSize();
31 }
32}
33
34void JTGFXView::draw(int index, float zoom, float offsetX, float offsetY) {
35 if (appHost->width() <= 0 || appHost->height() <= 0) {

Calls 3

updateScreenMethod · 0.80
densityMethod · 0.80
invalidSizeMethod · 0.80

Tested by

no test coverage detected