///
/// JHybridNitroDpiMetricSpec.cpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

#include "JHybridNitroDpiMetricSpec.hpp"





namespace margelo::nitro::dpimetric {

  jni::local_ref<JHybridNitroDpiMetricSpec::jhybriddata> JHybridNitroDpiMetricSpec::initHybrid(jni::alias_ref<jhybridobject> jThis) {
    return makeCxxInstance(jThis);
  }

  void JHybridNitroDpiMetricSpec::registerNatives() {
    registerHybrid({
      makeNativeMethod("initHybrid", JHybridNitroDpiMetricSpec::initHybrid),
    });
  }

  size_t JHybridNitroDpiMetricSpec::getExternalMemorySize() noexcept {
    static const auto method = javaClassStatic()->getMethod<jlong()>("getMemorySize");
    return method(_javaPart);
  }

  void JHybridNitroDpiMetricSpec::dispose() noexcept {
    static const auto method = javaClassStatic()->getMethod<void()>("dispose");
    method(_javaPart);
  }

  // Properties
  

  // Methods
  bool JHybridNitroDpiMetricSpec::isTablet() {
    static const auto method = javaClassStatic()->getMethod<jboolean()>("isTablet");
    auto __result = method(_javaPart);
    return static_cast<bool>(__result);
  }
  double JHybridNitroDpiMetricSpec::getNavBarHeight() {
    static const auto method = javaClassStatic()->getMethod<double()>("getNavBarHeight");
    auto __result = method(_javaPart);
    return __result;
  }
  double JHybridNitroDpiMetricSpec::getDpi() {
    static const auto method = javaClassStatic()->getMethod<double()>("getDpi");
    auto __result = method(_javaPart);
    return __result;
  }
  double JHybridNitroDpiMetricSpec::deviceInch() {
    static const auto method = javaClassStatic()->getMethod<double()>("deviceInch");
    auto __result = method(_javaPart);
    return __result;
  }

} // namespace margelo::nitro::dpimetric
