22const int HAS_NEW_LAYOUT = 16;
40 auto context = YGNodeContext{};
42 edges_ = context.edgesSet;
46 auto context = YGNodeContext{};
47 context.edgesSet = edges_;
52 return (edges_ & edge) == edge;
55 YGNodeEdges& add(Edge edge) {
66 static constexpr jint NAN_BYTES = 0x7fc00000;
69 uint32_t valueBytes = 0;
70 memcpy(&valueBytes, &value.value,
sizeof valueBytes);
71 return ((
jlong)value.unit) << 32 | valueBytes;
73 constexpr static jlong undefinedAsJavaLong() {
typedefYG_EXTERN_C_BEGIN struct YGNode * YGNodeRef
Definition YGConfig.h:19
YG_EXTERN_C_BEGIN YGBoxSizingContentBox YGDirectionRTL YGEdgeAll YGExperimentalFeatureFixFlexBasisFitContent YGGridTrackTypeMinmax YGJustifyEnd YGMeasureModeAtMost YGOverflowScroll YGUnitUndefined
Definition YGEnums.h:147
const short int LAYOUT_WIDTH_INDEX
Definition YGJNI.h:11
const short int LAYOUT_HEIGHT_INDEX
Definition YGJNI.h:12
const short int LAYOUT_DIRECTION_INDEX
Definition YGJNI.h:15
const short int LAYOUT_TOP_INDEX
Definition YGJNI.h:14
const short int LAYOUT_EDGE_SET_FLAG_INDEX
Definition YGJNI.h:10
const short int LAYOUT_MARGIN_START_INDEX
Definition YGJNI.h:16
const short int LAYOUT_BORDER_START_INDEX
Definition YGJNI.h:18
const short int LAYOUT_LEFT_INDEX
Definition YGJNI.h:13
const short int LAYOUT_PADDING_START_INDEX
Definition YGJNI.h:17
void YGNodeSetContext(YGNodeRef node, void *context)
Definition YGNode.cpp:296
void * YGNodeGetContext(YGNodeConstRef node)
Definition YGNode.cpp:300
int32_t jint
Definition jni.h:35
int64_t jlong
Definition jni.h:36