interfaces

package
v0.0.0-...-63eae10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: LGPL-2.1 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IScreen

type IScreen interface {
	Close()
	// AddChild(children ...interface{})
	AddChild(children ...IWidgetKernel)
	Remove(v IWidgetKernel)
	// FindWidget(x, y int, root IScreen) (IWidgetKernel, int, int)
	FindWidget(x, y int) (IWidgetKernel, int, int)
	Draw()
	SetDrawColor(r, g, b, a int)
	SetFillColor(r, g, b, a int)
	DrawText(s string, x, y int)
	Font() *ttf.Font
	SetFont(font *ttf.Font)
	Clear()
	FillRect(x1, y1, w, h int)
	DrawLine(x1, y1, x2, y2 int)
	DrawRect(x1, y1, w, h int)
	Flush()
	PostUpdate()
	SetClipRect(rect *types.TRect) error
	Size() (int, int)
	OldSize() (int, int)
}

IScreen -

type IWidgetKernel

type IWidgetKernel interface {
	Parent() IWidgetKernel
	Screen() IScreen
	SetScreen(scr IScreen)
	SetParent(parent IWidgetKernel)
}

IWidgetKernel -

Jump to

Keyboard shortcuts

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