pb

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

gomatcha.io/matcha/pb/color.proto
gomatcha.io/matcha/pb/image.proto

It has these top-level messages:

Color
Image
ImageProperties
ImageOrResource

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageDecode

func ImageDecode(img *Image) *image.RGBA

Types

type Color

type Color struct {
	Red   uint32 `protobuf:"varint,1,opt,name=red" json:"red,omitempty"`
	Blue  uint32 `protobuf:"varint,2,opt,name=blue" json:"blue,omitempty"`
	Green uint32 `protobuf:"varint,3,opt,name=green" json:"green,omitempty"`
	Alpha uint32 `protobuf:"varint,4,opt,name=alpha" json:"alpha,omitempty"`
}

func ColorEncode

func ColorEncode(c color.Color) *Color

func (*Color) Descriptor

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

func (*Color) GetAlpha

func (m *Color) GetAlpha() uint32

func (*Color) GetBlue

func (m *Color) GetBlue() uint32

func (*Color) GetGreen

func (m *Color) GetGreen() uint32

func (*Color) GetRed

func (m *Color) GetRed() uint32

func (*Color) ProtoMessage

func (*Color) ProtoMessage()

func (*Color) Reset

func (m *Color) Reset()

func (*Color) String

func (m *Color) String() string

type Image

type Image struct {
	Width  int64  `protobuf:"varint,1,opt,name=width" json:"width,omitempty"`
	Height int64  `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
	Stride int64  `protobuf:"varint,4,opt,name=stride" json:"stride,omitempty"`
	Data   []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

func ImageEncode

func ImageEncode(img image.Image) *Image

func (*Image) Descriptor

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

func (*Image) GetData

func (m *Image) GetData() []byte

func (*Image) GetHeight

func (m *Image) GetHeight() int64

func (*Image) GetStride

func (m *Image) GetStride() int64

func (*Image) GetWidth

func (m *Image) GetWidth() int64

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) String

func (m *Image) String() string

type ImageOrResource

type ImageOrResource struct {
	Image *Image `protobuf:"bytes,1,opt,name=image" json:"image,omitempty"`
	Path  string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
}

func (*ImageOrResource) Descriptor

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

func (*ImageOrResource) GetImage

func (m *ImageOrResource) GetImage() *Image

func (*ImageOrResource) GetPath

func (m *ImageOrResource) GetPath() string

func (*ImageOrResource) ProtoMessage

func (*ImageOrResource) ProtoMessage()

func (*ImageOrResource) Reset

func (m *ImageOrResource) Reset()

func (*ImageOrResource) String

func (m *ImageOrResource) String() string

type ImageProperties

type ImageProperties struct {
	Width  int64   `protobuf:"varint,1,opt,name=width" json:"width,omitempty"`
	Height int64   `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
	Scale  float64 `protobuf:"fixed64,3,opt,name=scale" json:"scale,omitempty"`
}

func (*ImageProperties) Descriptor

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

func (*ImageProperties) GetHeight

func (m *ImageProperties) GetHeight() int64

func (*ImageProperties) GetScale

func (m *ImageProperties) GetScale() float64

func (*ImageProperties) GetWidth

func (m *ImageProperties) GetWidth() int64

func (*ImageProperties) ProtoMessage

func (*ImageProperties) ProtoMessage()

func (*ImageProperties) Reset

func (m *ImageProperties) Reset()

func (*ImageProperties) String

func (m *ImageProperties) String() string

Directories

Path Synopsis
Package app is a generated protocol buffer package.
Package app is a generated protocol buffer package.
Package env is a generated protocol buffer package.
Package env is a generated protocol buffer package.
Package keyboard is a generated protocol buffer package.
Package keyboard is a generated protocol buffer package.
Package layout is a generated protocol buffer package.
Package layout is a generated protocol buffer package.
Package paint is a generated protocol buffer package.
Package paint is a generated protocol buffer package.
Package text is a generated protocol buffer package.
Package text is a generated protocol buffer package.
Package touch is a generated protocol buffer package.
Package touch is a generated protocol buffer package.
Package view is a generated protocol buffer package.
Package view is a generated protocol buffer package.
alert
Package alert is a generated protocol buffer package.
Package alert is a generated protocol buffer package.
button
Package button is a generated protocol buffer package.
Package button is a generated protocol buffer package.
imageview
Package imageview is a generated protocol buffer package.
Package imageview is a generated protocol buffer package.
progressview
Package progressview is a generated protocol buffer package.
Package progressview is a generated protocol buffer package.
scrollview
Package scrollview is a generated protocol buffer package.
Package scrollview is a generated protocol buffer package.
segmentview
Package segmentview is a generated protocol buffer package.
Package segmentview is a generated protocol buffer package.
slider
Package slider is a generated protocol buffer package.
Package slider is a generated protocol buffer package.
stacknav
Package stacknav is a generated protocol buffer package.
Package stacknav is a generated protocol buffer package.
switchview
Package switchview is a generated protocol buffer package.
Package switchview is a generated protocol buffer package.
tabscreen
Package tabscreen is a generated protocol buffer package.
Package tabscreen is a generated protocol buffer package.
textinput
Package textinput is a generated protocol buffer package.
Package textinput is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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