2018-03-19 02:04:20 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <fabric/core/LayoutPrimitives.h>
|
|
|
|
#include <fabric/graphics/Geometry.h>
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Unified layout constraints for measuring.
|
|
|
|
*/
|
|
|
|
struct LayoutConstraints {
|
2018-05-09 05:56:19 +00:00
|
|
|
Size minimumSize {0, 0};
|
|
|
|
Size maximumSize {kFloatUndefined, kFloatUndefined};
|
2018-03-19 02:04:20 +00:00
|
|
|
LayoutDirection layoutDirection;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|