align.go 736 B

12345678910111213141516171819
  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. // Align specifies the alignment of an object inside another
  6. type Align int
  7. const (
  8. AlignNone = Align(iota) // No aligh
  9. AlignLeft // Align horizontally at left
  10. AlignRight // Align horizontally at right
  11. AlignWidth // Align horizontally using all width
  12. AlignTop // Align vertically at the top
  13. AlignBottom // Align vertically at the cnter
  14. AlignHeight // Align vertically using all height
  15. AlignCenter // Align horizontally/vertically at the center
  16. )