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

Method moveViewToTree

valdi/src/valdi/snap_drawing/SnapDrawingViewTransaction.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54}
55
56void SnapDrawingViewTransaction::moveViewToTree(const Ref<View>& view, ViewNodeTree* viewNodeTree, ViewNode* viewNode) {
57 auto layer = toLayer(view);
58 if (layer == nullptr) {
59 return;
60 }
61 setValdiViewNodeToLayer(*layer, viewNode);
62}
63
64void SnapDrawingViewTransaction::insertChildView(const Ref<View>& view,

Callers 1

setAttachedDataMethod · 0.45

Calls 2

toLayerFunction · 0.85
setValdiViewNodeToLayerFunction · 0.85

Tested by

no test coverage detected