<reponame>akb825/DeepSea
# automatically generated by the FlatBuffers compiler, do not modify

# namespace: DeepSeaVectorDrawScene

import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()

class SceneTextStyle(object):
    __slots__ = ['_tab']

    @classmethod
    def GetRootAs(cls, buf, offset=0):
        n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
        x = SceneTextStyle()
        x.Init(buf, n + offset)
        return x

    @classmethod
    def GetRootAsSceneTextStyle(cls, buf, offset=0):
        """This method is deprecated. Please switch to GetRootAs."""
        return cls.GetRootAs(buf, offset)
    # SceneTextStyle
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    # SceneTextStyle
    def Start(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
        return 0

    # SceneTextStyle
    def Count(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
        return 0

    # SceneTextStyle
    def Size(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def Embolden(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def Slant(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def OutlineWidth(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def Fuziness(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def VerticalOffset(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def Color(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
        if o != 0:
            x = o + self._tab.Pos
            from DeepSeaVectorDrawScene.Color import Color
            obj = Color()
            obj.Init(self._tab.Bytes, x)
            return obj
        return None

    # SceneTextStyle
    def OutlineColor(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
        if o != 0:
            x = o + self._tab.Pos
            from DeepSeaVectorDrawScene.Color import Color
            obj = Color()
            obj.Init(self._tab.Bytes, x)
            return obj
        return None

def Start(builder): builder.StartObject(10)
def SceneTextStyleStart(builder):
    """This method is deprecated. Please switch to Start."""
    return Start(builder)
def AddStart(builder, start): builder.PrependUint32Slot(0, start, 0)
def SceneTextStyleAddStart(builder, start):
    """This method is deprecated. Please switch to AddStart."""
    return AddStart(builder, start)
def AddCount(builder, count): builder.PrependUint32Slot(1, count, 0)
def SceneTextStyleAddCount(builder, count):
    """This method is deprecated. Please switch to AddCount."""
    return AddCount(builder, count)
def AddSize(builder, size): builder.PrependFloat32Slot(2, size, 0.0)
def SceneTextStyleAddSize(builder, size):
    """This method is deprecated. Please switch to AddSize."""
    return AddSize(builder, size)
def AddEmbolden(builder, embolden): builder.PrependFloat32Slot(3, embolden, 0.0)
def SceneTextStyleAddEmbolden(builder, embolden):
    """This method is deprecated. Please switch to AddEmbolden."""
    return AddEmbolden(builder, embolden)
def AddSlant(builder, slant): builder.PrependFloat32Slot(4, slant, 0.0)
def SceneTextStyleAddSlant(builder, slant):
    """This method is deprecated. Please switch to AddSlant."""
    return AddSlant(builder, slant)
def AddOutlineWidth(builder, outlineWidth): builder.PrependFloat32Slot(5, outlineWidth, 0.0)
def SceneTextStyleAddOutlineWidth(builder, outlineWidth):
    """This method is deprecated. Please switch to AddOutlineWidth."""
    return AddOutlineWidth(builder, outlineWidth)
def AddFuziness(builder, fuziness): builder.PrependFloat32Slot(6, fuziness, 0.0)
def SceneTextStyleAddFuziness(builder, fuziness):
    """This method is deprecated. Please switch to AddFuziness."""
    return AddFuziness(builder, fuziness)
def AddVerticalOffset(builder, verticalOffset): builder.PrependFloat32Slot(7, verticalOffset, 0.0)
def SceneTextStyleAddVerticalOffset(builder, verticalOffset):
    """This method is deprecated. Please switch to AddVerticalOffset."""
    return AddVerticalOffset(builder, verticalOffset)
def AddColor(builder, color): builder.PrependStructSlot(8, flatbuffers.number_types.UOffsetTFlags.py_type(color), 0)
def SceneTextStyleAddColor(builder, color):
    """This method is deprecated. Please switch to AddColor."""
    return AddColor(builder, color)
def AddOutlineColor(builder, outlineColor): builder.PrependStructSlot(9, flatbuffers.number_types.UOffsetTFlags.py_type(outlineColor), 0)
def SceneTextStyleAddOutlineColor(builder, outlineColor):
    """This method is deprecated. Please switch to AddOutlineColor."""
    return AddOutlineColor(builder, outlineColor)
def End(builder): return builder.EndObject()
def SceneTextStyleEnd(builder):
    """This method is deprecated. Please switch to End."""
    return End(builder)
# automatically generated by the FlatBuffers compiler, do not modify

# namespace: DeepSeaVectorDrawScene

import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()

class SceneTextStyle(object):
    __slots__ = ['_tab']

    @classmethod
    def GetRootAs(cls, buf, offset=0):
        n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
        x = SceneTextStyle()
        x.Init(buf, n + offset)
        return x

    @classmethod
    def GetRootAsSceneTextStyle(cls, buf, offset=0):
        """This method is deprecated. Please switch to GetRootAs."""
        return cls.GetRootAs(buf, offset)
    # SceneTextStyle
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    # SceneTextStyle
    def Start(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
        return 0

    # SceneTextStyle
    def Count(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
        return 0

    # SceneTextStyle
    def Size(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def Embolden(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def Slant(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def OutlineWidth(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def Fuziness(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def VerticalOffset(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
        return 0.0

    # SceneTextStyle
    def Color(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
        if o != 0:
            x = o + self._tab.Pos
            from DeepSeaVectorDrawScene.Color import Color
            obj = Color()
            obj.Init(self._tab.Bytes, x)
            return obj
        return None

    # SceneTextStyle
    def OutlineColor(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
        if o != 0:
            x = o + self._tab.Pos
            from DeepSeaVectorDrawScene.Color import Color
            obj = Color()
            obj.Init(self._tab.Bytes, x)
            return obj
        return None

def Start(builder): builder.StartObject(10)
def SceneTextStyleStart(builder):
    """This method is deprecated. Please switch to Start."""
    return Start(builder)
def AddStart(builder, start): builder.PrependUint32Slot(0, start, 0)
def SceneTextStyleAddStart(builder, start):
    """This method is deprecated. Please switch to AddStart."""
    return AddStart(builder, start)
def AddCount(builder, count): builder.PrependUint32Slot(1, count, 0)
def SceneTextStyleAddCount(builder, count):
    """This method is deprecated. Please switch to AddCount."""
    return AddCount(builder, count)
def AddSize(builder, size): builder.PrependFloat32Slot(2, size, 0.0)
def SceneTextStyleAddSize(builder, size):
    """This method is deprecated. Please switch to AddSize."""
    return AddSize(builder, size)
def AddEmbolden(builder, embolden): builder.PrependFloat32Slot(3, embolden, 0.0)
def SceneTextStyleAddEmbolden(builder, embolden):
    """This method is deprecated. Please switch to AddEmbolden."""
    return AddEmbolden(builder, embolden)
def AddSlant(builder, slant): builder.PrependFloat32Slot(4, slant, 0.0)
def SceneTextStyleAddSlant(builder, slant):
    """This method is deprecated. Please switch to AddSlant."""
    return AddSlant(builder, slant)
def AddOutlineWidth(builder, outlineWidth): builder.PrependFloat32Slot(5, outlineWidth, 0.0)
def SceneTextStyleAddOutlineWidth(builder, outlineWidth):
    """This method is deprecated. Please switch to AddOutlineWidth."""
    return AddOutlineWidth(builder, outlineWidth)
def AddFuziness(builder, fuziness): builder.PrependFloat32Slot(6, fuziness, 0.0)
def SceneTextStyleAddFuziness(builder, fuziness):
    """This method is deprecated. Please switch to AddFuziness."""
    return AddFuziness(builder, fuziness)
def AddVerticalOffset(builder, verticalOffset): builder.PrependFloat32Slot(7, verticalOffset, 0.0)
def SceneTextStyleAddVerticalOffset(builder, verticalOffset):
    """This method is deprecated. Please switch to AddVerticalOffset."""
    return AddVerticalOffset(builder, verticalOffset)
def AddColor(builder, color): builder.PrependStructSlot(8, flatbuffers.number_types.UOffsetTFlags.py_type(color), 0)
def SceneTextStyleAddColor(builder, color):
    """This method is deprecated. Please switch to AddColor."""
    return AddColor(builder, color)
def AddOutlineColor(builder, outlineColor): builder.PrependStructSlot(9, flatbuffers.number_types.UOffsetTFlags.py_type(outlineColor), 0)
def SceneTextStyleAddOutlineColor(builder, outlineColor):
    """This method is deprecated. Please switch to AddOutlineColor."""
    return AddOutlineColor(builder, outlineColor)
def End(builder): return builder.EndObject()
def SceneTextStyleEnd(builder):
    """This method is deprecated. Please switch to End."""
    return End(builder)
# automatically generated by the FlatBuffers compiler, do not modify # namespace: DeepSeaVectorDrawScene This method is deprecated. Please switch to GetRootAs. # SceneTextStyle # SceneTextStyle # SceneTextStyle # SceneTextStyle # SceneTextStyle # SceneTextStyle # SceneTextStyle # SceneTextStyle # SceneTextStyle # SceneTextStyle # SceneTextStyle This method is deprecated. Please switch to Start. This method is deprecated. Please switch to AddStart. This method is deprecated. Please switch to AddCount. This method is deprecated. Please switch to AddSize. This method is deprecated. Please switch to AddEmbolden. This method is deprecated. Please switch to AddSlant. This method is deprecated. Please switch to AddOutlineWidth. This method is deprecated. Please switch to AddFuziness. This method is deprecated. Please switch to AddVerticalOffset. This method is deprecated. Please switch to AddColor. This method is deprecated. Please switch to AddOutlineColor. This method is deprecated. Please switch to End.