// 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" namespace flatbuffers { struct WidgetOptions; struct PanelOptions; struct Color; struct TabControlOption; struct TabHeaderOption; struct TabItemOption; struct ResourceItemData; struct TabControlOption : private flatbuffers::Table { const WidgetOptions *nodeOptions() const { return GetPointer(4); } int32_t headerPlace() const { return GetField(6, 0); } int32_t headerWidth() const { return GetField(8, 0); } int32_t headerHeight() const { return GetField(10, 0); } float selectedTabZoom() const { return GetField(12, 0); } int32_t selectedTabIndex() const { return GetField(14, 0); } uint8_t ignoreHeaderTextureSize() const { return GetField(16, 0); } const flatbuffers::Vector> *tabItems() const { return GetPointer> *>(18); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, 4 /* nodeOptions */) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, 6 /* headerPlace */) && VerifyField(verifier, 8 /* headerWidth */) && VerifyField(verifier, 10 /* headerHeight */) && VerifyField(verifier, 12 /* selectedTabZoom */) && VerifyField(verifier, 14 /* selectedTabIndex */) && VerifyField(verifier, 16 /* ignoreHeaderTextureSize */) && VerifyField(verifier, 18 /* tabItems */) && verifier.Verify(tabItems()) && verifier.VerifyVectorOfTables(tabItems()) && verifier.EndTable(); } }; struct TabControlOptionBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(4, nodeOptions); } void add_headerPlace(int32_t headerPlace) { fbb_.AddElement(6, headerPlace, 0); } void add_headerWidth(int32_t headerWidth) { fbb_.AddElement(8, headerWidth, 0); } void add_headerHeight(int32_t headerHeight) { fbb_.AddElement(10, headerHeight, 0); } void add_selectedTabZoom(float selectedTabZoom) { fbb_.AddElement(12, selectedTabZoom, 0); } void add_selectedTabIndex(int32_t selectedTabIndex) { fbb_.AddElement(14, selectedTabIndex, 0); } void add_ignoreHeaderTextureSize(uint8_t ignoreHeaderTextureSize) { fbb_.AddElement(16, ignoreHeaderTextureSize, 0); } void add_tabItems(flatbuffers::Offset>> tabItems) { fbb_.AddOffset(18, tabItems); } TabControlOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TabControlOptionBuilder &operator=(const TabControlOptionBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 8)); 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, 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(); } struct TabHeaderOption : private flatbuffers::Table { const WidgetOptions *nodeOptions() const { return GetPointer(4); } const ResourceData *fontRes() const { return GetPointer(6); } int32_t fontSize() const { return GetField(8, 0); } const flatbuffers::String *titleText() const { return GetPointer(10); } const Color *textColor() const { return GetStruct(12); } const ResourceData *normalBackFile() const { return GetPointer(14); } const ResourceData *pressBackFile() const { return GetPointer(16); } const ResourceData *disableBackFile() const { return GetPointer(18); } const ResourceData *crossNormalFile() const { return GetPointer(20); } const ResourceData *crossDisableFile() const { return GetPointer(22); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, 4 /* nodeOptions */) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, 6 /* fontRes */) && verifier.VerifyTable(fontRes()) && VerifyField(verifier, 8 /* fontSize */) && VerifyField(verifier, 10 /* titleText */) && verifier.Verify(titleText()) && VerifyField(verifier, 12 /* textColor */) && VerifyField(verifier, 14 /* normalBackFile */) && verifier.VerifyTable(normalBackFile()) && VerifyField(verifier, 16 /* pressBackFile */) && verifier.VerifyTable(pressBackFile()) && VerifyField(verifier, 18 /* disableBackFile */) && verifier.VerifyTable(disableBackFile()) && VerifyField(verifier, 20 /* crossNormalFile */) && verifier.VerifyTable(crossNormalFile()) && VerifyField(verifier, 22 /* crossDisableFile */) && verifier.VerifyTable(crossDisableFile()) && verifier.EndTable(); } }; struct TabHeaderOptionBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(4, nodeOptions); } void add_fontRes(flatbuffers::Offset fontRes) { fbb_.AddOffset(6, fontRes); } void add_fontSize(int32_t fontSize) { fbb_.AddElement(8, fontSize, 0); } void add_titleText(flatbuffers::Offset titleText) { fbb_.AddOffset(10, titleText); } void add_textColor(const Color *textColor) { fbb_.AddStruct(12, textColor); } void add_normalBackFile(flatbuffers::Offset normalBackFile) { fbb_.AddOffset(14, normalBackFile); } void add_pressBackFile(flatbuffers::Offset pressBackFile) { fbb_.AddOffset(16, pressBackFile); } void add_disableBackFile(flatbuffers::Offset disableBackFile) { fbb_.AddOffset(18, disableBackFile); } void add_crossNormalFile(flatbuffers::Offset crossNormalFile) { fbb_.AddOffset(20, crossNormalFile); } void add_crossDisableFile(flatbuffers::Offset crossDisableFile) { fbb_.AddOffset(22, crossDisableFile); } TabHeaderOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TabHeaderOptionBuilder &operator=(const TabHeaderOptionBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 10)); 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(); } struct TabItemOption : private flatbuffers::Table { const TabHeaderOption *header() const { return GetPointer(4); } const NodeTree *container() const { return GetPointer(6); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, 4 /* header */) && verifier.VerifyTable(header()) && VerifyField(verifier, 6 /* container */) && verifier.VerifyTable(container()) && verifier.EndTable(); } }; struct TabItemOptionBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_header(flatbuffers::Offset header) { fbb_.AddOffset(4, header); } void add_container(flatbuffers::Offset container) { fbb_.AddOffset(6, container); } TabItemOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TabItemOptionBuilder &operator=(const TabItemOptionBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 2)); 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 TabControlOption *GetTabControlOption(const void *buf) { return flatbuffers::GetRoot(buf); } inline bool VerifyTabControlOptionBuffer(flatbuffers::Verifier &verifier) { return verifier.VerifyBuffer(); } inline void FinishTabControlOptionBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset root) { fbb.Finish(root); } } // namespace flatbuffers #endif // FLATBUFFERS_GENERATED_CSTABCONTROL_FLATBUFFERS_H_