text

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package text is a generated protocol buffer package.

It is generated from these files:

gomatcha.io/matcha/proto/text/text.proto

It has these top-level messages:

SizeFunc
Text
StyledText
Font
TextStyle

Index

Constants

This section is empty.

Variables

View Source
var StrikethroughStyle_name = map[int32]string{
	0: "STRIKETHROUGH_STYLE_NONE",
	1: "STRIKETHROUGH_STYLE_SINGLE",
	2: "STRIKETHROUGH_STYLE_DOUBLE",
	3: "STRIKETHROUGH_STYLE_THICK",
	4: "STRIKETHROUGH_STYLE_DOTTED",
	5: "STRIKETHROUGH_STYLE_DASHED",
}
View Source
var StrikethroughStyle_value = map[string]int32{
	"STRIKETHROUGH_STYLE_NONE":   0,
	"STRIKETHROUGH_STYLE_SINGLE": 1,
	"STRIKETHROUGH_STYLE_DOUBLE": 2,
	"STRIKETHROUGH_STYLE_THICK":  3,
	"STRIKETHROUGH_STYLE_DOTTED": 4,
	"STRIKETHROUGH_STYLE_DASHED": 5,
}
View Source
var TextAlignment_name = map[int32]string{
	0: "TEXT_ALIGNMENT_LEFT",
	1: "TEXT_ALIGNMENT_RIGHT",
	2: "TEXT_ALIGNMENT_CENTER",
	3: "TEXT_ALIGNMENT_JUSTIFIED",
}
View Source
var TextAlignment_value = map[string]int32{
	"TEXT_ALIGNMENT_LEFT":      0,
	"TEXT_ALIGNMENT_RIGHT":     1,
	"TEXT_ALIGNMENT_CENTER":    2,
	"TEXT_ALIGNMENT_JUSTIFIED": 3,
}
View Source
var TextWrap_name = map[int32]string{
	0: "TEXT_WRAP_NONE",
	1: "TEXT_WRAP_WORD",
	2: "TEXT_WRAP_CHARACTER",
}
View Source
var TextWrap_value = map[string]int32{
	"TEXT_WRAP_NONE":      0,
	"TEXT_WRAP_WORD":      1,
	"TEXT_WRAP_CHARACTER": 2,
}
View Source
var Truncation_name = map[int32]string{
	0: "TRUNCATION_NONE",
	1: "TRUNCATION_START",
	2: "TRUNCATION_MIDDLE",
	3: "TRUNCATION_END",
}
View Source
var Truncation_value = map[string]int32{
	"TRUNCATION_NONE":   0,
	"TRUNCATION_START":  1,
	"TRUNCATION_MIDDLE": 2,
	"TRUNCATION_END":    3,
}
View Source
var UnderlineStyle_name = map[int32]string{
	0: "UNDRELINE_STYLE_NONE",
	1: "UNDRELINE_STYLE_SINGLE",
	2: "UNDRELINE_STYLE_DOUBLE",
	3: "UNDRELINE_STYLE_THICK",
	4: "UNDRELINE_STYLE_DOTTED",
	5: "UNDRELINE_STYLE_DASHED",
}
View Source
var UnderlineStyle_value = map[string]int32{
	"UNDRELINE_STYLE_NONE":   0,
	"UNDRELINE_STYLE_SINGLE": 1,
	"UNDRELINE_STYLE_DOUBLE": 2,
	"UNDRELINE_STYLE_THICK":  3,
	"UNDRELINE_STYLE_DOTTED": 4,
	"UNDRELINE_STYLE_DASHED": 5,
}

Functions

This section is empty.

Types

type Font

type Font struct {
	Family string  `protobuf:"bytes,1,opt,name=family" json:"family,omitempty"`
	Face   string  `protobuf:"bytes,2,opt,name=face" json:"face,omitempty"`
	Size   float64 `protobuf:"fixed64,3,opt,name=size" json:"size,omitempty"`
}

func (*Font) Descriptor

func (*Font) Descriptor() ([]byte, []int)

func (*Font) GetFace

func (m *Font) GetFace() string

func (*Font) GetFamily

func (m *Font) GetFamily() string

func (*Font) GetSize

func (m *Font) GetSize() float64

func (*Font) ProtoMessage

func (*Font) ProtoMessage()

func (*Font) Reset

func (m *Font) Reset()

func (*Font) String

func (m *Font) String() string

type SizeFunc

type SizeFunc struct {
	Text    *StyledText          `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
	MinSize *matcha_layout.Point `protobuf:"bytes,2,opt,name=minSize" json:"minSize,omitempty"`
	MaxSize *matcha_layout.Point `protobuf:"bytes,3,opt,name=maxSize" json:"maxSize,omitempty"`
}

func (*SizeFunc) Descriptor

func (*SizeFunc) Descriptor() ([]byte, []int)

func (*SizeFunc) GetMaxSize

func (m *SizeFunc) GetMaxSize() *matcha_layout.Point

func (*SizeFunc) GetMinSize

func (m *SizeFunc) GetMinSize() *matcha_layout.Point

func (*SizeFunc) GetText

func (m *SizeFunc) GetText() *StyledText

func (*SizeFunc) ProtoMessage

func (*SizeFunc) ProtoMessage()

func (*SizeFunc) Reset

func (m *SizeFunc) Reset()

func (*SizeFunc) String

func (m *SizeFunc) String() string

type StrikethroughStyle

type StrikethroughStyle int32
const (
	StrikethroughStyle_STRIKETHROUGH_STYLE_NONE   StrikethroughStyle = 0
	StrikethroughStyle_STRIKETHROUGH_STYLE_SINGLE StrikethroughStyle = 1
	StrikethroughStyle_STRIKETHROUGH_STYLE_DOUBLE StrikethroughStyle = 2
	StrikethroughStyle_STRIKETHROUGH_STYLE_THICK  StrikethroughStyle = 3
	StrikethroughStyle_STRIKETHROUGH_STYLE_DOTTED StrikethroughStyle = 4
	StrikethroughStyle_STRIKETHROUGH_STYLE_DASHED StrikethroughStyle = 5
)

func (StrikethroughStyle) EnumDescriptor

func (StrikethroughStyle) EnumDescriptor() ([]byte, []int)

func (StrikethroughStyle) String

func (x StrikethroughStyle) String() string

type StyledText

type StyledText struct {
	Styles []*TextStyle `protobuf:"bytes,1,rep,name=styles" json:"styles,omitempty"`
	Text   *Text        `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
}

func (*StyledText) Descriptor

func (*StyledText) Descriptor() ([]byte, []int)

func (*StyledText) GetStyles

func (m *StyledText) GetStyles() []*TextStyle

func (*StyledText) GetText

func (m *StyledText) GetText() *Text

func (*StyledText) ProtoMessage

func (*StyledText) ProtoMessage()

func (*StyledText) Reset

func (m *StyledText) Reset()

func (*StyledText) String

func (m *StyledText) String() string

type Text

type Text struct {
	Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
}

func (*Text) Descriptor

func (*Text) Descriptor() ([]byte, []int)

func (*Text) GetText

func (m *Text) GetText() string

func (*Text) ProtoMessage

func (*Text) ProtoMessage()

func (*Text) Reset

func (m *Text) Reset()

func (*Text) String

func (m *Text) String() string

type TextAlignment

type TextAlignment int32
const (
	TextAlignment_TEXT_ALIGNMENT_LEFT      TextAlignment = 0
	TextAlignment_TEXT_ALIGNMENT_RIGHT     TextAlignment = 1
	TextAlignment_TEXT_ALIGNMENT_CENTER    TextAlignment = 2
	TextAlignment_TEXT_ALIGNMENT_JUSTIFIED TextAlignment = 3
)

func (TextAlignment) EnumDescriptor

func (TextAlignment) EnumDescriptor() ([]byte, []int)

func (TextAlignment) String

func (x TextAlignment) String() string

type TextStyle

type TextStyle struct {
	Index              int64              `protobuf:"varint,1,opt,name=index" json:"index,omitempty"`
	TextAlignment      TextAlignment      `protobuf:"varint,2,opt,name=textAlignment,enum=matcha.text.TextAlignment" json:"textAlignment,omitempty"`
	StrikethroughStyle StrikethroughStyle `protobuf:"varint,4,opt,name=strikethroughStyle,enum=matcha.text.StrikethroughStyle" json:"strikethroughStyle,omitempty"`
	StrikethroughColor *matcha.Color      `protobuf:"bytes,6,opt,name=strikethroughColor" json:"strikethroughColor,omitempty"`
	UnderlineStyle     UnderlineStyle     `protobuf:"varint,8,opt,name=underlineStyle,enum=matcha.text.UnderlineStyle" json:"underlineStyle,omitempty"`
	UnderlineColor     *matcha.Color      `protobuf:"bytes,10,opt,name=underlineColor" json:"underlineColor,omitempty"`
	Font               *Font              `protobuf:"bytes,12,opt,name=font" json:"font,omitempty"`
	Hyphenation        float64            `protobuf:"fixed64,14,opt,name=hyphenation" json:"hyphenation,omitempty"`
	LineHeightMultiple float64            `protobuf:"fixed64,16,opt,name=lineHeightMultiple" json:"lineHeightMultiple,omitempty"`
	MaxLines           int64              `protobuf:"varint,18,opt,name=maxLines" json:"maxLines,omitempty"`
	TextColor          *matcha.Color      `protobuf:"bytes,20,opt,name=textColor" json:"textColor,omitempty"`
	Wrap               TextWrap           `protobuf:"varint,22,opt,name=wrap,enum=matcha.text.TextWrap" json:"wrap,omitempty"`
	Truncation         Truncation         `protobuf:"varint,24,opt,name=truncation,enum=matcha.text.Truncation" json:"truncation,omitempty"`
	TruncationString   string             `protobuf:"bytes,26,opt,name=truncationString" json:"truncationString,omitempty"`
}

func (*TextStyle) Descriptor

func (*TextStyle) Descriptor() ([]byte, []int)

func (*TextStyle) GetFont

func (m *TextStyle) GetFont() *Font

func (*TextStyle) GetHyphenation

func (m *TextStyle) GetHyphenation() float64

func (*TextStyle) GetIndex

func (m *TextStyle) GetIndex() int64

func (*TextStyle) GetLineHeightMultiple

func (m *TextStyle) GetLineHeightMultiple() float64

func (*TextStyle) GetMaxLines

func (m *TextStyle) GetMaxLines() int64

func (*TextStyle) GetStrikethroughColor

func (m *TextStyle) GetStrikethroughColor() *matcha.Color

func (*TextStyle) GetStrikethroughStyle

func (m *TextStyle) GetStrikethroughStyle() StrikethroughStyle

func (*TextStyle) GetTextAlignment

func (m *TextStyle) GetTextAlignment() TextAlignment

func (*TextStyle) GetTextColor

func (m *TextStyle) GetTextColor() *matcha.Color

func (*TextStyle) GetTruncation

func (m *TextStyle) GetTruncation() Truncation

func (*TextStyle) GetTruncationString

func (m *TextStyle) GetTruncationString() string

func (*TextStyle) GetUnderlineColor

func (m *TextStyle) GetUnderlineColor() *matcha.Color

func (*TextStyle) GetUnderlineStyle

func (m *TextStyle) GetUnderlineStyle() UnderlineStyle

func (*TextStyle) GetWrap

func (m *TextStyle) GetWrap() TextWrap

func (*TextStyle) ProtoMessage

func (*TextStyle) ProtoMessage()

func (*TextStyle) Reset

func (m *TextStyle) Reset()

func (*TextStyle) String

func (m *TextStyle) String() string

type TextWrap

type TextWrap int32
const (
	TextWrap_TEXT_WRAP_NONE      TextWrap = 0
	TextWrap_TEXT_WRAP_WORD      TextWrap = 1
	TextWrap_TEXT_WRAP_CHARACTER TextWrap = 2
)

func (TextWrap) EnumDescriptor

func (TextWrap) EnumDescriptor() ([]byte, []int)

func (TextWrap) String

func (x TextWrap) String() string

type Truncation

type Truncation int32
const (
	Truncation_TRUNCATION_NONE   Truncation = 0
	Truncation_TRUNCATION_START  Truncation = 1
	Truncation_TRUNCATION_MIDDLE Truncation = 2
	Truncation_TRUNCATION_END    Truncation = 3
)

func (Truncation) EnumDescriptor

func (Truncation) EnumDescriptor() ([]byte, []int)

func (Truncation) String

func (x Truncation) String() string

type UnderlineStyle

type UnderlineStyle int32
const (
	UnderlineStyle_UNDRELINE_STYLE_NONE   UnderlineStyle = 0
	UnderlineStyle_UNDRELINE_STYLE_SINGLE UnderlineStyle = 1
	UnderlineStyle_UNDRELINE_STYLE_DOUBLE UnderlineStyle = 2
	UnderlineStyle_UNDRELINE_STYLE_THICK  UnderlineStyle = 3
	UnderlineStyle_UNDRELINE_STYLE_DOTTED UnderlineStyle = 4
	UnderlineStyle_UNDRELINE_STYLE_DASHED UnderlineStyle = 5
)

func (UnderlineStyle) EnumDescriptor

func (UnderlineStyle) EnumDescriptor() ([]byte, []int)

func (UnderlineStyle) String

func (x UnderlineStyle) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL