client

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(callbacks iface.CallbackSet, eventPipe, streamPipe, syncPipe *rpc.Pipe) *Client

func (*Client) ApplicationExit

func (c *Client) ApplicationExit() string

func (*Client) ApplicationSize

func (c *Client) ApplicationSize(x, y, width, height int)

func (*Client) ApplicationTitle

func (c *Client) ApplicationTitle(title string)

func (*Client) ApplicationVersion

func (c *Client) ApplicationVersion() string

func (*Client) FontDrop

func (c *Client) FontDrop(fontID int)

func (*Client) FontNew

func (c *Client) FontNew(fontID int, height int, style, variant, weight, stretch int, family string) (int, int, int)

func (*Client) FontSize

func (c *Client) FontSize(fontID int, text string) (int, int)

func (*Client) FontSplit

func (c *Client) FontSplit(fontID int, text string, edge, indent int) []int

func (*Client) FrameDrop

func (c *Client) FrameDrop(frameID int)

func (*Client) FrameNew

func (c *Client) FrameNew(frameID int, parentFrameID int, x, y, width, height int)

func (*Client) FrameRaise

func (c *Client) FrameRaise(frameID int)

func (*Client) FrameSize

func (c *Client) FrameSize(frameID int, x, y, width, height int)

func (*Client) ImageDrop

func (c *Client) ImageDrop(imageID int)

func (*Client) ImageNew

func (c *Client) ImageNew(imageID int, width, height int, bitmap []byte)

func (*Client) MenuItem

func (c *Client) MenuItem(menuID int, parentMenuID int, label string, action string)

func (*Client) MenuNew

func (c *Client) MenuNew(menuID int, parentMenuID int, label string)

func (*Client) Sync

func (c *Client) Sync()

func (*Client) WindowClear

func (c *Client) WindowClear(windowID int)

func (*Client) WindowDrop

func (c *Client) WindowDrop(windowID int)

func (*Client) WindowFill

func (c *Client) WindowFill(windowID int, x, y, width, height int, r, g, b uint16)

func (*Client) WindowImage

func (c *Client) WindowImage(windowID int, x, y, width, height int, imageID int)

func (*Client) WindowLine

func (c *Client) WindowLine(windowID int, x0, y0, x1, y1 int, r, g, b uint16)

func (*Client) WindowNew

func (c *Client) WindowNew(windowID int, frameID int, x, y, width, height int)

func (*Client) WindowRaise

func (c *Client) WindowRaise(windowID int)

func (*Client) WindowShow

func (c *Client) WindowShow(windowID int)

func (*Client) WindowSize

func (c *Client) WindowSize(windowID int, x, y, width, height int)

func (*Client) WindowText

func (c *Client) WindowText(windowID int, x, y int, r, g, b uint16, fontID int, height int, text string)

Jump to

Keyboard shortcuts

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