monado/src/xrt/auxiliary/android/org.freedesktop.monado.auxiliary.cpp

29 lines
1.3 KiB
C++
Raw Normal View History

2021-04-30 15:35:28 +00:00
// Copyright 2020-2021, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief Out-of-line implementations for partially-generated wrapper for the
* `org.freedesktop.monado.auxiliary` Java package.
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
* @ingroup aux_android
*/
#include "org.freedesktop.monado.auxiliary.hpp"
namespace wrap {
namespace org::freedesktop::monado::auxiliary {
MonadoView::Meta::Meta(jni::jclass clazz)
: MetaBase(MonadoView::getTypeName(), clazz),
2021-04-30 15:35:28 +00:00
attachToActivity(classRef().getStaticMethod(
"attachToActivity", "(Landroid/app/Activity;J)Lorg/freedesktop/monado/auxiliary/MonadoView;")),
attachToActivity1(classRef().getStaticMethod(
"attachToActivity", "(Landroid/app/Activity;)Lorg/freedesktop/monado/auxiliary/MonadoView;")),
2021-01-14 14:13:48 +00:00
getDisplayMetrics(classRef().getStaticMethod("getDisplayMetrics",
2021-04-30 15:35:28 +00:00
"(Landroid/app/Activity;)Landroid/util/DisplayMetrics;")),
getNativePointer(classRef().getMethod("getNativePointer", "()J")),
markAsDiscardedByNative(classRef().getMethod("markAsDiscardedByNative", "()V")),
waitGetSurfaceHolder(classRef().getMethod("waitGetSurfaceHolder", "(I)Landroid/view/SurfaceHolder;"))
{}
} // namespace org::freedesktop::monado::auxiliary
} // namespace wrap