From 52f7d276a6bb04b8827ac019ad1e135b43819cea Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 30 May 2016 00:14:46 -0400 Subject: Removed prev/. --- prev/progressbar_darwin.go | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 prev/progressbar_darwin.go (limited to 'prev/progressbar_darwin.go') diff --git a/prev/progressbar_darwin.go b/prev/progressbar_darwin.go deleted file mode 100644 index 51fd41a..0000000 --- a/prev/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)) -} -- cgit v1.2.3