
// This file has been auto generated.

#include <iostream>
#include <vector>
#include "ParagraphStyle.h"
using namespace std;
using namespace skia::textlayout;
#include "common.h"

static void deleteStrutStyle(StrutStyle* instance) {
    delete instance;
}

extern "C" jlong org_jetbrains_skia_paragraph_StrutStyle__1nGetFinalizer
  (kref __Kinstance) {
    return static_cast<jlong>(reinterpret_cast<uintptr_t>(&deleteStrutStyle));
}

extern "C" jlong org_jetbrains_skia_paragraph_StrutStyle__1nMake
  (kref __Kinstance) {
    StrutStyle* instance = new StrutStyle();
    return reinterpret_cast<jlong>(instance);
}

extern "C" jboolean org_jetbrains_skia_paragraph_StrutStyle__1nEquals
  (kref __Kinstance, jlong ptr, jlong otherPtr) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    StrutStyle* other = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(otherPtr));
    return *instance == *other;
}


extern "C" jobjectArray org_jetbrains_skia_paragraph_StrutStyle__1nGetFontFamilies
  (kref __Kinstance, jlong ptr) {
    throw std::runtime_error("TODO: implement org_jetbrains_skia_paragraph_StrutStyle__1nGetFontFamilies");
}
     
#if 0 
extern "C" jobjectArray org_jetbrains_skia_paragraph_StrutStyle__1nGetFontFamilies
  (kref __Kinstance, jlong ptr) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    return javaStringArray(env, instance->getFontFamilies());
}
#endif



extern "C" void org_jetbrains_skia_paragraph_StrutStyle__1nSetFontFamilies
  (kref __Kinstance, jlong ptr, jobjectArray familiesArr) {
    throw std::runtime_error("TODO: implement org_jetbrains_skia_paragraph_StrutStyle__1nSetFontFamilies");
}
     
#if 0 
extern "C" void org_jetbrains_skia_paragraph_StrutStyle__1nSetFontFamilies
  (kref __Kinstance, jlong ptr, jobjectArray familiesArr) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    instance->setFontFamilies(skStringVector(env, familiesArr));
}
#endif



extern "C" jint org_jetbrains_skia_paragraph_StrutStyle__1nGetFontStyle
  (kref __Kinstance, jlong ptr) {
    throw std::runtime_error("TODO: implement org_jetbrains_skia_paragraph_StrutStyle__1nGetFontStyle");
}
     
#if 0 
extern "C" jint org_jetbrains_skia_paragraph_StrutStyle__1nGetFontStyle
  (kref __Kinstance, jlong ptr) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    return skija::FontStyle::toJava(instance->getFontStyle());
}
#endif



extern "C" void org_jetbrains_skia_paragraph_StrutStyle__1nSetFontStyle
  (kref __Kinstance, jlong ptr, jint style) {
    throw std::runtime_error("TODO: implement org_jetbrains_skia_paragraph_StrutStyle__1nSetFontStyle");
}
     
#if 0 
extern "C" void org_jetbrains_skia_paragraph_StrutStyle__1nSetFontStyle
  (kref __Kinstance, jlong ptr, jint style) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    instance->setFontStyle(skija::FontStyle::fromJava(style));
}
#endif


extern "C" jfloat org_jetbrains_skia_paragraph_StrutStyle__1nGetFontSize
  (kref __Kinstance, jlong ptr) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    return instance->getFontSize();
}

extern "C" void org_jetbrains_skia_paragraph_StrutStyle__1nSetFontSize
  (kref __Kinstance, jlong ptr, jfloat size) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    instance->setFontSize(size);
}

extern "C" jfloat org_jetbrains_skia_paragraph_StrutStyle__1nGetHeight
  (kref __Kinstance, jlong ptr) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    return instance->getHeight();
}

extern "C" void org_jetbrains_skia_paragraph_StrutStyle__1nSetHeight
  (kref __Kinstance, jlong ptr, jfloat height) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    instance->setHeight(height);
}

extern "C" jfloat org_jetbrains_skia_paragraph_StrutStyle__1nGetLeading
  (kref __Kinstance, jlong ptr) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    return instance->getLeading();
}

extern "C" void org_jetbrains_skia_paragraph_StrutStyle__1nSetLeading
  (kref __Kinstance, jlong ptr, jfloat leading) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    instance->setLeading(leading);
}

extern "C" jboolean org_jetbrains_skia_paragraph_StrutStyle__1nIsEnabled
  (kref __Kinstance, jlong ptr) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    return instance->getStrutEnabled();
}

extern "C" void org_jetbrains_skia_paragraph_StrutStyle__1nSetEnabled
  (kref __Kinstance, jlong ptr, jboolean value) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    instance->setStrutEnabled(value);
}

extern "C" jboolean org_jetbrains_skia_paragraph_StrutStyle__1nIsHeightForced
  (kref __Kinstance, jlong ptr) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    return instance->getForceStrutHeight();
}

extern "C" void org_jetbrains_skia_paragraph_StrutStyle__1nSetHeightForced
  (kref __Kinstance, jlong ptr, jboolean value) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    instance->setForceStrutHeight(value);
}

extern "C" jboolean org_jetbrains_skia_paragraph_StrutStyle__1nIsHeightOverridden
  (kref __Kinstance, jlong ptr) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    return instance->getHeightOverride();
}

extern "C" void org_jetbrains_skia_paragraph_StrutStyle__1nSetHeightOverridden
  (kref __Kinstance, jlong ptr, jboolean value) {
    StrutStyle* instance = reinterpret_cast<StrutStyle*>(static_cast<uintptr_t>(ptr));
    instance->setHeightOverride(value);
}
