296 lines
8.2 KiB
Go
296 lines
8.2 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v5.29.3
|
|
// source: protobuf/glyphs.proto
|
|
|
|
package protobuf
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// Stores a glyph with metrics and optional SDF bitmap information.
|
|
type Glyph struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
|
|
// A signed distance field of the glyph with a border of 3 pixels.
|
|
Bitmap []byte `protobuf:"bytes,2,opt,name=bitmap" json:"bitmap,omitempty"`
|
|
// Glyph metrics.
|
|
Width *uint32 `protobuf:"varint,3,req,name=width" json:"width,omitempty"`
|
|
Height *uint32 `protobuf:"varint,4,req,name=height" json:"height,omitempty"`
|
|
Left *int32 `protobuf:"zigzag32,5,req,name=left" json:"left,omitempty"`
|
|
Top *int32 `protobuf:"zigzag32,6,req,name=top" json:"top,omitempty"`
|
|
Advance *uint32 `protobuf:"varint,7,req,name=advance" json:"advance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Glyph) Reset() {
|
|
*x = Glyph{}
|
|
mi := &file_protobuf_glyphs_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Glyph) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Glyph) ProtoMessage() {}
|
|
|
|
func (x *Glyph) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protobuf_glyphs_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Glyph.ProtoReflect.Descriptor instead.
|
|
func (*Glyph) Descriptor() ([]byte, []int) {
|
|
return file_protobuf_glyphs_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Glyph) GetId() uint32 {
|
|
if x != nil && x.Id != nil {
|
|
return *x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Glyph) GetBitmap() []byte {
|
|
if x != nil {
|
|
return x.Bitmap
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Glyph) GetWidth() uint32 {
|
|
if x != nil && x.Width != nil {
|
|
return *x.Width
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Glyph) GetHeight() uint32 {
|
|
if x != nil && x.Height != nil {
|
|
return *x.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Glyph) GetLeft() int32 {
|
|
if x != nil && x.Left != nil {
|
|
return *x.Left
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Glyph) GetTop() int32 {
|
|
if x != nil && x.Top != nil {
|
|
return *x.Top
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Glyph) GetAdvance() uint32 {
|
|
if x != nil && x.Advance != nil {
|
|
return *x.Advance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// Stores fontstack information and a list of faces.
|
|
type Fontstack struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
|
|
Range *string `protobuf:"bytes,2,req,name=range" json:"range,omitempty"`
|
|
Glyphs []*Glyph `protobuf:"bytes,3,rep,name=glyphs" json:"glyphs,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Fontstack) Reset() {
|
|
*x = Fontstack{}
|
|
mi := &file_protobuf_glyphs_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Fontstack) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Fontstack) ProtoMessage() {}
|
|
|
|
func (x *Fontstack) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protobuf_glyphs_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Fontstack.ProtoReflect.Descriptor instead.
|
|
func (*Fontstack) Descriptor() ([]byte, []int) {
|
|
return file_protobuf_glyphs_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Fontstack) GetName() string {
|
|
if x != nil && x.Name != nil {
|
|
return *x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Fontstack) GetRange() string {
|
|
if x != nil && x.Range != nil {
|
|
return *x.Range
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Fontstack) GetGlyphs() []*Glyph {
|
|
if x != nil {
|
|
return x.Glyphs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Glyphs struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Stacks []*Fontstack `protobuf:"bytes,1,rep,name=stacks" json:"stacks,omitempty"`
|
|
extensionFields protoimpl.ExtensionFields
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Glyphs) Reset() {
|
|
*x = Glyphs{}
|
|
mi := &file_protobuf_glyphs_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Glyphs) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Glyphs) ProtoMessage() {}
|
|
|
|
func (x *Glyphs) ProtoReflect() protoreflect.Message {
|
|
mi := &file_protobuf_glyphs_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Glyphs.ProtoReflect.Descriptor instead.
|
|
func (*Glyphs) Descriptor() ([]byte, []int) {
|
|
return file_protobuf_glyphs_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *Glyphs) GetStacks() []*Fontstack {
|
|
if x != nil {
|
|
return x.Stacks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_protobuf_glyphs_proto protoreflect.FileDescriptor
|
|
|
|
const file_protobuf_glyphs_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x15protobuf/glyphs.proto\x12\bprotobuf\"\x9d\x01\n" +
|
|
"\x05glyph\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x02(\rR\x02id\x12\x16\n" +
|
|
"\x06bitmap\x18\x02 \x01(\fR\x06bitmap\x12\x14\n" +
|
|
"\x05width\x18\x03 \x02(\rR\x05width\x12\x16\n" +
|
|
"\x06height\x18\x04 \x02(\rR\x06height\x12\x12\n" +
|
|
"\x04left\x18\x05 \x02(\x11R\x04left\x12\x10\n" +
|
|
"\x03top\x18\x06 \x02(\x11R\x03top\x12\x18\n" +
|
|
"\aadvance\x18\a \x02(\rR\aadvance\"^\n" +
|
|
"\tfontstack\x12\x12\n" +
|
|
"\x04name\x18\x01 \x02(\tR\x04name\x12\x14\n" +
|
|
"\x05range\x18\x02 \x02(\tR\x05range\x12'\n" +
|
|
"\x06glyphs\x18\x03 \x03(\v2\x0f.protobuf.glyphR\x06glyphs\"<\n" +
|
|
"\x06glyphs\x12+\n" +
|
|
"\x06stacks\x18\x01 \x03(\v2\x13.protobuf.fontstackR\x06stacks*\x05\b\x10\x10\x80@B0H\x03Z,git.zhouxhere.com/zhouxhere/maptile/protobuf"
|
|
|
|
var (
|
|
file_protobuf_glyphs_proto_rawDescOnce sync.Once
|
|
file_protobuf_glyphs_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_protobuf_glyphs_proto_rawDescGZIP() []byte {
|
|
file_protobuf_glyphs_proto_rawDescOnce.Do(func() {
|
|
file_protobuf_glyphs_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_protobuf_glyphs_proto_rawDesc), len(file_protobuf_glyphs_proto_rawDesc)))
|
|
})
|
|
return file_protobuf_glyphs_proto_rawDescData
|
|
}
|
|
|
|
var file_protobuf_glyphs_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_protobuf_glyphs_proto_goTypes = []any{
|
|
(*Glyph)(nil), // 0: protobuf.glyph
|
|
(*Fontstack)(nil), // 1: protobuf.fontstack
|
|
(*Glyphs)(nil), // 2: protobuf.glyphs
|
|
}
|
|
var file_protobuf_glyphs_proto_depIdxs = []int32{
|
|
0, // 0: protobuf.fontstack.glyphs:type_name -> protobuf.glyph
|
|
1, // 1: protobuf.glyphs.stacks:type_name -> protobuf.fontstack
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_protobuf_glyphs_proto_init() }
|
|
func file_protobuf_glyphs_proto_init() {
|
|
if File_protobuf_glyphs_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_protobuf_glyphs_proto_rawDesc), len(file_protobuf_glyphs_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_protobuf_glyphs_proto_goTypes,
|
|
DependencyIndexes: file_protobuf_glyphs_proto_depIdxs,
|
|
MessageInfos: file_protobuf_glyphs_proto_msgTypes,
|
|
}.Build()
|
|
File_protobuf_glyphs_proto = out.File
|
|
file_protobuf_glyphs_proto_goTypes = nil
|
|
file_protobuf_glyphs_proto_depIdxs = nil
|
|
}
|