Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImagePanel ¶
type ImagePanel struct { Bounds image.Rectangle W, H int Location image.Rectangle // Where panel is to be rendered // contains filtered or unexported fields }
func NewImagePanel ¶
func NewImagePanel(img image.Image) *ImagePanel
This does the initial rendering of the image to create the static image. This is then copied during the rendering process Other panels might update the content on each render
func (*ImagePanel) Render ¶
func (p *ImagePanel) Render(buffer *image.RGBA)
// Draws on an image buffer the contents of the panel // the location size should be the same as the initial image
func (*ImagePanel) Resize ¶
func (p *ImagePanel) Resize(bounds image.Rectangle)
// the location size should be the same as the initial image
type PlainPanel ¶
type PlainPanel struct { Bounds image.Rectangle W, H int Location image.Rectangle // Where panel is to be rendered // contains filtered or unexported fields }
func NewPlainPanel ¶
func NewPlainPanel(w, h int) *PlainPanel
Click to show internal directories.
Click to hide internal directories.