Documentation
¶
Index ¶
- Variables
- func DoUpstream(w Window, cmd string, arg interface{})
- func GetAttValue(w Window, name string) string
- func GetWindowID(parent Window, w Window) string
- func MoveWindow(parent Window, child Window, delta image.Point)
- func PointString(p image.Point) string
- func RectString(r image.Rectangle) string
- func RedrawChildren(parent Window)
- func RegisterToolType(name string, newfunc ToolMaker)
- func RemoveChild(parent Window, child Window)
- func Run()
- func SetAttValue(w Window, name string, val string)
- func StringToPoint(s string) (p image.Point)
- func StringToRect(s string) (r image.Rectangle)
- func ToBool(arg interface{}) bool
- func ToColor(arg interface{}) color.RGBA
- func ToPoint(arg interface{}) image.Point
- func ToRect(arg interface{}) image.Rectangle
- func ToString(arg interface{}) string
- func ToolType(w Window) string
- func WinChildPos(parent Window, child Window) (p image.Point)
- func WinChildRect(parent, child Window) (r image.Rectangle)
- func WinCurrSize(w Window) (p image.Point)
- func WinForwardMouse(w Window, mouse MouseCmd)
- func WinMinSize(w Window) (r image.Point)
- func WinRelativePos(parent Window, w Window, pos image.Point) image.Point
- func WinSetChildPos(parent Window, child Window, pos image.Point)
- func WinSetChildSize(w Window, size image.Point)
- func WinSetMySize(w Window, size image.Point)
- func WindowRaise(parent Window, raise Window)
- type Button
- type CloseYourselfCmd
- type Cmd
- type DownDragUp
- type DrawLineCmd
- type DrawTextCmd
- type Menu
- type MenuCallback
- type MenuItem
- type MouseCmd
- type MouseDrawer
- type MouseHandler
- type Page
- type Screen
- type ScrollingText
- type Style
- type SweepCallbackCmd
- type TextCallback
- type ToolData
- func NewButton(parent Window, label string) ToolData
- func NewMenu(parent Window, toolType string, items []MenuItem) ToolData
- func NewPage(parent Window, name string) ToolData
- func NewPageMenu(parent Window) ToolData
- func NewScrollingText(parent Window) ToolData
- func NewToolData(w Window, toolType string, minSize image.Point) ToolData
- func NewToolsMenu(parent Window) ToolData
- func NewWindowMenu(parent Window) ToolData
- type ToolMaker
- type UpstreamCmd
- type WinContext
- type Window
- type WindowID
Constants ¶
This section is empty.
Variables ¶
var BackColor = color.RGBA{0, 0, 0, 255}
BackColor xxx
var ForeColor = color.RGBA{255, 255, 255, 255}
ForeColor xxx
var GreenColor = color.RGBA{0, 0xff, 0, 0xff}
GreenColor xxx
var RedColor = color.RGBA{255, 0, 0, 255}
RedColor xxx
var ToolMakers = make(map[string]ToolMaker)
ToolMakers xxx
Functions ¶
func WinForwardMouse ¶
WinForwardMouse is a utility function for Tools that just want to forward all their mouse events to whatever sub-windows they have.
func WinRelativePos ¶
WinRelativePos xxx
func WinSetChildPos ¶
WinSetChildPos xxx
func WindowRaise ¶
WindowRaise moves w to the top of the order
Types ¶
type DownDragUp ¶
type DownDragUp int
DownDragUp xxx
const ( MouseUp DownDragUp = iota MouseDown MouseDrag )
MouseUp xxx
type DrawLineCmd ¶
DrawLineCmd xxx
type DrawTextCmd ¶
DrawTextCmd xxx
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page is the top-most Window
var CurrentPage *Page
CurrentPage xxx
type Screen ¶
type Screen struct {
// contains filtered or unexported fields
}
Screen satisfies the ebiten.Game interface. Screen contains the pageWindow. Screen and Style should be the only things calling ebiten.
func (*Screen) Draw ¶
func (screen *Screen) Draw(eimage *ebiten.Image)
Draw satisfies the ebiten.Game interface
type ScrollingText ¶
type ScrollingText struct { Buffer []string // contains filtered or unexported fields }
ScrollingText assumes a fixed-width font
func (*ScrollingText) Do ¶
func (st *ScrollingText) Do(cmd string, arg interface{}) (interface{}, error)
Do xxx
type Style ¶
type Style struct {
// contains filtered or unexported fields
}
Style xxx
func (*Style) BoundString ¶
BoundString xxx
func (*Style) TextFitRect ¶
TextFitRect xxx
type SweepCallbackCmd ¶
type SweepCallbackCmd struct {
// contains filtered or unexported fields
}
SweepCallbackCmd xxx
type ToolData ¶
type ToolData struct {
// contains filtered or unexported fields
}
ToolData fields are exported
func NewToolData ¶
NewToolData xxx
type WinContext ¶
type WinContext struct {
// contains filtered or unexported fields
}
WinContext doesn't export any of its fields
type Window ¶
type Window interface { Context() *WinContext Do(cmd string, arg interface{}) (interface{}, error) }
Window is the external (and networkable) interface to a Window instance. Context is only local (I think).