2020-10-28 16:37:06 +00:00
|
|
|
// Copyright 2020, 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),
|
|
|
|
attachToActivity(classRef().getStaticMethod(
|
|
|
|
"attachToActivity",
|
2020-10-28 22:15:59 +00:00
|
|
|
"(Landroid/app/Activity;J)Lorg/freedesktop/"
|
|
|
|
"monado/auxiliary/MonadoView;")),
|
2020-10-28 16:37:06 +00:00
|
|
|
waitGetSurfaceHolder(classRef().getMethod(
|
|
|
|
"waitGetSurfaceHolder", "(I)Landroid/view/SurfaceHolder;")),
|
|
|
|
markAsDiscardedByNative(
|
2020-11-27 14:42:11 +00:00
|
|
|
classRef().getMethod("markAsDiscardedByNative", "()V")),
|
|
|
|
getDisplayMetrics(classRef().getStaticMethod(
|
|
|
|
"getDisplayMetrics",
|
|
|
|
"(Landroid/app/Activity;)Landroid/util/DisplayMetrics;"))
|
2020-10-28 16:37:06 +00:00
|
|
|
{}
|
|
|
|
} // namespace org::freedesktop::monado::auxiliary
|
|
|
|
} // namespace wrap
|