MCPcopy Create free account
hub / github.com/Snapchat/Valdi / enqueueSetFrame

Method enqueueSetFrame

valdi/src/valdi/android/DeferredViewOperations.cpp:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void DeferredViewOperations::enqueueSetFrame(const Valdi::Ref<Valdi::View>& view,
108 int32_t x,
109 int32_t y,
110 int32_t width,
111 int32_t height,
112 bool isRightToLeft,
113 const Valdi::Ref<Valdi::Animator>& animator) {
114 updateActiveAnimator(animator);
115
116 auto& buffer = writeHeader(ViewOperationSetFrame, isRightToLeft);
117 write(buffer, Valdi::Value(view));
118 write(buffer, x);
119 write(buffer, y);
120 write(buffer, width);
121 write(buffer, height);
122}
123
124void DeferredViewOperations::enqueueSetScrollableSpecs(const Valdi::Ref<Valdi::View>& view,
125 int32_t contentOffsetX,

Callers 1

setViewFrameMethod · 0.80

Calls 1

ValueClass · 0.50

Tested by

no test coverage detected