diff options
| author | Pietro Gagliardi <[email protected]> | 2018-08-26 09:55:07 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2018-08-26 09:55:07 -0400 |
| commit | 62ac2527732a01dfa6bd2c9523215c0ba3816641 (patch) | |
| tree | 84244a69e048f79e4d9f134c121f4cf581200986 /separator.go | |
| parent | a5a00c644c08a6e0f52740c3f2a280977929a285 (diff) | |
Moved all the Go files out of the way again, this time so we can migrate them to more proper cgo usage.
Diffstat (limited to 'separator.go')
| -rw-r--r-- | separator.go | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/separator.go b/separator.go deleted file mode 100644 index 67dea4f..0000000 --- a/separator.go +++ /dev/null @@ -1,37 +0,0 @@ -// 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 -} |
