models

package
v0.0.0-...-eb302e4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EOL = "\r\n"
View Source
const VK_CONTROL = 17
View Source
const VK_V = 86

Variables

This section is empty.

Functions

func GetClipboardSequenceNumber

func GetClipboardSequenceNumber() (uint32, error)

Types

type Clipboard

type Clipboard interface {
	IsStringable() (bool, error)
	GetAsString() (string, error)
	SetString(data *string) error
}

func NewClipboard

func NewClipboard() Clipboard

type Cursor

type Cursor interface {
	Up()
	Down()
	Set(uint)
	Reset()
	GetIndex() uint
	IsSelected(uint) bool
	AddListener(chan struct{})
}

func NewCursor

func NewCursor(max uint) Cursor

max: uint 0 origin

type KeyAction

type KeyAction uint

generic keyboard event info ////////////////////////////////

const KeyDown KeyAction = 0
const KeyUp KeyAction = 1

type KeyHooker

type KeyHooker interface {
	Start() error
	Stop() error
}

func NewKeyHooker

func NewKeyHooker(hooked chan KeyInfo) KeyHooker

type KeyInfo

type KeyInfo struct {
	Action          KeyAction
	VirtualKeyCode  uint32
	ScanCode        uint32
	ModifierKeyFlag uint32
}

type List

type List interface {
	Size() uint
	Push(string)
	Get(uint) *string
	GetData() []string
	Pop(uint) *string
	AddListener(chan struct{})
	Dump()
}

func NewList

func NewList(size uint) List

func NewListWithData

func NewListWithData(size uint, data []string) List

type Monitor

type Monitor interface {
	Monitoring() error
	Stop() error
}

func NewMonitor

func NewMonitor(written chan bool) Monitor

type MsWinWindow

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

func (*MsWinWindow) Hide

func (this *MsWinWindow) Hide()

func (MsWinWindow) ResizeWindow

func (this MsWinWindow) ResizeWindow(w int16, h int16) error

func (*MsWinWindow) SendPasteCommand

func (this *MsWinWindow) SendPasteCommand() error

func (*MsWinWindow) Show

func (this *MsWinWindow) Show()

type Storage

type Storage interface {
	Load(path *string) ([]string, error)
	Save(path *string, data []string) error
}

func NewStorage

func NewStorage() Storage

type Window

type Window interface {
	Show()
	Hide()
	SendPasteCommand() error
	ResizeWindow(w int16, i int16) error
}

func NewWindow

func NewWindow() Window

type WindowsClipboard

type WindowsClipboard struct {
}

func (*WindowsClipboard) GetAsString

func (this *WindowsClipboard) GetAsString() (string, error)

可能なら文字列として取得する

func (*WindowsClipboard) IsStringable

func (this *WindowsClipboard) IsStringable() (bool, error)

文字列っぽいか否か

func (*WindowsClipboard) SetString

func (this *WindowsClipboard) SetString(rawData *string) error

クリップボードにデータをセット

type WindowsKeyHooker

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

func (*WindowsKeyHooker) Start

func (this *WindowsKeyHooker) Start() error

func (*WindowsKeyHooker) Stop

func (this *WindowsKeyHooker) Stop() error

type WindowsMonitor

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

func (*WindowsMonitor) Monitoring

func (this *WindowsMonitor) Monitoring() error

func (*WindowsMonitor) Stop

func (this *WindowsMonitor) Stop() error

Jump to

Keyboard shortcuts

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