Documentation ¶
Index ¶
- Variables
- func GetBufferFromEntry(entry *gtk.Entry) *gtk.EntryBuffer
- func GetBufferFromTview(tv *gtk.TextView) *gtk.TextBuffer
- func GetTextFromEntry(entry *gtk.Entry) string
- func GetTextFromTview(tv *gtk.TextView) string
- func MorseToSound(morseSequence string, c *oto.Context, p *oto.Player)
- func Play(p *oto.Player, freq float64, duration time.Duration) error
- func RunLong(c *oto.Player) error
- func RunShort(c *oto.Player) error
- func SetGridOptions(g *gtk.Grid)
- func SetWindowOptions(w *gtk.Window)
- func SetupBox(orient gtk.Orientation) *gtk.Box
- func SetupButton(label string, onClick func()) *gtk.Button
- func SetupTview() *gtk.TextView
- func SleepLong()
- func SleepShort()
- func TranslateFromMorse(morseSequence string) string
- func TranslateToMorse(text string) string
- type SineWave
Constants ¶
This section is empty.
Variables ¶
View Source
var Alphabet = map[string]string{
"A": ".-",
"B": "-...",
"C": "-.-.",
"D": "-..",
"E": ".",
"F": "..-.",
"G": "--.",
"H": "....",
"I": "..",
"J": ".---",
"K": "-.-",
"L": ".-..",
"M": "--",
"N": "-.",
"O": "---",
"P": ".--.",
"Q": "--.-",
"R": ".-.",
"S": "...",
"T": "-",
"U": "..-",
"V": "...-",
"W": ".--",
"X": "-..-",
"Y": "-.--",
"Z": "--..",
"1": ".----",
"2": "..---",
"3": "...--",
"4": "....-",
"5": ".....",
"6": "-....",
"7": "--...",
"8": "---..",
"9": "----.",
"0": "-----",
" ": "/",
}
View Source
var ReverseAlphabet = map[string]string{}
Functions ¶
func GetBufferFromEntry ¶
func GetBufferFromEntry(entry *gtk.Entry) *gtk.EntryBuffer
func GetBufferFromTview ¶
func GetBufferFromTview(tv *gtk.TextView) *gtk.TextBuffer
func GetTextFromEntry ¶
func GetTextFromTview ¶
func SetGridOptions ¶
func SetWindowOptions ¶
func SetupButton ¶
func SetupTview ¶
func SleepShort ¶
func SleepShort()
func TranslateFromMorse ¶
func TranslateToMorse ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.