Documentation
¶
Overview ¶
Package view is a generated protocol buffer package.
It is generated from these files:
gomatcha.io/matcha/proto/view/alert.proto gomatcha.io/matcha/proto/view/button.proto gomatcha.io/matcha/proto/view/imageview.proto gomatcha.io/matcha/proto/view/scrollview.proto gomatcha.io/matcha/proto/view/slider.proto gomatcha.io/matcha/proto/view/switchview.proto gomatcha.io/matcha/proto/view/textinput.proto gomatcha.io/matcha/proto/view/view.proto
It has these top-level messages:
Alert AlertButton Button ImageView ScrollView ScrollEvent Slider SliderEvent SwitchView SwitchEvent TextInput TextInputEvent TextInputFocusEvent TextInputSubmitEvent BuildNode LayoutPaintNode Root
Index ¶
- Variables
- type Alert
- type AlertButton
- type BuildNode
- func (*BuildNode) Descriptor() ([]byte, []int)
- func (m *BuildNode) GetAltIds() map[int64]int64
- func (m *BuildNode) GetBridgeName() string
- func (m *BuildNode) GetBridgeValue() []byte
- func (m *BuildNode) GetBuildId() int64
- func (m *BuildNode) GetChildren() []int64
- func (m *BuildNode) GetId() int64
- func (m *BuildNode) GetValues() map[string][]byte
- func (*BuildNode) ProtoMessage()
- func (m *BuildNode) Reset()
- func (m *BuildNode) String() string
- type Button
- type ImageResizeMode
- type ImageView
- func (*ImageView) Descriptor() ([]byte, []int)
- func (m *ImageView) GetImage() *matcha.ImageOrResource
- func (m *ImageView) GetResizeMode() ImageResizeMode
- func (m *ImageView) GetScale() float64
- func (m *ImageView) GetTint() *matcha.Color
- func (*ImageView) ProtoMessage()
- func (m *ImageView) Reset()
- func (m *ImageView) String() string
- type LayoutPaintNode
- func (*LayoutPaintNode) Descriptor() ([]byte, []int)
- func (m *LayoutPaintNode) GetChildOrder() []int64
- func (m *LayoutPaintNode) GetId() int64
- func (m *LayoutPaintNode) GetLayoutId() int64
- func (m *LayoutPaintNode) GetMaxx() float64
- func (m *LayoutPaintNode) GetMaxy() float64
- func (m *LayoutPaintNode) GetMinx() float64
- func (m *LayoutPaintNode) GetMiny() float64
- func (m *LayoutPaintNode) GetPaintId() int64
- func (m *LayoutPaintNode) GetPaintStyle() *matcha_paint.Style
- func (m *LayoutPaintNode) GetZIndex() int64
- func (*LayoutPaintNode) ProtoMessage()
- func (m *LayoutPaintNode) Reset()
- func (m *LayoutPaintNode) String() string
- type Root
- func (*Root) Descriptor() ([]byte, []int)
- func (m *Root) GetBuildNodes() map[int64]*BuildNode
- func (m *Root) GetLayoutPaintNodes() map[int64]*LayoutPaintNode
- func (m *Root) GetMiddleware() map[string]*google_protobuf.Any
- func (*Root) ProtoMessage()
- func (m *Root) Reset()
- func (m *Root) String() string
- type ScrollEvent
- type ScrollView
- func (*ScrollView) Descriptor() ([]byte, []int)
- func (m *ScrollView) GetHorizontal() bool
- func (m *ScrollView) GetScrollEnabled() bool
- func (m *ScrollView) GetShowsHorizontalScrollIndicator() bool
- func (m *ScrollView) GetShowsVerticalScrollIndicator() bool
- func (m *ScrollView) GetVertical() bool
- func (*ScrollView) ProtoMessage()
- func (m *ScrollView) Reset()
- func (m *ScrollView) String() string
- type Slider
- type SliderEvent
- type SwitchEvent
- type SwitchView
- type TextInput
- func (*TextInput) Descriptor() ([]byte, []int)
- func (m *TextInput) GetFocused() bool
- func (m *TextInput) GetFont() *matcha_text.Font
- func (m *TextInput) GetKeyboardAppearance() matcha_keyboard.Appearance
- func (m *TextInput) GetKeyboardReturnType() matcha_keyboard.ReturnType
- func (m *TextInput) GetKeyboardType() matcha_keyboard.Type
- func (m *TextInput) GetMaxLines() int64
- func (m *TextInput) GetPlaceholderText() *matcha_text.StyledText
- func (m *TextInput) GetSecureTextEntry() bool
- func (m *TextInput) GetStyledText() *matcha_text.StyledText
- func (*TextInput) ProtoMessage()
- func (m *TextInput) Reset()
- func (m *TextInput) String() string
- type TextInputEvent
- type TextInputFocusEvent
- type TextInputSubmitEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var ImageResizeMode_name = map[int32]string{
0: "FIT",
1: "FILL",
2: "STRETCH",
3: "CENTER",
}
View Source
var ImageResizeMode_value = map[string]int32{
"FIT": 0,
"FILL": 1,
"STRETCH": 2,
"CENTER": 3,
}
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` Buttons []*AlertButton `protobuf:"bytes,4,rep,name=buttons" json:"buttons,omitempty"` }
func (*Alert) Descriptor ¶
func (*Alert) GetButtons ¶
func (m *Alert) GetButtons() []*AlertButton
func (*Alert) GetMessage ¶
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
type AlertButton ¶
type AlertButton struct {
Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
}
func (*AlertButton) Descriptor ¶
func (*AlertButton) Descriptor() ([]byte, []int)
func (*AlertButton) GetTitle ¶
func (m *AlertButton) GetTitle() string
func (*AlertButton) ProtoMessage ¶
func (*AlertButton) ProtoMessage()
func (*AlertButton) Reset ¶
func (m *AlertButton) Reset()
func (*AlertButton) String ¶
func (m *AlertButton) String() string
type BuildNode ¶
type BuildNode struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` BuildId int64 `protobuf:"varint,2,opt,name=buildId" json:"buildId,omitempty"` BridgeName string `protobuf:"bytes,3,opt,name=bridgeName" json:"bridgeName,omitempty"` BridgeValue []byte `protobuf:"bytes,4,opt,name=bridgeValue,proto3" json:"bridgeValue,omitempty"` Values map[string][]byte `` /* 139-byte string literal not displayed */ Children []int64 `protobuf:"varint,6,rep,packed,name=children" json:"children,omitempty"` AltIds map[int64]int64 `` /* 134-byte string literal not displayed */ }
func (*BuildNode) Descriptor ¶
func (*BuildNode) GetBridgeName ¶
func (*BuildNode) GetBridgeValue ¶
func (*BuildNode) GetBuildId ¶
func (*BuildNode) GetChildren ¶
func (*BuildNode) ProtoMessage ¶
func (*BuildNode) ProtoMessage()
type Button ¶
type Button struct { Str string `protobuf:"bytes,1,opt,name=str" json:"str,omitempty"` Enabled bool `protobuf:"varint,2,opt,name=enabled" json:"enabled,omitempty"` Color *matcha.Color `protobuf:"bytes,3,opt,name=color" json:"color,omitempty"` }
func (*Button) Descriptor ¶
func (*Button) GetEnabled ¶
func (*Button) ProtoMessage ¶
func (*Button) ProtoMessage()
type ImageResizeMode ¶
type ImageResizeMode int32
const ( ImageResizeMode_FIT ImageResizeMode = 0 ImageResizeMode_FILL ImageResizeMode = 1 ImageResizeMode_STRETCH ImageResizeMode = 2 ImageResizeMode_CENTER ImageResizeMode = 3 )
func (ImageResizeMode) EnumDescriptor ¶
func (ImageResizeMode) EnumDescriptor() ([]byte, []int)
func (ImageResizeMode) String ¶
func (x ImageResizeMode) String() string
type ImageView ¶
type ImageView struct { Image *matcha.ImageOrResource `protobuf:"bytes,1,opt,name=image" json:"image,omitempty"` ResizeMode ImageResizeMode `protobuf:"varint,2,opt,name=resizeMode,enum=matcha.view.ImageResizeMode" json:"resizeMode,omitempty"` Tint *matcha.Color `protobuf:"bytes,3,opt,name=tint" json:"tint,omitempty"` Scale float64 `protobuf:"fixed64,5,opt,name=scale" json:"scale,omitempty"` }
func (*ImageView) Descriptor ¶
func (*ImageView) GetImage ¶
func (m *ImageView) GetImage() *matcha.ImageOrResource
func (*ImageView) GetResizeMode ¶
func (m *ImageView) GetResizeMode() ImageResizeMode
func (*ImageView) ProtoMessage ¶
func (*ImageView) ProtoMessage()
type LayoutPaintNode ¶
type LayoutPaintNode struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` LayoutId int64 `protobuf:"varint,2,opt,name=layoutId" json:"layoutId,omitempty"` PaintId int64 `protobuf:"varint,3,opt,name=paintId" json:"paintId,omitempty"` // matcha.layout.Guide layoutGuide = 4; // Guide Minx float64 `protobuf:"fixed64,4,opt,name=minx" json:"minx,omitempty"` Miny float64 `protobuf:"fixed64,5,opt,name=miny" json:"miny,omitempty"` Maxx float64 `protobuf:"fixed64,6,opt,name=maxx" json:"maxx,omitempty"` Maxy float64 `protobuf:"fixed64,7,opt,name=maxy" json:"maxy,omitempty"` ZIndex int64 `protobuf:"varint,8,opt,name=zIndex" json:"zIndex,omitempty"` ChildOrder []int64 `protobuf:"varint,9,rep,packed,name=childOrder" json:"childOrder,omitempty"` PaintStyle *matcha_paint.Style `protobuf:"bytes,10,opt,name=paintStyle" json:"paintStyle,omitempty"` }
func (*LayoutPaintNode) Descriptor ¶
func (*LayoutPaintNode) Descriptor() ([]byte, []int)
func (*LayoutPaintNode) GetChildOrder ¶
func (m *LayoutPaintNode) GetChildOrder() []int64
func (*LayoutPaintNode) GetId ¶
func (m *LayoutPaintNode) GetId() int64
func (*LayoutPaintNode) GetLayoutId ¶
func (m *LayoutPaintNode) GetLayoutId() int64
func (*LayoutPaintNode) GetMaxx ¶
func (m *LayoutPaintNode) GetMaxx() float64
func (*LayoutPaintNode) GetMaxy ¶
func (m *LayoutPaintNode) GetMaxy() float64
func (*LayoutPaintNode) GetMinx ¶
func (m *LayoutPaintNode) GetMinx() float64
func (*LayoutPaintNode) GetMiny ¶
func (m *LayoutPaintNode) GetMiny() float64
func (*LayoutPaintNode) GetPaintId ¶
func (m *LayoutPaintNode) GetPaintId() int64
func (*LayoutPaintNode) GetPaintStyle ¶
func (m *LayoutPaintNode) GetPaintStyle() *matcha_paint.Style
func (*LayoutPaintNode) GetZIndex ¶
func (m *LayoutPaintNode) GetZIndex() int64
func (*LayoutPaintNode) ProtoMessage ¶
func (*LayoutPaintNode) ProtoMessage()
func (*LayoutPaintNode) Reset ¶
func (m *LayoutPaintNode) Reset()
func (*LayoutPaintNode) String ¶
func (m *LayoutPaintNode) String() string
type Root ¶
type Root struct { LayoutPaintNodes map[int64]*LayoutPaintNode `` /* 153-byte string literal not displayed */ BuildNodes map[int64]*BuildNode `` /* 141-byte string literal not displayed */ Middleware map[string]*google_protobuf.Any `` /* 140-byte string literal not displayed */ }
func (*Root) Descriptor ¶
func (*Root) GetBuildNodes ¶
func (*Root) GetLayoutPaintNodes ¶
func (m *Root) GetLayoutPaintNodes() map[int64]*LayoutPaintNode
func (*Root) GetMiddleware ¶
func (m *Root) GetMiddleware() map[string]*google_protobuf.Any
func (*Root) ProtoMessage ¶
func (*Root) ProtoMessage()
type ScrollEvent ¶
type ScrollEvent struct {
ContentOffset *matcha_layout.Point `protobuf:"bytes,1,opt,name=contentOffset" json:"contentOffset,omitempty"`
}
func (*ScrollEvent) Descriptor ¶
func (*ScrollEvent) Descriptor() ([]byte, []int)
func (*ScrollEvent) GetContentOffset ¶
func (m *ScrollEvent) GetContentOffset() *matcha_layout.Point
func (*ScrollEvent) ProtoMessage ¶
func (*ScrollEvent) ProtoMessage()
func (*ScrollEvent) Reset ¶
func (m *ScrollEvent) Reset()
func (*ScrollEvent) String ¶
func (m *ScrollEvent) String() string
type ScrollView ¶
type ScrollView struct { ScrollEnabled bool `protobuf:"varint,1,opt,name=scrollEnabled" json:"scrollEnabled,omitempty"` Horizontal bool `protobuf:"varint,4,opt,name=horizontal" json:"horizontal,omitempty"` Vertical bool `protobuf:"varint,5,opt,name=vertical" json:"vertical,omitempty"` ShowsHorizontalScrollIndicator bool `protobuf:"varint,2,opt,name=showsHorizontalScrollIndicator" json:"showsHorizontalScrollIndicator,omitempty"` ShowsVerticalScrollIndicator bool `protobuf:"varint,3,opt,name=showsVerticalScrollIndicator" json:"showsVerticalScrollIndicator,omitempty"` }
func (*ScrollView) Descriptor ¶
func (*ScrollView) Descriptor() ([]byte, []int)
func (*ScrollView) GetHorizontal ¶
func (m *ScrollView) GetHorizontal() bool
func (*ScrollView) GetScrollEnabled ¶
func (m *ScrollView) GetScrollEnabled() bool
func (*ScrollView) GetShowsHorizontalScrollIndicator ¶
func (m *ScrollView) GetShowsHorizontalScrollIndicator() bool
func (*ScrollView) GetShowsVerticalScrollIndicator ¶
func (m *ScrollView) GetShowsVerticalScrollIndicator() bool
func (*ScrollView) GetVertical ¶
func (m *ScrollView) GetVertical() bool
func (*ScrollView) ProtoMessage ¶
func (*ScrollView) ProtoMessage()
func (*ScrollView) Reset ¶
func (m *ScrollView) Reset()
func (*ScrollView) String ¶
func (m *ScrollView) String() string
type Slider ¶
type Slider struct { Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` MaxValue float64 `protobuf:"fixed64,2,opt,name=maxValue" json:"maxValue,omitempty"` MinValue float64 `protobuf:"fixed64,3,opt,name=minValue" json:"minValue,omitempty"` Enabled bool `protobuf:"varint,4,opt,name=enabled" json:"enabled,omitempty"` }
func (*Slider) Descriptor ¶
func (*Slider) GetEnabled ¶
func (*Slider) GetMaxValue ¶
func (*Slider) GetMinValue ¶
func (*Slider) ProtoMessage ¶
func (*Slider) ProtoMessage()
type SliderEvent ¶
type SliderEvent struct {
Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
}
func (*SliderEvent) Descriptor ¶
func (*SliderEvent) Descriptor() ([]byte, []int)
func (*SliderEvent) GetValue ¶
func (m *SliderEvent) GetValue() float64
func (*SliderEvent) ProtoMessage ¶
func (*SliderEvent) ProtoMessage()
func (*SliderEvent) Reset ¶
func (m *SliderEvent) Reset()
func (*SliderEvent) String ¶
func (m *SliderEvent) String() string
type SwitchEvent ¶
type SwitchEvent struct {
Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}
func (*SwitchEvent) Descriptor ¶
func (*SwitchEvent) Descriptor() ([]byte, []int)
func (*SwitchEvent) GetValue ¶
func (m *SwitchEvent) GetValue() bool
func (*SwitchEvent) ProtoMessage ¶
func (*SwitchEvent) ProtoMessage()
func (*SwitchEvent) Reset ¶
func (m *SwitchEvent) Reset()
func (*SwitchEvent) String ¶
func (m *SwitchEvent) String() string
type SwitchView ¶
type SwitchView struct { Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` Enabled bool `protobuf:"varint,2,opt,name=enabled" json:"enabled,omitempty"` }
func (*SwitchView) Descriptor ¶
func (*SwitchView) Descriptor() ([]byte, []int)
func (*SwitchView) GetEnabled ¶
func (m *SwitchView) GetEnabled() bool
func (*SwitchView) GetValue ¶
func (m *SwitchView) GetValue() bool
func (*SwitchView) ProtoMessage ¶
func (*SwitchView) ProtoMessage()
func (*SwitchView) Reset ¶
func (m *SwitchView) Reset()
func (*SwitchView) String ¶
func (m *SwitchView) String() string
type TextInput ¶
type TextInput struct { StyledText *matcha_text.StyledText `protobuf:"bytes,1,opt,name=styledText" json:"styledText,omitempty"` PlaceholderText *matcha_text.StyledText `protobuf:"bytes,2,opt,name=placeholderText" json:"placeholderText,omitempty"` Font *matcha_text.Font `protobuf:"bytes,10,opt,name=font" json:"font,omitempty"` Focused bool `protobuf:"varint,4,opt,name=focused" json:"focused,omitempty"` KeyboardType matcha_keyboard.Type `protobuf:"varint,5,opt,name=keyboardType,enum=matcha.keyboard.Type" json:"keyboardType,omitempty"` KeyboardAppearance matcha_keyboard.Appearance `protobuf:"varint,6,opt,name=keyboardAppearance,enum=matcha.keyboard.Appearance" json:"keyboardAppearance,omitempty"` KeyboardReturnType matcha_keyboard.ReturnType `protobuf:"varint,7,opt,name=keyboardReturnType,enum=matcha.keyboard.ReturnType" json:"keyboardReturnType,omitempty"` MaxLines int64 `protobuf:"varint,8,opt,name=maxLines" json:"maxLines,omitempty"` SecureTextEntry bool `protobuf:"varint,9,opt,name=secureTextEntry" json:"secureTextEntry,omitempty"` }
func (*TextInput) Descriptor ¶
func (*TextInput) GetFocused ¶
func (*TextInput) GetFont ¶
func (m *TextInput) GetFont() *matcha_text.Font
func (*TextInput) GetKeyboardAppearance ¶
func (m *TextInput) GetKeyboardAppearance() matcha_keyboard.Appearance
func (*TextInput) GetKeyboardReturnType ¶
func (m *TextInput) GetKeyboardReturnType() matcha_keyboard.ReturnType
func (*TextInput) GetKeyboardType ¶
func (m *TextInput) GetKeyboardType() matcha_keyboard.Type
func (*TextInput) GetMaxLines ¶
func (*TextInput) GetPlaceholderText ¶
func (m *TextInput) GetPlaceholderText() *matcha_text.StyledText
func (*TextInput) GetSecureTextEntry ¶
func (*TextInput) GetStyledText ¶
func (m *TextInput) GetStyledText() *matcha_text.StyledText
func (*TextInput) ProtoMessage ¶
func (*TextInput) ProtoMessage()
type TextInputEvent ¶
type TextInputEvent struct {
StyledText *matcha_text.StyledText `protobuf:"bytes,1,opt,name=styledText" json:"styledText,omitempty"`
}
func (*TextInputEvent) Descriptor ¶
func (*TextInputEvent) Descriptor() ([]byte, []int)
func (*TextInputEvent) GetStyledText ¶
func (m *TextInputEvent) GetStyledText() *matcha_text.StyledText
func (*TextInputEvent) ProtoMessage ¶
func (*TextInputEvent) ProtoMessage()
func (*TextInputEvent) Reset ¶
func (m *TextInputEvent) Reset()
func (*TextInputEvent) String ¶
func (m *TextInputEvent) String() string
type TextInputFocusEvent ¶
type TextInputFocusEvent struct {
Focused bool `protobuf:"varint,1,opt,name=focused" json:"focused,omitempty"`
}
func (*TextInputFocusEvent) Descriptor ¶
func (*TextInputFocusEvent) Descriptor() ([]byte, []int)
func (*TextInputFocusEvent) GetFocused ¶
func (m *TextInputFocusEvent) GetFocused() bool
func (*TextInputFocusEvent) ProtoMessage ¶
func (*TextInputFocusEvent) ProtoMessage()
func (*TextInputFocusEvent) Reset ¶
func (m *TextInputFocusEvent) Reset()
func (*TextInputFocusEvent) String ¶
func (m *TextInputFocusEvent) String() string
type TextInputSubmitEvent ¶
type TextInputSubmitEvent struct { }
func (*TextInputSubmitEvent) Descriptor ¶
func (*TextInputSubmitEvent) Descriptor() ([]byte, []int)
func (*TextInputSubmitEvent) ProtoMessage ¶
func (*TextInputSubmitEvent) ProtoMessage()
func (*TextInputSubmitEvent) Reset ¶
func (m *TextInputSubmitEvent) Reset()
func (*TextInputSubmitEvent) String ¶
func (m *TextInputSubmitEvent) String() string