Documentation ¶
Overview ¶
Package imageview is a generated protocol buffer package.
It is generated from these files:
gomatcha.io/matcha/pb/view/imageview/imageview.proto
It has these top-level messages:
View
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResizeMode_name = map[int32]string{
0: "FIT",
1: "FILL",
2: "STRETCH",
3: "CENTER",
}
View Source
var ResizeMode_value = map[string]int32{
"FIT": 0,
"FILL": 1,
"STRETCH": 2,
"CENTER": 3,
}
Functions ¶
This section is empty.
Types ¶
type ResizeMode ¶
type ResizeMode int32
const ( ResizeMode_FIT ResizeMode = 0 ResizeMode_FILL ResizeMode = 1 ResizeMode_STRETCH ResizeMode = 2 ResizeMode_CENTER ResizeMode = 3 )
func (ResizeMode) EnumDescriptor ¶
func (ResizeMode) EnumDescriptor() ([]byte, []int)
func (ResizeMode) String ¶
func (x ResizeMode) String() string
type View ¶
type View struct { Image *matcha1.ImageOrResource `protobuf:"bytes,1,opt,name=image" json:"image,omitempty"` ResizeMode ResizeMode `protobuf:"varint,2,opt,name=resizeMode,enum=matcha.view.imageview.ResizeMode" 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 (*View) Descriptor ¶
func (*View) GetImage ¶
func (m *View) GetImage() *matcha1.ImageOrResource
func (*View) GetResizeMode ¶
func (m *View) GetResizeMode() ResizeMode
func (*View) ProtoMessage ¶
func (*View) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.