add Window.SetComposeMethod

This commit is contained in:
faiface 2017-04-10 00:41:48 +02:00
parent 3068153419
commit 5be03c8beb
1 changed files with 6 additions and 0 deletions

View File

@ -381,6 +381,12 @@ func (w *Window) SetColorMask(c color.Color) {
w.canvas.SetColorMask(c)
}
// SetComposeMethod sets a Porter-Duff composition method to be used in the following draws onto
// this Window.
func (w *Window) SetComposeMethod(cmp pixel.ComposeMethod) {
w.canvas.SetComposeMethod(cmp)
}
// SetSmooth sets whether the stretched Pictures drawn onto this Window should be drawn smooth or
// pixely.
func (w *Window) SetSmooth(smooth bool) {