utils

package
v0.0.0-...-934685d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cptbl_big5 = [126][160]rune{}/* 126 elements not displayed */

Functions

func WordArray

func WordArray(p unsafe.Pointer, size uintptr) []mkf.WORD

Types

type TimerManager

type TimerManager struct {
	// contains filtered or unexported fields
}

func NewTimer

func NewTimer() *TimerManager

func (*TimerManager) AddOneTimeEvent

func (t *TimerManager) AddOneTimeEvent(countDown int, fn func(int)) uint64

func (*TimerManager) AddRepeatEvent

func (t *TimerManager) AddRepeatEvent(freq int, repeat int, fn func(int)) uint64

func (*TimerManager) RemoveEvent

func (t *TimerManager) RemoveEvent(id uint64)

func (*TimerManager) RepeatUntil

func (t *TimerManager) RepeatUntil(freq int, fn func(int), until func() bool) uint64

func (*TimerManager) Update

func (t *TimerManager) Update()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL