Documentation ¶
Index ¶
- Constants
- Variables
- type Alignmenter
- type ContactState
- type DisplayPane
- type InputHandler
- type LayoutPane
- type MouseState
- type Pane
- type PaneCoords
- type PaneImage
- type PointerState
- type Renderer
- type ResizeEvent
- type StandardPane
- func (pn *StandardPane) Close()
- func (pn *StandardPane) DisplayPane() DisplayPane
- func (pn *StandardPane) InputHandler() InputHandler
- func (pn *StandardPane) LayoutPane() LayoutPane
- func (pn *StandardPane) MinMax() (image.Point, image.Point)
- func (pn *StandardPane) PaneHandler()
- func (pn *StandardPane) SetDisplayPane(dp DisplayPane)
- func (pn *StandardPane) SetInputHandler(ih InputHandler)
- func (pn *StandardPane) SetLayoutPane(lp LayoutPane)
- func (pn *StandardPane) SetMinMax(min, max image.Point)
- func (pn *StandardPane) SetMouseState(ms MouseState)
- func (pn *StandardPane) SetSize(size ResizeEvent)
Constants ¶
View Source
const ( AlignCenter alignment = iota AlignCenterLeft AlignCenterRight AlignTop AlignTopLeft AlignTopRight AlignBottom AlignBottomLeft AlignBottomRight )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Alignmenter ¶
type Alignmenter interface {
Alignment() alignment
}
type ContactState ¶
This is where on screen has been 'touched' ie: with finger, or mouse button down There will certainly be multiple contacts from multiple Devices
type DisplayPane ¶
type DisplayPane interface { SetPane(pane Pane) SetRenderer(r Renderer) Draw() SetSize(size ResizeEvent) Close() DrawingHandler() }
type InputHandler ¶
type InputHandler interface { SetPane(pn Pane) HandleMouseState(ms MouseState) // HandlePointerState(ps PointerState) // HandleContactState(cs ContactState) InputHandler() }
type LayoutPane ¶
type LayoutPane interface { SetPane(pane Pane) HandleResizeEvent(re ResizeEvent) HandleCloseEvent() RegisterRenderer(wr Renderer) //This initializes pane //no further setup should be possible afterwards AddPane(pane Pane, x, y int) }
This handles children size and location
type MouseState ¶
type Pane ¶
type Pane interface { //return minimum and maximum sizes desired //0 means not applicable. //minimum may not be respected. MinMax() (image.Point, image.Point) SetMinMax(min, max image.Point) SetSize(size ResizeEvent) Close() //Event handling SetMouseState(ms MouseState) SetLayoutPane(lp LayoutPane) LayoutPane() LayoutPane SetDisplayPane(dp DisplayPane) DisplayPane() DisplayPane SetInputHandler(ih InputHandler) InputHandler() InputHandler PaneHandler() }
type PointerState ¶
This is where on screen the pointer is There may be multiple pointers from multiple Devices
type Renderer ¶
type Renderer interface { RegisterPane(pane Pane, parentPane Pane) SetAspect(pi PaneImage) SetLocation(pc PaneCoords) SetBasePane(pane Pane) Run() BackEndRun() }
type StandardPane ¶
type StandardPane struct {
// contains filtered or unexported fields
}
func NewStandardPane ¶
func NewStandardPane() *StandardPane
func (*StandardPane) Close ¶
func (pn *StandardPane) Close()
func (*StandardPane) DisplayPane ¶
func (pn *StandardPane) DisplayPane() DisplayPane
func (*StandardPane) InputHandler ¶
func (pn *StandardPane) InputHandler() InputHandler
func (*StandardPane) LayoutPane ¶
func (pn *StandardPane) LayoutPane() LayoutPane
func (*StandardPane) PaneHandler ¶
func (pn *StandardPane) PaneHandler()
func (*StandardPane) SetDisplayPane ¶
func (pn *StandardPane) SetDisplayPane(dp DisplayPane)
func (*StandardPane) SetInputHandler ¶
func (pn *StandardPane) SetInputHandler(ih InputHandler)
func (*StandardPane) SetLayoutPane ¶
func (pn *StandardPane) SetLayoutPane(lp LayoutPane)
func (*StandardPane) SetMinMax ¶
func (pn *StandardPane) SetMinMax(min, max image.Point)
func (*StandardPane) SetMouseState ¶
func (pn *StandardPane) SetMouseState(ms MouseState)
func (*StandardPane) SetSize ¶
func (pn *StandardPane) SetSize(size ResizeEvent)
Click to show internal directories.
Click to hide internal directories.