align.go 675 B

123456789101112131415161718
  1. // Copyright 2016 The G3N 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. package gui
  5. type Align int
  6. const (
  7. AlignNone = Align(iota) // No aligh
  8. AlignLeft // Align horizontally at left
  9. AlignRight // Align horizontally at right
  10. AlignWidth // Align horizontally using all width
  11. AlignTop // Align vertically at the top
  12. AlignBottom // Align vertically at the cnter
  13. AlignHeight // Align vertically using all height
  14. AlignCenter // Align horizontally/vertically at the center
  15. )