twitchapon-anim

Basic Twitchapon Receiver/Visuals
git clone git://bsandro.tech/twitchapon-anim
Log | Files | Refs | README | LICENSE

paint.go (946B)


      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 defines an event for the app being ready to paint.
      6 //
      7 // See the golang.org/x/mobile/app package for details on the event model.
      8 package paint // import "golang.org/x/mobile/event/paint"
      9 
     10 // Event indicates that the app is ready to paint the next frame of the GUI.
     11 //
     12 //A frame is completed by calling the App's Publish method.
     13 type Event struct {
     14 	// External is true for paint events sent by the screen driver.
     15 	//
     16 	// An external event may be sent at any time in response to an
     17 	// operating system event, for example the window opened, was
     18 	// resized, or the screen memory was lost.
     19 	//
     20 	// Programs actively drawing to the screen as fast as vsync allows
     21 	// should ignore external paint events to avoid a backlog of paint
     22 	// events building up.
     23 	External bool
     24 }