diff options
| author | Pietro Gagliardi <[email protected]> | 2018-08-26 13:33:54 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2018-08-26 13:33:54 -0400 |
| commit | 1095719d84a6ac5f90eefe8e23913f3e09ad692d (patch) | |
| tree | ca7352bf6922e3f0bcf1ee4d5007c8515b681729 /BBB_GOFILES/progressbar.go | |
| parent | 2bc76219286dfe39949772ceee4dbd9560ec2c1f (diff) | |
Migrated more controls.
Diffstat (limited to 'BBB_GOFILES/progressbar.go')
| -rw-r--r-- | BBB_GOFILES/progressbar.go | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/BBB_GOFILES/progressbar.go b/BBB_GOFILES/progressbar.go deleted file mode 100644 index f58976f..0000000 --- a/BBB_GOFILES/progressbar.go +++ /dev/null @@ -1,39 +0,0 @@ -// 12 december 2015 - -package ui - -import ( - "unsafe" -) - -// #include "ui.h" -import "C" - -// ProgressBar is a Control that represents a horizontal bar that -// is filled in progressively over time as a process completes. -type ProgressBar struct { - ControlBase - p *C.uiProgressBar -} - -// NewProgressBar creates a new ProgressBar. -func NewProgressBar() *ProgressBar { - p := new(ProgressBar) - - p.p = C.uiNewProgressBar() - - p.ControlBase = NewControlBase(p, uintptr(unsafe.Pointer(p.p))) - return p -} - -// Value returns the value currently shown in the ProgressBar. -func (p *ProgressBar) Value() int { - return int(C.uiProgressBarValue(p.p)) -} - -// SetValue sets the ProgressBar's currently displayed percentage -// to value. value must be between 0 and 100 inclusive, or -1 for -// an indeterminate progressbar. -func (p *ProgressBar) SetValue(value int) { - C.uiProgressBarSetValue(p.p, C.int(value)) -} |
