diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-09 22:47:45 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-09 22:47:45 -0400 |
| commit | a0e8048b06d52846157bc881e6cad8c119f807fd (patch) | |
| tree | d50d2463e1f92dd26e41b5d8eac39f1c4979b34d /area.go | |
| parent | 764010bd812a54566305e7bf1b2af0ce31f4cc0d (diff) | |
Had Area.SetSize() explicitly labelled as repainting the whole Area; made sure it does that on GTK+ (it already did on Windows and Mac). I think we're ready to declare the API as it stands now stable!
Diffstat (limited to 'area.go')
| -rw-r--r-- | area.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -293,6 +293,7 @@ func NewArea(width int, height int, handler AreaHandler) *Area { // SetSize sets the Area's internal drawing size. // It has no effect on the actual control size. // SetSize is safe for concurrent use; if the Area is being repainted or is handling an event, SetSize will wait for that to complete before changing the Area's size. +// SetSize will also signal the entirety of the Area to be redrawn as in RepaintAll. // It panics if width or height is zero or negative. func (a *Area) SetSize(width int, height int) { a.lock.Lock() |
