mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-12 22:17:26 +01:00
all: fix function names in comment (#2957)
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
This commit is contained in:
parent
6eee7ccc5f
commit
f6927232f2
@ -538,7 +538,7 @@ func (w *Window) SetOpacity(opacity float32) {
|
|||||||
C.glfwSetWindowOpacity(w.data, C.float(opacity))
|
C.glfwSetWindowOpacity(w.data, C.float(opacity))
|
||||||
}
|
}
|
||||||
|
|
||||||
// RequestWindowAttention funciton requests user attention to the specified
|
// RequestAttention function requests user attention to the specified
|
||||||
// window. On platforms where this is not supported, attention is requested to
|
// window. On platforms where this is not supported, attention is requested to
|
||||||
// the application as a whole.
|
// the application as a whole.
|
||||||
//
|
//
|
||||||
|
@ -168,7 +168,7 @@ func (t Tag) String() string {
|
|||||||
return string([]byte{byte(t >> 24), byte(t >> 16), byte(t >> 8), byte(t)})
|
return string([]byte{byte(t >> 24), byte(t >> 16), byte(t >> 8), byte(t)})
|
||||||
}
|
}
|
||||||
|
|
||||||
// PraseTag converts a string to Tag.
|
// ParseTag converts a string to Tag.
|
||||||
func ParseTag(str string) (Tag, error) {
|
func ParseTag(str string) (Tag, error) {
|
||||||
if len(str) != 4 {
|
if len(str) != 4 {
|
||||||
return 0, fmt.Errorf("text: a string's length must be 4 but was %d at ParseTag", len(str))
|
return 0, fmt.Errorf("text: a string's length must be 4 but was %d at ParseTag", len(str))
|
||||||
@ -176,7 +176,7 @@ func ParseTag(str string) (Tag, error) {
|
|||||||
return Tag((uint32(str[0]) << 24) | (uint32(str[1]) << 16) | (uint32(str[2]) << 8) | uint32(str[3])), nil
|
return Tag((uint32(str[0]) << 24) | (uint32(str[1]) << 16) | (uint32(str[2]) << 8) | uint32(str[3])), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// MustPraseTag converts a string to Tag.
|
// MustParseTag converts a string to Tag.
|
||||||
// If parsing fails, MustParseTag panics.
|
// If parsing fails, MustParseTag panics.
|
||||||
func MustParseTag(str string) Tag {
|
func MustParseTag(str string) Tag {
|
||||||
t, err := ParseTag(str)
|
t, err := ParseTag(str)
|
||||||
|
Loading…
Reference in New Issue
Block a user