Documentation ¶
Overview ¶
Package text is a generated protocol buffer package.
It is generated from these files:
gomatcha.io/matcha/pb/text/text.proto
It has these top-level messages:
SizeFunc Text StyledText Font TextStyle
Index ¶
- Variables
- type Font
- type SizeFunc
- type StrikethroughStyle
- type StyledText
- type Text
- type TextAlignment
- type TextStyle
- func (*TextStyle) Descriptor() ([]byte, []int)
- func (m *TextStyle) GetFont() *Font
- func (m *TextStyle) GetHyphenation() float64
- func (m *TextStyle) GetLineHeightMultiple() float64
- func (m *TextStyle) GetMaxLines() int64
- func (m *TextStyle) GetStrikethroughColor() *matcha.Color
- func (m *TextStyle) GetStrikethroughStyle() StrikethroughStyle
- func (m *TextStyle) GetTextAlignment() TextAlignment
- func (m *TextStyle) GetTextColor() *matcha.Color
- func (m *TextStyle) GetTruncation() Truncation
- func (m *TextStyle) GetTruncationString() string
- func (m *TextStyle) GetUnderlineColor() *matcha.Color
- func (m *TextStyle) GetUnderlineStyle() UnderlineStyle
- func (m *TextStyle) GetWrap() TextWrap
- func (*TextStyle) ProtoMessage()
- func (m *TextStyle) Reset()
- func (m *TextStyle) String() string
- type TextWrap
- type Truncation
- type UnderlineStyle
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) ProtoMessage ¶
func (*Font) ProtoMessage()
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) 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()
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 { Style *TextStyle `protobuf:"bytes,1,opt,name=style" json:"style,omitempty"` Text *Text `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` }
func (*StyledText) Descriptor ¶
func (*StyledText) Descriptor() ([]byte, []int)
func (*StyledText) GetStyle ¶
func (m *StyledText) GetStyle() *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) ProtoMessage ¶
func (*Text) ProtoMessage()
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 { 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) GetHyphenation ¶
func (*TextStyle) GetLineHeightMultiple ¶
func (*TextStyle) GetMaxLines ¶
func (*TextStyle) GetStrikethroughColor ¶
func (*TextStyle) GetStrikethroughStyle ¶
func (m *TextStyle) GetStrikethroughStyle() StrikethroughStyle
func (*TextStyle) GetTextAlignment ¶
func (m *TextStyle) GetTextAlignment() TextAlignment
func (*TextStyle) GetTextColor ¶
func (*TextStyle) GetTruncation ¶
func (m *TextStyle) GetTruncation() Truncation
func (*TextStyle) GetTruncationString ¶
func (*TextStyle) GetUnderlineColor ¶
func (*TextStyle) GetUnderlineStyle ¶
func (m *TextStyle) GetUnderlineStyle() UnderlineStyle
func (*TextStyle) ProtoMessage ¶
func (*TextStyle) ProtoMessage()
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
Click to show internal directories.
Click to hide internal directories.