table.go 534 B

123456789101112131415161718192021222324
  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. import ()
  6. //
  7. // Table implements a panel which can contains row and columns of child panels
  8. //
  9. type Table struct {
  10. Panel // Embedded panel
  11. }
  12. // NewTable creates and returns a pointer to a new Table with the
  13. // specified initial width and height
  14. func NewTable(width, height float32) *Table {
  15. t := new(Table)
  16. t.Panel.Initialize(width, height)
  17. return t
  18. }