Expose methods to set position Start|End
Summary: As they're were not available yet. Emil, I'm going to wait for your diffs to land before pushing this to avoid disruptions on your side. Differential Revision: D3669177 fbshipit-source-id: b06f382cb89546e817a2475298cf2cad17d95a2c
This commit is contained in:
committed by
Facebook Github Bot 2
parent
faad5cdf4d
commit
7f27046cc5
@@ -572,6 +572,34 @@ public class CSSNodeJNI implements CSSNodeAPI<CSSNodeJNI> {
|
||||
jni_CSSNodeStyleSetPositionRight(mNativePointer, positionRight);
|
||||
}
|
||||
|
||||
private native float jni_CSSNodeStyleGetPositionStart(int nativePointer);
|
||||
@Override
|
||||
public float getPositionStart() {
|
||||
assertNativeInstance();
|
||||
return jni_CSSNodeStyleGetPositionStart(mNativePointer);
|
||||
}
|
||||
|
||||
private native void jni_CSSNodeStyleSetPositionStart(int nativePointer, float positionStart);
|
||||
@Override
|
||||
public void setPositionStart(float positionStart) {
|
||||
assertNativeInstance();
|
||||
jni_CSSNodeStyleSetPositionStart(mNativePointer, positionStart);
|
||||
}
|
||||
|
||||
private native float jni_CSSNodeStyleGetPositionEnd(int nativePointer);
|
||||
@Override
|
||||
public float getPositionEnd() {
|
||||
assertNativeInstance();
|
||||
return jni_CSSNodeStyleGetPositionEnd(mNativePointer);
|
||||
}
|
||||
|
||||
private native void jni_CSSNodeStyleSetPositionEnd(int nativePointer, float positionEnd);
|
||||
@Override
|
||||
public void setPositionEnd(float positionEnd) {
|
||||
assertNativeInstance();
|
||||
jni_CSSNodeStyleSetPositionEnd(mNativePointer, positionEnd);
|
||||
}
|
||||
|
||||
private native float jni_CSSNodeStyleGetWidth(int nativePointer);
|
||||
@Override
|
||||
public float getStyleWidth() {
|
||||
|
Reference in New Issue
Block a user