8
8
9
9
// Ensure the included flatbuffers.h is the same version as when this file was
10
10
// generated, otherwise it may not be compatible.
11
- static_assert (FLATBUFFERS_VERSION_MAJOR == 24 &&
12
- FLATBUFFERS_VERSION_MINOR == 3 &&
13
- FLATBUFFERS_VERSION_REVISION == 25 ,
11
+ static_assert (FLATBUFFERS_VERSION_MAJOR == 25 &&
12
+ FLATBUFFERS_VERSION_MINOR == 2 &&
13
+ FLATBUFFERS_VERSION_REVISION == 10 ,
14
14
" Non-compatible flatbuffers version included" );
15
15
16
16
namespace Styles {
@@ -69,6 +69,12 @@ struct StyleBuilder;
69
69
struct Font ;
70
70
struct FontBuilder ;
71
71
72
+ struct KeyframeAnimationPoint ;
73
+ struct KeyframeAnimationPointBuilder ;
74
+
75
+ struct KeyframeAnimation ;
76
+ struct KeyframeAnimationBuilder ;
77
+
72
78
struct PrimitiveCondition ;
73
79
struct PrimitiveConditionBuilder ;
74
80
@@ -1484,6 +1490,148 @@ inline ::flatbuffers::Offset<Font> CreateFontDirect(
1484
1490
src__);
1485
1491
}
1486
1492
1493
+ struct KeyframeAnimationPoint FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1494
+ typedef KeyframeAnimationPointBuilder Builder;
1495
+ enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1496
+ VT_PERCENTAGE = 4 ,
1497
+ VT_DECLARATIONS = 6
1498
+ };
1499
+ float percentage () const {
1500
+ return GetField<float >(VT_PERCENTAGE, 0 .0f );
1501
+ }
1502
+ const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::DeclarationTuple>> *declarations () const {
1503
+ return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::DeclarationTuple>> *>(VT_DECLARATIONS);
1504
+ }
1505
+ bool Verify (::flatbuffers::Verifier &verifier) const {
1506
+ return VerifyTableStart (verifier) &&
1507
+ VerifyField<float >(verifier, VT_PERCENTAGE, 4 ) &&
1508
+ VerifyOffset (verifier, VT_DECLARATIONS) &&
1509
+ verifier.VerifyVector (declarations ()) &&
1510
+ verifier.VerifyVectorOfTables (declarations ()) &&
1511
+ verifier.EndTable ();
1512
+ }
1513
+ };
1514
+
1515
+ struct KeyframeAnimationPointBuilder {
1516
+ typedef KeyframeAnimationPoint Table;
1517
+ ::flatbuffers::FlatBufferBuilder &fbb_;
1518
+ ::flatbuffers::uoffset_t start_;
1519
+ void add_percentage (float percentage) {
1520
+ fbb_.AddElement <float >(KeyframeAnimationPoint::VT_PERCENTAGE, percentage, 0 .0f );
1521
+ }
1522
+ void add_declarations (::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::DeclarationTuple>>> declarations) {
1523
+ fbb_.AddOffset (KeyframeAnimationPoint::VT_DECLARATIONS, declarations);
1524
+ }
1525
+ explicit KeyframeAnimationPointBuilder (::flatbuffers::FlatBufferBuilder &_fbb)
1526
+ : fbb_(_fbb) {
1527
+ start_ = fbb_.StartTable ();
1528
+ }
1529
+ ::flatbuffers::Offset<KeyframeAnimationPoint> Finish () {
1530
+ const auto end = fbb_.EndTable (start_);
1531
+ auto o = ::flatbuffers::Offset<KeyframeAnimationPoint>(end);
1532
+ return o;
1533
+ }
1534
+ };
1535
+
1536
+ inline ::flatbuffers::Offset<KeyframeAnimationPoint> CreateKeyframeAnimationPoint (
1537
+ ::flatbuffers::FlatBufferBuilder &_fbb,
1538
+ float percentage = 0 .0f ,
1539
+ ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::DeclarationTuple>>> declarations = 0 ) {
1540
+ KeyframeAnimationPointBuilder builder_ (_fbb);
1541
+ builder_.add_declarations (declarations);
1542
+ builder_.add_percentage (percentage);
1543
+ return builder_.Finish ();
1544
+ }
1545
+
1546
+ inline ::flatbuffers::Offset<KeyframeAnimationPoint> CreateKeyframeAnimationPointDirect (
1547
+ ::flatbuffers::FlatBufferBuilder &_fbb,
1548
+ float percentage = 0 .0f ,
1549
+ const std::vector<::flatbuffers::Offset<Styles::DeclarationTuple>> *declarations = nullptr ) {
1550
+ auto declarations__ = declarations ? _fbb.CreateVector <::flatbuffers::Offset<Styles::DeclarationTuple>>(*declarations) : 0 ;
1551
+ return Styles::CreateKeyframeAnimationPoint (
1552
+ _fbb,
1553
+ percentage,
1554
+ declarations__);
1555
+ }
1556
+
1557
+ struct KeyframeAnimation FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1558
+ typedef KeyframeAnimationBuilder Builder;
1559
+ enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
1560
+ VT_NAME = 4 ,
1561
+ VT_MEDIA = 6 ,
1562
+ VT_KEYFRAME_POINTS = 8
1563
+ };
1564
+ const ::flatbuffers::String *name () const {
1565
+ return GetPointer<const ::flatbuffers::String *>(VT_NAME);
1566
+ }
1567
+ uint8_t media () const {
1568
+ return GetField<uint8_t >(VT_MEDIA, 0 );
1569
+ }
1570
+ const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::KeyframeAnimationPoint>> *keyframe_points () const {
1571
+ return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::KeyframeAnimationPoint>> *>(VT_KEYFRAME_POINTS);
1572
+ }
1573
+ bool Verify (::flatbuffers::Verifier &verifier) const {
1574
+ return VerifyTableStart (verifier) &&
1575
+ VerifyOffset (verifier, VT_NAME) &&
1576
+ verifier.VerifyString (name ()) &&
1577
+ VerifyField<uint8_t >(verifier, VT_MEDIA, 1 ) &&
1578
+ VerifyOffset (verifier, VT_KEYFRAME_POINTS) &&
1579
+ verifier.VerifyVector (keyframe_points ()) &&
1580
+ verifier.VerifyVectorOfTables (keyframe_points ()) &&
1581
+ verifier.EndTable ();
1582
+ }
1583
+ };
1584
+
1585
+ struct KeyframeAnimationBuilder {
1586
+ typedef KeyframeAnimation Table;
1587
+ ::flatbuffers::FlatBufferBuilder &fbb_;
1588
+ ::flatbuffers::uoffset_t start_;
1589
+ void add_name (::flatbuffers::Offset<::flatbuffers::String> name) {
1590
+ fbb_.AddOffset (KeyframeAnimation::VT_NAME, name);
1591
+ }
1592
+ void add_media (uint8_t media) {
1593
+ fbb_.AddElement <uint8_t >(KeyframeAnimation::VT_MEDIA, media, 0 );
1594
+ }
1595
+ void add_keyframe_points (::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::KeyframeAnimationPoint>>> keyframe_points) {
1596
+ fbb_.AddOffset (KeyframeAnimation::VT_KEYFRAME_POINTS, keyframe_points);
1597
+ }
1598
+ explicit KeyframeAnimationBuilder (::flatbuffers::FlatBufferBuilder &_fbb)
1599
+ : fbb_(_fbb) {
1600
+ start_ = fbb_.StartTable ();
1601
+ }
1602
+ ::flatbuffers::Offset<KeyframeAnimation> Finish () {
1603
+ const auto end = fbb_.EndTable (start_);
1604
+ auto o = ::flatbuffers::Offset<KeyframeAnimation>(end);
1605
+ return o;
1606
+ }
1607
+ };
1608
+
1609
+ inline ::flatbuffers::Offset<KeyframeAnimation> CreateKeyframeAnimation (
1610
+ ::flatbuffers::FlatBufferBuilder &_fbb,
1611
+ ::flatbuffers::Offset<::flatbuffers::String> name = 0 ,
1612
+ uint8_t media = 0 ,
1613
+ ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::KeyframeAnimationPoint>>> keyframe_points = 0 ) {
1614
+ KeyframeAnimationBuilder builder_ (_fbb);
1615
+ builder_.add_keyframe_points (keyframe_points);
1616
+ builder_.add_name (name);
1617
+ builder_.add_media (media);
1618
+ return builder_.Finish ();
1619
+ }
1620
+
1621
+ inline ::flatbuffers::Offset<KeyframeAnimation> CreateKeyframeAnimationDirect (
1622
+ ::flatbuffers::FlatBufferBuilder &_fbb,
1623
+ const char *name = nullptr ,
1624
+ uint8_t media = 0 ,
1625
+ const std::vector<::flatbuffers::Offset<Styles::KeyframeAnimationPoint>> *keyframe_points = nullptr ) {
1626
+ auto name__ = name ? _fbb.CreateString (name) : 0 ;
1627
+ auto keyframe_points__ = keyframe_points ? _fbb.CreateVector <::flatbuffers::Offset<Styles::KeyframeAnimationPoint>>(*keyframe_points) : 0 ;
1628
+ return Styles::CreateKeyframeAnimation (
1629
+ _fbb,
1630
+ name__,
1631
+ media,
1632
+ keyframe_points__);
1633
+ }
1634
+
1487
1635
struct PrimitiveCondition FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1488
1636
typedef PrimitiveConditionBuilder Builder;
1489
1637
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
@@ -1840,8 +1988,8 @@ struct StyleSheet FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1840
1988
const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::Font>> *fonts () const {
1841
1989
return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::Font>> *>(VT_FONTS);
1842
1990
}
1843
- const ::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String >> *keyframes () const {
1844
- return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String >> *>(VT_KEYFRAMES);
1991
+ const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::KeyframeAnimation >> *keyframes () const {
1992
+ return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::KeyframeAnimation >> *>(VT_KEYFRAMES);
1845
1993
}
1846
1994
const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::Media>> *medias () const {
1847
1995
return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::Media>> *>(VT_MEDIAS);
@@ -1862,7 +2010,7 @@ struct StyleSheet FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1862
2010
verifier.VerifyVectorOfTables (fonts ()) &&
1863
2011
VerifyOffset (verifier, VT_KEYFRAMES) &&
1864
2012
verifier.VerifyVector (keyframes ()) &&
1865
- verifier.VerifyVectorOfStrings (keyframes ()) &&
2013
+ verifier.VerifyVectorOfTables (keyframes ()) &&
1866
2014
VerifyOffset (verifier, VT_MEDIAS) &&
1867
2015
verifier.VerifyVector (medias ()) &&
1868
2016
verifier.VerifyVectorOfTables (medias ()) &&
@@ -1882,7 +2030,7 @@ struct StyleSheetBuilder {
1882
2030
void add_fonts (::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::Font>>> fonts) {
1883
2031
fbb_.AddOffset (StyleSheet::VT_FONTS, fonts);
1884
2032
}
1885
- void add_keyframes (::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String >>> keyframes) {
2033
+ void add_keyframes (::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::KeyframeAnimation >>> keyframes) {
1886
2034
fbb_.AddOffset (StyleSheet::VT_KEYFRAMES, keyframes);
1887
2035
}
1888
2036
void add_medias (::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::Media>>> medias) {
@@ -1911,7 +2059,7 @@ struct StyleSheetBuilder {
1911
2059
inline ::flatbuffers::Offset<StyleSheet> CreateStyleSheet (
1912
2060
::flatbuffers::FlatBufferBuilder &_fbb,
1913
2061
::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::Font>>> fonts = 0 ,
1914
- ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String >>> keyframes = 0 ,
2062
+ ::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::KeyframeAnimation >>> keyframes = 0 ,
1915
2063
::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::Media>>> medias = 0 ,
1916
2064
::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::Style>>> styles = 0 ,
1917
2065
uint16_t design_width = 0 ,
@@ -1929,13 +2077,13 @@ inline ::flatbuffers::Offset<StyleSheet> CreateStyleSheet(
1929
2077
inline ::flatbuffers::Offset<StyleSheet> CreateStyleSheetDirect (
1930
2078
::flatbuffers::FlatBufferBuilder &_fbb,
1931
2079
const std::vector<::flatbuffers::Offset<Styles::Font>> *fonts = nullptr ,
1932
- const std::vector<::flatbuffers::Offset<::flatbuffers::String >> *keyframes = nullptr ,
2080
+ const std::vector<::flatbuffers::Offset<Styles::KeyframeAnimation >> *keyframes = nullptr ,
1933
2081
const std::vector<::flatbuffers::Offset<Styles::Media>> *medias = nullptr ,
1934
2082
const std::vector<::flatbuffers::Offset<Styles::Style>> *styles = nullptr ,
1935
2083
uint16_t design_width = 0 ,
1936
2084
bool allow_inherit = false ) {
1937
2085
auto fonts__ = fonts ? _fbb.CreateVector <::flatbuffers::Offset<Styles::Font>>(*fonts) : 0 ;
1938
- auto keyframes__ = keyframes ? _fbb.CreateVector <::flatbuffers::Offset<::flatbuffers::String >>(*keyframes) : 0 ;
2086
+ auto keyframes__ = keyframes ? _fbb.CreateVector <::flatbuffers::Offset<Styles::KeyframeAnimation >>(*keyframes) : 0 ;
1939
2087
auto medias__ = medias ? _fbb.CreateVector <::flatbuffers::Offset<Styles::Media>>(*medias) : 0 ;
1940
2088
auto styles__ = styles ? _fbb.CreateVector <::flatbuffers::Offset<Styles::Style>>(*styles) : 0 ;
1941
2089
return Styles::CreateStyleSheet (
0 commit comments