@@ -1834,7 +1834,8 @@ struct StyleSheet FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1834
1834
VT_KEYFRAMES = 6 ,
1835
1835
VT_MEDIAS = 8 ,
1836
1836
VT_STYLES = 10 ,
1837
- VT_DESIGN_WIDTH = 12
1837
+ VT_DESIGN_WIDTH = 12 ,
1838
+ VT_ALLOW_INHERIT = 14
1838
1839
};
1839
1840
const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::Font>> *fonts () const {
1840
1841
return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<Styles::Font>> *>(VT_FONTS);
@@ -1851,6 +1852,9 @@ struct StyleSheet FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1851
1852
uint16_t design_width () const {
1852
1853
return GetField<uint16_t >(VT_DESIGN_WIDTH, 0 );
1853
1854
}
1855
+ bool allow_inherit () const {
1856
+ return GetField<uint8_t >(VT_ALLOW_INHERIT, 0 ) != 0 ;
1857
+ }
1854
1858
bool Verify (::flatbuffers::Verifier &verifier) const {
1855
1859
return VerifyTableStart (verifier) &&
1856
1860
VerifyOffset (verifier, VT_FONTS) &&
@@ -1866,6 +1870,7 @@ struct StyleSheet FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
1866
1870
verifier.VerifyVector (styles ()) &&
1867
1871
verifier.VerifyVectorOfTables (styles ()) &&
1868
1872
VerifyField<uint16_t >(verifier, VT_DESIGN_WIDTH, 2 ) &&
1873
+ VerifyField<uint8_t >(verifier, VT_ALLOW_INHERIT, 1 ) &&
1869
1874
verifier.EndTable ();
1870
1875
}
1871
1876
};
@@ -1889,6 +1894,9 @@ struct StyleSheetBuilder {
1889
1894
void add_design_width (uint16_t design_width) {
1890
1895
fbb_.AddElement <uint16_t >(StyleSheet::VT_DESIGN_WIDTH, design_width, 0 );
1891
1896
}
1897
+ void add_allow_inherit (bool allow_inherit) {
1898
+ fbb_.AddElement <uint8_t >(StyleSheet::VT_ALLOW_INHERIT, static_cast <uint8_t >(allow_inherit), 0 );
1899
+ }
1892
1900
explicit StyleSheetBuilder (::flatbuffers::FlatBufferBuilder &_fbb)
1893
1901
: fbb_(_fbb) {
1894
1902
start_ = fbb_.StartTable ();
@@ -1906,13 +1914,15 @@ inline ::flatbuffers::Offset<StyleSheet> CreateStyleSheet(
1906
1914
::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<::flatbuffers::String>>> keyframes = 0 ,
1907
1915
::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::Media>>> medias = 0 ,
1908
1916
::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<Styles::Style>>> styles = 0 ,
1909
- uint16_t design_width = 0 ) {
1917
+ uint16_t design_width = 0 ,
1918
+ bool allow_inherit = false ) {
1910
1919
StyleSheetBuilder builder_ (_fbb);
1911
1920
builder_.add_styles (styles);
1912
1921
builder_.add_medias (medias);
1913
1922
builder_.add_keyframes (keyframes);
1914
1923
builder_.add_fonts (fonts);
1915
1924
builder_.add_design_width (design_width);
1925
+ builder_.add_allow_inherit (allow_inherit);
1916
1926
return builder_.Finish ();
1917
1927
}
1918
1928
@@ -1922,7 +1932,8 @@ inline ::flatbuffers::Offset<StyleSheet> CreateStyleSheetDirect(
1922
1932
const std::vector<::flatbuffers::Offset<::flatbuffers::String>> *keyframes = nullptr ,
1923
1933
const std::vector<::flatbuffers::Offset<Styles::Media>> *medias = nullptr ,
1924
1934
const std::vector<::flatbuffers::Offset<Styles::Style>> *styles = nullptr ,
1925
- uint16_t design_width = 0 ) {
1935
+ uint16_t design_width = 0 ,
1936
+ bool allow_inherit = false ) {
1926
1937
auto fonts__ = fonts ? _fbb.CreateVector <::flatbuffers::Offset<Styles::Font>>(*fonts) : 0 ;
1927
1938
auto keyframes__ = keyframes ? _fbb.CreateVector <::flatbuffers::Offset<::flatbuffers::String>>(*keyframes) : 0 ;
1928
1939
auto medias__ = medias ? _fbb.CreateVector <::flatbuffers::Offset<Styles::Media>>(*medias) : 0 ;
@@ -1933,7 +1944,8 @@ inline ::flatbuffers::Offset<StyleSheet> CreateStyleSheetDirect(
1933
1944
keyframes__,
1934
1945
medias__,
1935
1946
styles__,
1936
- design_width);
1947
+ design_width,
1948
+ allow_inherit);
1937
1949
}
1938
1950
1939
1951
inline bool VerifyValue (::flatbuffers::Verifier &verifier, const void *obj, Value type) {
0 commit comments