// NewSBar returns a new scrollbar instance,
// with the specified handler function handler, could be nil;
// horizontal scrollbar if h is true, vertical otherwise;
NewSBar returns a new scrollbar instance,
with the specified handler function handler, could be nil;
horizontal scrollbar if h is true, vertical otherwise.
// NewSBar returns a new scrollbar instance // with the specified handler function handler could be nil ; // horizontal scrollbar if h is true vertical otherwise ;
func NewSBar(handler OffsetChangeHandler, h bool) *SBar {
	r := &SBar{
		offset:     new(uint32),
		actChan:    make(chan posAction, actChanDepth),
		offsetH:    handler,
		horizontal: h,
	}
	atomic.StoreUint32(r.offset, 0)
	r.ExtendBaseWidget(r)
	return r
}
func NewSBar ( handler OffsetChangeHandler , h bool ) * SBar { r := & SBar { offset : new ( uint32 ) , actChan : make ( chan posAction , actChanDepth ) , offsetH : handler , horizontal : h , } atomic . StoreUint32 ( r . offset , 0 ) r . ExtendBaseWidget ( r ) return r }
NewSBar returns a new scrollbar instance,
with the specified handler function handler, could be nil;
horizontal scrollbar if h is true, vertical otherwise.
NewSBar returns a new scrollbar instance with the specified handler function handler could be nil ; horizontal scrollbar if h is true vertical otherwise .