/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the LICENSE * file in the root directory of this source tree. */ #include #include struct JYogaNode : public facebook::jni::JavaClass { static constexpr auto kJavaDescriptor = "Lcom/facebook/yoga/YogaNodeJNI;"; jfloat baseline(jfloat width, jfloat height); jlong measure(jfloat width, jint widthMode, jfloat height, jint heightMode); }; struct JYogaConfig : public facebook::jni::JavaClass { static constexpr auto kJavaDescriptor = "Lcom/facebook/yoga/YogaConfig;"; }; struct JYogaLogLevel : public facebook::jni::JavaClass { static constexpr auto kJavaDescriptor = "Lcom/facebook/yoga/YogaLogLevel;"; static facebook::jni::local_ref fromInt(jint); }; struct JYogaLogger : public facebook::jni::JavaClass { static constexpr auto kJavaDescriptor = "Lcom/facebook/yoga/YogaLogger"; void log( facebook::jni::alias_ref, facebook::jni::alias_ref, jstring); }; struct JYogaValue : public facebook::jni::JavaClass { constexpr static auto kJavaDescriptor = "Lcom/facebook/yoga/YogaValue;"; static facebook::jni::local_ref create(YGValue value) { return newInstance(value.value, static_cast(value.unit)); } };