13#include "wrap/android.app.h"
14#include "wrap/android.content.h"
15#include "wrap/android.view.h"
19namespace org::freedesktop::monado::auxiliary {
23 wrap::android::view::WindowManager_LayoutParams
const &lp)
25 return MonadoView(
Meta::data().clazz().call<jni::Object>(
27 static_cast<long long>(
reinterpret_cast<uintptr_t
>(nativePointer)), lp.object()));
51 int32_t displayModeId)
53 return Meta::data().clazz().call<int32_t>(
Meta::data().getDisplayModeIdWidth, displayContext.object(),
54 displayId, displayModeId);
60 int32_t displayModeId)
62 return Meta::data().clazz().call<int32_t>(
Meta::data().getDisplayModeIdHeight, displayContext.object(),
63 displayId, displayModeId);
70 return reinterpret_cast<void *
>(
71 static_cast<intptr_t
>(object().call<
long long>(
Meta::data().getNativePointer)));
78 return object().call<
void>(
Meta::data().markAsDiscardedByNative);
81 inline android::view::SurfaceHolder
85 return android::view::SurfaceHolder(
Wrapper for org.freedesktop.monado.auxiliary.MonadoView objects.
Definition: org.freedesktop.monado.auxiliary.hpp:42
static void removeFromWindow(MonadoView const &view)
Wrapper for the removeFromWindow static method.
Definition: org.freedesktop.monado.auxiliary.impl.hpp:31
void markAsDiscardedByNative()
Wrapper for the markAsDiscardedByNative method.
Definition: org.freedesktop.monado.auxiliary.impl.hpp:75
static float getDisplayRefreshRate(android::content::Context const &context)
Wrapper for the getDisplayRefreshRate static method.
Definition: org.freedesktop.monado.auxiliary.impl.hpp:43
static int32_t getDisplayModeIdHeight(android::content::Context const &context, int32_t displayId, int32_t displayModeId)
Wrapper for the getDisplayModeIdHeight static method.
Definition: org.freedesktop.monado.auxiliary.impl.hpp:58
static int32_t getDisplayModeIdWidth(android::content::Context const &context, int32_t displayId, int32_t displayModeId)
Wrapper for the getDisplayModeIdWidth static method.
Definition: org.freedesktop.monado.auxiliary.impl.hpp:49
android::view::SurfaceHolder waitGetSurfaceHolder(int32_t wait_ms)
Wrapper for the waitGetSurfaceHolder method.
Definition: org.freedesktop.monado.auxiliary.impl.hpp:82
static MonadoView attachToWindow(android::content::Context const &displayContext, void *nativePointer, android::view::WindowManager_LayoutParams const &lp)
Wrapper for the attachToWindow static method.
static jni::Object getDisplayMetrics(android::content::Context const &context)
Wrapper for the getDisplayMetrics static method.
Definition: org.freedesktop.monado.auxiliary.impl.hpp:37
void * getNativePointer()
Wrapper for the getNativePointer method.
Definition: org.freedesktop.monado.auxiliary.impl.hpp:67