// automatically generated by the FlatBuffers compiler, do not modify #ifndef FLATBUFFERS_GENERATED_CSTABCONTROL_FLATBUFFERS_H_ #define FLATBUFFERS_GENERATED_CSTABCONTROL_FLATBUFFERS_H_ #include "flatbuffers/flatbuffers.h" #include "cocostudio/CSParseBinary_generated.h" namespace flatbuffers { struct TabControlOption; struct TabHeaderOption; struct TabItemOption; struct TabControlOption FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_NODEOPTIONS = 4, VT_HEADERPLACE = 6, VT_HEADERWIDTH = 8, VT_HEADERHEIGHT = 10, VT_SELECTEDTABZOOM = 12, VT_SELECTEDTABINDEX = 14, VT_IGNOREHEADERTEXTURESIZE = 16, VT_TABITEMS = 18 }; const WidgetOptions *nodeOptions() const { return GetPointer(VT_NODEOPTIONS); } int32_t headerPlace() const { return GetField(VT_HEADERPLACE, 0); } int32_t headerWidth() const { return GetField(VT_HEADERWIDTH, 0); } int32_t headerHeight() const { return GetField(VT_HEADERHEIGHT, 0); } float selectedTabZoom() const { return GetField(VT_SELECTEDTABZOOM, 0.0f); } int32_t selectedTabIndex() const { return GetField(VT_SELECTEDTABINDEX, 0); } uint8_t ignoreHeaderTextureSize() const { return GetField(VT_IGNOREHEADERTEXTURESIZE, 0); } const flatbuffers::Vector> *tabItems() const { return GetPointer> *>(VT_TABITEMS); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NODEOPTIONS) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, VT_HEADERPLACE) && VerifyField(verifier, VT_HEADERWIDTH) && VerifyField(verifier, VT_HEADERHEIGHT) && VerifyField(verifier, VT_SELECTEDTABZOOM) && VerifyField(verifier, VT_SELECTEDTABINDEX) && VerifyField(verifier, VT_IGNOREHEADERTEXTURESIZE) && VerifyOffset(verifier, VT_TABITEMS) && verifier.VerifyVector(tabItems()) && verifier.VerifyVectorOfTables(tabItems()) && verifier.EndTable(); } }; struct TabControlOptionBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(TabControlOption::VT_NODEOPTIONS, nodeOptions); } void add_headerPlace(int32_t headerPlace) { fbb_.AddElement(TabControlOption::VT_HEADERPLACE, headerPlace, 0); } void add_headerWidth(int32_t headerWidth) { fbb_.AddElement(TabControlOption::VT_HEADERWIDTH, headerWidth, 0); } void add_headerHeight(int32_t headerHeight) { fbb_.AddElement(TabControlOption::VT_HEADERHEIGHT, headerHeight, 0); } void add_selectedTabZoom(float selectedTabZoom) { fbb_.AddElement(TabControlOption::VT_SELECTEDTABZOOM, selectedTabZoom, 0.0f); } void add_selectedTabIndex(int32_t selectedTabIndex) { fbb_.AddElement(TabControlOption::VT_SELECTEDTABINDEX, selectedTabIndex, 0); } void add_ignoreHeaderTextureSize(uint8_t ignoreHeaderTextureSize) { fbb_.AddElement(TabControlOption::VT_IGNOREHEADERTEXTURESIZE, ignoreHeaderTextureSize, 0); } void add_tabItems(flatbuffers::Offset>> tabItems) { fbb_.AddOffset(TabControlOption::VT_TABITEMS, tabItems); } explicit TabControlOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TabControlOptionBuilder &operator=(const TabControlOptionBuilder &); flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); auto o = flatbuffers::Offset(end); return o; } }; inline flatbuffers::Offset CreateTabControlOption( flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, int32_t headerPlace = 0, int32_t headerWidth = 0, int32_t headerHeight = 0, float selectedTabZoom = 0.0f, int32_t selectedTabIndex = 0, uint8_t ignoreHeaderTextureSize = 0, flatbuffers::Offset>> tabItems = 0) { TabControlOptionBuilder builder_(_fbb); builder_.add_tabItems(tabItems); builder_.add_selectedTabIndex(selectedTabIndex); builder_.add_selectedTabZoom(selectedTabZoom); builder_.add_headerHeight(headerHeight); builder_.add_headerWidth(headerWidth); builder_.add_headerPlace(headerPlace); builder_.add_nodeOptions(nodeOptions); builder_.add_ignoreHeaderTextureSize(ignoreHeaderTextureSize); return builder_.Finish(); } inline flatbuffers::Offset CreateTabControlOptionDirect( flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, int32_t headerPlace = 0, int32_t headerWidth = 0, int32_t headerHeight = 0, float selectedTabZoom = 0.0f, int32_t selectedTabIndex = 0, uint8_t ignoreHeaderTextureSize = 0, const std::vector> *tabItems = nullptr) { auto tabItems__ = tabItems ? _fbb.CreateVector>(*tabItems) : 0; return flatbuffers::CreateTabControlOption( _fbb, nodeOptions, headerPlace, headerWidth, headerHeight, selectedTabZoom, selectedTabIndex, ignoreHeaderTextureSize, tabItems__); } struct TabHeaderOption FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_NODEOPTIONS = 4, VT_FONTRES = 6, VT_FONTSIZE = 8, VT_TITLETEXT = 10, VT_TEXTCOLOR = 12, VT_NORMALBACKFILE = 14, VT_PRESSBACKFILE = 16, VT_DISABLEBACKFILE = 18, VT_CROSSNORMALFILE = 20, VT_CROSSDISABLEFILE = 22 }; const WidgetOptions *nodeOptions() const { return GetPointer(VT_NODEOPTIONS); } const ResourceData *fontRes() const { return GetPointer(VT_FONTRES); } int32_t fontSize() const { return GetField(VT_FONTSIZE, 0); } const flatbuffers::String *titleText() const { return GetPointer(VT_TITLETEXT); } const Color *textColor() const { return GetStruct(VT_TEXTCOLOR); } const ResourceData *normalBackFile() const { return GetPointer(VT_NORMALBACKFILE); } const ResourceData *pressBackFile() const { return GetPointer(VT_PRESSBACKFILE); } const ResourceData *disableBackFile() const { return GetPointer(VT_DISABLEBACKFILE); } const ResourceData *crossNormalFile() const { return GetPointer(VT_CROSSNORMALFILE); } const ResourceData *crossDisableFile() const { return GetPointer(VT_CROSSDISABLEFILE); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_NODEOPTIONS) && verifier.VerifyTable(nodeOptions()) && VerifyOffset(verifier, VT_FONTRES) && verifier.VerifyTable(fontRes()) && VerifyField(verifier, VT_FONTSIZE) && VerifyOffset(verifier, VT_TITLETEXT) && verifier.VerifyString(titleText()) && VerifyField(verifier, VT_TEXTCOLOR) && VerifyOffset(verifier, VT_NORMALBACKFILE) && verifier.VerifyTable(normalBackFile()) && VerifyOffset(verifier, VT_PRESSBACKFILE) && verifier.VerifyTable(pressBackFile()) && VerifyOffset(verifier, VT_DISABLEBACKFILE) && verifier.VerifyTable(disableBackFile()) && VerifyOffset(verifier, VT_CROSSNORMALFILE) && verifier.VerifyTable(crossNormalFile()) && VerifyOffset(verifier, VT_CROSSDISABLEFILE) && verifier.VerifyTable(crossDisableFile()) && verifier.EndTable(); } }; struct TabHeaderOptionBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(TabHeaderOption::VT_NODEOPTIONS, nodeOptions); } void add_fontRes(flatbuffers::Offset fontRes) { fbb_.AddOffset(TabHeaderOption::VT_FONTRES, fontRes); } void add_fontSize(int32_t fontSize) { fbb_.AddElement(TabHeaderOption::VT_FONTSIZE, fontSize, 0); } void add_titleText(flatbuffers::Offset titleText) { fbb_.AddOffset(TabHeaderOption::VT_TITLETEXT, titleText); } void add_textColor(const Color *textColor) { fbb_.AddStruct(TabHeaderOption::VT_TEXTCOLOR, textColor); } void add_normalBackFile(flatbuffers::Offset normalBackFile) { fbb_.AddOffset(TabHeaderOption::VT_NORMALBACKFILE, normalBackFile); } void add_pressBackFile(flatbuffers::Offset pressBackFile) { fbb_.AddOffset(TabHeaderOption::VT_PRESSBACKFILE, pressBackFile); } void add_disableBackFile(flatbuffers::Offset disableBackFile) { fbb_.AddOffset(TabHeaderOption::VT_DISABLEBACKFILE, disableBackFile); } void add_crossNormalFile(flatbuffers::Offset crossNormalFile) { fbb_.AddOffset(TabHeaderOption::VT_CROSSNORMALFILE, crossNormalFile); } void add_crossDisableFile(flatbuffers::Offset crossDisableFile) { fbb_.AddOffset(TabHeaderOption::VT_CROSSDISABLEFILE, crossDisableFile); } explicit TabHeaderOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TabHeaderOptionBuilder &operator=(const TabHeaderOptionBuilder &); flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); auto o = flatbuffers::Offset(end); return o; } }; inline flatbuffers::Offset CreateTabHeaderOption( flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, flatbuffers::Offset fontRes = 0, int32_t fontSize = 0, flatbuffers::Offset titleText = 0, const Color *textColor = 0, flatbuffers::Offset normalBackFile = 0, flatbuffers::Offset pressBackFile = 0, flatbuffers::Offset disableBackFile = 0, flatbuffers::Offset crossNormalFile = 0, flatbuffers::Offset crossDisableFile = 0) { TabHeaderOptionBuilder builder_(_fbb); builder_.add_crossDisableFile(crossDisableFile); builder_.add_crossNormalFile(crossNormalFile); builder_.add_disableBackFile(disableBackFile); builder_.add_pressBackFile(pressBackFile); builder_.add_normalBackFile(normalBackFile); builder_.add_textColor(textColor); builder_.add_titleText(titleText); builder_.add_fontSize(fontSize); builder_.add_fontRes(fontRes); builder_.add_nodeOptions(nodeOptions); return builder_.Finish(); } inline flatbuffers::Offset CreateTabHeaderOptionDirect( flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, flatbuffers::Offset fontRes = 0, int32_t fontSize = 0, const char *titleText = nullptr, const Color *textColor = 0, flatbuffers::Offset normalBackFile = 0, flatbuffers::Offset pressBackFile = 0, flatbuffers::Offset disableBackFile = 0, flatbuffers::Offset crossNormalFile = 0, flatbuffers::Offset crossDisableFile = 0) { auto titleText__ = titleText ? _fbb.CreateString(titleText) : 0; return flatbuffers::CreateTabHeaderOption( _fbb, nodeOptions, fontRes, fontSize, titleText__, textColor, normalBackFile, pressBackFile, disableBackFile, crossNormalFile, crossDisableFile); } struct TabItemOption FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_HEADER = 4, VT_CONTAINER = 6 }; const TabHeaderOption *header() const { return GetPointer(VT_HEADER); } const NodeTree *container() const { return GetPointer(VT_CONTAINER); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_HEADER) && verifier.VerifyTable(header()) && VerifyOffset(verifier, VT_CONTAINER) && verifier.VerifyTable(container()) && verifier.EndTable(); } }; struct TabItemOptionBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_header(flatbuffers::Offset header) { fbb_.AddOffset(TabItemOption::VT_HEADER, header); } void add_container(flatbuffers::Offset container) { fbb_.AddOffset(TabItemOption::VT_CONTAINER, container); } explicit TabItemOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TabItemOptionBuilder &operator=(const TabItemOptionBuilder &); flatbuffers::Offset Finish() { const auto end = fbb_.EndTable(start_); auto o = flatbuffers::Offset(end); return o; } }; inline flatbuffers::Offset CreateTabItemOption( flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset header = 0, flatbuffers::Offset container = 0) { TabItemOptionBuilder builder_(_fbb); builder_.add_container(container); builder_.add_header(header); return builder_.Finish(); } inline const flatbuffers::TabControlOption *GetTabControlOption(const void *buf) { return flatbuffers::GetRoot(buf); } inline const flatbuffers::TabControlOption *GetSizePrefixedTabControlOption(const void *buf) { return flatbuffers::GetSizePrefixedRoot(buf); } inline bool VerifyTabControlOptionBuffer( flatbuffers::Verifier &verifier) { return verifier.VerifyBuffer(nullptr); } inline bool VerifySizePrefixedTabControlOptionBuffer( flatbuffers::Verifier &verifier) { return verifier.VerifySizePrefixedBuffer(nullptr); } inline void FinishTabControlOptionBuffer( flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset root) { fbb.Finish(root); } inline void FinishSizePrefixedTabControlOptionBuffer( flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset root) { fbb.FinishSizePrefixed(root); } } // namespace flatbuffers #endif // FLATBUFFERS_GENERATED_CSTABCONTROL_FLATBUFFERS_H_