MCPcopy Create free account
hub / github.com/AshampooSystems/boden / getScreenWorkArea

Method getScreenWorkArea

framework/ui/platforms/android/src/WindowCore.cpp:238–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 }
237
238 Rect WindowCore::getScreenWorkArea() const
239 {
240 bdn::android::wrapper::NativeRootView rootView(tryGetAccessibleRootViewRef());
241
242 if (rootView.isNull_()) {
243 // don't have a root view => work area size is 0
244 return Rect();
245 }
246 int width = rootView.getWidth();
247 int height = rootView.getHeight();
248
249 // logInfo("screen area:
250 // ("+std::to_string(width)+"x"+std::to_string(height)+")");
251
252 return Rect(0, 0, width, height);
253 }
254
255 void WindowCore::updateUIScaleFactor(const bdn::android::wrapper::Configuration &config)
256 {

Callers

nothing calls this directly

Calls 4

RectClass · 0.85
isNull_Method · 0.80
getWidthMethod · 0.80
getHeightMethod · 0.45

Tested by

no test coverage detected