remove Text.Matrix() and Text.ColorMask() getters
This commit is contained in:
parent
f7aac5ed09
commit
fccedc5a9d
10
text/text.go
10
text/text.go
|
@ -156,11 +156,6 @@ func (txt *Text) SetMatrix(m pixel.Matrix) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Matrix returns the current Text's matrix.
|
|
||||||
func (txt *Text) Matrix() pixel.Matrix {
|
|
||||||
return txt.mat
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetColorMask sets a color by which the text will be masked before drawingto another Target.
|
// SetColorMask sets a color by which the text will be masked before drawingto another Target.
|
||||||
func (txt *Text) SetColorMask(c color.Color) {
|
func (txt *Text) SetColorMask(c color.Color) {
|
||||||
rgba := pixel.ToRGBA(c)
|
rgba := pixel.ToRGBA(c)
|
||||||
|
@ -170,11 +165,6 @@ func (txt *Text) SetColorMask(c color.Color) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ColorMask returns the current Text's color mask.
|
|
||||||
func (txt *Text) ColorMask() pixel.RGBA {
|
|
||||||
return txt.col
|
|
||||||
}
|
|
||||||
|
|
||||||
// Bounds returns the bounding box of the text currently written to the Text excluding whitespace.
|
// Bounds returns the bounding box of the text currently written to the Text excluding whitespace.
|
||||||
//
|
//
|
||||||
// If the Text is empty, a zero rectangle is returned.
|
// If the Text is empty, a zero rectangle is returned.
|
||||||
|
|
Loading…
Reference in New Issue