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

Method updateOrientation

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

Source from the content-addressed store, hash-verified

266 }
267
268 void WindowCore::updateOrientation(const bdn::android::wrapper::Configuration &config)
269 {
270 int orientation = config.orientation;
271 if (orientation == bdn::android::wrapper::Configuration::ORIENTATION_PORTRAIT) {
272 currentOrientation = WindowCore::Orientation::Portrait;
273 } else if (orientation == bdn::android::wrapper::Configuration::ORIENTATION_LANDSCAPE) {
274 currentOrientation = WindowCore::Orientation::LandscapeLeft;
275 }
276 }
277
278 std::list<std::shared_ptr<WindowCore>>
279 WindowCore::getWindowCoreListFromRootView(const java::Reference &javaRootViewRef)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected