// automatically generated by the FlatBuffers compiler, do not modify #ifndef FLATBUFFERS_GENERATED_CSPARSEBINARY_FLATBUFFERS_H_ #define FLATBUFFERS_GENERATED_CSPARSEBINARY_FLATBUFFERS_H_ #include "flatbuffers/flatbuffers.h" namespace flatbuffers { struct CSParseBinary; struct NodeTree; struct Options; struct WidgetOptions; struct LayoutComponentTable; struct SingleNodeOptions; struct SpriteOptions; struct ParticleSystemOptions; struct GameMapOptions; struct ButtonOptions; struct CheckBoxOptions; struct ImageViewOptions; struct TextAtlasOptions; struct TextBMFontOptions; struct TextOptions; struct TextFieldOptions; struct LoadingBarOptions; struct SliderOptions; struct PanelOptions; struct ScrollViewOptions; struct PageViewOptions; struct ListViewOptions; struct ProjectNodeOptions; struct ComponentOptions; struct ComAudioOptions; struct AnimationInfo; struct NodeAction; struct TimeLine; struct Frame; struct PointFrame; struct ScaleFrame; struct ColorFrame; struct TextureFrame; struct EventFrame; struct IntFrame; struct BoolFrame; struct InnerActionFrame; struct EasingData; struct RotationSkew; struct Position; struct Scale; struct AnchorPoint; struct Color; struct ColorVector; struct FlatSize; struct CapInsets; struct BlendFunc; struct ResourceData; struct BlendFrame; MANUALLY_ALIGNED_STRUCT(4) RotationSkew FLATBUFFERS_FINAL_CLASS { private: float rotationSkewX_; float rotationSkewY_; public: RotationSkew() { memset(this, 0, sizeof(RotationSkew)); } RotationSkew(const RotationSkew &_o) { memcpy(this, &_o, sizeof(RotationSkew)); } RotationSkew(float _rotationSkewX, float _rotationSkewY) : rotationSkewX_(flatbuffers::EndianScalar(_rotationSkewX)), rotationSkewY_(flatbuffers::EndianScalar(_rotationSkewY)) { } float rotationSkewX() const { return flatbuffers::EndianScalar(rotationSkewX_); } float rotationSkewY() const { return flatbuffers::EndianScalar(rotationSkewY_); } }; STRUCT_END(RotationSkew, 8); MANUALLY_ALIGNED_STRUCT(4) Position FLATBUFFERS_FINAL_CLASS { private: float x_; float y_; public: Position() { memset(this, 0, sizeof(Position)); } Position(const Position &_o) { memcpy(this, &_o, sizeof(Position)); } Position(float _x, float _y) : x_(flatbuffers::EndianScalar(_x)), y_(flatbuffers::EndianScalar(_y)) { } float x() const { return flatbuffers::EndianScalar(x_); } float y() const { return flatbuffers::EndianScalar(y_); } }; STRUCT_END(Position, 8); MANUALLY_ALIGNED_STRUCT(4) Scale FLATBUFFERS_FINAL_CLASS { private: float scaleX_; float scaleY_; public: Scale() { memset(this, 0, sizeof(Scale)); } Scale(const Scale &_o) { memcpy(this, &_o, sizeof(Scale)); } Scale(float _scaleX, float _scaleY) : scaleX_(flatbuffers::EndianScalar(_scaleX)), scaleY_(flatbuffers::EndianScalar(_scaleY)) { } float scaleX() const { return flatbuffers::EndianScalar(scaleX_); } float scaleY() const { return flatbuffers::EndianScalar(scaleY_); } }; STRUCT_END(Scale, 8); MANUALLY_ALIGNED_STRUCT(4) AnchorPoint FLATBUFFERS_FINAL_CLASS { private: float scaleX_; float scaleY_; public: AnchorPoint() { memset(this, 0, sizeof(AnchorPoint)); } AnchorPoint(const AnchorPoint &_o) { memcpy(this, &_o, sizeof(AnchorPoint)); } AnchorPoint(float _scaleX, float _scaleY) : scaleX_(flatbuffers::EndianScalar(_scaleX)), scaleY_(flatbuffers::EndianScalar(_scaleY)) { } float scaleX() const { return flatbuffers::EndianScalar(scaleX_); } float scaleY() const { return flatbuffers::EndianScalar(scaleY_); } }; STRUCT_END(AnchorPoint, 8); MANUALLY_ALIGNED_STRUCT(1) Color FLATBUFFERS_FINAL_CLASS { private: uint8_t a_; uint8_t r_; uint8_t g_; uint8_t b_; public: Color() { memset(this, 0, sizeof(Color)); } Color(const Color &_o) { memcpy(this, &_o, sizeof(Color)); } Color(uint8_t _a, uint8_t _r, uint8_t _g, uint8_t _b) : a_(flatbuffers::EndianScalar(_a)), r_(flatbuffers::EndianScalar(_r)), g_(flatbuffers::EndianScalar(_g)), b_(flatbuffers::EndianScalar(_b)) { } uint8_t a() const { return flatbuffers::EndianScalar(a_); } uint8_t r() const { return flatbuffers::EndianScalar(r_); } uint8_t g() const { return flatbuffers::EndianScalar(g_); } uint8_t b() const { return flatbuffers::EndianScalar(b_); } }; STRUCT_END(Color, 4); MANUALLY_ALIGNED_STRUCT(4) ColorVector FLATBUFFERS_FINAL_CLASS { private: float vectorX_; float vectorY_; public: ColorVector() { memset(this, 0, sizeof(ColorVector)); } ColorVector(const ColorVector &_o) { memcpy(this, &_o, sizeof(ColorVector)); } ColorVector(float _vectorX, float _vectorY) : vectorX_(flatbuffers::EndianScalar(_vectorX)), vectorY_(flatbuffers::EndianScalar(_vectorY)) { } float vectorX() const { return flatbuffers::EndianScalar(vectorX_); } float vectorY() const { return flatbuffers::EndianScalar(vectorY_); } }; STRUCT_END(ColorVector, 8); MANUALLY_ALIGNED_STRUCT(4) FlatSize FLATBUFFERS_FINAL_CLASS { private: float width_; float height_; public: FlatSize() { memset(this, 0, sizeof(FlatSize)); } FlatSize(const FlatSize &_o) { memcpy(this, &_o, sizeof(FlatSize)); } FlatSize(float _width, float _height) : width_(flatbuffers::EndianScalar(_width)), height_(flatbuffers::EndianScalar(_height)) { } float width() const { return flatbuffers::EndianScalar(width_); } float height() const { return flatbuffers::EndianScalar(height_); } }; STRUCT_END(FlatSize, 8); MANUALLY_ALIGNED_STRUCT(4) CapInsets FLATBUFFERS_FINAL_CLASS { private: float x_; float y_; float width_; float height_; public: CapInsets() { memset(this, 0, sizeof(CapInsets)); } CapInsets(const CapInsets &_o) { memcpy(this, &_o, sizeof(CapInsets)); } CapInsets(float _x, float _y, float _width, float _height) : x_(flatbuffers::EndianScalar(_x)), y_(flatbuffers::EndianScalar(_y)), width_(flatbuffers::EndianScalar(_width)), height_(flatbuffers::EndianScalar(_height)) { } float x() const { return flatbuffers::EndianScalar(x_); } float y() const { return flatbuffers::EndianScalar(y_); } float width() const { return flatbuffers::EndianScalar(width_); } float height() const { return flatbuffers::EndianScalar(height_); } }; STRUCT_END(CapInsets, 16); MANUALLY_ALIGNED_STRUCT(4) BlendFunc FLATBUFFERS_FINAL_CLASS { private: int32_t src_; int32_t dst_; public: BlendFunc() { memset(this, 0, sizeof(BlendFunc)); } BlendFunc(const BlendFunc &_o) { memcpy(this, &_o, sizeof(BlendFunc)); } BlendFunc(int32_t _src, int32_t _dst) : src_(flatbuffers::EndianScalar(_src)), dst_(flatbuffers::EndianScalar(_dst)) { } int32_t src() const { return flatbuffers::EndianScalar(src_); } int32_t dst() const { return flatbuffers::EndianScalar(dst_); } }; STRUCT_END(BlendFunc, 8); struct CSParseBinary FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_VERSION = 4, VT_TEXTURES = 6, VT_TEXTUREPNGS = 8, VT_NODETREE = 10, VT_ACTION = 12, VT_ANIMATIONLIST = 14 }; const flatbuffers::String *version() const { return GetPointer(VT_VERSION); } const flatbuffers::Vector> *textures() const { return GetPointer> *>(VT_TEXTURES); } const flatbuffers::Vector> *texturePngs() const { return GetPointer> *>(VT_TEXTUREPNGS); } const NodeTree *nodeTree() const { return GetPointer(VT_NODETREE); } const NodeAction *action() const { return GetPointer(VT_ACTION); } const flatbuffers::Vector> *animationList() const { return GetPointer> *>(VT_ANIMATIONLIST); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_VERSION) && verifier.Verify(version()) && VerifyField(verifier, VT_TEXTURES) && verifier.Verify(textures()) && verifier.VerifyVectorOfStrings(textures()) && VerifyField(verifier, VT_TEXTUREPNGS) && verifier.Verify(texturePngs()) && verifier.VerifyVectorOfStrings(texturePngs()) && VerifyField(verifier, VT_NODETREE) && verifier.VerifyTable(nodeTree()) && VerifyField(verifier, VT_ACTION) && verifier.VerifyTable(action()) && VerifyField(verifier, VT_ANIMATIONLIST) && verifier.Verify(animationList()) && verifier.VerifyVectorOfTables(animationList()) && verifier.EndTable(); } }; struct CSParseBinaryBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_version(flatbuffers::Offset version) { fbb_.AddOffset(CSParseBinary::VT_VERSION, version); } void add_textures(flatbuffers::Offset>> textures) { fbb_.AddOffset(CSParseBinary::VT_TEXTURES, textures); } void add_texturePngs(flatbuffers::Offset>> texturePngs) { fbb_.AddOffset(CSParseBinary::VT_TEXTUREPNGS, texturePngs); } void add_nodeTree(flatbuffers::Offset nodeTree) { fbb_.AddOffset(CSParseBinary::VT_NODETREE, nodeTree); } void add_action(flatbuffers::Offset action) { fbb_.AddOffset(CSParseBinary::VT_ACTION, action); } void add_animationList(flatbuffers::Offset>> animationList) { fbb_.AddOffset(CSParseBinary::VT_ANIMATIONLIST, animationList); } CSParseBinaryBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } CSParseBinaryBuilder &operator=(const CSParseBinaryBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 6)); return o; } }; inline flatbuffers::Offset CreateCSParseBinary(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset version = 0, flatbuffers::Offset>> textures = 0, flatbuffers::Offset>> texturePngs = 0, flatbuffers::Offset nodeTree = 0, flatbuffers::Offset action = 0, flatbuffers::Offset>> animationList = 0) { CSParseBinaryBuilder builder_(_fbb); builder_.add_animationList(animationList); builder_.add_action(action); builder_.add_nodeTree(nodeTree); builder_.add_texturePngs(texturePngs); builder_.add_textures(textures); builder_.add_version(version); return builder_.Finish(); } inline flatbuffers::Offset CreateCSParseBinaryDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *version = nullptr, const std::vector> *textures = nullptr, const std::vector> *texturePngs = nullptr, flatbuffers::Offset nodeTree = 0, flatbuffers::Offset action = 0, const std::vector> *animationList = nullptr) { return CreateCSParseBinary(_fbb, version ? _fbb.CreateString(version) : 0, textures ? _fbb.CreateVector>(*textures) : 0, texturePngs ? _fbb.CreateVector>(*texturePngs) : 0, nodeTree, action, animationList ? _fbb.CreateVector>(*animationList) : 0); } struct NodeTree FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_CLASSNAME = 4, VT_CHILDREN = 6, VT_OPTIONS = 8, VT_CUSTOMCLASSNAME = 10 }; const flatbuffers::String *classname() const { return GetPointer(VT_CLASSNAME); } const flatbuffers::Vector> *children() const { return GetPointer> *>(VT_CHILDREN); } const Options *options() const { return GetPointer(VT_OPTIONS); } const flatbuffers::String *customClassName() const { return GetPointer(VT_CUSTOMCLASSNAME); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_CLASSNAME) && verifier.Verify(classname()) && VerifyField(verifier, VT_CHILDREN) && verifier.Verify(children()) && verifier.VerifyVectorOfTables(children()) && VerifyField(verifier, VT_OPTIONS) && verifier.VerifyTable(options()) && VerifyField(verifier, VT_CUSTOMCLASSNAME) && verifier.Verify(customClassName()) && verifier.EndTable(); } }; struct NodeTreeBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_classname(flatbuffers::Offset classname) { fbb_.AddOffset(NodeTree::VT_CLASSNAME, classname); } void add_children(flatbuffers::Offset>> children) { fbb_.AddOffset(NodeTree::VT_CHILDREN, children); } void add_options(flatbuffers::Offset options) { fbb_.AddOffset(NodeTree::VT_OPTIONS, options); } void add_customClassName(flatbuffers::Offset customClassName) { fbb_.AddOffset(NodeTree::VT_CUSTOMCLASSNAME, customClassName); } NodeTreeBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } NodeTreeBuilder &operator=(const NodeTreeBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateNodeTree(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset classname = 0, flatbuffers::Offset>> children = 0, flatbuffers::Offset options = 0, flatbuffers::Offset customClassName = 0) { NodeTreeBuilder builder_(_fbb); builder_.add_customClassName(customClassName); builder_.add_options(options); builder_.add_children(children); builder_.add_classname(classname); return builder_.Finish(); } inline flatbuffers::Offset CreateNodeTreeDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *classname = nullptr, const std::vector> *children = nullptr, flatbuffers::Offset options = 0, const char *customClassName = nullptr) { return CreateNodeTree(_fbb, classname ? _fbb.CreateString(classname) : 0, children ? _fbb.CreateVector>(*children) : 0, options, customClassName ? _fbb.CreateString(customClassName) : 0); } struct Options FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_DATA = 4 }; const WidgetOptions *data() const { return GetPointer(VT_DATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_DATA) && verifier.VerifyTable(data()) && verifier.EndTable(); } }; struct OptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_data(flatbuffers::Offset data) { fbb_.AddOffset(Options::VT_DATA, data); } OptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } OptionsBuilder &operator=(const OptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 1)); return o; } }; inline flatbuffers::Offset CreateOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset data = 0) { OptionsBuilder builder_(_fbb); builder_.add_data(data); return builder_.Finish(); } struct WidgetOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_NAME = 4, VT_ACTIONTAG = 6, VT_ROTATIONSKEW = 8, VT_ZORDER = 10, VT_VISIBLE = 12, VT_ALPHA = 14, VT_TAG = 16, VT_POSITION = 18, VT_SCALE = 20, VT_ANCHORPOINT = 22, VT_COLOR = 24, VT_SIZE = 26, VT_FLIPX = 28, VT_FLIPY = 30, VT_IGNORESIZE = 32, VT_TOUCHENABLED = 34, VT_FRAMEEVENT = 36, VT_CUSTOMPROPERTY = 38, VT_CALLBACKTYPE = 40, VT_CALLBACKNAME = 42, VT_LAYOUTCOMPONENT = 44 }; const flatbuffers::String *name() const { return GetPointer(VT_NAME); } int32_t actionTag() const { return GetField(VT_ACTIONTAG, 0); } const RotationSkew *rotationSkew() const { return GetStruct(VT_ROTATIONSKEW); } int32_t zOrder() const { return GetField(VT_ZORDER, 0); } bool visible() const { return GetField(VT_VISIBLE, 1) != 0; } uint8_t alpha() const { return GetField(VT_ALPHA, 255); } int32_t tag() const { return GetField(VT_TAG, 0); } const Position *position() const { return GetStruct(VT_POSITION); } const Scale *scale() const { return GetStruct(VT_SCALE); } const AnchorPoint *anchorPoint() const { return GetStruct(VT_ANCHORPOINT); } const Color *color() const { return GetStruct(VT_COLOR); } const FlatSize *size() const { return GetStruct(VT_SIZE); } bool flipX() const { return GetField(VT_FLIPX, 0) != 0; } bool flipY() const { return GetField(VT_FLIPY, 0) != 0; } bool ignoreSize() const { return GetField(VT_IGNORESIZE, 0) != 0; } bool touchEnabled() const { return GetField(VT_TOUCHENABLED, 0) != 0; } const flatbuffers::String *frameEvent() const { return GetPointer(VT_FRAMEEVENT); } const flatbuffers::String *customProperty() const { return GetPointer(VT_CUSTOMPROPERTY); } const flatbuffers::String *callBackType() const { return GetPointer(VT_CALLBACKTYPE); } const flatbuffers::String *callBackName() const { return GetPointer(VT_CALLBACKNAME); } const LayoutComponentTable *layoutComponent() const { return GetPointer(VT_LAYOUTCOMPONENT); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_NAME) && verifier.Verify(name()) && VerifyField(verifier, VT_ACTIONTAG) && VerifyField(verifier, VT_ROTATIONSKEW) && VerifyField(verifier, VT_ZORDER) && VerifyField(verifier, VT_VISIBLE) && VerifyField(verifier, VT_ALPHA) && VerifyField(verifier, VT_TAG) && VerifyField(verifier, VT_POSITION) && VerifyField(verifier, VT_SCALE) && VerifyField(verifier, VT_ANCHORPOINT) && VerifyField(verifier, VT_COLOR) && VerifyField(verifier, VT_SIZE) && VerifyField(verifier, VT_FLIPX) && VerifyField(verifier, VT_FLIPY) && VerifyField(verifier, VT_IGNORESIZE) && VerifyField(verifier, VT_TOUCHENABLED) && VerifyField(verifier, VT_FRAMEEVENT) && verifier.Verify(frameEvent()) && VerifyField(verifier, VT_CUSTOMPROPERTY) && verifier.Verify(customProperty()) && VerifyField(verifier, VT_CALLBACKTYPE) && verifier.Verify(callBackType()) && VerifyField(verifier, VT_CALLBACKNAME) && verifier.Verify(callBackName()) && VerifyField(verifier, VT_LAYOUTCOMPONENT) && verifier.VerifyTable(layoutComponent()) && verifier.EndTable(); } }; struct WidgetOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_name(flatbuffers::Offset name) { fbb_.AddOffset(WidgetOptions::VT_NAME, name); } void add_actionTag(int32_t actionTag) { fbb_.AddElement(WidgetOptions::VT_ACTIONTAG, actionTag, 0); } void add_rotationSkew(const RotationSkew *rotationSkew) { fbb_.AddStruct(WidgetOptions::VT_ROTATIONSKEW, rotationSkew); } void add_zOrder(int32_t zOrder) { fbb_.AddElement(WidgetOptions::VT_ZORDER, zOrder, 0); } void add_visible(bool visible) { fbb_.AddElement(WidgetOptions::VT_VISIBLE, static_cast(visible), 1); } void add_alpha(uint8_t alpha) { fbb_.AddElement(WidgetOptions::VT_ALPHA, alpha, 255); } void add_tag(int32_t tag) { fbb_.AddElement(WidgetOptions::VT_TAG, tag, 0); } void add_position(const Position *position) { fbb_.AddStruct(WidgetOptions::VT_POSITION, position); } void add_scale(const Scale *scale) { fbb_.AddStruct(WidgetOptions::VT_SCALE, scale); } void add_anchorPoint(const AnchorPoint *anchorPoint) { fbb_.AddStruct(WidgetOptions::VT_ANCHORPOINT, anchorPoint); } void add_color(const Color *color) { fbb_.AddStruct(WidgetOptions::VT_COLOR, color); } void add_size(const FlatSize *size) { fbb_.AddStruct(WidgetOptions::VT_SIZE, size); } void add_flipX(bool flipX) { fbb_.AddElement(WidgetOptions::VT_FLIPX, static_cast(flipX), 0); } void add_flipY(bool flipY) { fbb_.AddElement(WidgetOptions::VT_FLIPY, static_cast(flipY), 0); } void add_ignoreSize(bool ignoreSize) { fbb_.AddElement(WidgetOptions::VT_IGNORESIZE, static_cast(ignoreSize), 0); } void add_touchEnabled(bool touchEnabled) { fbb_.AddElement(WidgetOptions::VT_TOUCHENABLED, static_cast(touchEnabled), 0); } void add_frameEvent(flatbuffers::Offset frameEvent) { fbb_.AddOffset(WidgetOptions::VT_FRAMEEVENT, frameEvent); } void add_customProperty(flatbuffers::Offset customProperty) { fbb_.AddOffset(WidgetOptions::VT_CUSTOMPROPERTY, customProperty); } void add_callBackType(flatbuffers::Offset callBackType) { fbb_.AddOffset(WidgetOptions::VT_CALLBACKTYPE, callBackType); } void add_callBackName(flatbuffers::Offset callBackName) { fbb_.AddOffset(WidgetOptions::VT_CALLBACKNAME, callBackName); } void add_layoutComponent(flatbuffers::Offset layoutComponent) { fbb_.AddOffset(WidgetOptions::VT_LAYOUTCOMPONENT, layoutComponent); } WidgetOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } WidgetOptionsBuilder &operator=(const WidgetOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 21)); return o; } }; inline flatbuffers::Offset CreateWidgetOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset name = 0, int32_t actionTag = 0, const RotationSkew *rotationSkew = 0, int32_t zOrder = 0, bool visible = true, uint8_t alpha = 255, int32_t tag = 0, const Position *position = 0, const Scale *scale = 0, const AnchorPoint *anchorPoint = 0, const Color *color = 0, const FlatSize *size = 0, bool flipX = false, bool flipY = false, bool ignoreSize = false, bool touchEnabled = false, flatbuffers::Offset frameEvent = 0, flatbuffers::Offset customProperty = 0, flatbuffers::Offset callBackType = 0, flatbuffers::Offset callBackName = 0, flatbuffers::Offset layoutComponent = 0) { WidgetOptionsBuilder builder_(_fbb); builder_.add_layoutComponent(layoutComponent); builder_.add_callBackName(callBackName); builder_.add_callBackType(callBackType); builder_.add_customProperty(customProperty); builder_.add_frameEvent(frameEvent); builder_.add_size(size); builder_.add_color(color); builder_.add_anchorPoint(anchorPoint); builder_.add_scale(scale); builder_.add_position(position); builder_.add_tag(tag); builder_.add_zOrder(zOrder); builder_.add_rotationSkew(rotationSkew); builder_.add_actionTag(actionTag); builder_.add_name(name); builder_.add_touchEnabled(touchEnabled); builder_.add_ignoreSize(ignoreSize); builder_.add_flipY(flipY); builder_.add_flipX(flipX); builder_.add_alpha(alpha); builder_.add_visible(visible); return builder_.Finish(); } inline flatbuffers::Offset CreateWidgetOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *name = nullptr, int32_t actionTag = 0, const RotationSkew *rotationSkew = 0, int32_t zOrder = 0, bool visible = true, uint8_t alpha = 255, int32_t tag = 0, const Position *position = 0, const Scale *scale = 0, const AnchorPoint *anchorPoint = 0, const Color *color = 0, const FlatSize *size = 0, bool flipX = false, bool flipY = false, bool ignoreSize = false, bool touchEnabled = false, const char *frameEvent = nullptr, const char *customProperty = nullptr, const char *callBackType = nullptr, const char *callBackName = nullptr, flatbuffers::Offset layoutComponent = 0) { return CreateWidgetOptions(_fbb, name ? _fbb.CreateString(name) : 0, actionTag, rotationSkew, zOrder, visible, alpha, tag, position, scale, anchorPoint, color, size, flipX, flipY, ignoreSize, touchEnabled, frameEvent ? _fbb.CreateString(frameEvent) : 0, customProperty ? _fbb.CreateString(customProperty) : 0, callBackType ? _fbb.CreateString(callBackType) : 0, callBackName ? _fbb.CreateString(callBackName) : 0, layoutComponent); } struct LayoutComponentTable FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_POSITIONXPERCENTENABLED = 4, VT_POSITIONYPERCENTENABLED = 6, VT_POSITIONXPERCENT = 8, VT_POSITIONYPERCENT = 10, VT_SIZEXPERCENTENABLE = 12, VT_SIZEYPERCENTENABLE = 14, VT_SIZEXPERCENT = 16, VT_SIZEYPERCENT = 18, VT_STRETCHHORIZONTALENABLED = 20, VT_STRETCHVERTICALENABLED = 22, VT_HORIZONTALEDGE = 24, VT_VERTICALEDGE = 26, VT_LEFTMARGIN = 28, VT_RIGHTMARGIN = 30, VT_TOPMARGIN = 32, VT_BOTTOMMARGIN = 34 }; bool positionXPercentEnabled() const { return GetField(VT_POSITIONXPERCENTENABLED, 0) != 0; } bool positionYPercentEnabled() const { return GetField(VT_POSITIONYPERCENTENABLED, 0) != 0; } float positionXPercent() const { return GetField(VT_POSITIONXPERCENT, 0.0f); } float positionYPercent() const { return GetField(VT_POSITIONYPERCENT, 0.0f); } bool sizeXPercentEnable() const { return GetField(VT_SIZEXPERCENTENABLE, 0) != 0; } bool sizeYPercentEnable() const { return GetField(VT_SIZEYPERCENTENABLE, 0) != 0; } float sizeXPercent() const { return GetField(VT_SIZEXPERCENT, 0.0f); } float sizeYPercent() const { return GetField(VT_SIZEYPERCENT, 0.0f); } bool stretchHorizontalEnabled() const { return GetField(VT_STRETCHHORIZONTALENABLED, 0) != 0; } bool stretchVerticalEnabled() const { return GetField(VT_STRETCHVERTICALENABLED, 0) != 0; } const flatbuffers::String *horizontalEdge() const { return GetPointer(VT_HORIZONTALEDGE); } const flatbuffers::String *verticalEdge() const { return GetPointer(VT_VERTICALEDGE); } float leftMargin() const { return GetField(VT_LEFTMARGIN, 0.0f); } float rightMargin() const { return GetField(VT_RIGHTMARGIN, 0.0f); } float topMargin() const { return GetField(VT_TOPMARGIN, 0.0f); } float bottomMargin() const { return GetField(VT_BOTTOMMARGIN, 0.0f); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_POSITIONXPERCENTENABLED) && VerifyField(verifier, VT_POSITIONYPERCENTENABLED) && VerifyField(verifier, VT_POSITIONXPERCENT) && VerifyField(verifier, VT_POSITIONYPERCENT) && VerifyField(verifier, VT_SIZEXPERCENTENABLE) && VerifyField(verifier, VT_SIZEYPERCENTENABLE) && VerifyField(verifier, VT_SIZEXPERCENT) && VerifyField(verifier, VT_SIZEYPERCENT) && VerifyField(verifier, VT_STRETCHHORIZONTALENABLED) && VerifyField(verifier, VT_STRETCHVERTICALENABLED) && VerifyField(verifier, VT_HORIZONTALEDGE) && verifier.Verify(horizontalEdge()) && VerifyField(verifier, VT_VERTICALEDGE) && verifier.Verify(verticalEdge()) && VerifyField(verifier, VT_LEFTMARGIN) && VerifyField(verifier, VT_RIGHTMARGIN) && VerifyField(verifier, VT_TOPMARGIN) && VerifyField(verifier, VT_BOTTOMMARGIN) && verifier.EndTable(); } }; struct LayoutComponentTableBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_positionXPercentEnabled(bool positionXPercentEnabled) { fbb_.AddElement(LayoutComponentTable::VT_POSITIONXPERCENTENABLED, static_cast(positionXPercentEnabled), 0); } void add_positionYPercentEnabled(bool positionYPercentEnabled) { fbb_.AddElement(LayoutComponentTable::VT_POSITIONYPERCENTENABLED, static_cast(positionYPercentEnabled), 0); } void add_positionXPercent(float positionXPercent) { fbb_.AddElement(LayoutComponentTable::VT_POSITIONXPERCENT, positionXPercent, 0.0f); } void add_positionYPercent(float positionYPercent) { fbb_.AddElement(LayoutComponentTable::VT_POSITIONYPERCENT, positionYPercent, 0.0f); } void add_sizeXPercentEnable(bool sizeXPercentEnable) { fbb_.AddElement(LayoutComponentTable::VT_SIZEXPERCENTENABLE, static_cast(sizeXPercentEnable), 0); } void add_sizeYPercentEnable(bool sizeYPercentEnable) { fbb_.AddElement(LayoutComponentTable::VT_SIZEYPERCENTENABLE, static_cast(sizeYPercentEnable), 0); } void add_sizeXPercent(float sizeXPercent) { fbb_.AddElement(LayoutComponentTable::VT_SIZEXPERCENT, sizeXPercent, 0.0f); } void add_sizeYPercent(float sizeYPercent) { fbb_.AddElement(LayoutComponentTable::VT_SIZEYPERCENT, sizeYPercent, 0.0f); } void add_stretchHorizontalEnabled(bool stretchHorizontalEnabled) { fbb_.AddElement(LayoutComponentTable::VT_STRETCHHORIZONTALENABLED, static_cast(stretchHorizontalEnabled), 0); } void add_stretchVerticalEnabled(bool stretchVerticalEnabled) { fbb_.AddElement(LayoutComponentTable::VT_STRETCHVERTICALENABLED, static_cast(stretchVerticalEnabled), 0); } void add_horizontalEdge(flatbuffers::Offset horizontalEdge) { fbb_.AddOffset(LayoutComponentTable::VT_HORIZONTALEDGE, horizontalEdge); } void add_verticalEdge(flatbuffers::Offset verticalEdge) { fbb_.AddOffset(LayoutComponentTable::VT_VERTICALEDGE, verticalEdge); } void add_leftMargin(float leftMargin) { fbb_.AddElement(LayoutComponentTable::VT_LEFTMARGIN, leftMargin, 0.0f); } void add_rightMargin(float rightMargin) { fbb_.AddElement(LayoutComponentTable::VT_RIGHTMARGIN, rightMargin, 0.0f); } void add_topMargin(float topMargin) { fbb_.AddElement(LayoutComponentTable::VT_TOPMARGIN, topMargin, 0.0f); } void add_bottomMargin(float bottomMargin) { fbb_.AddElement(LayoutComponentTable::VT_BOTTOMMARGIN, bottomMargin, 0.0f); } LayoutComponentTableBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } LayoutComponentTableBuilder &operator=(const LayoutComponentTableBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 16)); return o; } }; inline flatbuffers::Offset CreateLayoutComponentTable(flatbuffers::FlatBufferBuilder &_fbb, bool positionXPercentEnabled = false, bool positionYPercentEnabled = false, float positionXPercent = 0.0f, float positionYPercent = 0.0f, bool sizeXPercentEnable = false, bool sizeYPercentEnable = false, float sizeXPercent = 0.0f, float sizeYPercent = 0.0f, bool stretchHorizontalEnabled = false, bool stretchVerticalEnabled = false, flatbuffers::Offset horizontalEdge = 0, flatbuffers::Offset verticalEdge = 0, float leftMargin = 0.0f, float rightMargin = 0.0f, float topMargin = 0.0f, float bottomMargin = 0.0f) { LayoutComponentTableBuilder builder_(_fbb); builder_.add_bottomMargin(bottomMargin); builder_.add_topMargin(topMargin); builder_.add_rightMargin(rightMargin); builder_.add_leftMargin(leftMargin); builder_.add_verticalEdge(verticalEdge); builder_.add_horizontalEdge(horizontalEdge); builder_.add_sizeYPercent(sizeYPercent); builder_.add_sizeXPercent(sizeXPercent); builder_.add_positionYPercent(positionYPercent); builder_.add_positionXPercent(positionXPercent); builder_.add_stretchVerticalEnabled(stretchVerticalEnabled); builder_.add_stretchHorizontalEnabled(stretchHorizontalEnabled); builder_.add_sizeYPercentEnable(sizeYPercentEnable); builder_.add_sizeXPercentEnable(sizeXPercentEnable); builder_.add_positionYPercentEnabled(positionYPercentEnabled); builder_.add_positionXPercentEnabled(positionXPercentEnabled); return builder_.Finish(); } inline flatbuffers::Offset CreateLayoutComponentTableDirect(flatbuffers::FlatBufferBuilder &_fbb, bool positionXPercentEnabled = false, bool positionYPercentEnabled = false, float positionXPercent = 0.0f, float positionYPercent = 0.0f, bool sizeXPercentEnable = false, bool sizeYPercentEnable = false, float sizeXPercent = 0.0f, float sizeYPercent = 0.0f, bool stretchHorizontalEnabled = false, bool stretchVerticalEnabled = false, const char *horizontalEdge = nullptr, const char *verticalEdge = nullptr, float leftMargin = 0.0f, float rightMargin = 0.0f, float topMargin = 0.0f, float bottomMargin = 0.0f) { return CreateLayoutComponentTable(_fbb, positionXPercentEnabled, positionYPercentEnabled, positionXPercent, positionYPercent, sizeXPercentEnable, sizeYPercentEnable, sizeXPercent, sizeYPercent, stretchHorizontalEnabled, stretchVerticalEnabled, horizontalEdge ? _fbb.CreateString(horizontalEdge) : 0, verticalEdge ? _fbb.CreateString(verticalEdge) : 0, leftMargin, rightMargin, topMargin, bottomMargin); } struct SingleNodeOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_NODEOPTIONS = 4 }; const WidgetOptions *nodeOptions() const { return GetPointer(VT_NODEOPTIONS); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_NODEOPTIONS) && verifier.VerifyTable(nodeOptions()) && verifier.EndTable(); } }; struct SingleNodeOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(SingleNodeOptions::VT_NODEOPTIONS, nodeOptions); } SingleNodeOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } SingleNodeOptionsBuilder &operator=(const SingleNodeOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 1)); return o; } }; inline flatbuffers::Offset CreateSingleNodeOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0) { SingleNodeOptionsBuilder builder_(_fbb); builder_.add_nodeOptions(nodeOptions); return builder_.Finish(); } struct SpriteOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_NODEOPTIONS = 4, VT_FILENAMEDATA = 6, VT_BLENDFUNC = 8 }; const WidgetOptions *nodeOptions() const { return GetPointer(VT_NODEOPTIONS); } const ResourceData *fileNameData() const { return GetPointer(VT_FILENAMEDATA); } const BlendFunc *blendFunc() const { return GetStruct(VT_BLENDFUNC); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_NODEOPTIONS) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, VT_FILENAMEDATA) && verifier.VerifyTable(fileNameData()) && VerifyField(verifier, VT_BLENDFUNC) && verifier.EndTable(); } }; struct SpriteOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(SpriteOptions::VT_NODEOPTIONS, nodeOptions); } void add_fileNameData(flatbuffers::Offset fileNameData) { fbb_.AddOffset(SpriteOptions::VT_FILENAMEDATA, fileNameData); } void add_blendFunc(const BlendFunc *blendFunc) { fbb_.AddStruct(SpriteOptions::VT_BLENDFUNC, blendFunc); } SpriteOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } SpriteOptionsBuilder &operator=(const SpriteOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 3)); return o; } }; inline flatbuffers::Offset CreateSpriteOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, flatbuffers::Offset fileNameData = 0, const BlendFunc *blendFunc = 0) { SpriteOptionsBuilder builder_(_fbb); builder_.add_blendFunc(blendFunc); builder_.add_fileNameData(fileNameData); builder_.add_nodeOptions(nodeOptions); return builder_.Finish(); } struct ParticleSystemOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_NODEOPTIONS = 4, VT_FILENAMEDATA = 6, VT_BLENDFUNC = 8 }; const WidgetOptions *nodeOptions() const { return GetPointer(VT_NODEOPTIONS); } const ResourceData *fileNameData() const { return GetPointer(VT_FILENAMEDATA); } const BlendFunc *blendFunc() const { return GetStruct(VT_BLENDFUNC); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_NODEOPTIONS) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, VT_FILENAMEDATA) && verifier.VerifyTable(fileNameData()) && VerifyField(verifier, VT_BLENDFUNC) && verifier.EndTable(); } }; struct ParticleSystemOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(ParticleSystemOptions::VT_NODEOPTIONS, nodeOptions); } void add_fileNameData(flatbuffers::Offset fileNameData) { fbb_.AddOffset(ParticleSystemOptions::VT_FILENAMEDATA, fileNameData); } void add_blendFunc(const BlendFunc *blendFunc) { fbb_.AddStruct(ParticleSystemOptions::VT_BLENDFUNC, blendFunc); } ParticleSystemOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ParticleSystemOptionsBuilder &operator=(const ParticleSystemOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 3)); return o; } }; inline flatbuffers::Offset CreateParticleSystemOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, flatbuffers::Offset fileNameData = 0, const BlendFunc *blendFunc = 0) { ParticleSystemOptionsBuilder builder_(_fbb); builder_.add_blendFunc(blendFunc); builder_.add_fileNameData(fileNameData); builder_.add_nodeOptions(nodeOptions); return builder_.Finish(); } struct GameMapOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_NODEOPTIONS = 4, VT_FILENAMEDATA = 6 }; const WidgetOptions *nodeOptions() const { return GetPointer(VT_NODEOPTIONS); } const ResourceData *fileNameData() const { return GetPointer(VT_FILENAMEDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_NODEOPTIONS) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, VT_FILENAMEDATA) && verifier.VerifyTable(fileNameData()) && verifier.EndTable(); } }; struct GameMapOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(GameMapOptions::VT_NODEOPTIONS, nodeOptions); } void add_fileNameData(flatbuffers::Offset fileNameData) { fbb_.AddOffset(GameMapOptions::VT_FILENAMEDATA, fileNameData); } GameMapOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } GameMapOptionsBuilder &operator=(const GameMapOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 2)); return o; } }; inline flatbuffers::Offset CreateGameMapOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, flatbuffers::Offset fileNameData = 0) { GameMapOptionsBuilder builder_(_fbb); builder_.add_fileNameData(fileNameData); builder_.add_nodeOptions(nodeOptions); return builder_.Finish(); } struct ButtonOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_NORMALDATA = 6, VT_PRESSEDDATA = 8, VT_DISABLEDDATA = 10, VT_FONTRESOURCE = 12, VT_TEXT = 14, VT_ISLOCALIZED = 16, VT_FONTNAME = 18, VT_FONTSIZE = 20, VT_TEXTCOLOR = 22, VT_CAPINSETS = 24, VT_SCALE9SIZE = 26, VT_SCALE9ENABLED = 28, VT_DISPLAYSTATE = 30, VT_OUTLINEENABLED = 32, VT_OUTLINECOLOR = 34, VT_OUTLINESIZE = 36, VT_SHADOWENABLED = 38, VT_SHADOWCOLOR = 40, VT_SHADOWOFFSETX = 42, VT_SHADOWOFFSETY = 44, VT_SHADOWBLURRADIUS = 46 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *normalData() const { return GetPointer(VT_NORMALDATA); } const ResourceData *pressedData() const { return GetPointer(VT_PRESSEDDATA); } const ResourceData *disabledData() const { return GetPointer(VT_DISABLEDDATA); } const ResourceData *fontResource() const { return GetPointer(VT_FONTRESOURCE); } const flatbuffers::String *text() const { return GetPointer(VT_TEXT); } bool isLocalized() const { return GetField(VT_ISLOCALIZED, 0) != 0; } const flatbuffers::String *fontName() const { return GetPointer(VT_FONTNAME); } int32_t fontSize() const { return GetField(VT_FONTSIZE, 0); } const Color *textColor() const { return GetStruct(VT_TEXTCOLOR); } const CapInsets *capInsets() const { return GetStruct(VT_CAPINSETS); } const FlatSize *scale9Size() const { return GetStruct(VT_SCALE9SIZE); } bool scale9Enabled() const { return GetField(VT_SCALE9ENABLED, 0) != 0; } bool displaystate() const { return GetField(VT_DISPLAYSTATE, 1) != 0; } bool outlineEnabled() const { return GetField(VT_OUTLINEENABLED, 0) != 0; } const Color *outlineColor() const { return GetStruct(VT_OUTLINECOLOR); } int32_t outlineSize() const { return GetField(VT_OUTLINESIZE, 1); } bool shadowEnabled() const { return GetField(VT_SHADOWENABLED, 0) != 0; } const Color *shadowColor() const { return GetStruct(VT_SHADOWCOLOR); } float shadowOffsetX() const { return GetField(VT_SHADOWOFFSETX, 2.0f); } float shadowOffsetY() const { return GetField(VT_SHADOWOFFSETY, -2.0f); } int32_t shadowBlurRadius() const { return GetField(VT_SHADOWBLURRADIUS, 0); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_NORMALDATA) && verifier.VerifyTable(normalData()) && VerifyField(verifier, VT_PRESSEDDATA) && verifier.VerifyTable(pressedData()) && VerifyField(verifier, VT_DISABLEDDATA) && verifier.VerifyTable(disabledData()) && VerifyField(verifier, VT_FONTRESOURCE) && verifier.VerifyTable(fontResource()) && VerifyField(verifier, VT_TEXT) && verifier.Verify(text()) && VerifyField(verifier, VT_ISLOCALIZED) && VerifyField(verifier, VT_FONTNAME) && verifier.Verify(fontName()) && VerifyField(verifier, VT_FONTSIZE) && VerifyField(verifier, VT_TEXTCOLOR) && VerifyField(verifier, VT_CAPINSETS) && VerifyField(verifier, VT_SCALE9SIZE) && VerifyField(verifier, VT_SCALE9ENABLED) && VerifyField(verifier, VT_DISPLAYSTATE) && VerifyField(verifier, VT_OUTLINEENABLED) && VerifyField(verifier, VT_OUTLINECOLOR) && VerifyField(verifier, VT_OUTLINESIZE) && VerifyField(verifier, VT_SHADOWENABLED) && VerifyField(verifier, VT_SHADOWCOLOR) && VerifyField(verifier, VT_SHADOWOFFSETX) && VerifyField(verifier, VT_SHADOWOFFSETY) && VerifyField(verifier, VT_SHADOWBLURRADIUS) && verifier.EndTable(); } }; struct ButtonOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(ButtonOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_normalData(flatbuffers::Offset normalData) { fbb_.AddOffset(ButtonOptions::VT_NORMALDATA, normalData); } void add_pressedData(flatbuffers::Offset pressedData) { fbb_.AddOffset(ButtonOptions::VT_PRESSEDDATA, pressedData); } void add_disabledData(flatbuffers::Offset disabledData) { fbb_.AddOffset(ButtonOptions::VT_DISABLEDDATA, disabledData); } void add_fontResource(flatbuffers::Offset fontResource) { fbb_.AddOffset(ButtonOptions::VT_FONTRESOURCE, fontResource); } void add_text(flatbuffers::Offset text) { fbb_.AddOffset(ButtonOptions::VT_TEXT, text); } void add_isLocalized(bool isLocalized) { fbb_.AddElement(ButtonOptions::VT_ISLOCALIZED, static_cast(isLocalized), 0); } void add_fontName(flatbuffers::Offset fontName) { fbb_.AddOffset(ButtonOptions::VT_FONTNAME, fontName); } void add_fontSize(int32_t fontSize) { fbb_.AddElement(ButtonOptions::VT_FONTSIZE, fontSize, 0); } void add_textColor(const Color *textColor) { fbb_.AddStruct(ButtonOptions::VT_TEXTCOLOR, textColor); } void add_capInsets(const CapInsets *capInsets) { fbb_.AddStruct(ButtonOptions::VT_CAPINSETS, capInsets); } void add_scale9Size(const FlatSize *scale9Size) { fbb_.AddStruct(ButtonOptions::VT_SCALE9SIZE, scale9Size); } void add_scale9Enabled(bool scale9Enabled) { fbb_.AddElement(ButtonOptions::VT_SCALE9ENABLED, static_cast(scale9Enabled), 0); } void add_displaystate(bool displaystate) { fbb_.AddElement(ButtonOptions::VT_DISPLAYSTATE, static_cast(displaystate), 1); } void add_outlineEnabled(bool outlineEnabled) { fbb_.AddElement(ButtonOptions::VT_OUTLINEENABLED, static_cast(outlineEnabled), 0); } void add_outlineColor(const Color *outlineColor) { fbb_.AddStruct(ButtonOptions::VT_OUTLINECOLOR, outlineColor); } void add_outlineSize(int32_t outlineSize) { fbb_.AddElement(ButtonOptions::VT_OUTLINESIZE, outlineSize, 1); } void add_shadowEnabled(bool shadowEnabled) { fbb_.AddElement(ButtonOptions::VT_SHADOWENABLED, static_cast(shadowEnabled), 0); } void add_shadowColor(const Color *shadowColor) { fbb_.AddStruct(ButtonOptions::VT_SHADOWCOLOR, shadowColor); } void add_shadowOffsetX(float shadowOffsetX) { fbb_.AddElement(ButtonOptions::VT_SHADOWOFFSETX, shadowOffsetX, 2.0f); } void add_shadowOffsetY(float shadowOffsetY) { fbb_.AddElement(ButtonOptions::VT_SHADOWOFFSETY, shadowOffsetY, -2.0f); } void add_shadowBlurRadius(int32_t shadowBlurRadius) { fbb_.AddElement(ButtonOptions::VT_SHADOWBLURRADIUS, shadowBlurRadius, 0); } ButtonOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ButtonOptionsBuilder &operator=(const ButtonOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 22)); return o; } }; inline flatbuffers::Offset CreateButtonOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset normalData = 0, flatbuffers::Offset pressedData = 0, flatbuffers::Offset disabledData = 0, flatbuffers::Offset fontResource = 0, flatbuffers::Offset text = 0, bool isLocalized = false, flatbuffers::Offset fontName = 0, int32_t fontSize = 0, const Color *textColor = 0, const CapInsets *capInsets = 0, const FlatSize *scale9Size = 0, bool scale9Enabled = false, bool displaystate = true, bool outlineEnabled = false, const Color *outlineColor = 0, int32_t outlineSize = 1, bool shadowEnabled = false, const Color *shadowColor = 0, float shadowOffsetX = 2.0f, float shadowOffsetY = -2.0f, int32_t shadowBlurRadius = 0) { ButtonOptionsBuilder builder_(_fbb); builder_.add_shadowBlurRadius(shadowBlurRadius); builder_.add_shadowOffsetY(shadowOffsetY); builder_.add_shadowOffsetX(shadowOffsetX); builder_.add_shadowColor(shadowColor); builder_.add_outlineSize(outlineSize); builder_.add_outlineColor(outlineColor); builder_.add_scale9Size(scale9Size); builder_.add_capInsets(capInsets); builder_.add_textColor(textColor); builder_.add_fontSize(fontSize); builder_.add_fontName(fontName); builder_.add_text(text); builder_.add_fontResource(fontResource); builder_.add_disabledData(disabledData); builder_.add_pressedData(pressedData); builder_.add_normalData(normalData); builder_.add_widgetOptions(widgetOptions); builder_.add_shadowEnabled(shadowEnabled); builder_.add_outlineEnabled(outlineEnabled); builder_.add_displaystate(displaystate); builder_.add_scale9Enabled(scale9Enabled); builder_.add_isLocalized(isLocalized); return builder_.Finish(); } inline flatbuffers::Offset CreateButtonOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset normalData = 0, flatbuffers::Offset pressedData = 0, flatbuffers::Offset disabledData = 0, flatbuffers::Offset fontResource = 0, const char *text = nullptr, bool isLocalized = false, const char *fontName = nullptr, int32_t fontSize = 0, const Color *textColor = 0, const CapInsets *capInsets = 0, const FlatSize *scale9Size = 0, bool scale9Enabled = false, bool displaystate = true, bool outlineEnabled = false, const Color *outlineColor = 0, int32_t outlineSize = 1, bool shadowEnabled = false, const Color *shadowColor = 0, float shadowOffsetX = 2.0f, float shadowOffsetY = -2.0f, int32_t shadowBlurRadius = 0) { return CreateButtonOptions(_fbb, widgetOptions, normalData, pressedData, disabledData, fontResource, text ? _fbb.CreateString(text) : 0, isLocalized, fontName ? _fbb.CreateString(fontName) : 0, fontSize, textColor, capInsets, scale9Size, scale9Enabled, displaystate, outlineEnabled, outlineColor, outlineSize, shadowEnabled, shadowColor, shadowOffsetX, shadowOffsetY, shadowBlurRadius); } struct CheckBoxOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_BACKGROUNDBOXDATA = 6, VT_BACKGROUNDBOXSELECTEDDATA = 8, VT_FRONTCROSSDATA = 10, VT_BACKGROUNDBOXDISABLEDDATA = 12, VT_FRONTCROSSDISABLEDDATA = 14, VT_SELECTEDSTATE = 16, VT_DISPLAYSTATE = 18 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *backGroundBoxData() const { return GetPointer(VT_BACKGROUNDBOXDATA); } const ResourceData *backGroundBoxSelectedData() const { return GetPointer(VT_BACKGROUNDBOXSELECTEDDATA); } const ResourceData *frontCrossData() const { return GetPointer(VT_FRONTCROSSDATA); } const ResourceData *backGroundBoxDisabledData() const { return GetPointer(VT_BACKGROUNDBOXDISABLEDDATA); } const ResourceData *frontCrossDisabledData() const { return GetPointer(VT_FRONTCROSSDISABLEDDATA); } bool selectedState() const { return GetField(VT_SELECTEDSTATE, 1) != 0; } bool displaystate() const { return GetField(VT_DISPLAYSTATE, 1) != 0; } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_BACKGROUNDBOXDATA) && verifier.VerifyTable(backGroundBoxData()) && VerifyField(verifier, VT_BACKGROUNDBOXSELECTEDDATA) && verifier.VerifyTable(backGroundBoxSelectedData()) && VerifyField(verifier, VT_FRONTCROSSDATA) && verifier.VerifyTable(frontCrossData()) && VerifyField(verifier, VT_BACKGROUNDBOXDISABLEDDATA) && verifier.VerifyTable(backGroundBoxDisabledData()) && VerifyField(verifier, VT_FRONTCROSSDISABLEDDATA) && verifier.VerifyTable(frontCrossDisabledData()) && VerifyField(verifier, VT_SELECTEDSTATE) && VerifyField(verifier, VT_DISPLAYSTATE) && verifier.EndTable(); } }; struct CheckBoxOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(CheckBoxOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_backGroundBoxData(flatbuffers::Offset backGroundBoxData) { fbb_.AddOffset(CheckBoxOptions::VT_BACKGROUNDBOXDATA, backGroundBoxData); } void add_backGroundBoxSelectedData(flatbuffers::Offset backGroundBoxSelectedData) { fbb_.AddOffset(CheckBoxOptions::VT_BACKGROUNDBOXSELECTEDDATA, backGroundBoxSelectedData); } void add_frontCrossData(flatbuffers::Offset frontCrossData) { fbb_.AddOffset(CheckBoxOptions::VT_FRONTCROSSDATA, frontCrossData); } void add_backGroundBoxDisabledData(flatbuffers::Offset backGroundBoxDisabledData) { fbb_.AddOffset(CheckBoxOptions::VT_BACKGROUNDBOXDISABLEDDATA, backGroundBoxDisabledData); } void add_frontCrossDisabledData(flatbuffers::Offset frontCrossDisabledData) { fbb_.AddOffset(CheckBoxOptions::VT_FRONTCROSSDISABLEDDATA, frontCrossDisabledData); } void add_selectedState(bool selectedState) { fbb_.AddElement(CheckBoxOptions::VT_SELECTEDSTATE, static_cast(selectedState), 1); } void add_displaystate(bool displaystate) { fbb_.AddElement(CheckBoxOptions::VT_DISPLAYSTATE, static_cast(displaystate), 1); } CheckBoxOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } CheckBoxOptionsBuilder &operator=(const CheckBoxOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 8)); return o; } }; inline flatbuffers::Offset CreateCheckBoxOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset backGroundBoxData = 0, flatbuffers::Offset backGroundBoxSelectedData = 0, flatbuffers::Offset frontCrossData = 0, flatbuffers::Offset backGroundBoxDisabledData = 0, flatbuffers::Offset frontCrossDisabledData = 0, bool selectedState = true, bool displaystate = true) { CheckBoxOptionsBuilder builder_(_fbb); builder_.add_frontCrossDisabledData(frontCrossDisabledData); builder_.add_backGroundBoxDisabledData(backGroundBoxDisabledData); builder_.add_frontCrossData(frontCrossData); builder_.add_backGroundBoxSelectedData(backGroundBoxSelectedData); builder_.add_backGroundBoxData(backGroundBoxData); builder_.add_widgetOptions(widgetOptions); builder_.add_displaystate(displaystate); builder_.add_selectedState(selectedState); return builder_.Finish(); } struct ImageViewOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_FILENAMEDATA = 6, VT_CAPINSETS = 8, VT_SCALE9SIZE = 10, VT_SCALE9ENABLED = 12 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *fileNameData() const { return GetPointer(VT_FILENAMEDATA); } const CapInsets *capInsets() const { return GetStruct(VT_CAPINSETS); } const FlatSize *scale9Size() const { return GetStruct(VT_SCALE9SIZE); } bool scale9Enabled() const { return GetField(VT_SCALE9ENABLED, 0) != 0; } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_FILENAMEDATA) && verifier.VerifyTable(fileNameData()) && VerifyField(verifier, VT_CAPINSETS) && VerifyField(verifier, VT_SCALE9SIZE) && VerifyField(verifier, VT_SCALE9ENABLED) && verifier.EndTable(); } }; struct ImageViewOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(ImageViewOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_fileNameData(flatbuffers::Offset fileNameData) { fbb_.AddOffset(ImageViewOptions::VT_FILENAMEDATA, fileNameData); } void add_capInsets(const CapInsets *capInsets) { fbb_.AddStruct(ImageViewOptions::VT_CAPINSETS, capInsets); } void add_scale9Size(const FlatSize *scale9Size) { fbb_.AddStruct(ImageViewOptions::VT_SCALE9SIZE, scale9Size); } void add_scale9Enabled(bool scale9Enabled) { fbb_.AddElement(ImageViewOptions::VT_SCALE9ENABLED, static_cast(scale9Enabled), 0); } ImageViewOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ImageViewOptionsBuilder &operator=(const ImageViewOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 5)); return o; } }; inline flatbuffers::Offset CreateImageViewOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset fileNameData = 0, const CapInsets *capInsets = 0, const FlatSize *scale9Size = 0, bool scale9Enabled = false) { ImageViewOptionsBuilder builder_(_fbb); builder_.add_scale9Size(scale9Size); builder_.add_capInsets(capInsets); builder_.add_fileNameData(fileNameData); builder_.add_widgetOptions(widgetOptions); builder_.add_scale9Enabled(scale9Enabled); return builder_.Finish(); } struct TextAtlasOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_CHARMAPFILEDATA = 6, VT_STRINGVALUE = 8, VT_STARTCHARMAP = 10, VT_ITEMWIDTH = 12, VT_ITEMHEIGHT = 14 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *charMapFileData() const { return GetPointer(VT_CHARMAPFILEDATA); } const flatbuffers::String *stringValue() const { return GetPointer(VT_STRINGVALUE); } const flatbuffers::String *startCharMap() const { return GetPointer(VT_STARTCHARMAP); } int32_t itemWidth() const { return GetField(VT_ITEMWIDTH, 0); } int32_t itemHeight() const { return GetField(VT_ITEMHEIGHT, 0); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_CHARMAPFILEDATA) && verifier.VerifyTable(charMapFileData()) && VerifyField(verifier, VT_STRINGVALUE) && verifier.Verify(stringValue()) && VerifyField(verifier, VT_STARTCHARMAP) && verifier.Verify(startCharMap()) && VerifyField(verifier, VT_ITEMWIDTH) && VerifyField(verifier, VT_ITEMHEIGHT) && verifier.EndTable(); } }; struct TextAtlasOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(TextAtlasOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_charMapFileData(flatbuffers::Offset charMapFileData) { fbb_.AddOffset(TextAtlasOptions::VT_CHARMAPFILEDATA, charMapFileData); } void add_stringValue(flatbuffers::Offset stringValue) { fbb_.AddOffset(TextAtlasOptions::VT_STRINGVALUE, stringValue); } void add_startCharMap(flatbuffers::Offset startCharMap) { fbb_.AddOffset(TextAtlasOptions::VT_STARTCHARMAP, startCharMap); } void add_itemWidth(int32_t itemWidth) { fbb_.AddElement(TextAtlasOptions::VT_ITEMWIDTH, itemWidth, 0); } void add_itemHeight(int32_t itemHeight) { fbb_.AddElement(TextAtlasOptions::VT_ITEMHEIGHT, itemHeight, 0); } TextAtlasOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TextAtlasOptionsBuilder &operator=(const TextAtlasOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 6)); return o; } }; inline flatbuffers::Offset CreateTextAtlasOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset charMapFileData = 0, flatbuffers::Offset stringValue = 0, flatbuffers::Offset startCharMap = 0, int32_t itemWidth = 0, int32_t itemHeight = 0) { TextAtlasOptionsBuilder builder_(_fbb); builder_.add_itemHeight(itemHeight); builder_.add_itemWidth(itemWidth); builder_.add_startCharMap(startCharMap); builder_.add_stringValue(stringValue); builder_.add_charMapFileData(charMapFileData); builder_.add_widgetOptions(widgetOptions); return builder_.Finish(); } inline flatbuffers::Offset CreateTextAtlasOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset charMapFileData = 0, const char *stringValue = nullptr, const char *startCharMap = nullptr, int32_t itemWidth = 0, int32_t itemHeight = 0) { return CreateTextAtlasOptions(_fbb, widgetOptions, charMapFileData, stringValue ? _fbb.CreateString(stringValue) : 0, startCharMap ? _fbb.CreateString(startCharMap) : 0, itemWidth, itemHeight); } struct TextBMFontOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_FILENAMEDATA = 6, VT_TEXT = 8, VT_ISLOCALIZED = 10 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *fileNameData() const { return GetPointer(VT_FILENAMEDATA); } const flatbuffers::String *text() const { return GetPointer(VT_TEXT); } bool isLocalized() const { return GetField(VT_ISLOCALIZED, 0) != 0; } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_FILENAMEDATA) && verifier.VerifyTable(fileNameData()) && VerifyField(verifier, VT_TEXT) && verifier.Verify(text()) && VerifyField(verifier, VT_ISLOCALIZED) && verifier.EndTable(); } }; struct TextBMFontOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(TextBMFontOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_fileNameData(flatbuffers::Offset fileNameData) { fbb_.AddOffset(TextBMFontOptions::VT_FILENAMEDATA, fileNameData); } void add_text(flatbuffers::Offset text) { fbb_.AddOffset(TextBMFontOptions::VT_TEXT, text); } void add_isLocalized(bool isLocalized) { fbb_.AddElement(TextBMFontOptions::VT_ISLOCALIZED, static_cast(isLocalized), 0); } TextBMFontOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TextBMFontOptionsBuilder &operator=(const TextBMFontOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateTextBMFontOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset fileNameData = 0, flatbuffers::Offset text = 0, bool isLocalized = false) { TextBMFontOptionsBuilder builder_(_fbb); builder_.add_text(text); builder_.add_fileNameData(fileNameData); builder_.add_widgetOptions(widgetOptions); builder_.add_isLocalized(isLocalized); return builder_.Finish(); } inline flatbuffers::Offset CreateTextBMFontOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset fileNameData = 0, const char *text = nullptr, bool isLocalized = false) { return CreateTextBMFontOptions(_fbb, widgetOptions, fileNameData, text ? _fbb.CreateString(text) : 0, isLocalized); } struct TextOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_FONTRESOURCE = 6, VT_FONTNAME = 8, VT_FONTSIZE = 10, VT_TEXT = 12, VT_ISLOCALIZED = 14, VT_AREAWIDTH = 16, VT_AREAHEIGHT = 18, VT_HALIGNMENT = 20, VT_VALIGNMENT = 22, VT_TOUCHSCALEENABLE = 24, VT_ISCUSTOMSIZE = 26, VT_OUTLINEENABLED = 28, VT_OUTLINECOLOR = 30, VT_OUTLINESIZE = 32, VT_SHADOWENABLED = 34, VT_SHADOWCOLOR = 36, VT_SHADOWOFFSETX = 38, VT_SHADOWOFFSETY = 40, VT_SHADOWBLURRADIUS = 42 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *fontResource() const { return GetPointer(VT_FONTRESOURCE); } const flatbuffers::String *fontName() const { return GetPointer(VT_FONTNAME); } int32_t fontSize() const { return GetField(VT_FONTSIZE, 0); } const flatbuffers::String *text() const { return GetPointer(VT_TEXT); } bool isLocalized() const { return GetField(VT_ISLOCALIZED, 0) != 0; } int32_t areaWidth() const { return GetField(VT_AREAWIDTH, 0); } int32_t areaHeight() const { return GetField(VT_AREAHEIGHT, 0); } int32_t hAlignment() const { return GetField(VT_HALIGNMENT, 0); } int32_t vAlignment() const { return GetField(VT_VALIGNMENT, 0); } bool touchScaleEnable() const { return GetField(VT_TOUCHSCALEENABLE, 0) != 0; } bool isCustomSize() const { return GetField(VT_ISCUSTOMSIZE, 0) != 0; } bool outlineEnabled() const { return GetField(VT_OUTLINEENABLED, 0) != 0; } const Color *outlineColor() const { return GetStruct(VT_OUTLINECOLOR); } int32_t outlineSize() const { return GetField(VT_OUTLINESIZE, 1); } bool shadowEnabled() const { return GetField(VT_SHADOWENABLED, 0) != 0; } const Color *shadowColor() const { return GetStruct(VT_SHADOWCOLOR); } float shadowOffsetX() const { return GetField(VT_SHADOWOFFSETX, 2.0f); } float shadowOffsetY() const { return GetField(VT_SHADOWOFFSETY, -2.0f); } int32_t shadowBlurRadius() const { return GetField(VT_SHADOWBLURRADIUS, 0); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_FONTRESOURCE) && verifier.VerifyTable(fontResource()) && VerifyField(verifier, VT_FONTNAME) && verifier.Verify(fontName()) && VerifyField(verifier, VT_FONTSIZE) && VerifyField(verifier, VT_TEXT) && verifier.Verify(text()) && VerifyField(verifier, VT_ISLOCALIZED) && VerifyField(verifier, VT_AREAWIDTH) && VerifyField(verifier, VT_AREAHEIGHT) && VerifyField(verifier, VT_HALIGNMENT) && VerifyField(verifier, VT_VALIGNMENT) && VerifyField(verifier, VT_TOUCHSCALEENABLE) && VerifyField(verifier, VT_ISCUSTOMSIZE) && VerifyField(verifier, VT_OUTLINEENABLED) && VerifyField(verifier, VT_OUTLINECOLOR) && VerifyField(verifier, VT_OUTLINESIZE) && VerifyField(verifier, VT_SHADOWENABLED) && VerifyField(verifier, VT_SHADOWCOLOR) && VerifyField(verifier, VT_SHADOWOFFSETX) && VerifyField(verifier, VT_SHADOWOFFSETY) && VerifyField(verifier, VT_SHADOWBLURRADIUS) && verifier.EndTable(); } }; struct TextOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(TextOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_fontResource(flatbuffers::Offset fontResource) { fbb_.AddOffset(TextOptions::VT_FONTRESOURCE, fontResource); } void add_fontName(flatbuffers::Offset fontName) { fbb_.AddOffset(TextOptions::VT_FONTNAME, fontName); } void add_fontSize(int32_t fontSize) { fbb_.AddElement(TextOptions::VT_FONTSIZE, fontSize, 0); } void add_text(flatbuffers::Offset text) { fbb_.AddOffset(TextOptions::VT_TEXT, text); } void add_isLocalized(bool isLocalized) { fbb_.AddElement(TextOptions::VT_ISLOCALIZED, static_cast(isLocalized), 0); } void add_areaWidth(int32_t areaWidth) { fbb_.AddElement(TextOptions::VT_AREAWIDTH, areaWidth, 0); } void add_areaHeight(int32_t areaHeight) { fbb_.AddElement(TextOptions::VT_AREAHEIGHT, areaHeight, 0); } void add_hAlignment(int32_t hAlignment) { fbb_.AddElement(TextOptions::VT_HALIGNMENT, hAlignment, 0); } void add_vAlignment(int32_t vAlignment) { fbb_.AddElement(TextOptions::VT_VALIGNMENT, vAlignment, 0); } void add_touchScaleEnable(bool touchScaleEnable) { fbb_.AddElement(TextOptions::VT_TOUCHSCALEENABLE, static_cast(touchScaleEnable), 0); } void add_isCustomSize(bool isCustomSize) { fbb_.AddElement(TextOptions::VT_ISCUSTOMSIZE, static_cast(isCustomSize), 0); } void add_outlineEnabled(bool outlineEnabled) { fbb_.AddElement(TextOptions::VT_OUTLINEENABLED, static_cast(outlineEnabled), 0); } void add_outlineColor(const Color *outlineColor) { fbb_.AddStruct(TextOptions::VT_OUTLINECOLOR, outlineColor); } void add_outlineSize(int32_t outlineSize) { fbb_.AddElement(TextOptions::VT_OUTLINESIZE, outlineSize, 1); } void add_shadowEnabled(bool shadowEnabled) { fbb_.AddElement(TextOptions::VT_SHADOWENABLED, static_cast(shadowEnabled), 0); } void add_shadowColor(const Color *shadowColor) { fbb_.AddStruct(TextOptions::VT_SHADOWCOLOR, shadowColor); } void add_shadowOffsetX(float shadowOffsetX) { fbb_.AddElement(TextOptions::VT_SHADOWOFFSETX, shadowOffsetX, 2.0f); } void add_shadowOffsetY(float shadowOffsetY) { fbb_.AddElement(TextOptions::VT_SHADOWOFFSETY, shadowOffsetY, -2.0f); } void add_shadowBlurRadius(int32_t shadowBlurRadius) { fbb_.AddElement(TextOptions::VT_SHADOWBLURRADIUS, shadowBlurRadius, 0); } TextOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TextOptionsBuilder &operator=(const TextOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 20)); return o; } }; inline flatbuffers::Offset CreateTextOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset fontResource = 0, flatbuffers::Offset fontName = 0, int32_t fontSize = 0, flatbuffers::Offset text = 0, bool isLocalized = false, int32_t areaWidth = 0, int32_t areaHeight = 0, int32_t hAlignment = 0, int32_t vAlignment = 0, bool touchScaleEnable = false, bool isCustomSize = false, bool outlineEnabled = false, const Color *outlineColor = 0, int32_t outlineSize = 1, bool shadowEnabled = false, const Color *shadowColor = 0, float shadowOffsetX = 2.0f, float shadowOffsetY = -2.0f, int32_t shadowBlurRadius = 0) { TextOptionsBuilder builder_(_fbb); builder_.add_shadowBlurRadius(shadowBlurRadius); builder_.add_shadowOffsetY(shadowOffsetY); builder_.add_shadowOffsetX(shadowOffsetX); builder_.add_shadowColor(shadowColor); builder_.add_outlineSize(outlineSize); builder_.add_outlineColor(outlineColor); builder_.add_vAlignment(vAlignment); builder_.add_hAlignment(hAlignment); builder_.add_areaHeight(areaHeight); builder_.add_areaWidth(areaWidth); builder_.add_text(text); builder_.add_fontSize(fontSize); builder_.add_fontName(fontName); builder_.add_fontResource(fontResource); builder_.add_widgetOptions(widgetOptions); builder_.add_shadowEnabled(shadowEnabled); builder_.add_outlineEnabled(outlineEnabled); builder_.add_isCustomSize(isCustomSize); builder_.add_touchScaleEnable(touchScaleEnable); builder_.add_isLocalized(isLocalized); return builder_.Finish(); } inline flatbuffers::Offset CreateTextOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset fontResource = 0, const char *fontName = nullptr, int32_t fontSize = 0, const char *text = nullptr, bool isLocalized = false, int32_t areaWidth = 0, int32_t areaHeight = 0, int32_t hAlignment = 0, int32_t vAlignment = 0, bool touchScaleEnable = false, bool isCustomSize = false, bool outlineEnabled = false, const Color *outlineColor = 0, int32_t outlineSize = 1, bool shadowEnabled = false, const Color *shadowColor = 0, float shadowOffsetX = 2.0f, float shadowOffsetY = -2.0f, int32_t shadowBlurRadius = 0) { return CreateTextOptions(_fbb, widgetOptions, fontResource, fontName ? _fbb.CreateString(fontName) : 0, fontSize, text ? _fbb.CreateString(text) : 0, isLocalized, areaWidth, areaHeight, hAlignment, vAlignment, touchScaleEnable, isCustomSize, outlineEnabled, outlineColor, outlineSize, shadowEnabled, shadowColor, shadowOffsetX, shadowOffsetY, shadowBlurRadius); } struct TextFieldOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_FONTRESOURCE = 6, VT_FONTNAME = 8, VT_FONTSIZE = 10, VT_TEXT = 12, VT_ISLOCALIZED = 14, VT_PLACEHOLDER = 16, VT_PASSWORDENABLED = 18, VT_PASSWORDSTYLETEXT = 20, VT_MAXLENGTHENABLED = 22, VT_MAXLENGTH = 24, VT_AREAWIDTH = 26, VT_AREAHEIGHT = 28, VT_ISCUSTOMSIZE = 30 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *fontResource() const { return GetPointer(VT_FONTRESOURCE); } const flatbuffers::String *fontName() const { return GetPointer(VT_FONTNAME); } int32_t fontSize() const { return GetField(VT_FONTSIZE, 0); } const flatbuffers::String *text() const { return GetPointer(VT_TEXT); } bool isLocalized() const { return GetField(VT_ISLOCALIZED, 0) != 0; } const flatbuffers::String *placeHolder() const { return GetPointer(VT_PLACEHOLDER); } bool passwordEnabled() const { return GetField(VT_PASSWORDENABLED, 0) != 0; } const flatbuffers::String *passwordStyleText() const { return GetPointer(VT_PASSWORDSTYLETEXT); } bool maxLengthEnabled() const { return GetField(VT_MAXLENGTHENABLED, 0) != 0; } int32_t maxLength() const { return GetField(VT_MAXLENGTH, 0); } int32_t areaWidth() const { return GetField(VT_AREAWIDTH, 0); } int32_t areaHeight() const { return GetField(VT_AREAHEIGHT, 0); } bool isCustomSize() const { return GetField(VT_ISCUSTOMSIZE, 0) != 0; } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_FONTRESOURCE) && verifier.VerifyTable(fontResource()) && VerifyField(verifier, VT_FONTNAME) && verifier.Verify(fontName()) && VerifyField(verifier, VT_FONTSIZE) && VerifyField(verifier, VT_TEXT) && verifier.Verify(text()) && VerifyField(verifier, VT_ISLOCALIZED) && VerifyField(verifier, VT_PLACEHOLDER) && verifier.Verify(placeHolder()) && VerifyField(verifier, VT_PASSWORDENABLED) && VerifyField(verifier, VT_PASSWORDSTYLETEXT) && verifier.Verify(passwordStyleText()) && VerifyField(verifier, VT_MAXLENGTHENABLED) && VerifyField(verifier, VT_MAXLENGTH) && VerifyField(verifier, VT_AREAWIDTH) && VerifyField(verifier, VT_AREAHEIGHT) && VerifyField(verifier, VT_ISCUSTOMSIZE) && verifier.EndTable(); } }; struct TextFieldOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(TextFieldOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_fontResource(flatbuffers::Offset fontResource) { fbb_.AddOffset(TextFieldOptions::VT_FONTRESOURCE, fontResource); } void add_fontName(flatbuffers::Offset fontName) { fbb_.AddOffset(TextFieldOptions::VT_FONTNAME, fontName); } void add_fontSize(int32_t fontSize) { fbb_.AddElement(TextFieldOptions::VT_FONTSIZE, fontSize, 0); } void add_text(flatbuffers::Offset text) { fbb_.AddOffset(TextFieldOptions::VT_TEXT, text); } void add_isLocalized(bool isLocalized) { fbb_.AddElement(TextFieldOptions::VT_ISLOCALIZED, static_cast(isLocalized), 0); } void add_placeHolder(flatbuffers::Offset placeHolder) { fbb_.AddOffset(TextFieldOptions::VT_PLACEHOLDER, placeHolder); } void add_passwordEnabled(bool passwordEnabled) { fbb_.AddElement(TextFieldOptions::VT_PASSWORDENABLED, static_cast(passwordEnabled), 0); } void add_passwordStyleText(flatbuffers::Offset passwordStyleText) { fbb_.AddOffset(TextFieldOptions::VT_PASSWORDSTYLETEXT, passwordStyleText); } void add_maxLengthEnabled(bool maxLengthEnabled) { fbb_.AddElement(TextFieldOptions::VT_MAXLENGTHENABLED, static_cast(maxLengthEnabled), 0); } void add_maxLength(int32_t maxLength) { fbb_.AddElement(TextFieldOptions::VT_MAXLENGTH, maxLength, 0); } void add_areaWidth(int32_t areaWidth) { fbb_.AddElement(TextFieldOptions::VT_AREAWIDTH, areaWidth, 0); } void add_areaHeight(int32_t areaHeight) { fbb_.AddElement(TextFieldOptions::VT_AREAHEIGHT, areaHeight, 0); } void add_isCustomSize(bool isCustomSize) { fbb_.AddElement(TextFieldOptions::VT_ISCUSTOMSIZE, static_cast(isCustomSize), 0); } TextFieldOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TextFieldOptionsBuilder &operator=(const TextFieldOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 14)); return o; } }; inline flatbuffers::Offset CreateTextFieldOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset fontResource = 0, flatbuffers::Offset fontName = 0, int32_t fontSize = 0, flatbuffers::Offset text = 0, bool isLocalized = false, flatbuffers::Offset placeHolder = 0, bool passwordEnabled = false, flatbuffers::Offset passwordStyleText = 0, bool maxLengthEnabled = false, int32_t maxLength = 0, int32_t areaWidth = 0, int32_t areaHeight = 0, bool isCustomSize = false) { TextFieldOptionsBuilder builder_(_fbb); builder_.add_areaHeight(areaHeight); builder_.add_areaWidth(areaWidth); builder_.add_maxLength(maxLength); builder_.add_passwordStyleText(passwordStyleText); builder_.add_placeHolder(placeHolder); builder_.add_text(text); builder_.add_fontSize(fontSize); builder_.add_fontName(fontName); builder_.add_fontResource(fontResource); builder_.add_widgetOptions(widgetOptions); builder_.add_isCustomSize(isCustomSize); builder_.add_maxLengthEnabled(maxLengthEnabled); builder_.add_passwordEnabled(passwordEnabled); builder_.add_isLocalized(isLocalized); return builder_.Finish(); } inline flatbuffers::Offset CreateTextFieldOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset fontResource = 0, const char *fontName = nullptr, int32_t fontSize = 0, const char *text = nullptr, bool isLocalized = false, const char *placeHolder = nullptr, bool passwordEnabled = false, const char *passwordStyleText = nullptr, bool maxLengthEnabled = false, int32_t maxLength = 0, int32_t areaWidth = 0, int32_t areaHeight = 0, bool isCustomSize = false) { return CreateTextFieldOptions(_fbb, widgetOptions, fontResource, fontName ? _fbb.CreateString(fontName) : 0, fontSize, text ? _fbb.CreateString(text) : 0, isLocalized, placeHolder ? _fbb.CreateString(placeHolder) : 0, passwordEnabled, passwordStyleText ? _fbb.CreateString(passwordStyleText) : 0, maxLengthEnabled, maxLength, areaWidth, areaHeight, isCustomSize); } struct LoadingBarOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_TEXTUREDATA = 6, VT_PERCENT = 8, VT_DIRECTION = 10 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *textureData() const { return GetPointer(VT_TEXTUREDATA); } int32_t percent() const { return GetField(VT_PERCENT, 80); } int32_t direction() const { return GetField(VT_DIRECTION, 0); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_TEXTUREDATA) && verifier.VerifyTable(textureData()) && VerifyField(verifier, VT_PERCENT) && VerifyField(verifier, VT_DIRECTION) && verifier.EndTable(); } }; struct LoadingBarOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(LoadingBarOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_textureData(flatbuffers::Offset textureData) { fbb_.AddOffset(LoadingBarOptions::VT_TEXTUREDATA, textureData); } void add_percent(int32_t percent) { fbb_.AddElement(LoadingBarOptions::VT_PERCENT, percent, 80); } void add_direction(int32_t direction) { fbb_.AddElement(LoadingBarOptions::VT_DIRECTION, direction, 0); } LoadingBarOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } LoadingBarOptionsBuilder &operator=(const LoadingBarOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateLoadingBarOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset textureData = 0, int32_t percent = 80, int32_t direction = 0) { LoadingBarOptionsBuilder builder_(_fbb); builder_.add_direction(direction); builder_.add_percent(percent); builder_.add_textureData(textureData); builder_.add_widgetOptions(widgetOptions); return builder_.Finish(); } struct SliderOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_BARFILENAMEDATA = 6, VT_BALLNORMALDATA = 8, VT_BALLPRESSEDDATA = 10, VT_BALLDISABLEDDATA = 12, VT_PROGRESSBARDATA = 14, VT_PERCENT = 16, VT_DISPLAYSTATE = 18 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *barFileNameData() const { return GetPointer(VT_BARFILENAMEDATA); } const ResourceData *ballNormalData() const { return GetPointer(VT_BALLNORMALDATA); } const ResourceData *ballPressedData() const { return GetPointer(VT_BALLPRESSEDDATA); } const ResourceData *ballDisabledData() const { return GetPointer(VT_BALLDISABLEDDATA); } const ResourceData *progressBarData() const { return GetPointer(VT_PROGRESSBARDATA); } int32_t percent() const { return GetField(VT_PERCENT, 50); } bool displaystate() const { return GetField(VT_DISPLAYSTATE, 1) != 0; } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_BARFILENAMEDATA) && verifier.VerifyTable(barFileNameData()) && VerifyField(verifier, VT_BALLNORMALDATA) && verifier.VerifyTable(ballNormalData()) && VerifyField(verifier, VT_BALLPRESSEDDATA) && verifier.VerifyTable(ballPressedData()) && VerifyField(verifier, VT_BALLDISABLEDDATA) && verifier.VerifyTable(ballDisabledData()) && VerifyField(verifier, VT_PROGRESSBARDATA) && verifier.VerifyTable(progressBarData()) && VerifyField(verifier, VT_PERCENT) && VerifyField(verifier, VT_DISPLAYSTATE) && verifier.EndTable(); } }; struct SliderOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(SliderOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_barFileNameData(flatbuffers::Offset barFileNameData) { fbb_.AddOffset(SliderOptions::VT_BARFILENAMEDATA, barFileNameData); } void add_ballNormalData(flatbuffers::Offset ballNormalData) { fbb_.AddOffset(SliderOptions::VT_BALLNORMALDATA, ballNormalData); } void add_ballPressedData(flatbuffers::Offset ballPressedData) { fbb_.AddOffset(SliderOptions::VT_BALLPRESSEDDATA, ballPressedData); } void add_ballDisabledData(flatbuffers::Offset ballDisabledData) { fbb_.AddOffset(SliderOptions::VT_BALLDISABLEDDATA, ballDisabledData); } void add_progressBarData(flatbuffers::Offset progressBarData) { fbb_.AddOffset(SliderOptions::VT_PROGRESSBARDATA, progressBarData); } void add_percent(int32_t percent) { fbb_.AddElement(SliderOptions::VT_PERCENT, percent, 50); } void add_displaystate(bool displaystate) { fbb_.AddElement(SliderOptions::VT_DISPLAYSTATE, static_cast(displaystate), 1); } SliderOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } SliderOptionsBuilder &operator=(const SliderOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 8)); return o; } }; inline flatbuffers::Offset CreateSliderOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset barFileNameData = 0, flatbuffers::Offset ballNormalData = 0, flatbuffers::Offset ballPressedData = 0, flatbuffers::Offset ballDisabledData = 0, flatbuffers::Offset progressBarData = 0, int32_t percent = 50, bool displaystate = true) { SliderOptionsBuilder builder_(_fbb); builder_.add_percent(percent); builder_.add_progressBarData(progressBarData); builder_.add_ballDisabledData(ballDisabledData); builder_.add_ballPressedData(ballPressedData); builder_.add_ballNormalData(ballNormalData); builder_.add_barFileNameData(barFileNameData); builder_.add_widgetOptions(widgetOptions); builder_.add_displaystate(displaystate); return builder_.Finish(); } struct PanelOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_BACKGROUNDIMAGEDATA = 6, VT_CLIPENABLED = 8, VT_BGCOLOR = 10, VT_BGSTARTCOLOR = 12, VT_BGENDCOLOR = 14, VT_COLORTYPE = 16, VT_BGCOLOROPACITY = 18, VT_COLORVECTOR = 20, VT_CAPINSETS = 22, VT_SCALE9SIZE = 24, VT_BACKGROUNDSCALE9ENABLED = 26 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *backGroundImageData() const { return GetPointer(VT_BACKGROUNDIMAGEDATA); } bool clipEnabled() const { return GetField(VT_CLIPENABLED, 0) != 0; } const Color *bgColor() const { return GetStruct(VT_BGCOLOR); } const Color *bgStartColor() const { return GetStruct(VT_BGSTARTCOLOR); } const Color *bgEndColor() const { return GetStruct(VT_BGENDCOLOR); } int32_t colorType() const { return GetField(VT_COLORTYPE, 0); } uint8_t bgColorOpacity() const { return GetField(VT_BGCOLOROPACITY, 255); } const ColorVector *colorVector() const { return GetStruct(VT_COLORVECTOR); } const CapInsets *capInsets() const { return GetStruct(VT_CAPINSETS); } const FlatSize *scale9Size() const { return GetStruct(VT_SCALE9SIZE); } bool backGroundScale9Enabled() const { return GetField(VT_BACKGROUNDSCALE9ENABLED, 0) != 0; } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_BACKGROUNDIMAGEDATA) && verifier.VerifyTable(backGroundImageData()) && VerifyField(verifier, VT_CLIPENABLED) && VerifyField(verifier, VT_BGCOLOR) && VerifyField(verifier, VT_BGSTARTCOLOR) && VerifyField(verifier, VT_BGENDCOLOR) && VerifyField(verifier, VT_COLORTYPE) && VerifyField(verifier, VT_BGCOLOROPACITY) && VerifyField(verifier, VT_COLORVECTOR) && VerifyField(verifier, VT_CAPINSETS) && VerifyField(verifier, VT_SCALE9SIZE) && VerifyField(verifier, VT_BACKGROUNDSCALE9ENABLED) && verifier.EndTable(); } }; struct PanelOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(PanelOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_backGroundImageData(flatbuffers::Offset backGroundImageData) { fbb_.AddOffset(PanelOptions::VT_BACKGROUNDIMAGEDATA, backGroundImageData); } void add_clipEnabled(bool clipEnabled) { fbb_.AddElement(PanelOptions::VT_CLIPENABLED, static_cast(clipEnabled), 0); } void add_bgColor(const Color *bgColor) { fbb_.AddStruct(PanelOptions::VT_BGCOLOR, bgColor); } void add_bgStartColor(const Color *bgStartColor) { fbb_.AddStruct(PanelOptions::VT_BGSTARTCOLOR, bgStartColor); } void add_bgEndColor(const Color *bgEndColor) { fbb_.AddStruct(PanelOptions::VT_BGENDCOLOR, bgEndColor); } void add_colorType(int32_t colorType) { fbb_.AddElement(PanelOptions::VT_COLORTYPE, colorType, 0); } void add_bgColorOpacity(uint8_t bgColorOpacity) { fbb_.AddElement(PanelOptions::VT_BGCOLOROPACITY, bgColorOpacity, 255); } void add_colorVector(const ColorVector *colorVector) { fbb_.AddStruct(PanelOptions::VT_COLORVECTOR, colorVector); } void add_capInsets(const CapInsets *capInsets) { fbb_.AddStruct(PanelOptions::VT_CAPINSETS, capInsets); } void add_scale9Size(const FlatSize *scale9Size) { fbb_.AddStruct(PanelOptions::VT_SCALE9SIZE, scale9Size); } void add_backGroundScale9Enabled(bool backGroundScale9Enabled) { fbb_.AddElement(PanelOptions::VT_BACKGROUNDSCALE9ENABLED, static_cast(backGroundScale9Enabled), 0); } PanelOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } PanelOptionsBuilder &operator=(const PanelOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 12)); return o; } }; inline flatbuffers::Offset CreatePanelOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset backGroundImageData = 0, bool clipEnabled = false, const Color *bgColor = 0, const Color *bgStartColor = 0, const Color *bgEndColor = 0, int32_t colorType = 0, uint8_t bgColorOpacity = 255, const ColorVector *colorVector = 0, const CapInsets *capInsets = 0, const FlatSize *scale9Size = 0, bool backGroundScale9Enabled = false) { PanelOptionsBuilder builder_(_fbb); builder_.add_scale9Size(scale9Size); builder_.add_capInsets(capInsets); builder_.add_colorVector(colorVector); builder_.add_colorType(colorType); builder_.add_bgEndColor(bgEndColor); builder_.add_bgStartColor(bgStartColor); builder_.add_bgColor(bgColor); builder_.add_backGroundImageData(backGroundImageData); builder_.add_widgetOptions(widgetOptions); builder_.add_backGroundScale9Enabled(backGroundScale9Enabled); builder_.add_bgColorOpacity(bgColorOpacity); builder_.add_clipEnabled(clipEnabled); return builder_.Finish(); } struct ScrollViewOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_BACKGROUNDIMAGEDATA = 6, VT_CLIPENABLED = 8, VT_BGCOLOR = 10, VT_BGSTARTCOLOR = 12, VT_BGENDCOLOR = 14, VT_COLORTYPE = 16, VT_BGCOLOROPACITY = 18, VT_COLORVECTOR = 20, VT_CAPINSETS = 22, VT_SCALE9SIZE = 24, VT_BACKGROUNDSCALE9ENABLED = 26, VT_INNERSIZE = 28, VT_DIRECTION = 30, VT_BOUNCEENABLED = 32, VT_SCROLLBARENABELD = 34, VT_SCROLLBARAUTOHIDE = 36, VT_SCROLLBARAUTOHIDETIME = 38 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *backGroundImageData() const { return GetPointer(VT_BACKGROUNDIMAGEDATA); } bool clipEnabled() const { return GetField(VT_CLIPENABLED, 0) != 0; } const Color *bgColor() const { return GetStruct(VT_BGCOLOR); } const Color *bgStartColor() const { return GetStruct(VT_BGSTARTCOLOR); } const Color *bgEndColor() const { return GetStruct(VT_BGENDCOLOR); } int32_t colorType() const { return GetField(VT_COLORTYPE, 0); } uint8_t bgColorOpacity() const { return GetField(VT_BGCOLOROPACITY, 255); } const ColorVector *colorVector() const { return GetStruct(VT_COLORVECTOR); } const CapInsets *capInsets() const { return GetStruct(VT_CAPINSETS); } const FlatSize *scale9Size() const { return GetStruct(VT_SCALE9SIZE); } bool backGroundScale9Enabled() const { return GetField(VT_BACKGROUNDSCALE9ENABLED, 0) != 0; } const FlatSize *innerSize() const { return GetStruct(VT_INNERSIZE); } int32_t direction() const { return GetField(VT_DIRECTION, 0); } bool bounceEnabled() const { return GetField(VT_BOUNCEENABLED, 0) != 0; } bool scrollbarEnabeld() const { return GetField(VT_SCROLLBARENABELD, 1) != 0; } bool scrollbarAutoHide() const { return GetField(VT_SCROLLBARAUTOHIDE, 1) != 0; } float scrollbarAutoHideTime() const { return GetField(VT_SCROLLBARAUTOHIDETIME, 0.2f); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_BACKGROUNDIMAGEDATA) && verifier.VerifyTable(backGroundImageData()) && VerifyField(verifier, VT_CLIPENABLED) && VerifyField(verifier, VT_BGCOLOR) && VerifyField(verifier, VT_BGSTARTCOLOR) && VerifyField(verifier, VT_BGENDCOLOR) && VerifyField(verifier, VT_COLORTYPE) && VerifyField(verifier, VT_BGCOLOROPACITY) && VerifyField(verifier, VT_COLORVECTOR) && VerifyField(verifier, VT_CAPINSETS) && VerifyField(verifier, VT_SCALE9SIZE) && VerifyField(verifier, VT_BACKGROUNDSCALE9ENABLED) && VerifyField(verifier, VT_INNERSIZE) && VerifyField(verifier, VT_DIRECTION) && VerifyField(verifier, VT_BOUNCEENABLED) && VerifyField(verifier, VT_SCROLLBARENABELD) && VerifyField(verifier, VT_SCROLLBARAUTOHIDE) && VerifyField(verifier, VT_SCROLLBARAUTOHIDETIME) && verifier.EndTable(); } }; struct ScrollViewOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(ScrollViewOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_backGroundImageData(flatbuffers::Offset backGroundImageData) { fbb_.AddOffset(ScrollViewOptions::VT_BACKGROUNDIMAGEDATA, backGroundImageData); } void add_clipEnabled(bool clipEnabled) { fbb_.AddElement(ScrollViewOptions::VT_CLIPENABLED, static_cast(clipEnabled), 0); } void add_bgColor(const Color *bgColor) { fbb_.AddStruct(ScrollViewOptions::VT_BGCOLOR, bgColor); } void add_bgStartColor(const Color *bgStartColor) { fbb_.AddStruct(ScrollViewOptions::VT_BGSTARTCOLOR, bgStartColor); } void add_bgEndColor(const Color *bgEndColor) { fbb_.AddStruct(ScrollViewOptions::VT_BGENDCOLOR, bgEndColor); } void add_colorType(int32_t colorType) { fbb_.AddElement(ScrollViewOptions::VT_COLORTYPE, colorType, 0); } void add_bgColorOpacity(uint8_t bgColorOpacity) { fbb_.AddElement(ScrollViewOptions::VT_BGCOLOROPACITY, bgColorOpacity, 255); } void add_colorVector(const ColorVector *colorVector) { fbb_.AddStruct(ScrollViewOptions::VT_COLORVECTOR, colorVector); } void add_capInsets(const CapInsets *capInsets) { fbb_.AddStruct(ScrollViewOptions::VT_CAPINSETS, capInsets); } void add_scale9Size(const FlatSize *scale9Size) { fbb_.AddStruct(ScrollViewOptions::VT_SCALE9SIZE, scale9Size); } void add_backGroundScale9Enabled(bool backGroundScale9Enabled) { fbb_.AddElement(ScrollViewOptions::VT_BACKGROUNDSCALE9ENABLED, static_cast(backGroundScale9Enabled), 0); } void add_innerSize(const FlatSize *innerSize) { fbb_.AddStruct(ScrollViewOptions::VT_INNERSIZE, innerSize); } void add_direction(int32_t direction) { fbb_.AddElement(ScrollViewOptions::VT_DIRECTION, direction, 0); } void add_bounceEnabled(bool bounceEnabled) { fbb_.AddElement(ScrollViewOptions::VT_BOUNCEENABLED, static_cast(bounceEnabled), 0); } void add_scrollbarEnabeld(bool scrollbarEnabeld) { fbb_.AddElement(ScrollViewOptions::VT_SCROLLBARENABELD, static_cast(scrollbarEnabeld), 1); } void add_scrollbarAutoHide(bool scrollbarAutoHide) { fbb_.AddElement(ScrollViewOptions::VT_SCROLLBARAUTOHIDE, static_cast(scrollbarAutoHide), 1); } void add_scrollbarAutoHideTime(float scrollbarAutoHideTime) { fbb_.AddElement(ScrollViewOptions::VT_SCROLLBARAUTOHIDETIME, scrollbarAutoHideTime, 0.2f); } ScrollViewOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ScrollViewOptionsBuilder &operator=(const ScrollViewOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 18)); return o; } }; inline flatbuffers::Offset CreateScrollViewOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset backGroundImageData = 0, bool clipEnabled = false, const Color *bgColor = 0, const Color *bgStartColor = 0, const Color *bgEndColor = 0, int32_t colorType = 0, uint8_t bgColorOpacity = 255, const ColorVector *colorVector = 0, const CapInsets *capInsets = 0, const FlatSize *scale9Size = 0, bool backGroundScale9Enabled = false, const FlatSize *innerSize = 0, int32_t direction = 0, bool bounceEnabled = false, bool scrollbarEnabeld = true, bool scrollbarAutoHide = true, float scrollbarAutoHideTime = 0.2f) { ScrollViewOptionsBuilder builder_(_fbb); builder_.add_scrollbarAutoHideTime(scrollbarAutoHideTime); builder_.add_direction(direction); builder_.add_innerSize(innerSize); builder_.add_scale9Size(scale9Size); builder_.add_capInsets(capInsets); builder_.add_colorVector(colorVector); builder_.add_colorType(colorType); builder_.add_bgEndColor(bgEndColor); builder_.add_bgStartColor(bgStartColor); builder_.add_bgColor(bgColor); builder_.add_backGroundImageData(backGroundImageData); builder_.add_widgetOptions(widgetOptions); builder_.add_scrollbarAutoHide(scrollbarAutoHide); builder_.add_scrollbarEnabeld(scrollbarEnabeld); builder_.add_bounceEnabled(bounceEnabled); builder_.add_backGroundScale9Enabled(backGroundScale9Enabled); builder_.add_bgColorOpacity(bgColorOpacity); builder_.add_clipEnabled(clipEnabled); return builder_.Finish(); } struct PageViewOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_BACKGROUNDIMAGEDATA = 6, VT_CLIPENABLED = 8, VT_BGCOLOR = 10, VT_BGSTARTCOLOR = 12, VT_BGENDCOLOR = 14, VT_COLORTYPE = 16, VT_BGCOLOROPACITY = 18, VT_COLORVECTOR = 20, VT_CAPINSETS = 22, VT_SCALE9SIZE = 24, VT_BACKGROUNDSCALE9ENABLED = 26 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *backGroundImageData() const { return GetPointer(VT_BACKGROUNDIMAGEDATA); } bool clipEnabled() const { return GetField(VT_CLIPENABLED, 0) != 0; } const Color *bgColor() const { return GetStruct(VT_BGCOLOR); } const Color *bgStartColor() const { return GetStruct(VT_BGSTARTCOLOR); } const Color *bgEndColor() const { return GetStruct(VT_BGENDCOLOR); } int32_t colorType() const { return GetField(VT_COLORTYPE, 0); } uint8_t bgColorOpacity() const { return GetField(VT_BGCOLOROPACITY, 255); } const ColorVector *colorVector() const { return GetStruct(VT_COLORVECTOR); } const CapInsets *capInsets() const { return GetStruct(VT_CAPINSETS); } const FlatSize *scale9Size() const { return GetStruct(VT_SCALE9SIZE); } bool backGroundScale9Enabled() const { return GetField(VT_BACKGROUNDSCALE9ENABLED, 0) != 0; } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_BACKGROUNDIMAGEDATA) && verifier.VerifyTable(backGroundImageData()) && VerifyField(verifier, VT_CLIPENABLED) && VerifyField(verifier, VT_BGCOLOR) && VerifyField(verifier, VT_BGSTARTCOLOR) && VerifyField(verifier, VT_BGENDCOLOR) && VerifyField(verifier, VT_COLORTYPE) && VerifyField(verifier, VT_BGCOLOROPACITY) && VerifyField(verifier, VT_COLORVECTOR) && VerifyField(verifier, VT_CAPINSETS) && VerifyField(verifier, VT_SCALE9SIZE) && VerifyField(verifier, VT_BACKGROUNDSCALE9ENABLED) && verifier.EndTable(); } }; struct PageViewOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(PageViewOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_backGroundImageData(flatbuffers::Offset backGroundImageData) { fbb_.AddOffset(PageViewOptions::VT_BACKGROUNDIMAGEDATA, backGroundImageData); } void add_clipEnabled(bool clipEnabled) { fbb_.AddElement(PageViewOptions::VT_CLIPENABLED, static_cast(clipEnabled), 0); } void add_bgColor(const Color *bgColor) { fbb_.AddStruct(PageViewOptions::VT_BGCOLOR, bgColor); } void add_bgStartColor(const Color *bgStartColor) { fbb_.AddStruct(PageViewOptions::VT_BGSTARTCOLOR, bgStartColor); } void add_bgEndColor(const Color *bgEndColor) { fbb_.AddStruct(PageViewOptions::VT_BGENDCOLOR, bgEndColor); } void add_colorType(int32_t colorType) { fbb_.AddElement(PageViewOptions::VT_COLORTYPE, colorType, 0); } void add_bgColorOpacity(uint8_t bgColorOpacity) { fbb_.AddElement(PageViewOptions::VT_BGCOLOROPACITY, bgColorOpacity, 255); } void add_colorVector(const ColorVector *colorVector) { fbb_.AddStruct(PageViewOptions::VT_COLORVECTOR, colorVector); } void add_capInsets(const CapInsets *capInsets) { fbb_.AddStruct(PageViewOptions::VT_CAPINSETS, capInsets); } void add_scale9Size(const FlatSize *scale9Size) { fbb_.AddStruct(PageViewOptions::VT_SCALE9SIZE, scale9Size); } void add_backGroundScale9Enabled(bool backGroundScale9Enabled) { fbb_.AddElement(PageViewOptions::VT_BACKGROUNDSCALE9ENABLED, static_cast(backGroundScale9Enabled), 0); } PageViewOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } PageViewOptionsBuilder &operator=(const PageViewOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 12)); return o; } }; inline flatbuffers::Offset CreatePageViewOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset backGroundImageData = 0, bool clipEnabled = false, const Color *bgColor = 0, const Color *bgStartColor = 0, const Color *bgEndColor = 0, int32_t colorType = 0, uint8_t bgColorOpacity = 255, const ColorVector *colorVector = 0, const CapInsets *capInsets = 0, const FlatSize *scale9Size = 0, bool backGroundScale9Enabled = false) { PageViewOptionsBuilder builder_(_fbb); builder_.add_scale9Size(scale9Size); builder_.add_capInsets(capInsets); builder_.add_colorVector(colorVector); builder_.add_colorType(colorType); builder_.add_bgEndColor(bgEndColor); builder_.add_bgStartColor(bgStartColor); builder_.add_bgColor(bgColor); builder_.add_backGroundImageData(backGroundImageData); builder_.add_widgetOptions(widgetOptions); builder_.add_backGroundScale9Enabled(backGroundScale9Enabled); builder_.add_bgColorOpacity(bgColorOpacity); builder_.add_clipEnabled(clipEnabled); return builder_.Finish(); } struct ListViewOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_WIDGETOPTIONS = 4, VT_BACKGROUNDIMAGEDATA = 6, VT_CLIPENABLED = 8, VT_BGCOLOR = 10, VT_BGSTARTCOLOR = 12, VT_BGENDCOLOR = 14, VT_COLORTYPE = 16, VT_BGCOLOROPACITY = 18, VT_COLORVECTOR = 20, VT_CAPINSETS = 22, VT_SCALE9SIZE = 24, VT_BACKGROUNDSCALE9ENABLED = 26, VT_INNERSIZE = 28, VT_DIRECTION = 30, VT_BOUNCEENABLED = 32, VT_ITEMMARGIN = 34, VT_DIRECTIONTYPE = 36, VT_HORIZONTALTYPE = 38, VT_VERTICALTYPE = 40 }; const WidgetOptions *widgetOptions() const { return GetPointer(VT_WIDGETOPTIONS); } const ResourceData *backGroundImageData() const { return GetPointer(VT_BACKGROUNDIMAGEDATA); } bool clipEnabled() const { return GetField(VT_CLIPENABLED, 0) != 0; } const Color *bgColor() const { return GetStruct(VT_BGCOLOR); } const Color *bgStartColor() const { return GetStruct(VT_BGSTARTCOLOR); } const Color *bgEndColor() const { return GetStruct(VT_BGENDCOLOR); } int32_t colorType() const { return GetField(VT_COLORTYPE, 0); } uint8_t bgColorOpacity() const { return GetField(VT_BGCOLOROPACITY, 255); } const ColorVector *colorVector() const { return GetStruct(VT_COLORVECTOR); } const CapInsets *capInsets() const { return GetStruct(VT_CAPINSETS); } const FlatSize *scale9Size() const { return GetStruct(VT_SCALE9SIZE); } bool backGroundScale9Enabled() const { return GetField(VT_BACKGROUNDSCALE9ENABLED, 0) != 0; } const FlatSize *innerSize() const { return GetStruct(VT_INNERSIZE); } int32_t direction() const { return GetField(VT_DIRECTION, 0); } bool bounceEnabled() const { return GetField(VT_BOUNCEENABLED, 0) != 0; } int32_t itemMargin() const { return GetField(VT_ITEMMARGIN, 0); } const flatbuffers::String *directionType() const { return GetPointer(VT_DIRECTIONTYPE); } const flatbuffers::String *horizontalType() const { return GetPointer(VT_HORIZONTALTYPE); } const flatbuffers::String *verticalType() const { return GetPointer(VT_VERTICALTYPE); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_WIDGETOPTIONS) && verifier.VerifyTable(widgetOptions()) && VerifyField(verifier, VT_BACKGROUNDIMAGEDATA) && verifier.VerifyTable(backGroundImageData()) && VerifyField(verifier, VT_CLIPENABLED) && VerifyField(verifier, VT_BGCOLOR) && VerifyField(verifier, VT_BGSTARTCOLOR) && VerifyField(verifier, VT_BGENDCOLOR) && VerifyField(verifier, VT_COLORTYPE) && VerifyField(verifier, VT_BGCOLOROPACITY) && VerifyField(verifier, VT_COLORVECTOR) && VerifyField(verifier, VT_CAPINSETS) && VerifyField(verifier, VT_SCALE9SIZE) && VerifyField(verifier, VT_BACKGROUNDSCALE9ENABLED) && VerifyField(verifier, VT_INNERSIZE) && VerifyField(verifier, VT_DIRECTION) && VerifyField(verifier, VT_BOUNCEENABLED) && VerifyField(verifier, VT_ITEMMARGIN) && VerifyField(verifier, VT_DIRECTIONTYPE) && verifier.Verify(directionType()) && VerifyField(verifier, VT_HORIZONTALTYPE) && verifier.Verify(horizontalType()) && VerifyField(verifier, VT_VERTICALTYPE) && verifier.Verify(verticalType()) && verifier.EndTable(); } }; struct ListViewOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_widgetOptions(flatbuffers::Offset widgetOptions) { fbb_.AddOffset(ListViewOptions::VT_WIDGETOPTIONS, widgetOptions); } void add_backGroundImageData(flatbuffers::Offset backGroundImageData) { fbb_.AddOffset(ListViewOptions::VT_BACKGROUNDIMAGEDATA, backGroundImageData); } void add_clipEnabled(bool clipEnabled) { fbb_.AddElement(ListViewOptions::VT_CLIPENABLED, static_cast(clipEnabled), 0); } void add_bgColor(const Color *bgColor) { fbb_.AddStruct(ListViewOptions::VT_BGCOLOR, bgColor); } void add_bgStartColor(const Color *bgStartColor) { fbb_.AddStruct(ListViewOptions::VT_BGSTARTCOLOR, bgStartColor); } void add_bgEndColor(const Color *bgEndColor) { fbb_.AddStruct(ListViewOptions::VT_BGENDCOLOR, bgEndColor); } void add_colorType(int32_t colorType) { fbb_.AddElement(ListViewOptions::VT_COLORTYPE, colorType, 0); } void add_bgColorOpacity(uint8_t bgColorOpacity) { fbb_.AddElement(ListViewOptions::VT_BGCOLOROPACITY, bgColorOpacity, 255); } void add_colorVector(const ColorVector *colorVector) { fbb_.AddStruct(ListViewOptions::VT_COLORVECTOR, colorVector); } void add_capInsets(const CapInsets *capInsets) { fbb_.AddStruct(ListViewOptions::VT_CAPINSETS, capInsets); } void add_scale9Size(const FlatSize *scale9Size) { fbb_.AddStruct(ListViewOptions::VT_SCALE9SIZE, scale9Size); } void add_backGroundScale9Enabled(bool backGroundScale9Enabled) { fbb_.AddElement(ListViewOptions::VT_BACKGROUNDSCALE9ENABLED, static_cast(backGroundScale9Enabled), 0); } void add_innerSize(const FlatSize *innerSize) { fbb_.AddStruct(ListViewOptions::VT_INNERSIZE, innerSize); } void add_direction(int32_t direction) { fbb_.AddElement(ListViewOptions::VT_DIRECTION, direction, 0); } void add_bounceEnabled(bool bounceEnabled) { fbb_.AddElement(ListViewOptions::VT_BOUNCEENABLED, static_cast(bounceEnabled), 0); } void add_itemMargin(int32_t itemMargin) { fbb_.AddElement(ListViewOptions::VT_ITEMMARGIN, itemMargin, 0); } void add_directionType(flatbuffers::Offset directionType) { fbb_.AddOffset(ListViewOptions::VT_DIRECTIONTYPE, directionType); } void add_horizontalType(flatbuffers::Offset horizontalType) { fbb_.AddOffset(ListViewOptions::VT_HORIZONTALTYPE, horizontalType); } void add_verticalType(flatbuffers::Offset verticalType) { fbb_.AddOffset(ListViewOptions::VT_VERTICALTYPE, verticalType); } ListViewOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ListViewOptionsBuilder &operator=(const ListViewOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 19)); return o; } }; inline flatbuffers::Offset CreateListViewOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset backGroundImageData = 0, bool clipEnabled = false, const Color *bgColor = 0, const Color *bgStartColor = 0, const Color *bgEndColor = 0, int32_t colorType = 0, uint8_t bgColorOpacity = 255, const ColorVector *colorVector = 0, const CapInsets *capInsets = 0, const FlatSize *scale9Size = 0, bool backGroundScale9Enabled = false, const FlatSize *innerSize = 0, int32_t direction = 0, bool bounceEnabled = false, int32_t itemMargin = 0, flatbuffers::Offset directionType = 0, flatbuffers::Offset horizontalType = 0, flatbuffers::Offset verticalType = 0) { ListViewOptionsBuilder builder_(_fbb); builder_.add_verticalType(verticalType); builder_.add_horizontalType(horizontalType); builder_.add_directionType(directionType); builder_.add_itemMargin(itemMargin); builder_.add_direction(direction); builder_.add_innerSize(innerSize); builder_.add_scale9Size(scale9Size); builder_.add_capInsets(capInsets); builder_.add_colorVector(colorVector); builder_.add_colorType(colorType); builder_.add_bgEndColor(bgEndColor); builder_.add_bgStartColor(bgStartColor); builder_.add_bgColor(bgColor); builder_.add_backGroundImageData(backGroundImageData); builder_.add_widgetOptions(widgetOptions); builder_.add_bounceEnabled(bounceEnabled); builder_.add_backGroundScale9Enabled(backGroundScale9Enabled); builder_.add_bgColorOpacity(bgColorOpacity); builder_.add_clipEnabled(clipEnabled); return builder_.Finish(); } inline flatbuffers::Offset CreateListViewOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset widgetOptions = 0, flatbuffers::Offset backGroundImageData = 0, bool clipEnabled = false, const Color *bgColor = 0, const Color *bgStartColor = 0, const Color *bgEndColor = 0, int32_t colorType = 0, uint8_t bgColorOpacity = 255, const ColorVector *colorVector = 0, const CapInsets *capInsets = 0, const FlatSize *scale9Size = 0, bool backGroundScale9Enabled = false, const FlatSize *innerSize = 0, int32_t direction = 0, bool bounceEnabled = false, int32_t itemMargin = 0, const char *directionType = nullptr, const char *horizontalType = nullptr, const char *verticalType = nullptr) { return CreateListViewOptions(_fbb, widgetOptions, backGroundImageData, clipEnabled, bgColor, bgStartColor, bgEndColor, colorType, bgColorOpacity, colorVector, capInsets, scale9Size, backGroundScale9Enabled, innerSize, direction, bounceEnabled, itemMargin, directionType ? _fbb.CreateString(directionType) : 0, horizontalType ? _fbb.CreateString(horizontalType) : 0, verticalType ? _fbb.CreateString(verticalType) : 0); } struct ProjectNodeOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_NODEOPTIONS = 4, VT_FILENAME = 6, VT_INNERACTIONSPEED = 8 }; const WidgetOptions *nodeOptions() const { return GetPointer(VT_NODEOPTIONS); } const flatbuffers::String *fileName() const { return GetPointer(VT_FILENAME); } float innerActionSpeed() const { return GetField(VT_INNERACTIONSPEED, 0.0f); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_NODEOPTIONS) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, VT_FILENAME) && verifier.Verify(fileName()) && VerifyField(verifier, VT_INNERACTIONSPEED) && verifier.EndTable(); } }; struct ProjectNodeOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(ProjectNodeOptions::VT_NODEOPTIONS, nodeOptions); } void add_fileName(flatbuffers::Offset fileName) { fbb_.AddOffset(ProjectNodeOptions::VT_FILENAME, fileName); } void add_innerActionSpeed(float innerActionSpeed) { fbb_.AddElement(ProjectNodeOptions::VT_INNERACTIONSPEED, innerActionSpeed, 0.0f); } ProjectNodeOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ProjectNodeOptionsBuilder &operator=(const ProjectNodeOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 3)); return o; } }; inline flatbuffers::Offset CreateProjectNodeOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, flatbuffers::Offset fileName = 0, float innerActionSpeed = 0.0f) { ProjectNodeOptionsBuilder builder_(_fbb); builder_.add_innerActionSpeed(innerActionSpeed); builder_.add_fileName(fileName); builder_.add_nodeOptions(nodeOptions); return builder_.Finish(); } inline flatbuffers::Offset CreateProjectNodeOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, const char *fileName = nullptr, float innerActionSpeed = 0.0f) { return CreateProjectNodeOptions(_fbb, nodeOptions, fileName ? _fbb.CreateString(fileName) : 0, innerActionSpeed); } struct ComponentOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_NODEOPTIONS = 4, VT_TYPE = 6, VT_COMAUDIOOPTIONS = 8 }; const WidgetOptions *nodeOptions() const { return GetPointer(VT_NODEOPTIONS); } const flatbuffers::String *type() const { return GetPointer(VT_TYPE); } const ComAudioOptions *comAudioOptions() const { return GetPointer(VT_COMAUDIOOPTIONS); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_NODEOPTIONS) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, VT_TYPE) && verifier.Verify(type()) && VerifyField(verifier, VT_COMAUDIOOPTIONS) && verifier.VerifyTable(comAudioOptions()) && verifier.EndTable(); } }; struct ComponentOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(ComponentOptions::VT_NODEOPTIONS, nodeOptions); } void add_type(flatbuffers::Offset type) { fbb_.AddOffset(ComponentOptions::VT_TYPE, type); } void add_comAudioOptions(flatbuffers::Offset comAudioOptions) { fbb_.AddOffset(ComponentOptions::VT_COMAUDIOOPTIONS, comAudioOptions); } ComponentOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ComponentOptionsBuilder &operator=(const ComponentOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 3)); return o; } }; inline flatbuffers::Offset CreateComponentOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, flatbuffers::Offset type = 0, flatbuffers::Offset comAudioOptions = 0) { ComponentOptionsBuilder builder_(_fbb); builder_.add_comAudioOptions(comAudioOptions); builder_.add_type(type); builder_.add_nodeOptions(nodeOptions); return builder_.Finish(); } inline flatbuffers::Offset CreateComponentOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, const char *type = nullptr, flatbuffers::Offset comAudioOptions = 0) { return CreateComponentOptions(_fbb, nodeOptions, type ? _fbb.CreateString(type) : 0, comAudioOptions); } struct ComAudioOptions FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_NODEOPTIONS = 4, VT_NAME = 6, VT_ENABLED = 8, VT_LOOP = 10, VT_VOLUME = 12, VT_FILENAMEDATA = 14 }; const WidgetOptions *nodeOptions() const { return GetPointer(VT_NODEOPTIONS); } const flatbuffers::String *name() const { return GetPointer(VT_NAME); } bool enabled() const { return GetField(VT_ENABLED, 0) != 0; } bool loop() const { return GetField(VT_LOOP, 0) != 0; } int32_t volume() const { return GetField(VT_VOLUME, 0); } const ResourceData *fileNameData() const { return GetPointer(VT_FILENAMEDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_NODEOPTIONS) && verifier.VerifyTable(nodeOptions()) && VerifyField(verifier, VT_NAME) && verifier.Verify(name()) && VerifyField(verifier, VT_ENABLED) && VerifyField(verifier, VT_LOOP) && VerifyField(verifier, VT_VOLUME) && VerifyField(verifier, VT_FILENAMEDATA) && verifier.VerifyTable(fileNameData()) && verifier.EndTable(); } }; struct ComAudioOptionsBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_nodeOptions(flatbuffers::Offset nodeOptions) { fbb_.AddOffset(ComAudioOptions::VT_NODEOPTIONS, nodeOptions); } void add_name(flatbuffers::Offset name) { fbb_.AddOffset(ComAudioOptions::VT_NAME, name); } void add_enabled(bool enabled) { fbb_.AddElement(ComAudioOptions::VT_ENABLED, static_cast(enabled), 0); } void add_loop(bool loop) { fbb_.AddElement(ComAudioOptions::VT_LOOP, static_cast(loop), 0); } void add_volume(int32_t volume) { fbb_.AddElement(ComAudioOptions::VT_VOLUME, volume, 0); } void add_fileNameData(flatbuffers::Offset fileNameData) { fbb_.AddOffset(ComAudioOptions::VT_FILENAMEDATA, fileNameData); } ComAudioOptionsBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ComAudioOptionsBuilder &operator=(const ComAudioOptionsBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 6)); return o; } }; inline flatbuffers::Offset CreateComAudioOptions(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, flatbuffers::Offset name = 0, bool enabled = false, bool loop = false, int32_t volume = 0, flatbuffers::Offset fileNameData = 0) { ComAudioOptionsBuilder builder_(_fbb); builder_.add_fileNameData(fileNameData); builder_.add_volume(volume); builder_.add_name(name); builder_.add_nodeOptions(nodeOptions); builder_.add_loop(loop); builder_.add_enabled(enabled); return builder_.Finish(); } inline flatbuffers::Offset CreateComAudioOptionsDirect(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset nodeOptions = 0, const char *name = nullptr, bool enabled = false, bool loop = false, int32_t volume = 0, flatbuffers::Offset fileNameData = 0) { return CreateComAudioOptions(_fbb, nodeOptions, name ? _fbb.CreateString(name) : 0, enabled, loop, volume, fileNameData); } struct AnimationInfo FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_NAME = 4, VT_STARTINDEX = 6, VT_ENDINDEX = 8 }; const flatbuffers::String *name() const { return GetPointer(VT_NAME); } int32_t startIndex() const { return GetField(VT_STARTINDEX, 0); } int32_t endIndex() const { return GetField(VT_ENDINDEX, 0); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_NAME) && verifier.Verify(name()) && VerifyField(verifier, VT_STARTINDEX) && VerifyField(verifier, VT_ENDINDEX) && verifier.EndTable(); } }; struct AnimationInfoBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_name(flatbuffers::Offset name) { fbb_.AddOffset(AnimationInfo::VT_NAME, name); } void add_startIndex(int32_t startIndex) { fbb_.AddElement(AnimationInfo::VT_STARTINDEX, startIndex, 0); } void add_endIndex(int32_t endIndex) { fbb_.AddElement(AnimationInfo::VT_ENDINDEX, endIndex, 0); } AnimationInfoBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } AnimationInfoBuilder &operator=(const AnimationInfoBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 3)); return o; } }; inline flatbuffers::Offset CreateAnimationInfo(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset name = 0, int32_t startIndex = 0, int32_t endIndex = 0) { AnimationInfoBuilder builder_(_fbb); builder_.add_endIndex(endIndex); builder_.add_startIndex(startIndex); builder_.add_name(name); return builder_.Finish(); } inline flatbuffers::Offset CreateAnimationInfoDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *name = nullptr, int32_t startIndex = 0, int32_t endIndex = 0) { return CreateAnimationInfo(_fbb, name ? _fbb.CreateString(name) : 0, startIndex, endIndex); } struct NodeAction FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_DURATION = 4, VT_SPEED = 6, VT_TIMELINES = 8, VT_CURRENTANIMATIONNAME = 10 }; int32_t duration() const { return GetField(VT_DURATION, 0); } float speed() const { return GetField(VT_SPEED, 0.0f); } const flatbuffers::Vector> *timeLines() const { return GetPointer> *>(VT_TIMELINES); } const flatbuffers::String *currentAnimationName() const { return GetPointer(VT_CURRENTANIMATIONNAME); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_DURATION) && VerifyField(verifier, VT_SPEED) && VerifyField(verifier, VT_TIMELINES) && verifier.Verify(timeLines()) && verifier.VerifyVectorOfTables(timeLines()) && VerifyField(verifier, VT_CURRENTANIMATIONNAME) && verifier.Verify(currentAnimationName()) && verifier.EndTable(); } }; struct NodeActionBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_duration(int32_t duration) { fbb_.AddElement(NodeAction::VT_DURATION, duration, 0); } void add_speed(float speed) { fbb_.AddElement(NodeAction::VT_SPEED, speed, 0.0f); } void add_timeLines(flatbuffers::Offset>> timeLines) { fbb_.AddOffset(NodeAction::VT_TIMELINES, timeLines); } void add_currentAnimationName(flatbuffers::Offset currentAnimationName) { fbb_.AddOffset(NodeAction::VT_CURRENTANIMATIONNAME, currentAnimationName); } NodeActionBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } NodeActionBuilder &operator=(const NodeActionBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateNodeAction(flatbuffers::FlatBufferBuilder &_fbb, int32_t duration = 0, float speed = 0.0f, flatbuffers::Offset>> timeLines = 0, flatbuffers::Offset currentAnimationName = 0) { NodeActionBuilder builder_(_fbb); builder_.add_currentAnimationName(currentAnimationName); builder_.add_timeLines(timeLines); builder_.add_speed(speed); builder_.add_duration(duration); return builder_.Finish(); } inline flatbuffers::Offset CreateNodeActionDirect(flatbuffers::FlatBufferBuilder &_fbb, int32_t duration = 0, float speed = 0.0f, const std::vector> *timeLines = nullptr, const char *currentAnimationName = nullptr) { return CreateNodeAction(_fbb, duration, speed, timeLines ? _fbb.CreateVector>(*timeLines) : 0, currentAnimationName ? _fbb.CreateString(currentAnimationName) : 0); } struct TimeLine FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_PROPERTY = 4, VT_ACTIONTAG = 6, VT_FRAMES = 8 }; const flatbuffers::String *property() const { return GetPointer(VT_PROPERTY); } int32_t actionTag() const { return GetField(VT_ACTIONTAG, 0); } const flatbuffers::Vector> *frames() const { return GetPointer> *>(VT_FRAMES); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_PROPERTY) && verifier.Verify(property()) && VerifyField(verifier, VT_ACTIONTAG) && VerifyField(verifier, VT_FRAMES) && verifier.Verify(frames()) && verifier.VerifyVectorOfTables(frames()) && verifier.EndTable(); } }; struct TimeLineBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_property(flatbuffers::Offset property) { fbb_.AddOffset(TimeLine::VT_PROPERTY, property); } void add_actionTag(int32_t actionTag) { fbb_.AddElement(TimeLine::VT_ACTIONTAG, actionTag, 0); } void add_frames(flatbuffers::Offset>> frames) { fbb_.AddOffset(TimeLine::VT_FRAMES, frames); } TimeLineBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TimeLineBuilder &operator=(const TimeLineBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 3)); return o; } }; inline flatbuffers::Offset CreateTimeLine(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset property = 0, int32_t actionTag = 0, flatbuffers::Offset>> frames = 0) { TimeLineBuilder builder_(_fbb); builder_.add_frames(frames); builder_.add_actionTag(actionTag); builder_.add_property(property); return builder_.Finish(); } inline flatbuffers::Offset CreateTimeLineDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *property = nullptr, int32_t actionTag = 0, const std::vector> *frames = nullptr) { return CreateTimeLine(_fbb, property ? _fbb.CreateString(property) : 0, actionTag, frames ? _fbb.CreateVector>(*frames) : 0); } struct Frame FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_POINTFRAME = 4, VT_SCALEFRAME = 6, VT_COLORFRAME = 8, VT_TEXTUREFRAME = 10, VT_EVENTFRAME = 12, VT_INTFRAME = 14, VT_BOOLFRAME = 16, VT_INNERACTIONFRAME = 18, VT_BLENDFRAME = 20 }; const PointFrame *pointFrame() const { return GetPointer(VT_POINTFRAME); } const ScaleFrame *scaleFrame() const { return GetPointer(VT_SCALEFRAME); } const ColorFrame *colorFrame() const { return GetPointer(VT_COLORFRAME); } const TextureFrame *textureFrame() const { return GetPointer(VT_TEXTUREFRAME); } const EventFrame *eventFrame() const { return GetPointer(VT_EVENTFRAME); } const IntFrame *intFrame() const { return GetPointer(VT_INTFRAME); } const BoolFrame *boolFrame() const { return GetPointer(VT_BOOLFRAME); } const InnerActionFrame *innerActionFrame() const { return GetPointer(VT_INNERACTIONFRAME); } const BlendFrame *blendFrame() const { return GetPointer(VT_BLENDFRAME); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_POINTFRAME) && verifier.VerifyTable(pointFrame()) && VerifyField(verifier, VT_SCALEFRAME) && verifier.VerifyTable(scaleFrame()) && VerifyField(verifier, VT_COLORFRAME) && verifier.VerifyTable(colorFrame()) && VerifyField(verifier, VT_TEXTUREFRAME) && verifier.VerifyTable(textureFrame()) && VerifyField(verifier, VT_EVENTFRAME) && verifier.VerifyTable(eventFrame()) && VerifyField(verifier, VT_INTFRAME) && verifier.VerifyTable(intFrame()) && VerifyField(verifier, VT_BOOLFRAME) && verifier.VerifyTable(boolFrame()) && VerifyField(verifier, VT_INNERACTIONFRAME) && verifier.VerifyTable(innerActionFrame()) && VerifyField(verifier, VT_BLENDFRAME) && verifier.VerifyTable(blendFrame()) && verifier.EndTable(); } }; struct FrameBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_pointFrame(flatbuffers::Offset pointFrame) { fbb_.AddOffset(Frame::VT_POINTFRAME, pointFrame); } void add_scaleFrame(flatbuffers::Offset scaleFrame) { fbb_.AddOffset(Frame::VT_SCALEFRAME, scaleFrame); } void add_colorFrame(flatbuffers::Offset colorFrame) { fbb_.AddOffset(Frame::VT_COLORFRAME, colorFrame); } void add_textureFrame(flatbuffers::Offset textureFrame) { fbb_.AddOffset(Frame::VT_TEXTUREFRAME, textureFrame); } void add_eventFrame(flatbuffers::Offset eventFrame) { fbb_.AddOffset(Frame::VT_EVENTFRAME, eventFrame); } void add_intFrame(flatbuffers::Offset intFrame) { fbb_.AddOffset(Frame::VT_INTFRAME, intFrame); } void add_boolFrame(flatbuffers::Offset boolFrame) { fbb_.AddOffset(Frame::VT_BOOLFRAME, boolFrame); } void add_innerActionFrame(flatbuffers::Offset innerActionFrame) { fbb_.AddOffset(Frame::VT_INNERACTIONFRAME, innerActionFrame); } void add_blendFrame(flatbuffers::Offset blendFrame) { fbb_.AddOffset(Frame::VT_BLENDFRAME, blendFrame); } FrameBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } FrameBuilder &operator=(const FrameBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 9)); return o; } }; inline flatbuffers::Offset CreateFrame(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset pointFrame = 0, flatbuffers::Offset scaleFrame = 0, flatbuffers::Offset colorFrame = 0, flatbuffers::Offset textureFrame = 0, flatbuffers::Offset eventFrame = 0, flatbuffers::Offset intFrame = 0, flatbuffers::Offset boolFrame = 0, flatbuffers::Offset innerActionFrame = 0, flatbuffers::Offset blendFrame = 0) { FrameBuilder builder_(_fbb); builder_.add_blendFrame(blendFrame); builder_.add_innerActionFrame(innerActionFrame); builder_.add_boolFrame(boolFrame); builder_.add_intFrame(intFrame); builder_.add_eventFrame(eventFrame); builder_.add_textureFrame(textureFrame); builder_.add_colorFrame(colorFrame); builder_.add_scaleFrame(scaleFrame); builder_.add_pointFrame(pointFrame); return builder_.Finish(); } struct PointFrame FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_FRAMEINDEX = 4, VT_TWEEN = 6, VT_POSITION = 8, VT_EASINGDATA = 10 }; int32_t frameIndex() const { return GetField(VT_FRAMEINDEX, 0); } bool tween() const { return GetField(VT_TWEEN, 1) != 0; } const Position *position() const { return GetStruct(VT_POSITION); } const EasingData *easingData() const { return GetPointer(VT_EASINGDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_FRAMEINDEX) && VerifyField(verifier, VT_TWEEN) && VerifyField(verifier, VT_POSITION) && VerifyField(verifier, VT_EASINGDATA) && verifier.VerifyTable(easingData()) && verifier.EndTable(); } }; struct PointFrameBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_frameIndex(int32_t frameIndex) { fbb_.AddElement(PointFrame::VT_FRAMEINDEX, frameIndex, 0); } void add_tween(bool tween) { fbb_.AddElement(PointFrame::VT_TWEEN, static_cast(tween), 1); } void add_position(const Position *position) { fbb_.AddStruct(PointFrame::VT_POSITION, position); } void add_easingData(flatbuffers::Offset easingData) { fbb_.AddOffset(PointFrame::VT_EASINGDATA, easingData); } PointFrameBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } PointFrameBuilder &operator=(const PointFrameBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreatePointFrame(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, const Position *position = 0, flatbuffers::Offset easingData = 0) { PointFrameBuilder builder_(_fbb); builder_.add_easingData(easingData); builder_.add_position(position); builder_.add_frameIndex(frameIndex); builder_.add_tween(tween); return builder_.Finish(); } struct ScaleFrame FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_FRAMEINDEX = 4, VT_TWEEN = 6, VT_SCALE = 8, VT_EASINGDATA = 10 }; int32_t frameIndex() const { return GetField(VT_FRAMEINDEX, 0); } bool tween() const { return GetField(VT_TWEEN, 1) != 0; } const Scale *scale() const { return GetStruct(VT_SCALE); } const EasingData *easingData() const { return GetPointer(VT_EASINGDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_FRAMEINDEX) && VerifyField(verifier, VT_TWEEN) && VerifyField(verifier, VT_SCALE) && VerifyField(verifier, VT_EASINGDATA) && verifier.VerifyTable(easingData()) && verifier.EndTable(); } }; struct ScaleFrameBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_frameIndex(int32_t frameIndex) { fbb_.AddElement(ScaleFrame::VT_FRAMEINDEX, frameIndex, 0); } void add_tween(bool tween) { fbb_.AddElement(ScaleFrame::VT_TWEEN, static_cast(tween), 1); } void add_scale(const Scale *scale) { fbb_.AddStruct(ScaleFrame::VT_SCALE, scale); } void add_easingData(flatbuffers::Offset easingData) { fbb_.AddOffset(ScaleFrame::VT_EASINGDATA, easingData); } ScaleFrameBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ScaleFrameBuilder &operator=(const ScaleFrameBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateScaleFrame(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, const Scale *scale = 0, flatbuffers::Offset easingData = 0) { ScaleFrameBuilder builder_(_fbb); builder_.add_easingData(easingData); builder_.add_scale(scale); builder_.add_frameIndex(frameIndex); builder_.add_tween(tween); return builder_.Finish(); } struct ColorFrame FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_FRAMEINDEX = 4, VT_TWEEN = 6, VT_COLOR = 8, VT_EASINGDATA = 10 }; int32_t frameIndex() const { return GetField(VT_FRAMEINDEX, 0); } bool tween() const { return GetField(VT_TWEEN, 1) != 0; } const Color *color() const { return GetStruct(VT_COLOR); } const EasingData *easingData() const { return GetPointer(VT_EASINGDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_FRAMEINDEX) && VerifyField(verifier, VT_TWEEN) && VerifyField(verifier, VT_COLOR) && VerifyField(verifier, VT_EASINGDATA) && verifier.VerifyTable(easingData()) && verifier.EndTable(); } }; struct ColorFrameBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_frameIndex(int32_t frameIndex) { fbb_.AddElement(ColorFrame::VT_FRAMEINDEX, frameIndex, 0); } void add_tween(bool tween) { fbb_.AddElement(ColorFrame::VT_TWEEN, static_cast(tween), 1); } void add_color(const Color *color) { fbb_.AddStruct(ColorFrame::VT_COLOR, color); } void add_easingData(flatbuffers::Offset easingData) { fbb_.AddOffset(ColorFrame::VT_EASINGDATA, easingData); } ColorFrameBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ColorFrameBuilder &operator=(const ColorFrameBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateColorFrame(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, const Color *color = 0, flatbuffers::Offset easingData = 0) { ColorFrameBuilder builder_(_fbb); builder_.add_easingData(easingData); builder_.add_color(color); builder_.add_frameIndex(frameIndex); builder_.add_tween(tween); return builder_.Finish(); } struct TextureFrame FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_FRAMEINDEX = 4, VT_TWEEN = 6, VT_TEXTUREFILE = 8, VT_EASINGDATA = 10 }; int32_t frameIndex() const { return GetField(VT_FRAMEINDEX, 0); } bool tween() const { return GetField(VT_TWEEN, 1) != 0; } const ResourceData *textureFile() const { return GetPointer(VT_TEXTUREFILE); } const EasingData *easingData() const { return GetPointer(VT_EASINGDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_FRAMEINDEX) && VerifyField(verifier, VT_TWEEN) && VerifyField(verifier, VT_TEXTUREFILE) && verifier.VerifyTable(textureFile()) && VerifyField(verifier, VT_EASINGDATA) && verifier.VerifyTable(easingData()) && verifier.EndTable(); } }; struct TextureFrameBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_frameIndex(int32_t frameIndex) { fbb_.AddElement(TextureFrame::VT_FRAMEINDEX, frameIndex, 0); } void add_tween(bool tween) { fbb_.AddElement(TextureFrame::VT_TWEEN, static_cast(tween), 1); } void add_textureFile(flatbuffers::Offset textureFile) { fbb_.AddOffset(TextureFrame::VT_TEXTUREFILE, textureFile); } void add_easingData(flatbuffers::Offset easingData) { fbb_.AddOffset(TextureFrame::VT_EASINGDATA, easingData); } TextureFrameBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } TextureFrameBuilder &operator=(const TextureFrameBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateTextureFrame(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, flatbuffers::Offset textureFile = 0, flatbuffers::Offset easingData = 0) { TextureFrameBuilder builder_(_fbb); builder_.add_easingData(easingData); builder_.add_textureFile(textureFile); builder_.add_frameIndex(frameIndex); builder_.add_tween(tween); return builder_.Finish(); } struct EventFrame FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_FRAMEINDEX = 4, VT_TWEEN = 6, VT_VALUE = 8, VT_EASINGDATA = 10 }; int32_t frameIndex() const { return GetField(VT_FRAMEINDEX, 0); } bool tween() const { return GetField(VT_TWEEN, 1) != 0; } const flatbuffers::String *value() const { return GetPointer(VT_VALUE); } const EasingData *easingData() const { return GetPointer(VT_EASINGDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_FRAMEINDEX) && VerifyField(verifier, VT_TWEEN) && VerifyField(verifier, VT_VALUE) && verifier.Verify(value()) && VerifyField(verifier, VT_EASINGDATA) && verifier.VerifyTable(easingData()) && verifier.EndTable(); } }; struct EventFrameBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_frameIndex(int32_t frameIndex) { fbb_.AddElement(EventFrame::VT_FRAMEINDEX, frameIndex, 0); } void add_tween(bool tween) { fbb_.AddElement(EventFrame::VT_TWEEN, static_cast(tween), 1); } void add_value(flatbuffers::Offset value) { fbb_.AddOffset(EventFrame::VT_VALUE, value); } void add_easingData(flatbuffers::Offset easingData) { fbb_.AddOffset(EventFrame::VT_EASINGDATA, easingData); } EventFrameBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } EventFrameBuilder &operator=(const EventFrameBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateEventFrame(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, flatbuffers::Offset value = 0, flatbuffers::Offset easingData = 0) { EventFrameBuilder builder_(_fbb); builder_.add_easingData(easingData); builder_.add_value(value); builder_.add_frameIndex(frameIndex); builder_.add_tween(tween); return builder_.Finish(); } inline flatbuffers::Offset CreateEventFrameDirect(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, const char *value = nullptr, flatbuffers::Offset easingData = 0) { return CreateEventFrame(_fbb, frameIndex, tween, value ? _fbb.CreateString(value) : 0, easingData); } struct IntFrame FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_FRAMEINDEX = 4, VT_TWEEN = 6, VT_VALUE = 8, VT_EASINGDATA = 10 }; int32_t frameIndex() const { return GetField(VT_FRAMEINDEX, 0); } bool tween() const { return GetField(VT_TWEEN, 1) != 0; } int32_t value() const { return GetField(VT_VALUE, 0); } const EasingData *easingData() const { return GetPointer(VT_EASINGDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_FRAMEINDEX) && VerifyField(verifier, VT_TWEEN) && VerifyField(verifier, VT_VALUE) && VerifyField(verifier, VT_EASINGDATA) && verifier.VerifyTable(easingData()) && verifier.EndTable(); } }; struct IntFrameBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_frameIndex(int32_t frameIndex) { fbb_.AddElement(IntFrame::VT_FRAMEINDEX, frameIndex, 0); } void add_tween(bool tween) { fbb_.AddElement(IntFrame::VT_TWEEN, static_cast(tween), 1); } void add_value(int32_t value) { fbb_.AddElement(IntFrame::VT_VALUE, value, 0); } void add_easingData(flatbuffers::Offset easingData) { fbb_.AddOffset(IntFrame::VT_EASINGDATA, easingData); } IntFrameBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } IntFrameBuilder &operator=(const IntFrameBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateIntFrame(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, int32_t value = 0, flatbuffers::Offset easingData = 0) { IntFrameBuilder builder_(_fbb); builder_.add_easingData(easingData); builder_.add_value(value); builder_.add_frameIndex(frameIndex); builder_.add_tween(tween); return builder_.Finish(); } struct BoolFrame FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_FRAMEINDEX = 4, VT_TWEEN = 6, VT_VALUE = 8, VT_EASINGDATA = 10 }; int32_t frameIndex() const { return GetField(VT_FRAMEINDEX, 0); } bool tween() const { return GetField(VT_TWEEN, 1) != 0; } bool value() const { return GetField(VT_VALUE, 1) != 0; } const EasingData *easingData() const { return GetPointer(VT_EASINGDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_FRAMEINDEX) && VerifyField(verifier, VT_TWEEN) && VerifyField(verifier, VT_VALUE) && VerifyField(verifier, VT_EASINGDATA) && verifier.VerifyTable(easingData()) && verifier.EndTable(); } }; struct BoolFrameBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_frameIndex(int32_t frameIndex) { fbb_.AddElement(BoolFrame::VT_FRAMEINDEX, frameIndex, 0); } void add_tween(bool tween) { fbb_.AddElement(BoolFrame::VT_TWEEN, static_cast(tween), 1); } void add_value(bool value) { fbb_.AddElement(BoolFrame::VT_VALUE, static_cast(value), 1); } void add_easingData(flatbuffers::Offset easingData) { fbb_.AddOffset(BoolFrame::VT_EASINGDATA, easingData); } BoolFrameBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } BoolFrameBuilder &operator=(const BoolFrameBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateBoolFrame(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, bool value = true, flatbuffers::Offset easingData = 0) { BoolFrameBuilder builder_(_fbb); builder_.add_easingData(easingData); builder_.add_frameIndex(frameIndex); builder_.add_value(value); builder_.add_tween(tween); return builder_.Finish(); } struct InnerActionFrame FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_FRAMEINDEX = 4, VT_TWEEN = 6, VT_INNERACTIONTYPE = 8, VT_CURRENTANIAMTIONNAME = 10, VT_SINGLEFRAMEINDEX = 12, VT_EASINGDATA = 14 }; int32_t frameIndex() const { return GetField(VT_FRAMEINDEX, 0); } bool tween() const { return GetField(VT_TWEEN, 1) != 0; } int32_t innerActionType() const { return GetField(VT_INNERACTIONTYPE, 0); } const flatbuffers::String *currentAniamtionName() const { return GetPointer(VT_CURRENTANIAMTIONNAME); } int32_t singleFrameIndex() const { return GetField(VT_SINGLEFRAMEINDEX, 0); } const EasingData *easingData() const { return GetPointer(VT_EASINGDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_FRAMEINDEX) && VerifyField(verifier, VT_TWEEN) && VerifyField(verifier, VT_INNERACTIONTYPE) && VerifyField(verifier, VT_CURRENTANIAMTIONNAME) && verifier.Verify(currentAniamtionName()) && VerifyField(verifier, VT_SINGLEFRAMEINDEX) && VerifyField(verifier, VT_EASINGDATA) && verifier.VerifyTable(easingData()) && verifier.EndTable(); } }; struct InnerActionFrameBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_frameIndex(int32_t frameIndex) { fbb_.AddElement(InnerActionFrame::VT_FRAMEINDEX, frameIndex, 0); } void add_tween(bool tween) { fbb_.AddElement(InnerActionFrame::VT_TWEEN, static_cast(tween), 1); } void add_innerActionType(int32_t innerActionType) { fbb_.AddElement(InnerActionFrame::VT_INNERACTIONTYPE, innerActionType, 0); } void add_currentAniamtionName(flatbuffers::Offset currentAniamtionName) { fbb_.AddOffset(InnerActionFrame::VT_CURRENTANIAMTIONNAME, currentAniamtionName); } void add_singleFrameIndex(int32_t singleFrameIndex) { fbb_.AddElement(InnerActionFrame::VT_SINGLEFRAMEINDEX, singleFrameIndex, 0); } void add_easingData(flatbuffers::Offset easingData) { fbb_.AddOffset(InnerActionFrame::VT_EASINGDATA, easingData); } InnerActionFrameBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } InnerActionFrameBuilder &operator=(const InnerActionFrameBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 6)); return o; } }; inline flatbuffers::Offset CreateInnerActionFrame(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, int32_t innerActionType = 0, flatbuffers::Offset currentAniamtionName = 0, int32_t singleFrameIndex = 0, flatbuffers::Offset easingData = 0) { InnerActionFrameBuilder builder_(_fbb); builder_.add_easingData(easingData); builder_.add_singleFrameIndex(singleFrameIndex); builder_.add_currentAniamtionName(currentAniamtionName); builder_.add_innerActionType(innerActionType); builder_.add_frameIndex(frameIndex); builder_.add_tween(tween); return builder_.Finish(); } inline flatbuffers::Offset CreateInnerActionFrameDirect(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, int32_t innerActionType = 0, const char *currentAniamtionName = nullptr, int32_t singleFrameIndex = 0, flatbuffers::Offset easingData = 0) { return CreateInnerActionFrame(_fbb, frameIndex, tween, innerActionType, currentAniamtionName ? _fbb.CreateString(currentAniamtionName) : 0, singleFrameIndex, easingData); } struct EasingData FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_TYPE = 4, VT_POINTS = 6 }; int32_t type() const { return GetField(VT_TYPE, -1); } const flatbuffers::Vector *points() const { return GetPointer *>(VT_POINTS); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_TYPE) && VerifyField(verifier, VT_POINTS) && verifier.Verify(points()) && verifier.EndTable(); } }; struct EasingDataBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_type(int32_t type) { fbb_.AddElement(EasingData::VT_TYPE, type, -1); } void add_points(flatbuffers::Offset> points) { fbb_.AddOffset(EasingData::VT_POINTS, points); } EasingDataBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } EasingDataBuilder &operator=(const EasingDataBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 2)); return o; } }; inline flatbuffers::Offset CreateEasingData(flatbuffers::FlatBufferBuilder &_fbb, int32_t type = -1, flatbuffers::Offset> points = 0) { EasingDataBuilder builder_(_fbb); builder_.add_points(points); builder_.add_type(type); return builder_.Finish(); } inline flatbuffers::Offset CreateEasingDataDirect(flatbuffers::FlatBufferBuilder &_fbb, int32_t type = -1, const std::vector *points = nullptr) { return CreateEasingData(_fbb, type, points ? _fbb.CreateVector(*points) : 0); } struct ResourceData FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_PATH = 4, VT_PLISTFILE = 6, VT_RESOURCETYPE = 8 }; const flatbuffers::String *path() const { return GetPointer(VT_PATH); } const flatbuffers::String *plistFile() const { return GetPointer(VT_PLISTFILE); } int32_t resourceType() const { return GetField(VT_RESOURCETYPE, 0); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_PATH) && verifier.Verify(path()) && VerifyField(verifier, VT_PLISTFILE) && verifier.Verify(plistFile()) && VerifyField(verifier, VT_RESOURCETYPE) && verifier.EndTable(); } }; struct ResourceDataBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_path(flatbuffers::Offset path) { fbb_.AddOffset(ResourceData::VT_PATH, path); } void add_plistFile(flatbuffers::Offset plistFile) { fbb_.AddOffset(ResourceData::VT_PLISTFILE, plistFile); } void add_resourceType(int32_t resourceType) { fbb_.AddElement(ResourceData::VT_RESOURCETYPE, resourceType, 0); } ResourceDataBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } ResourceDataBuilder &operator=(const ResourceDataBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 3)); return o; } }; inline flatbuffers::Offset CreateResourceData(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset path = 0, flatbuffers::Offset plistFile = 0, int32_t resourceType = 0) { ResourceDataBuilder builder_(_fbb); builder_.add_resourceType(resourceType); builder_.add_plistFile(plistFile); builder_.add_path(path); return builder_.Finish(); } inline flatbuffers::Offset CreateResourceDataDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *path = nullptr, const char *plistFile = nullptr, int32_t resourceType = 0) { return CreateResourceData(_fbb, path ? _fbb.CreateString(path) : 0, plistFile ? _fbb.CreateString(plistFile) : 0, resourceType); } struct BlendFrame FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { enum { VT_FRAMEINDEX = 4, VT_TWEEN = 6, VT_BLENDFUNC = 8, VT_EASINGDATA = 10 }; int32_t frameIndex() const { return GetField(VT_FRAMEINDEX, 0); } bool tween() const { return GetField(VT_TWEEN, 1) != 0; } const BlendFunc *blendFunc() const { return GetStruct(VT_BLENDFUNC); } const EasingData *easingData() const { return GetPointer(VT_EASINGDATA); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, VT_FRAMEINDEX) && VerifyField(verifier, VT_TWEEN) && VerifyField(verifier, VT_BLENDFUNC) && VerifyField(verifier, VT_EASINGDATA) && verifier.VerifyTable(easingData()) && verifier.EndTable(); } }; struct BlendFrameBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_frameIndex(int32_t frameIndex) { fbb_.AddElement(BlendFrame::VT_FRAMEINDEX, frameIndex, 0); } void add_tween(bool tween) { fbb_.AddElement(BlendFrame::VT_TWEEN, static_cast(tween), 1); } void add_blendFunc(const BlendFunc *blendFunc) { fbb_.AddStruct(BlendFrame::VT_BLENDFUNC, blendFunc); } void add_easingData(flatbuffers::Offset easingData) { fbb_.AddOffset(BlendFrame::VT_EASINGDATA, easingData); } BlendFrameBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } BlendFrameBuilder &operator=(const BlendFrameBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 4)); return o; } }; inline flatbuffers::Offset CreateBlendFrame(flatbuffers::FlatBufferBuilder &_fbb, int32_t frameIndex = 0, bool tween = true, const BlendFunc *blendFunc = 0, flatbuffers::Offset easingData = 0) { BlendFrameBuilder builder_(_fbb); builder_.add_easingData(easingData); builder_.add_blendFunc(blendFunc); builder_.add_frameIndex(frameIndex); builder_.add_tween(tween); return builder_.Finish(); } inline const flatbuffers::CSParseBinary *GetCSParseBinary(const void *buf) { return flatbuffers::GetRoot(buf); } inline bool VerifyCSParseBinaryBuffer(flatbuffers::Verifier &verifier) { return verifier.VerifyBuffer(nullptr); } inline void FinishCSParseBinaryBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset root) { fbb.Finish(root); } } // namespace flatbuffers #endif // FLATBUFFERS_GENERATED_CSPARSEBINARY_FLATBUFFERS_H_