From 62ac2527732a01dfa6bd2c9523215c0ba3816641 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 26 Aug 2018 09:55:07 -0400 Subject: Moved all the Go files out of the way again, this time so we can migrate them to more proper cgo usage. --- BBB_GOFILES/separator.go | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 BBB_GOFILES/separator.go (limited to 'BBB_GOFILES/separator.go') diff --git a/BBB_GOFILES/separator.go b/BBB_GOFILES/separator.go new file mode 100644 index 0000000..67dea4f --- /dev/null +++ b/BBB_GOFILES/separator.go @@ -0,0 +1,37 @@ +// 12 december 2015 + +package ui + +import ( + "unsafe" +) + +// #include "ui.h" +import "C" + +// Separator is a Control that represents a horizontal line that +// visually separates controls. +type Separator struct { + ControlBase + s *C.uiSeparator +} + +// NewHorizontalSeparator creates a new horizontal Separator. +func NewHorizontalSeparator() *Separator { + s := new(Separator) + + s.s = C.uiNewHorizontalSeparator() + + s.ControlBase = NewControlBase(s, uintptr(unsafe.Pointer(s.s))) + return s +} + +// NewVerticalSeparator creates a new vertical Separator. +func NewVerticalSeparator() *Separator { + s := new(Separator) + + s.s = C.uiNewVerticalSeparator() + + s.ControlBase = NewControlBase(s, uintptr(unsafe.Pointer(s.s))) + return s +} -- cgit v1.2.3