2016-03-03 14:17:48 +08:00
|
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
|
2016-03-03 14:17:48 +08:00
|
|
|
#ifndef FLATBUFFERS_GENERATED_CSTABCONTROL_FLATBUFFERS_H_
|
|
|
|
#define FLATBUFFERS_GENERATED_CSTABCONTROL_FLATBUFFERS_H_
|
|
|
|
|
|
|
|
#include "flatbuffers/flatbuffers.h"
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
// Ensure the included flatbuffers.h is the same version as when this file was
|
|
|
|
// generated, otherwise it may not be compatible.
|
|
|
|
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
|
|
|
|
FLATBUFFERS_VERSION_MINOR == 0 &&
|
|
|
|
FLATBUFFERS_VERSION_REVISION == 8,
|
|
|
|
"Non-compatible flatbuffers version included");
|
|
|
|
|
2020-10-21 10:12:00 +08:00
|
|
|
#include "CSParseBinary_generated.h"
|
2016-03-03 14:17:48 +08:00
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
namespace flatbuffers {
|
2016-03-03 14:17:48 +08:00
|
|
|
|
|
|
|
struct TabControlOption;
|
2022-09-15 20:15:28 +08:00
|
|
|
struct TabControlOptionBuilder;
|
2019-11-24 23:15:56 +08:00
|
|
|
|
2016-03-03 14:17:48 +08:00
|
|
|
struct TabHeaderOption;
|
2022-09-15 20:15:28 +08:00
|
|
|
struct TabHeaderOptionBuilder;
|
2019-11-24 23:15:56 +08:00
|
|
|
|
2016-03-03 14:17:48 +08:00
|
|
|
struct TabItemOption;
|
2022-09-15 20:15:28 +08:00
|
|
|
struct TabItemOptionBuilder;
|
2019-11-24 23:15:56 +08:00
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
struct TabControlOption FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
|
|
|
typedef TabControlOptionBuilder Builder;
|
|
|
|
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 flatbuffers::WidgetOptions *nodeOptions() const {
|
|
|
|
return GetPointer<const flatbuffers::WidgetOptions *>(VT_NODEOPTIONS);
|
|
|
|
}
|
|
|
|
int32_t headerPlace() const {
|
|
|
|
return GetField<int32_t>(VT_HEADERPLACE, 0);
|
|
|
|
}
|
|
|
|
int32_t headerWidth() const {
|
|
|
|
return GetField<int32_t>(VT_HEADERWIDTH, 0);
|
|
|
|
}
|
|
|
|
int32_t headerHeight() const {
|
|
|
|
return GetField<int32_t>(VT_HEADERHEIGHT, 0);
|
|
|
|
}
|
|
|
|
float selectedTabZoom() const {
|
|
|
|
return GetField<float>(VT_SELECTEDTABZOOM, 0.0f);
|
|
|
|
}
|
|
|
|
int32_t selectedTabIndex() const {
|
|
|
|
return GetField<int32_t>(VT_SELECTEDTABINDEX, 0);
|
|
|
|
}
|
|
|
|
uint8_t ignoreHeaderTextureSize() const {
|
|
|
|
return GetField<uint8_t>(VT_IGNOREHEADERTEXTURESIZE, 0);
|
|
|
|
}
|
|
|
|
const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::TabItemOption>> *tabItems() const {
|
|
|
|
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<flatbuffers::TabItemOption>> *>(VT_TABITEMS);
|
|
|
|
}
|
|
|
|
bool Verify(flatbuffers::Verifier &verifier) const {
|
|
|
|
return VerifyTableStart(verifier) &&
|
|
|
|
VerifyOffset(verifier, VT_NODEOPTIONS) &&
|
|
|
|
verifier.VerifyTable(nodeOptions()) &&
|
|
|
|
VerifyField<int32_t>(verifier, VT_HEADERPLACE, 4) &&
|
|
|
|
VerifyField<int32_t>(verifier, VT_HEADERWIDTH, 4) &&
|
|
|
|
VerifyField<int32_t>(verifier, VT_HEADERHEIGHT, 4) &&
|
|
|
|
VerifyField<float>(verifier, VT_SELECTEDTABZOOM, 4) &&
|
|
|
|
VerifyField<int32_t>(verifier, VT_SELECTEDTABINDEX, 4) &&
|
|
|
|
VerifyField<uint8_t>(verifier, VT_IGNOREHEADERTEXTURESIZE, 1) &&
|
|
|
|
VerifyOffset(verifier, VT_TABITEMS) &&
|
|
|
|
verifier.VerifyVector(tabItems()) &&
|
|
|
|
verifier.VerifyVectorOfTables(tabItems()) &&
|
|
|
|
verifier.EndTable();
|
|
|
|
}
|
2016-03-03 14:17:48 +08:00
|
|
|
};
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
struct TabControlOptionBuilder {
|
|
|
|
typedef TabControlOption Table;
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb_;
|
|
|
|
flatbuffers::uoffset_t start_;
|
|
|
|
void add_nodeOptions(flatbuffers::Offset<flatbuffers::WidgetOptions> nodeOptions) {
|
|
|
|
fbb_.AddOffset(TabControlOption::VT_NODEOPTIONS, nodeOptions);
|
|
|
|
}
|
|
|
|
void add_headerPlace(int32_t headerPlace) {
|
|
|
|
fbb_.AddElement<int32_t>(TabControlOption::VT_HEADERPLACE, headerPlace, 0);
|
|
|
|
}
|
|
|
|
void add_headerWidth(int32_t headerWidth) {
|
|
|
|
fbb_.AddElement<int32_t>(TabControlOption::VT_HEADERWIDTH, headerWidth, 0);
|
|
|
|
}
|
|
|
|
void add_headerHeight(int32_t headerHeight) {
|
|
|
|
fbb_.AddElement<int32_t>(TabControlOption::VT_HEADERHEIGHT, headerHeight, 0);
|
|
|
|
}
|
|
|
|
void add_selectedTabZoom(float selectedTabZoom) {
|
|
|
|
fbb_.AddElement<float>(TabControlOption::VT_SELECTEDTABZOOM, selectedTabZoom, 0.0f);
|
|
|
|
}
|
|
|
|
void add_selectedTabIndex(int32_t selectedTabIndex) {
|
|
|
|
fbb_.AddElement<int32_t>(TabControlOption::VT_SELECTEDTABINDEX, selectedTabIndex, 0);
|
|
|
|
}
|
|
|
|
void add_ignoreHeaderTextureSize(uint8_t ignoreHeaderTextureSize) {
|
|
|
|
fbb_.AddElement<uint8_t>(TabControlOption::VT_IGNOREHEADERTEXTURESIZE, ignoreHeaderTextureSize, 0);
|
|
|
|
}
|
|
|
|
void add_tabItems(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::TabItemOption>>> tabItems) {
|
|
|
|
fbb_.AddOffset(TabControlOption::VT_TABITEMS, tabItems);
|
|
|
|
}
|
|
|
|
explicit TabControlOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
|
|
|
: fbb_(_fbb) {
|
|
|
|
start_ = fbb_.StartTable();
|
|
|
|
}
|
|
|
|
flatbuffers::Offset<TabControlOption> Finish() {
|
|
|
|
const auto end = fbb_.EndTable(start_);
|
|
|
|
auto o = flatbuffers::Offset<TabControlOption>(end);
|
|
|
|
return o;
|
|
|
|
}
|
2016-03-03 14:17:48 +08:00
|
|
|
};
|
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
inline flatbuffers::Offset<TabControlOption> CreateTabControlOption(
|
2022-09-15 20:15:28 +08:00
|
|
|
flatbuffers::FlatBufferBuilder &_fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::WidgetOptions> 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<flatbuffers::Vector<flatbuffers::Offset<flatbuffers::TabItemOption>>> 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();
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
inline flatbuffers::Offset<TabControlOption> CreateTabControlOptionDirect(
|
2022-09-15 20:15:28 +08:00
|
|
|
flatbuffers::FlatBufferBuilder &_fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::WidgetOptions> 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<flatbuffers::Offset<flatbuffers::TabItemOption>> *tabItems = nullptr) {
|
|
|
|
auto tabItems__ = tabItems ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::TabItemOption>>(*tabItems) : 0;
|
|
|
|
return flatbuffers::CreateTabControlOption(
|
|
|
|
_fbb,
|
|
|
|
nodeOptions,
|
|
|
|
headerPlace,
|
|
|
|
headerWidth,
|
|
|
|
headerHeight,
|
|
|
|
selectedTabZoom,
|
|
|
|
selectedTabIndex,
|
|
|
|
ignoreHeaderTextureSize,
|
|
|
|
tabItems__);
|
2016-03-03 14:17:48 +08:00
|
|
|
}
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
struct TabHeaderOption FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
|
|
|
typedef TabHeaderOptionBuilder Builder;
|
|
|
|
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 flatbuffers::WidgetOptions *nodeOptions() const {
|
|
|
|
return GetPointer<const flatbuffers::WidgetOptions *>(VT_NODEOPTIONS);
|
|
|
|
}
|
|
|
|
const flatbuffers::ResourceData *fontRes() const {
|
|
|
|
return GetPointer<const flatbuffers::ResourceData *>(VT_FONTRES);
|
|
|
|
}
|
|
|
|
int32_t fontSize() const {
|
|
|
|
return GetField<int32_t>(VT_FONTSIZE, 0);
|
|
|
|
}
|
|
|
|
const flatbuffers::String *titleText() const {
|
|
|
|
return GetPointer<const flatbuffers::String *>(VT_TITLETEXT);
|
|
|
|
}
|
|
|
|
const flatbuffers::Color *textColor() const {
|
|
|
|
return GetStruct<const flatbuffers::Color *>(VT_TEXTCOLOR);
|
|
|
|
}
|
|
|
|
const flatbuffers::ResourceData *normalBackFile() const {
|
|
|
|
return GetPointer<const flatbuffers::ResourceData *>(VT_NORMALBACKFILE);
|
|
|
|
}
|
|
|
|
const flatbuffers::ResourceData *pressBackFile() const {
|
|
|
|
return GetPointer<const flatbuffers::ResourceData *>(VT_PRESSBACKFILE);
|
|
|
|
}
|
|
|
|
const flatbuffers::ResourceData *disableBackFile() const {
|
|
|
|
return GetPointer<const flatbuffers::ResourceData *>(VT_DISABLEBACKFILE);
|
|
|
|
}
|
|
|
|
const flatbuffers::ResourceData *crossNormalFile() const {
|
|
|
|
return GetPointer<const flatbuffers::ResourceData *>(VT_CROSSNORMALFILE);
|
|
|
|
}
|
|
|
|
const flatbuffers::ResourceData *crossDisableFile() const {
|
|
|
|
return GetPointer<const flatbuffers::ResourceData *>(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<int32_t>(verifier, VT_FONTSIZE, 4) &&
|
|
|
|
VerifyOffset(verifier, VT_TITLETEXT) &&
|
|
|
|
verifier.VerifyString(titleText()) &&
|
|
|
|
VerifyField<flatbuffers::Color>(verifier, VT_TEXTCOLOR, 1) &&
|
|
|
|
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();
|
|
|
|
}
|
2016-03-03 14:17:48 +08:00
|
|
|
};
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
struct TabHeaderOptionBuilder {
|
|
|
|
typedef TabHeaderOption Table;
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb_;
|
|
|
|
flatbuffers::uoffset_t start_;
|
|
|
|
void add_nodeOptions(flatbuffers::Offset<flatbuffers::WidgetOptions> nodeOptions) {
|
|
|
|
fbb_.AddOffset(TabHeaderOption::VT_NODEOPTIONS, nodeOptions);
|
|
|
|
}
|
|
|
|
void add_fontRes(flatbuffers::Offset<flatbuffers::ResourceData> fontRes) {
|
|
|
|
fbb_.AddOffset(TabHeaderOption::VT_FONTRES, fontRes);
|
|
|
|
}
|
|
|
|
void add_fontSize(int32_t fontSize) {
|
|
|
|
fbb_.AddElement<int32_t>(TabHeaderOption::VT_FONTSIZE, fontSize, 0);
|
|
|
|
}
|
|
|
|
void add_titleText(flatbuffers::Offset<flatbuffers::String> titleText) {
|
|
|
|
fbb_.AddOffset(TabHeaderOption::VT_TITLETEXT, titleText);
|
|
|
|
}
|
|
|
|
void add_textColor(const flatbuffers::Color *textColor) {
|
|
|
|
fbb_.AddStruct(TabHeaderOption::VT_TEXTCOLOR, textColor);
|
|
|
|
}
|
|
|
|
void add_normalBackFile(flatbuffers::Offset<flatbuffers::ResourceData> normalBackFile) {
|
|
|
|
fbb_.AddOffset(TabHeaderOption::VT_NORMALBACKFILE, normalBackFile);
|
|
|
|
}
|
|
|
|
void add_pressBackFile(flatbuffers::Offset<flatbuffers::ResourceData> pressBackFile) {
|
|
|
|
fbb_.AddOffset(TabHeaderOption::VT_PRESSBACKFILE, pressBackFile);
|
|
|
|
}
|
|
|
|
void add_disableBackFile(flatbuffers::Offset<flatbuffers::ResourceData> disableBackFile) {
|
|
|
|
fbb_.AddOffset(TabHeaderOption::VT_DISABLEBACKFILE, disableBackFile);
|
|
|
|
}
|
|
|
|
void add_crossNormalFile(flatbuffers::Offset<flatbuffers::ResourceData> crossNormalFile) {
|
|
|
|
fbb_.AddOffset(TabHeaderOption::VT_CROSSNORMALFILE, crossNormalFile);
|
|
|
|
}
|
|
|
|
void add_crossDisableFile(flatbuffers::Offset<flatbuffers::ResourceData> crossDisableFile) {
|
|
|
|
fbb_.AddOffset(TabHeaderOption::VT_CROSSDISABLEFILE, crossDisableFile);
|
|
|
|
}
|
|
|
|
explicit TabHeaderOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
|
|
|
: fbb_(_fbb) {
|
|
|
|
start_ = fbb_.StartTable();
|
|
|
|
}
|
|
|
|
flatbuffers::Offset<TabHeaderOption> Finish() {
|
|
|
|
const auto end = fbb_.EndTable(start_);
|
|
|
|
auto o = flatbuffers::Offset<TabHeaderOption>(end);
|
|
|
|
return o;
|
|
|
|
}
|
2016-03-03 14:17:48 +08:00
|
|
|
};
|
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
inline flatbuffers::Offset<TabHeaderOption> CreateTabHeaderOption(
|
2022-09-15 20:15:28 +08:00
|
|
|
flatbuffers::FlatBufferBuilder &_fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::WidgetOptions> nodeOptions = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> fontRes = 0,
|
|
|
|
int32_t fontSize = 0,
|
2016-03-03 14:17:48 +08:00
|
|
|
flatbuffers::Offset<flatbuffers::String> titleText = 0,
|
2022-09-15 20:15:28 +08:00
|
|
|
const flatbuffers::Color *textColor = nullptr,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> normalBackFile = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> pressBackFile = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> disableBackFile = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> crossNormalFile = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> 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();
|
2016-03-03 14:17:48 +08:00
|
|
|
}
|
|
|
|
|
2019-11-24 23:15:56 +08:00
|
|
|
inline flatbuffers::Offset<TabHeaderOption> CreateTabHeaderOptionDirect(
|
2022-09-15 20:15:28 +08:00
|
|
|
flatbuffers::FlatBufferBuilder &_fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::WidgetOptions> nodeOptions = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> fontRes = 0,
|
|
|
|
int32_t fontSize = 0,
|
|
|
|
const char *titleText = nullptr,
|
|
|
|
const flatbuffers::Color *textColor = nullptr,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> normalBackFile = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> pressBackFile = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> disableBackFile = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> crossNormalFile = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::ResourceData> crossDisableFile = 0) {
|
|
|
|
auto titleText__ = titleText ? _fbb.CreateString(titleText) : 0;
|
|
|
|
return flatbuffers::CreateTabHeaderOption(
|
|
|
|
_fbb,
|
|
|
|
nodeOptions,
|
|
|
|
fontRes,
|
|
|
|
fontSize,
|
|
|
|
titleText__,
|
|
|
|
textColor,
|
|
|
|
normalBackFile,
|
|
|
|
pressBackFile,
|
|
|
|
disableBackFile,
|
|
|
|
crossNormalFile,
|
|
|
|
crossDisableFile);
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
2016-03-03 14:17:48 +08:00
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
struct TabItemOption FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
|
|
|
|
typedef TabItemOptionBuilder Builder;
|
|
|
|
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
|
|
|
VT_HEADER = 4,
|
|
|
|
VT_CONTAINER = 6
|
|
|
|
};
|
|
|
|
const flatbuffers::TabHeaderOption *header() const {
|
|
|
|
return GetPointer<const flatbuffers::TabHeaderOption *>(VT_HEADER);
|
|
|
|
}
|
|
|
|
const flatbuffers::NodeTree *container() const {
|
|
|
|
return GetPointer<const flatbuffers::NodeTree *>(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();
|
|
|
|
}
|
2016-03-03 14:17:48 +08:00
|
|
|
};
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
struct TabItemOptionBuilder {
|
|
|
|
typedef TabItemOption Table;
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb_;
|
|
|
|
flatbuffers::uoffset_t start_;
|
|
|
|
void add_header(flatbuffers::Offset<flatbuffers::TabHeaderOption> header) {
|
|
|
|
fbb_.AddOffset(TabItemOption::VT_HEADER, header);
|
|
|
|
}
|
|
|
|
void add_container(flatbuffers::Offset<flatbuffers::NodeTree> container) {
|
|
|
|
fbb_.AddOffset(TabItemOption::VT_CONTAINER, container);
|
|
|
|
}
|
|
|
|
explicit TabItemOptionBuilder(flatbuffers::FlatBufferBuilder &_fbb)
|
|
|
|
: fbb_(_fbb) {
|
|
|
|
start_ = fbb_.StartTable();
|
|
|
|
}
|
|
|
|
flatbuffers::Offset<TabItemOption> Finish() {
|
|
|
|
const auto end = fbb_.EndTable(start_);
|
|
|
|
auto o = flatbuffers::Offset<TabItemOption>(end);
|
|
|
|
return o;
|
|
|
|
}
|
2016-03-03 14:17:48 +08:00
|
|
|
};
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
inline flatbuffers::Offset<TabItemOption> CreateTabItemOption(
|
|
|
|
flatbuffers::FlatBufferBuilder &_fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::TabHeaderOption> header = 0,
|
|
|
|
flatbuffers::Offset<flatbuffers::NodeTree> container = 0) {
|
|
|
|
TabItemOptionBuilder builder_(_fbb);
|
|
|
|
builder_.add_container(container);
|
|
|
|
builder_.add_header(header);
|
|
|
|
return builder_.Finish();
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
inline const flatbuffers::TabControlOption *GetTabControlOption(const void *buf) {
|
|
|
|
return flatbuffers::GetRoot<flatbuffers::TabControlOption>(buf);
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
inline const flatbuffers::TabControlOption *GetSizePrefixedTabControlOption(const void *buf) {
|
|
|
|
return flatbuffers::GetSizePrefixedRoot<flatbuffers::TabControlOption>(buf);
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
inline bool VerifyTabControlOptionBuffer(
|
|
|
|
flatbuffers::Verifier &verifier) {
|
|
|
|
return verifier.VerifyBuffer<flatbuffers::TabControlOption>(nullptr);
|
2016-03-03 14:17:48 +08:00
|
|
|
}
|
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
inline bool VerifySizePrefixedTabControlOptionBuffer(
|
|
|
|
flatbuffers::Verifier &verifier) {
|
|
|
|
return verifier.VerifySizePrefixedBuffer<flatbuffers::TabControlOption>(nullptr);
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
2016-03-03 14:17:48 +08:00
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
inline void FinishTabControlOptionBuffer(
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::TabControlOption> root) {
|
|
|
|
fbb.Finish(root);
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
2016-03-03 14:17:48 +08:00
|
|
|
|
2022-09-15 20:15:28 +08:00
|
|
|
inline void FinishSizePrefixedTabControlOptionBuffer(
|
|
|
|
flatbuffers::FlatBufferBuilder &fbb,
|
|
|
|
flatbuffers::Offset<flatbuffers::TabControlOption> root) {
|
|
|
|
fbb.FinishSizePrefixed(root);
|
2019-11-24 23:15:56 +08:00
|
|
|
}
|
2016-03-03 14:17:48 +08:00
|
|
|
|
|
|
|
} // namespace flatbuffers
|
|
|
|
|
|
|
|
#endif // FLATBUFFERS_GENERATED_CSTABCONTROL_FLATBUFFERS_H_
|