YGConfig.h 573 B

1234567891011121314151617181920212223
  1. /**
  2. * Copyright (c) 2014-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #pragma once
  8. #include "Yoga-internal.h"
  9. #include "Yoga.h"
  10. struct YGConfig {
  11. std::array<bool, YGExperimentalFeatureCount> experimentalFeatures;
  12. bool useWebDefaults;
  13. bool useLegacyStretchBehaviour;
  14. bool shouldDiffLayoutWithoutLegacyStretchBehaviour;
  15. float pointScaleFactor;
  16. YGLogger logger;
  17. YGCloneNodeFunc cloneNodeCallback;
  18. void* context;
  19. YGConfig(YGLogger logger);
  20. };