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

Method withDelegate

valdi/src/valdi/runtime/Attributes/AttributeHandler.cpp:212–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210
211const StringBox& AttributeHandler::getName() const {
212 return _name;
213}
214
215AttributeId AttributeHandler::getId() const {
216 return _id;
217}
218
219AttributeHandler AttributeHandler::withDelegate(const Ref<AttributeHandlerDelegate>& delegate) const {
220 AttributeHandler handler(_id, _name, delegate, _compositeAttribute, _requiresView, _shouldInvalidateLayoutOnChange);
221
222 if (_preprocessorCache != nullptr) {
223 handler.setEnablePreprocessorCache(true);
224 }
225
226 if (_shouldReevaluateOnColorPaletteChange) {
227 handler.setShouldReevaluateOnColorPaletteChange(true);
228 }
229
230 handler._preprocessors = _preprocessors;
231 handler._postprocessors = _postprocessors;
232 if (!_preprocessingTrivial) {

Callers 1

bridgeViewFactoryMethod · 0.80

Tested by

no test coverage detected