Expose printTree property of YGConfig to jni
Summary: Exposes printTree property of YGConfig to jni Reviewed By: IanChilds Differential Revision: D9561097 fbshipit-source-id: 1bf86a63ad5e9baa107e36d429209b9061e6676d
This commit is contained in:
committed by
Facebook Github Bot
parent
f7df575746
commit
d6ba8326d1
@@ -54,6 +54,11 @@ public class YogaConfig {
|
|||||||
jni_YGConfigSetUseWebDefaults(mNativePointer, useWebDefaults);
|
jni_YGConfigSetUseWebDefaults(mNativePointer, useWebDefaults);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private native void jni_YGConfigSetPrintTreeFlag(long nativePointer, boolean enable);
|
||||||
|
public void setPrintTreeFlag(boolean enable) {
|
||||||
|
jni_YGConfigSetPrintTreeFlag(mNativePointer, enable);
|
||||||
|
}
|
||||||
|
|
||||||
private native void jni_YGConfigSetPointScaleFactor(long nativePointer, float pixelsInPoint);
|
private native void jni_YGConfigSetPointScaleFactor(long nativePointer, float pixelsInPoint);
|
||||||
public void setPointScaleFactor(float pixelsInPoint) {
|
public void setPointScaleFactor(float pixelsInPoint) {
|
||||||
jni_YGConfigSetPointScaleFactor(mNativePointer, pixelsInPoint);
|
jni_YGConfigSetPointScaleFactor(mNativePointer, pixelsInPoint);
|
||||||
|
@@ -598,6 +598,14 @@ void jni_YGConfigSetUseWebDefaults(
|
|||||||
YGConfigSetUseWebDefaults(config, useWebDefaults);
|
YGConfigSetUseWebDefaults(config, useWebDefaults);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void jni_YGConfigSetPrintTreeFlag(
|
||||||
|
alias_ref<jobject>,
|
||||||
|
jlong nativePointer,
|
||||||
|
jboolean enable) {
|
||||||
|
const YGConfigRef config = _jlong2YGConfigRef(nativePointer);
|
||||||
|
YGConfigSetPrintTreeFlag(config, enable);
|
||||||
|
}
|
||||||
|
|
||||||
void jni_YGConfigSetPointScaleFactor(
|
void jni_YGConfigSetPointScaleFactor(
|
||||||
alias_ref<jobject>,
|
alias_ref<jobject>,
|
||||||
jlong nativePointer,
|
jlong nativePointer,
|
||||||
@@ -760,6 +768,7 @@ jint JNI_OnLoad(JavaVM* vm, void*) {
|
|||||||
YGMakeNativeMethod(jni_YGConfigFree),
|
YGMakeNativeMethod(jni_YGConfigFree),
|
||||||
YGMakeNativeMethod(jni_YGConfigSetExperimentalFeatureEnabled),
|
YGMakeNativeMethod(jni_YGConfigSetExperimentalFeatureEnabled),
|
||||||
YGMakeNativeMethod(jni_YGConfigSetUseWebDefaults),
|
YGMakeNativeMethod(jni_YGConfigSetUseWebDefaults),
|
||||||
|
YGMakeNativeMethod(jni_YGConfigSetPrintTreeFlag),
|
||||||
YGMakeNativeMethod(jni_YGConfigSetPointScaleFactor),
|
YGMakeNativeMethod(jni_YGConfigSetPointScaleFactor),
|
||||||
YGMakeNativeMethod(jni_YGConfigSetUseLegacyStretchBehaviour),
|
YGMakeNativeMethod(jni_YGConfigSetUseLegacyStretchBehaviour),
|
||||||
YGMakeNativeMethod(jni_YGConfigSetLogger),
|
YGMakeNativeMethod(jni_YGConfigSetLogger),
|
||||||
|
Reference in New Issue
Block a user