iface

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Overview

Package implements an internal mechanism to communicate with an impress terminal.

Index

Constants

View Source
const (
	ApplicationSizeCode    byte = 'S'
	ApplicationTitleCode   byte = 'T'
	ApplicationExitCode    byte = 'X'
	ApplicationVersionCode byte = 'V'

	FrameNewCode   byte = 'Y'
	FrameDropCode  byte = 'Q'
	FrameSizeCode  byte = 'H'
	FrameRaiseCode byte = 'J'

	WindowNewCode   byte = 'D'
	WindowDropCode  byte = 'O'
	WindowRaiseCode byte = 'A'
	WindowClearCode byte = 'C'
	WindowShowCode  byte = 'W'
	WindowSizeCode  byte = 'Z'
	WindowFillCode  byte = 'F'
	WindowLineCode  byte = 'L'
	WindowTextCode  byte = 'U'
	WindowImageCode byte = 'I'

	FontNewCode   byte = 'N'
	FontDropCode  byte = 'K'
	FontSplitCode byte = 'P'
	FontSizeCode  byte = 'R'

	ImageNewCode  byte = 'B'
	ImageDropCode byte = 'M'

	MenuNewCode  byte = 'E'
	MenuItemCode byte = 'G'

	ClipboardGetCode byte = '1'
	ClipboardPutCode byte = '2'

	EventGeneralCode   byte = 'g'
	EventKeyboardCode  byte = 'k'
	EventConfigureCode byte = 'f'
	EventButtonCode    byte = 'b'
	EventMotionCode    byte = 'm'
	EventMenuCode      byte = 'u'
	EventScrollCode    byte = 's'
	EventClipboard     byte = 'c'
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CallSet

type CallSet interface {
	ApplicationExit()
	ApplicationVersion() string
	ApplicationSize(x, y, width, height int)
	ApplicationTitle(title string)
	FrameNew(frameID int, parentFrameID int, x, y, width, height int)
	FrameDrop(frameID int)
	FrameSize(frameID int, x, y, width, height int)
	FrameRaise(frameID int)
	WindowNew(windowID int, frameID int, x, y, width, height int)
	WindowDrop(windowID int)
	WindowRaise(windowID int)
	WindowClear(windowID int)
	WindowShow(windowID int)
	WindowSize(windowID int, x, y, width, height int)
	WindowFill(windowID int, x, y, width, height int, r, g, b, a uint16)
	WindowLine(windowID int, x0, y0, x1, y1 int, r, g, b, a uint16)
	WindowText(windowID int, x, y int, r, g, b, a uint16, fontID int, text string)
	WindowImage(windowID int, x, y, width, height int, imageID int)
	FontNew(fontID int, height int, style, variant, weight, stretch int, family string) (int, int, int, int)
	FontDrop(fontID int)
	FontSplit(fontID int, text string, edge, indent int) []int
	FontSize(fontID int, text string) (int, int)
	ImageNew(imageID int, width, height int, bitmap []byte)
	ImageDrop(imageID int)
	MenuNew(menuID int, parentMenuID int, label string)
	MenuItem(menuID int, parentMenuID int, label string, action string)
	ClipboardGet(typeID int)
	ClipboardPut(typeID int, data []byte)
}

type CallbackSet

type CallbackSet interface {
	EventGeneral(eventID int)
	EventKeyboard(r rune, shift, control, alt, meta bool, name string)
	EventConfigure(width, height, innerWidth, innerHeight int)
	EventButton(action, button int, x, y int)
	EventMotion(x, y int, shift, control, alt, meta bool)
	EventMenu(action string)
	EventScroll(direction int, deltaX, deltaY int)
	EventClipboard(typeID int, data []byte)
}

Jump to

Keyboard shortcuts

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