Documentation ¶
Index ¶
- Constants
- Variables
- func Rpt(min, max image.Point) image.Rectangle
- type Frame
- func (f *Frame) Charofpt(pt image.Point) uint64
- func (f *Frame) Clear(freeall bool)
- func (f *Frame) Delete(p0, p1 uint64) int
- func (f *Frame) DrawSel(pt image.Point, p0, p1 uint64, issel bool)
- func (f *Frame) DrawText(pt image.Point, text *draw.Image, back *draw.Image)
- func (f *Frame) InitTick()
- func (f *Frame) Insert(r []rune, p0 uint64)
- func (f *Frame) Insure(bn int, n uint)
- func (f *Frame) Ptofchar(p uint64) image.Point
- func (f *Frame) Redraw()
- func (f *Frame) Select(mc draw.Mousectl)
- func (f *Frame) SelectPaint(p0, p1 image.Point, col *draw.Image)
- func (f *Frame) SetRects(r image.Rectangle, b *draw.Image)
- func (f *Frame) Tick(pt image.Point, ticked bool)
Constants ¶
View Source
const (
NumColours
)
Variables ¶
View Source
var ( DELTA = 25 TMPSIZE = 256 )
Functions ¶
Types ¶
type Frame ¶
type Frame struct { Font *draw.Font Display *draw.Display // on which the frame is displayed Background *draw.Image // on which the frame appears Cols [NumColours]*draw.Image // background and text colours Rect image.Rectangle // in which the text appears Entire image.Rectangle // size of full frame Scroll func(*Frame, int) // function provided by application // contains filtered or unexported fields }
func NewFrame ¶
NewFrame creates a new Frame with Font ft, background image b, colours cols, and of the size r
Click to show internal directories.
Click to hide internal directories.