github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/src/runtime/ppapi/types_nacl.go (about) 1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package ppapi 6 7 // Point represents an integer coordinate in 2D space. 8 type Point struct { 9 X int32 10 Y int32 11 } 12 13 // FloatPoint represents a float32 coordinate in 2D space. 14 type FloatPoint struct { 15 X float32 16 Y float32 17 } 18 19 // Size represents a 2D integer size. 20 type Size struct { 21 Width int32 22 Height int32 23 } 24 25 // Rect represents a 2D rectangle with integer coordinates. 26 type Rect struct { 27 Point Point 28 Size Size 29 }