axmol/cocos/editor-support/cocostudio/CSParseBinary_generated.h

3342 lines
169 KiB
C
Raw Normal View History

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