imageview

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

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) Descriptor() ([]byte, []int)

func (*View) GetImage

func (m *View) GetImage() *matcha1.ImageOrResource

func (*View) GetResizeMode

func (m *View) GetResizeMode() ResizeMode

func (*View) GetScale

func (m *View) GetScale() float64

func (*View) GetTint

func (m *View) GetTint() *matcha.Color

func (*View) ProtoMessage

func (*View) ProtoMessage()

func (*View) Reset

func (m *View) Reset()

func (*View) String

func (m *View) String() string

Jump to

Keyboard shortcuts

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