summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-09 22:47:45 -0400
committerPietro Gagliardi <[email protected]>2014-06-09 22:47:45 -0400
commita0e8048b06d52846157bc881e6cad8c119f807fd (patch)
treed50d2463e1f92dd26e41b5d8eac39f1c4979b34d /area.go
parent764010bd812a54566305e7bf1b2af0ce31f4cc0d (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.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/area.go b/area.go
index 27cba62..48af56f 100644
--- a/area.go
+++ b/area.go
@@ -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()