github.com/as/shiny@v0.8.2/event/paint/paint.go (about)

     1  // Copyright 2015 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package paint
     6  
     7  type Event struct {
     8  	// External is true for paint events sent by the screen driver.
     9  	//
    10  	// An external event may be sent at any time in response to an
    11  	// operating system event, for example the window opened, was
    12  	// resized, or the screen memory was lost.
    13  	//
    14  	// Programs actively drawing to the screen as fast as vsync allows
    15  	// should ignore external paint events to avoid a backlog of paint
    16  	// events building up.
    17  	External bool
    18  }