align.go 776 B

1234567891011121314151617181920
  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. // The various types of alignment.
  8. const (
  9. AlignNone = Align(iota) // No alignment
  10. AlignLeft // Align horizontally at left
  11. AlignRight // Align horizontally at right
  12. AlignWidth // Align horizontally using all width
  13. AlignTop // Align vertically at the top
  14. AlignBottom // Align vertically at the cnter
  15. AlignHeight // Align vertically using all height
  16. AlignCenter // Align horizontally/vertically at the center
  17. )