gtk2

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FrameBuffer

func FrameBuffer(m rv.RenderModel)

FrameBuffer sets up a GTK2 Window and runs a mainloop rendering the RenderModel

func GdkPixelCopy

func GdkPixelCopy(source *image.RGBA, target *gdkpixbuf.Pixbuf, region image.Rectangle, targetOffset image.Point)

func GdkPixelCopyNRGBA

func GdkPixelCopyNRGBA(source *image.NRGBA, target *gdkpixbuf.Pixbuf, region image.Rectangle, targetOffset image.Point)

func GetGtkWindow

func GetGtkWindow(r rv.RenderModel, addWidgets bool) *gtk.Window

func GtkWindowInit

func GtkWindowInit(r rv.RenderModel)

func GtkWindowWithWidgetsInit

func GtkWindowWithWidgetsInit(r rv.RenderModel)

func Main

func Main(m rv.RenderModel)

Main sets up a GTK2 Window with widgets for editing parameters and runs a mainloop rendering the RenderModel

func WrapRenderWidget

func WrapRenderWidget(r *GtkRenderWidget) gtk.IWidget

Types

type GtkParamWidget

type GtkParamWidget struct {
	gtk.IWidget
	P rv.RenderParameter
}

func (*GtkParamWidget) Update

func (w *GtkParamWidget) Update()

type GtkRenderWidget

type GtkRenderWidget struct {
	*gtk.DrawingArea

	Image image.Image

	R rv.RenderModel

	ParamWidgets []*GtkParamWidget
	// contains filtered or unexported fields
}

func NewGtkRenderWidget

func NewGtkRenderWidget(r rv.RenderModel) *GtkRenderWidget

func (*GtkRenderWidget) Configure

func (w *GtkRenderWidget) Configure()

func (*GtkRenderWidget) Draw

func (w *GtkRenderWidget) Draw(ctx *glib.CallbackContext)

func (*GtkRenderWidget) OnButton

func (w *GtkRenderWidget) OnButton(e *gdk.EventButton)

func (*GtkRenderWidget) OnKeyPress

func (w *GtkRenderWidget) OnKeyPress(e *gdk.EventKey)

func (*GtkRenderWidget) OnMotion

func (w *GtkRenderWidget) OnMotion(e *gdk.EventMotion)

func (*GtkRenderWidget) OnScroll

func (w *GtkRenderWidget) OnScroll(e *gdk.EventScroll)

func (*GtkRenderWidget) SetNeedsPaint

func (w *GtkRenderWidget) SetNeedsPaint()

func (*GtkRenderWidget) UpdateParamWidgets

func (w *GtkRenderWidget) UpdateParamWidgets()

Jump to

Keyboard shortcuts

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