-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes sure that the yoga includes are only included in internal headers. Eventually we should move private headers to the "internal" folder, for now I'm just defining a helper header to include in internal only headers which will assert if it's incorrectly included by a runtime/higher level public implementation. Diffs= 071b19ba62 don't expose yoga includes (#8526) Co-authored-by: Luigi Rosso <[email protected]> Co-authored-by: blakdragan7 <[email protected]>
- Loading branch information
1 parent
a4cee7f
commit d3e4bcf
Showing
10 changed files
with
130 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ad1ca22bd5911398018c9a6883e4cba7a1b07c53 | ||
071b19ba62ea97db039f71dcab264d4934161db4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#ifndef _RIVE_INTERNAL_ | ||
static_assert(false, "This file should never be included by public headers."); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef _RIVE_LAYOUT_DATA_HPP_ | ||
#define _RIVE_LAYOUT_DATA_HPP_ | ||
|
||
#ifdef WITH_RIVE_LAYOUT | ||
#include "yoga/YGNode.h" | ||
#include "yoga/YGStyle.h" | ||
#include "yoga/Yoga.h" | ||
#endif | ||
|
||
namespace rive | ||
{ | ||
struct LayoutData | ||
{ | ||
#ifdef WITH_RIVE_LAYOUT | ||
YGNode node; | ||
YGStyle style; | ||
#endif | ||
}; | ||
|
||
} // namespace rive | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#ifndef _RIVE_LAYOUT_ENUMS_HPP_ | ||
#define _RIVE_LAYOUT_ENUMS_HPP_ | ||
|
||
#include <stdint.h> | ||
|
||
namespace rive | ||
{ | ||
enum class LayoutAnimationStyle : uint8_t | ||
{ | ||
none, | ||
inherit, | ||
custom | ||
}; | ||
|
||
enum class LayoutStyleInterpolation : uint8_t | ||
{ | ||
hold, | ||
linear, | ||
cubic, | ||
elastic | ||
}; | ||
|
||
enum class LayoutAlignmentType : uint8_t | ||
{ | ||
topLeft, | ||
topCenter, | ||
topRight, | ||
centerLeft, | ||
center, | ||
centerRight, | ||
bottomLeft, | ||
bottomCenter, | ||
bottomRight, | ||
spaceBetweenStart, | ||
spaceBetweenCenter, | ||
spaceBetweenEnd | ||
}; | ||
|
||
enum class LayoutScaleType : uint8_t | ||
{ | ||
fixed, | ||
fill, | ||
hug | ||
}; | ||
} // namespace rive | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.