MCPcopy Create free account
hub / github.com/Tencent/Hippy / HPNodeStyleSetPositionType

Function HPNodeStyleSetPositionType

layout/engine/Hippy.cpp:126–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void HPNodeStyleSetPositionType(HPNodeRef node, PositionType positionType) {
127 if (node == nullptr || node->style.positionType == positionType)
128 return;
129 node->style.positionType = positionType;
130 node->markAsDirty();
131}
132
133void HPNodeStyleSetPosition(HPNodeRef node, CSSDirection dir, float value) {
134 if (node == nullptr || FloatIsEqual(node->style.position[dir], value))

Callers 4

TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85

Calls 1

markAsDirtyMethod · 0.45

Tested by 3

TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68