2018-03-19 02:04:25 +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 <yoga/YGStyle.h>
|
|
|
|
|
|
|
|
#include <fabric/core/Props.h>
|
|
|
|
#include <fabric/debug/DebugStringConvertible.h>
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
class YogaStylableProps;
|
|
|
|
|
|
|
|
typedef std::shared_ptr<const YogaStylableProps> SharedYogaStylableProps;
|
|
|
|
|
2018-05-14 22:43:34 +00:00
|
|
|
class YogaStylableProps {
|
2018-05-09 05:56:07 +00:00
|
|
|
|
2018-03-19 02:04:25 +00:00
|
|
|
public:
|
|
|
|
|
2018-05-14 22:43:28 +00:00
|
|
|
YogaStylableProps() = default;
|
|
|
|
YogaStylableProps(const YGStyle &yogaStyle);
|
|
|
|
YogaStylableProps(const YogaStylableProps &sourceProps, const RawProps &rawProps);
|
|
|
|
|
|
|
|
#pragma mark - Props
|
|
|
|
|
|
|
|
const YGStyle yogaStyle {};
|
2018-03-19 02:04:25 +00:00
|
|
|
|
2018-05-14 22:43:34 +00:00
|
|
|
#pragma mark - DebugStringConvertible (Partial)
|
2018-03-19 02:04:25 +00:00
|
|
|
|
2018-05-14 22:43:34 +00:00
|
|
|
SharedDebugStringConvertibleList getDebugProps() const;
|
2018-03-19 02:04:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|