summaryrefslogtreecommitdiff
path: root/progressbar_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-12-11 20:37:59 -0500
committerPietro Gagliardi <[email protected]>2015-12-11 20:37:59 -0500
commitf8e3f12ab02b528f2a05a4f713d7af7ea8e44b42 (patch)
tree82dedf4d37f0f6d31e88ebb2ca1ce6499dead261 /progressbar_darwin.go
parente34c561ed5bedeb180437ec165882b98d70d38c1 (diff)
LET'S GET THIS FINAL REWRITE EVER STARTED
Diffstat (limited to 'progressbar_darwin.go')
-rw-r--r--progressbar_darwin.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/progressbar_darwin.go b/progressbar_darwin.go
deleted file mode 100644
index 51fd41a..0000000
--- a/progressbar_darwin.go
+++ /dev/null
@@ -1,31 +0,0 @@
-// 4 november 2014
-
-package ui
-
-import (
- "fmt"
-)
-
-// #include "objc_darwin.h"
-import "C"
-
-type progressbar struct {
- *controlSingleObject
-}
-
-func newProgressBar() ProgressBar {
- return &progressbar{
- controlSingleObject: newControlSingleObject(C.newProgressBar()),
- }
-}
-
-func (p *progressbar) Percent() int {
- return int(C.progressbarPercent(p.id))
-}
-
-func (p *progressbar) SetPercent(percent int) {
- if percent < 0 || percent > 100 {
- panic(fmt.Errorf("given ProgressBar percentage %d out of range", percent))
- }
- C.progressbarSetPercent(p.id, C.intmax_t(percent))
-}