forked from g3n/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
align.go
20 lines (17 loc) · 776 Bytes
/
align.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2016 The G3N Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gui
// Align specifies the alignment of an object inside another.
type Align int
// The various types of alignment.
const (
AlignNone = Align(iota) // No alignment
AlignLeft // Align horizontally at left
AlignRight // Align horizontally at right
AlignWidth // Align horizontally using all width
AlignTop // Align vertically at the top
AlignBottom // Align vertically at the cnter
AlignHeight // Align vertically using all height
AlignCenter // Align horizontally/vertically at the center
)